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

Description

Transforms Meander's internal expense and reimbursement schema into the field format required by the target accounting system. Applies the organization's configured field mapping rules, handles required field validation, and raises structured mapping errors when required target fields cannot be resolved.

Feature: Accounting System Integration

accounting-field-mapper

Responsibilities

  • Apply organization-specific field mapping configuration
  • Transform Meander expense records to target system schema
  • Validate that all required target fields are populated
  • Return structured mapping errors for missing or invalid fields
  • Support mapping previews for admin configuration UI

Interfaces

mapExpenseRecord(expense, orgMappingConfig)
mapReimbursementRecord(reimbursement, orgMappingConfig)
validateMappingConfig(config)
previewMapping(sampleExpense, config)
getDefaultMappingTemplate(systemType)
listRequiredTargetFields(systemType)

Relationships

Dependents (1)

Components that depend on this component