Service Layer medium complexity backend
1
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Factory that instantiates the correct accounting system adapter based on the organization's integration config. Ensures the Accounting Integration Service remains decoupled from specific system implementations.

Feature: Accounting System Integration

accounting-adapter-factory

Responsibilities

  • Resolve the correct adapter class from the organization's integration_type config field
  • Inject HTTP client and credentials into the adapter at construction time
  • Support registration of new adapter types without modifying existing code

Interfaces

createAdapter(config: IntegrationConfig): AccountingAdapter
registerAdapter(type: string, adapterClass: AdapterConstructor): void
getSupportedTypes(): string[]

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component