42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
|
|
// application/issued-invoices/di/snapshot-builders.di.ts
|
||
|
|
|
||
|
|
import {
|
||
|
|
CustomerFullSnapshotBuilder,
|
||
|
|
CustomerItemReportSnapshotBuilder,
|
||
|
|
CustomerItemsFullSnapshotBuilder,
|
||
|
|
CustomerListItemSnapshotBuilder,
|
||
|
|
CustomerRecipientFullSnapshotBuilder,
|
||
|
|
CustomerReportSnapshotBuilder,
|
||
|
|
CustomerTaxReportSnapshotBuilder,
|
||
|
|
CustomerTaxesFullSnapshotBuilder,
|
||
|
|
} from "../snapshot-builders";
|
||
|
|
|
||
|
|
export function buildCustomerSnapshotBuilders() {
|
||
|
|
const itemsBuilder = new CustomerItemsFullSnapshotBuilder();
|
||
|
|
|
||
|
|
const taxesBuilder = new CustomerTaxesFullSnapshotBuilder();
|
||
|
|
|
||
|
|
const recipientBuilder = new CustomerRecipientFullSnapshotBuilder();
|
||
|
|
|
||
|
|
const fullSnapshotBuilder = new CustomerFullSnapshotBuilder(
|
||
|
|
itemsBuilder,
|
||
|
|
recipientBuilder,
|
||
|
|
taxesBuilder
|
||
|
|
);
|
||
|
|
|
||
|
|
const listSnapshotBuilder = new CustomerListItemSnapshotBuilder();
|
||
|
|
|
||
|
|
const itemsReportBuilder = new CustomerItemReportSnapshotBuilder();
|
||
|
|
const taxesReportBuilder = new CustomerTaxReportSnapshotBuilder();
|
||
|
|
const reportSnapshotBuilder = new CustomerReportSnapshotBuilder(
|
||
|
|
itemsReportBuilder,
|
||
|
|
taxesReportBuilder
|
||
|
|
);
|
||
|
|
|
||
|
|
return {
|
||
|
|
full: fullSnapshotBuilder,
|
||
|
|
list: listSnapshotBuilder,
|
||
|
|
report: reportSnapshotBuilder,
|
||
|
|
};
|
||
|
|
}
|