Skip to content

ADR-001: Isolate OCPI partner quirks in provider adapters

Status

Accepted

Context

OCPI partners often differ in behavior, payload interpretation, authentication details, endpoint coverage, and operational expectations.

Decision

Implement provider-specific behavior behind adapter boundaries instead of scattering conditional logic across shared runtime code.

Consequences

Positive

  • lower coupling
  • clearer ownership
  • safer onboarding of new providers
  • easier testing of provider-specific behavior

Negative

  • more modules to maintain
  • need for adapter contracts and shared abstractions