@fiado/type-kit 3.616.0 → 3.618.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_test_/unit/account/BankAccountMCSendTransfer.test.ts +43 -0
- package/_test_/unit/loanRetailAudit/m8AuditCatalog.test.ts +58 -0
- package/_test_/unit/reconciliation/reconciliationCatalogs.test.ts +126 -0
- package/_test_/unit/reconciliation/reconciliationRequests.test.ts +208 -0
- package/_test_/unit/reconciliation/reconciliationShapes.test.ts +74 -0
- package/_test_/unit/retailWizard/privateGetSale.test.ts +59 -0
- package/_test_/unit/transaction/transactionCreateRequestM8.test.ts +27 -0
- package/_test_/unit/transactionProcessor/reconciliationAdjustment.test.ts +63 -0
- package/_test_/unit/transferNote/transferNoteConfigAndPrivate.test.ts +202 -0
- package/_test_/unit/transferNote/transferNoteEventsAndFeeds.test.ts +112 -0
- package/_test_/unit/transferNote/transferNoteRequests.test.ts +138 -0
- package/bin/account/dtos/BankAccountMCSendTransferRequest.d.ts +8 -2
- package/bin/account/dtos/BankAccountMCSendTransferResponse.d.ts +3 -0
- package/bin/index.d.ts +2 -0
- package/bin/index.js +7 -1
- package/bin/loanRetailAudit/enums/AuditTrailActionEnum.d.ts +12 -1
- package/bin/loanRetailAudit/enums/AuditTrailActionEnum.js +12 -0
- package/bin/loanRetailAudit/enums/LoanAuditEntityTypeEnum.d.ts +5 -1
- package/bin/loanRetailAudit/enums/LoanAuditEntityTypeEnum.js +4 -0
- package/bin/reconciliation/constants/reconciliationErrorHttpStatus.d.ts +6 -0
- package/bin/reconciliation/constants/reconciliationErrorHttpStatus.js +23 -0
- package/bin/reconciliation/constants/reconciliationValidation.d.ts +8 -0
- package/bin/reconciliation/constants/reconciliationValidation.js +11 -0
- package/bin/reconciliation/dtos/ReconciliationDefinition.d.ts +42 -0
- package/bin/reconciliation/dtos/ReconciliationDefinition.js +2 -0
- package/bin/reconciliation/dtos/ReconciliationFeedRecord.d.ts +42 -0
- package/bin/reconciliation/dtos/ReconciliationFeedRecord.js +2 -0
- package/bin/reconciliation/dtos/ReconciliationItem.d.ts +77 -0
- package/bin/reconciliation/dtos/ReconciliationItem.js +2 -0
- package/bin/reconciliation/dtos/ReconciliationRun.d.ts +28 -0
- package/bin/reconciliation/dtos/ReconciliationRun.js +2 -0
- package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.d.ts +80 -0
- package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.js +215 -0
- package/bin/reconciliation/dtos/requests/ReconciliationActionRequests.d.ts +30 -0
- package/bin/reconciliation/dtos/requests/ReconciliationActionRequests.js +105 -0
- package/bin/reconciliation/dtos/requests/ReconciliationFeedRequests.d.ts +23 -0
- package/bin/reconciliation/dtos/requests/ReconciliationFeedRequests.js +71 -0
- package/bin/reconciliation/dtos/requests/ReconciliationQueries.d.ts +54 -0
- package/bin/reconciliation/dtos/requests/ReconciliationQueries.js +192 -0
- package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.d.ts +7 -0
- package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.js +39 -0
- package/bin/reconciliation/dtos/responses/PrivateReconciliationResponses.d.ts +13 -0
- package/bin/reconciliation/dtos/responses/PrivateReconciliationResponses.js +2 -0
- package/bin/reconciliation/dtos/responses/ReconciliationFeedResponses.d.ts +7 -0
- package/bin/reconciliation/dtos/responses/ReconciliationFeedResponses.js +2 -0
- package/bin/reconciliation/dtos/responses/ReconciliationResponses.d.ts +81 -0
- package/bin/reconciliation/dtos/responses/ReconciliationResponses.js +2 -0
- package/bin/reconciliation/enums/ReconciliationDefinitionStatusEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationDefinitionStatusEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationErrorCodeEnum.d.ts +24 -0
- package/bin/reconciliation/enums/ReconciliationErrorCodeEnum.js +28 -0
- package/bin/reconciliation/enums/ReconciliationExportFormatEnum.d.ts +5 -0
- package/bin/reconciliation/enums/ReconciliationExportFormatEnum.js +9 -0
- package/bin/reconciliation/enums/ReconciliationFeedConceptEnum.d.ts +16 -0
- package/bin/reconciliation/enums/ReconciliationFeedConceptEnum.js +20 -0
- package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.d.ts +4 -0
- package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.js +8 -0
- package/bin/reconciliation/enums/ReconciliationFeedOwnerEnum.d.ts +9 -0
- package/bin/reconciliation/enums/ReconciliationFeedOwnerEnum.js +13 -0
- package/bin/reconciliation/enums/ReconciliationItemStateEnum.d.ts +23 -0
- package/bin/reconciliation/enums/ReconciliationItemStateEnum.js +27 -0
- package/bin/reconciliation/enums/ReconciliationLayerEnum.d.ts +8 -0
- package/bin/reconciliation/enums/ReconciliationLayerEnum.js +12 -0
- package/bin/reconciliation/enums/ReconciliationPeriodEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationPeriodEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationResolutionStatusEnum.d.ts +9 -0
- package/bin/reconciliation/enums/ReconciliationResolutionStatusEnum.js +13 -0
- package/bin/reconciliation/enums/ReconciliationResolutionTypeEnum.d.ts +7 -0
- package/bin/reconciliation/enums/ReconciliationResolutionTypeEnum.js +11 -0
- package/bin/reconciliation/enums/ReconciliationRuleTypeEnum.d.ts +7 -0
- package/bin/reconciliation/enums/ReconciliationRuleTypeEnum.js +11 -0
- package/bin/reconciliation/enums/ReconciliationRunStatusEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationRunStatusEnum.js +10 -0
- package/bin/reconciliation/enums/ReconciliationSourceRoleEnum.d.ts +6 -0
- package/bin/reconciliation/enums/ReconciliationSourceRoleEnum.js +10 -0
- package/bin/reconciliation/events/ReconciliationItemMatchedEventDetail.d.ts +22 -0
- package/bin/reconciliation/events/ReconciliationItemMatchedEventDetail.js +14 -0
- package/bin/reconciliation/index.d.ts +29 -0
- package/bin/reconciliation/index.js +51 -0
- package/bin/retailWizard/catalog/privateSaleDetailFields.d.ts +3 -0
- package/bin/retailWizard/catalog/privateSaleDetailFields.js +16 -0
- package/bin/retailWizard/constants/retailWizardValidation.d.ts +2 -0
- package/bin/retailWizard/constants/retailWizardValidation.js +5 -0
- package/bin/retailWizard/dtos/requests/PrivateGetSaleRequest.d.ts +8 -0
- package/bin/retailWizard/dtos/requests/PrivateGetSaleRequest.js +42 -0
- package/bin/retailWizard/dtos/responses/PrivateGetSaleResponse.d.ts +16 -0
- package/bin/retailWizard/dtos/responses/PrivateGetSaleResponse.js +2 -0
- package/bin/retailWizard/index.d.ts +4 -0
- package/bin/retailWizard/index.js +5 -0
- package/bin/transaction/dtos/TransactionCreateRequest.d.ts +4 -0
- package/bin/transaction/dtos/TransactionCreateRequest.js +12 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.d.ts +30 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.js +107 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.d.ts +7 -0
- package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.js +2 -0
- package/bin/transactionProcessor/dtos/ReconciliationAdjustmentReference.d.ts +5 -0
- package/bin/transactionProcessor/dtos/ReconciliationAdjustmentReference.js +30 -0
- package/bin/transactionProcessor/index.d.ts +3 -0
- package/bin/transactionProcessor/index.js +3 -0
- package/bin/transferNote/constants/transferNoteDefaultFees.d.ts +5 -0
- package/bin/transferNote/constants/transferNoteDefaultFees.js +9 -0
- package/bin/transferNote/constants/transferNoteErrorHttpStatus.d.ts +3 -0
- package/bin/transferNote/constants/transferNoteErrorHttpStatus.js +30 -0
- package/bin/transferNote/constants/transferNoteValidation.d.ts +7 -0
- package/bin/transferNote/constants/transferNoteValidation.js +10 -0
- package/bin/transferNote/dtos/TransferNote.d.ts +81 -0
- package/bin/transferNote/dtos/TransferNote.js +2 -0
- package/bin/transferNote/dtos/TransferNoteConfigRecords.d.ts +50 -0
- package/bin/transferNote/dtos/TransferNoteConfigRecords.js +2 -0
- package/bin/transferNote/dtos/TransferNoteFeedRecords.d.ts +38 -0
- package/bin/transferNote/dtos/TransferNoteFeedRecords.js +2 -0
- package/bin/transferNote/dtos/TransferNoteHistoryEntry.d.ts +16 -0
- package/bin/transferNote/dtos/TransferNoteHistoryEntry.js +2 -0
- package/bin/transferNote/dtos/TransferNoteItem.d.ts +36 -0
- package/bin/transferNote/dtos/TransferNoteItem.js +2 -0
- package/bin/transferNote/dtos/TransferNoteSignedUrl.d.ts +5 -0
- package/bin/transferNote/dtos/TransferNoteSignedUrl.js +2 -0
- package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.d.ts +105 -0
- package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.js +256 -0
- package/bin/transferNote/dtos/requests/RetailerTransferNoteRequests.d.ts +20 -0
- package/bin/transferNote/dtos/requests/RetailerTransferNoteRequests.js +47 -0
- package/bin/transferNote/dtos/requests/TransferNoteActionRequests.d.ts +33 -0
- package/bin/transferNote/dtos/requests/TransferNoteActionRequests.js +104 -0
- package/bin/transferNote/dtos/requests/TransferNoteConfigRequests.d.ts +38 -0
- package/bin/transferNote/dtos/requests/TransferNoteConfigRequests.js +152 -0
- package/bin/transferNote/dtos/requests/TransferNoteQueries.d.ts +29 -0
- package/bin/transferNote/dtos/requests/TransferNoteQueries.js +107 -0
- package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.d.ts +14 -0
- package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.js +73 -0
- package/bin/transferNote/dtos/responses/PrivateTransferNoteResponses.d.ts +26 -0
- package/bin/transferNote/dtos/responses/PrivateTransferNoteResponses.js +2 -0
- package/bin/transferNote/dtos/responses/RetailerTransferNoteResponses.d.ts +13 -0
- package/bin/transferNote/dtos/responses/RetailerTransferNoteResponses.js +2 -0
- package/bin/transferNote/dtos/responses/TransferNoteConfigResponses.d.ts +6 -0
- package/bin/transferNote/dtos/responses/TransferNoteConfigResponses.js +2 -0
- package/bin/transferNote/dtos/responses/TransferNoteResponses.d.ts +44 -0
- package/bin/transferNote/dtos/responses/TransferNoteResponses.js +2 -0
- package/bin/transferNote/enums/TransferNoteConceptEnum.d.ts +16 -0
- package/bin/transferNote/enums/TransferNoteConceptEnum.js +20 -0
- package/bin/transferNote/enums/TransferNoteConceptSignEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteConceptSignEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteConfigRecordTypeEnum.d.ts +7 -0
- package/bin/transferNote/enums/TransferNoteConfigRecordTypeEnum.js +11 -0
- package/bin/transferNote/enums/TransferNoteConfirmationSourceEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteConfirmationSourceEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteConfirmationTypeEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteConfirmationTypeEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteDisputeCategoryEnum.d.ts +7 -0
- package/bin/transferNote/enums/TransferNoteDisputeCategoryEnum.js +11 -0
- package/bin/transferNote/enums/TransferNoteDisputeDecisionEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteDisputeDecisionEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteErrorCodeEnum.d.ts +32 -0
- package/bin/transferNote/enums/TransferNoteErrorCodeEnum.js +36 -0
- package/bin/transferNote/enums/TransferNoteFeedConceptEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteFeedConceptEnum.js +9 -0
- package/bin/transferNote/enums/TransferNoteHistoryActionEnum.d.ts +13 -0
- package/bin/transferNote/enums/TransferNoteHistoryActionEnum.js +17 -0
- package/bin/transferNote/enums/TransferNoteIssueOriginEnum.d.ts +6 -0
- package/bin/transferNote/enums/TransferNoteIssueOriginEnum.js +10 -0
- package/bin/transferNote/enums/TransferNoteItemStatusEnum.d.ts +5 -0
- package/bin/transferNote/enums/TransferNoteItemStatusEnum.js +9 -0
- package/bin/transferNote/enums/TransferNotePartyTypeEnum.d.ts +6 -0
- package/bin/transferNote/enums/TransferNotePartyTypeEnum.js +10 -0
- package/bin/transferNote/enums/TransferNoteStatusEnum.d.ts +9 -0
- package/bin/transferNote/enums/TransferNoteStatusEnum.js +13 -0
- package/bin/transferNote/events/TransferNoteReconciledEventDetail.d.ts +17 -0
- package/bin/transferNote/events/TransferNoteReconciledEventDetail.js +13 -0
- package/bin/transferNote/index.d.ts +34 -0
- package/bin/transferNote/index.js +56 -0
- package/bin/transferNote/validators/IsTransferNoteSelectionConstraint.d.ts +6 -0
- package/bin/transferNote/validators/IsTransferNoteSelectionConstraint.js +28 -0
- package/package.json +1 -1
- package/src/account/dtos/BankAccountMCSendTransferRequest.ts +8 -2
- package/src/account/dtos/BankAccountMCSendTransferResponse.ts +3 -0
- package/src/index.ts +8 -0
- package/src/loanRetailAudit/enums/AuditTrailActionEnum.ts +12 -0
- package/src/loanRetailAudit/enums/LoanAuditEntityTypeEnum.ts +4 -0
- package/src/reconciliation/constants/reconciliationErrorHttpStatus.ts +22 -0
- package/src/reconciliation/constants/reconciliationValidation.ts +11 -0
- package/src/reconciliation/dtos/ReconciliationDefinition.ts +44 -0
- package/src/reconciliation/dtos/ReconciliationFeedRecord.ts +44 -0
- package/src/reconciliation/dtos/ReconciliationItem.ts +84 -0
- package/src/reconciliation/dtos/ReconciliationRun.ts +31 -0
- package/src/reconciliation/dtos/requests/PrivateReconciliationRequests.ts +166 -0
- package/src/reconciliation/dtos/requests/ReconciliationActionRequests.ts +77 -0
- package/src/reconciliation/dtos/requests/ReconciliationFeedRequests.ts +47 -0
- package/src/reconciliation/dtos/requests/ReconciliationQueries.ts +148 -0
- package/src/reconciliation/dtos/requests/reconciliationRequestDecorators.ts +32 -0
- package/src/reconciliation/dtos/responses/PrivateReconciliationResponses.ts +27 -0
- package/src/reconciliation/dtos/responses/ReconciliationFeedResponses.ts +9 -0
- package/src/reconciliation/dtos/responses/ReconciliationResponses.ts +101 -0
- package/src/reconciliation/enums/ReconciliationDefinitionStatusEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationErrorCodeEnum.ts +24 -0
- package/src/reconciliation/enums/ReconciliationExportFormatEnum.ts +5 -0
- package/src/reconciliation/enums/ReconciliationFeedConceptEnum.ts +19 -0
- package/src/reconciliation/enums/ReconciliationFeedErrorCodeEnum.ts +4 -0
- package/src/reconciliation/enums/ReconciliationFeedOwnerEnum.ts +9 -0
- package/src/reconciliation/enums/ReconciliationItemStateEnum.ts +23 -0
- package/src/reconciliation/enums/ReconciliationLayerEnum.ts +8 -0
- package/src/reconciliation/enums/ReconciliationPeriodEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationResolutionStatusEnum.ts +9 -0
- package/src/reconciliation/enums/ReconciliationResolutionTypeEnum.ts +7 -0
- package/src/reconciliation/enums/ReconciliationRuleTypeEnum.ts +7 -0
- package/src/reconciliation/enums/ReconciliationRunStatusEnum.ts +6 -0
- package/src/reconciliation/enums/ReconciliationSourceRoleEnum.ts +6 -0
- package/src/reconciliation/events/ReconciliationItemMatchedEventDetail.ts +25 -0
- package/src/reconciliation/index.ts +40 -0
- package/src/retailWizard/catalog/privateSaleDetailFields.ts +15 -0
- package/src/retailWizard/constants/retailWizardValidation.ts +2 -0
- package/src/retailWizard/dtos/requests/PrivateGetSaleRequest.ts +26 -0
- package/src/retailWizard/dtos/responses/PrivateGetSaleResponse.ts +16 -0
- package/src/retailWizard/index.ts +6 -0
- package/src/transaction/dtos/TransactionCreateRequest.ts +12 -0
- package/src/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.ts +101 -0
- package/src/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.ts +7 -0
- package/src/transactionProcessor/dtos/ReconciliationAdjustmentReference.ts +15 -0
- package/src/transactionProcessor/index.ts +3 -0
- package/src/transferNote/constants/transferNoteDefaultFees.ts +7 -0
- package/src/transferNote/constants/transferNoteErrorHttpStatus.ts +28 -0
- package/src/transferNote/constants/transferNoteValidation.ts +10 -0
- package/src/transferNote/dtos/TransferNote.ts +89 -0
- package/src/transferNote/dtos/TransferNoteConfigRecords.ts +55 -0
- package/src/transferNote/dtos/TransferNoteFeedRecords.ts +35 -0
- package/src/transferNote/dtos/TransferNoteHistoryEntry.ts +17 -0
- package/src/transferNote/dtos/TransferNoteItem.ts +38 -0
- package/src/transferNote/dtos/TransferNoteSignedUrl.ts +5 -0
- package/src/transferNote/dtos/requests/PrivateTransferNoteRequests.ts +195 -0
- package/src/transferNote/dtos/requests/RetailerTransferNoteRequests.ts +28 -0
- package/src/transferNote/dtos/requests/TransferNoteActionRequests.ts +72 -0
- package/src/transferNote/dtos/requests/TransferNoteConfigRequests.ts +115 -0
- package/src/transferNote/dtos/requests/TransferNoteQueries.ts +78 -0
- package/src/transferNote/dtos/requests/transferNoteRequestDecorators.ts +72 -0
- package/src/transferNote/dtos/responses/PrivateTransferNoteResponses.ts +36 -0
- package/src/transferNote/dtos/responses/RetailerTransferNoteResponses.ts +19 -0
- package/src/transferNote/dtos/responses/TransferNoteConfigResponses.ts +8 -0
- package/src/transferNote/dtos/responses/TransferNoteResponses.ts +51 -0
- package/src/transferNote/enums/TransferNoteConceptEnum.ts +16 -0
- package/src/transferNote/enums/TransferNoteConceptSignEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteConfigRecordTypeEnum.ts +7 -0
- package/src/transferNote/enums/TransferNoteConfirmationSourceEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteConfirmationTypeEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteDisputeCategoryEnum.ts +7 -0
- package/src/transferNote/enums/TransferNoteDisputeDecisionEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteErrorCodeEnum.ts +34 -0
- package/src/transferNote/enums/TransferNoteFeedConceptEnum.ts +5 -0
- package/src/transferNote/enums/TransferNoteHistoryActionEnum.ts +13 -0
- package/src/transferNote/enums/TransferNoteIssueOriginEnum.ts +6 -0
- package/src/transferNote/enums/TransferNoteItemStatusEnum.ts +5 -0
- package/src/transferNote/enums/TransferNotePartyTypeEnum.ts +6 -0
- package/src/transferNote/enums/TransferNoteStatusEnum.ts +9 -0
- package/src/transferNote/events/TransferNoteReconciledEventDetail.ts +22 -0
- package/src/transferNote/index.ts +45 -0
- package/src/transferNote/validators/IsTransferNoteSelectionConstraint.ts +16 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CurrencyId } from '../../../currency/enums/CurrencyId';
|
|
2
|
+
import { TransferNote, TransferNoteStatusCount, TransferNoteSubtotal, TransferNoteSummary } from '../TransferNote';
|
|
3
|
+
import { TransferNoteHistoryEntry } from '../TransferNoteHistoryEntry';
|
|
4
|
+
import { TransferNoteItem } from '../TransferNoteItem';
|
|
5
|
+
import { TransferNoteSignedUrl } from '../TransferNoteSignedUrl';
|
|
6
|
+
|
|
7
|
+
export interface ListTransferNotesResponse {
|
|
8
|
+
items: TransferNoteSummary[];
|
|
9
|
+
statusCounts: TransferNoteStatusCount[];
|
|
10
|
+
nextToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ListTransferNotePoolResponse {
|
|
14
|
+
items: TransferNoteItem[];
|
|
15
|
+
nextToken?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ListTransferNoteItemsResponse {
|
|
19
|
+
items: TransferNoteItem[];
|
|
20
|
+
nextToken?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface GetTransferNoteHistoryResponse {
|
|
24
|
+
items: TransferNoteHistoryEntry[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Neto y subtotales de una selección, sin emitir. */
|
|
28
|
+
export interface PreviewTransferNoteResponse {
|
|
29
|
+
pairKey: string;
|
|
30
|
+
netAmountCents: number;
|
|
31
|
+
currency: CurrencyId;
|
|
32
|
+
itemCount: number;
|
|
33
|
+
subtotals: TransferNoteSubtotal[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Al aceptar, trae la regenerada si el neto quedó positivo. */
|
|
37
|
+
export interface ResolveTransferNoteDisputeResponse {
|
|
38
|
+
note: TransferNote;
|
|
39
|
+
regeneratedNote?: TransferNote;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type GetTransferNoteResponse = TransferNote;
|
|
43
|
+
export type IssueTransferNoteResponse = TransferNote;
|
|
44
|
+
export type CaptureTransferNoteSpeiResponse = TransferNote;
|
|
45
|
+
export type RevertTransferNoteSpeiResponse = TransferNote;
|
|
46
|
+
export type ConfirmTransferNoteReceptionResponse = TransferNote;
|
|
47
|
+
export type CancelTransferNoteResponse = TransferNote;
|
|
48
|
+
/** URL firmada de PUT para subir el comprobante en PDF. */
|
|
49
|
+
export type CreateSpeiReceiptUploadUrlResponse = TransferNoteSignedUrl;
|
|
50
|
+
/** URL firmada de GET del PDF de la nota. */
|
|
51
|
+
export type GetTransferNotePdfResponse = TransferNoteSignedUrl;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Concepto de un item de nota; el par y el signo de cada uno salen de la configuración del tenant. */
|
|
2
|
+
export enum TransferNoteConceptEnum {
|
|
3
|
+
INSTALLMENT_COLLECTION = 'INSTALLMENT_COLLECTION',
|
|
4
|
+
CREDIT_PROMOTION_REIMBURSEMENT = 'CREDIT_PROMOTION_REIMBURSEMENT',
|
|
5
|
+
/** Cubre los bonos WELCOME, SALE_PROMOTION y REFERRAL de retail-customer. */
|
|
6
|
+
SALE_PROMOTION_REIMBURSEMENT = 'SALE_PROMOTION_REIMBURSEMENT',
|
|
7
|
+
SALE_COMMISSION = 'SALE_COMMISSION',
|
|
8
|
+
DEVICE_PAYMENT = 'DEVICE_PAYMENT',
|
|
9
|
+
DOWN_PAYMENT = 'DOWN_PAYMENT',
|
|
10
|
+
/** Derivado de cada crédito firmado con la tarifa del tenant. */
|
|
11
|
+
ORIGINATION_BONUS = 'ORIGINATION_BONUS',
|
|
12
|
+
/** Derivado de cada crédito firmado con la tarifa del tenant. */
|
|
13
|
+
ACCOUNT_OPENING = 'ACCOUNT_OPENING',
|
|
14
|
+
/** Ajuste entre empresas; viaja en el par de su item original. */
|
|
15
|
+
ADJUSTMENT = 'ADJUSTMENT',
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReconciliationFeedErrorCodeEnum } from '../../reconciliation/enums/ReconciliationFeedErrorCodeEnum';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Codes de error de transfer-note-business; el status de cada uno está en
|
|
5
|
+
* `TRANSFER_NOTE_ERROR_HTTP_STATUS`. Las clases `DomainError` viven en el lambda.
|
|
6
|
+
*/
|
|
7
|
+
export enum TransferNoteErrorCodeEnum {
|
|
8
|
+
TRANSFER_NOTE_NOT_FOUND = 'TRANSFER_NOTE_NOT_FOUND',
|
|
9
|
+
NOTE_NOT_DISPUTABLE = 'NOTE_NOT_DISPUTABLE',
|
|
10
|
+
NET_NOT_POSITIVE = 'NET_NOT_POSITIVE',
|
|
11
|
+
NOT_NOTE_CONTROLLER = 'NOT_NOTE_CONTROLLER',
|
|
12
|
+
PAYEE_ACCOUNT_NOT_REGISTERED = 'PAYEE_ACCOUNT_NOT_REGISTERED',
|
|
13
|
+
ITEM_ALREADY_INCLUDED = 'ITEM_ALREADY_INCLUDED',
|
|
14
|
+
/** La semana del par ya tiene nota de corte. */
|
|
15
|
+
WEEK_ALREADY_CUT = 'WEEK_ALREADY_CUT',
|
|
16
|
+
NOTE_NOT_ISSUED = 'NOTE_NOT_ISSUED',
|
|
17
|
+
NOTE_DISPUTED = 'NOTE_DISPUTED',
|
|
18
|
+
NOT_NOTE_PAYER = 'NOT_NOTE_PAYER',
|
|
19
|
+
NOTE_NOT_SENT = 'NOTE_NOT_SENT',
|
|
20
|
+
NOT_NOTE_PAYEE = 'NOT_NOTE_PAYEE',
|
|
21
|
+
NOTE_NOT_DISPUTED = 'NOTE_NOT_DISPUTED',
|
|
22
|
+
CONTACT_EMAIL_MISSING = 'CONTACT_EMAIL_MISSING',
|
|
23
|
+
INVALID_CONFIG_RECORD_TYPE = 'INVALID_CONFIG_RECORD_TYPE',
|
|
24
|
+
/** El `author` del espejo privado no está en la lista permitida del lambda. */
|
|
25
|
+
AUTHOR_NOT_ALLOWED = 'AUTHOR_NOT_ALLOWED',
|
|
26
|
+
/** La nota no exige confirmación de FSA en su estado de cuenta. */
|
|
27
|
+
SETTLEMENT_NOT_REQUIRED = 'SETTLEMENT_NOT_REQUIRED',
|
|
28
|
+
RUN_IN_PROGRESS = 'RUN_IN_PROGRESS',
|
|
29
|
+
SOURCE_ITEM_NOT_FOUND = 'SOURCE_ITEM_NOT_FOUND',
|
|
30
|
+
/** No hay item para el concepto y registro de origen pedidos en by-source. */
|
|
31
|
+
TRANSFER_NOTE_ITEM_NOT_FOUND = 'TRANSFER_NOTE_ITEM_NOT_FOUND',
|
|
32
|
+
/** Mismo code del feed genérico que implementa cada dueño. */
|
|
33
|
+
FEED_RECORD_NOT_FOUND = ReconciliationFeedErrorCodeEnum.FEED_RECORD_NOT_FOUND,
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Acción registrada en el historial de una nota. */
|
|
2
|
+
export enum TransferNoteHistoryActionEnum {
|
|
3
|
+
ISSUE = 'ISSUE',
|
|
4
|
+
CAPTURE_SPEI = 'CAPTURE_SPEI',
|
|
5
|
+
REVERT_SPEI = 'REVERT_SPEI',
|
|
6
|
+
CONFIRM_RECEPTION = 'CONFIRM_RECEPTION',
|
|
7
|
+
CONFIRM_SETTLEMENT = 'CONFIRM_SETTLEMENT',
|
|
8
|
+
RECONCILE = 'RECONCILE',
|
|
9
|
+
CANCEL = 'CANCEL',
|
|
10
|
+
DISPUTE = 'DISPUTE',
|
|
11
|
+
RESOLVE_DISPUTE = 'RESOLVE_DISPUTE',
|
|
12
|
+
SEND_NOTICE = 'SEND_NOTICE',
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Estado de una nota; ISSUING es transitorio mientras el corte o la emisión toman sus items. */
|
|
2
|
+
export enum TransferNoteStatusEnum {
|
|
3
|
+
ISSUING = 'ISSUING',
|
|
4
|
+
ISSUED = 'ISSUED',
|
|
5
|
+
SENT = 'SENT',
|
|
6
|
+
RECONCILED = 'RECONCILED',
|
|
7
|
+
CANCELLED = 'CANCELLED',
|
|
8
|
+
DISPUTED = 'DISPUTED',
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
|
|
3
|
+
// Origen de los eventos de EventBridge que publica transfer-note-business.
|
|
4
|
+
export const TRANSFER_NOTE_EVENTS_SOURCE = 'fiado.transferNote';
|
|
5
|
+
|
|
6
|
+
export enum TransferNoteEventDetailTypeEnum {
|
|
7
|
+
TRANSFER_NOTE_RECONCILED = 'transferNote.TransferNoteReconciled',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// `detail` de TransferNoteReconciled; el motor recalcula con él el agregado de la semana del par.
|
|
11
|
+
export class TransferNoteReconciledEventDetail {
|
|
12
|
+
/** Fijo por nota: un reenvío llega con el mismo id y el consumidor lo descarta. */
|
|
13
|
+
eventId!: string;
|
|
14
|
+
tenantId!: string;
|
|
15
|
+
noteId!: string;
|
|
16
|
+
pairKey!: string;
|
|
17
|
+
isoWeek!: string;
|
|
18
|
+
netAmountCents!: number;
|
|
19
|
+
currency!: CurrencyId;
|
|
20
|
+
/** ISO 8601 de la última confirmación. */
|
|
21
|
+
reconciledAt!: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Enums
|
|
2
|
+
export * from './enums/TransferNoteStatusEnum';
|
|
3
|
+
export * from './enums/TransferNoteItemStatusEnum';
|
|
4
|
+
export * from './enums/TransferNoteConceptEnum';
|
|
5
|
+
export * from './enums/TransferNoteConceptSignEnum';
|
|
6
|
+
export * from './enums/TransferNotePartyTypeEnum';
|
|
7
|
+
export * from './enums/TransferNoteDisputeCategoryEnum';
|
|
8
|
+
export * from './enums/TransferNoteDisputeDecisionEnum';
|
|
9
|
+
export * from './enums/TransferNoteIssueOriginEnum';
|
|
10
|
+
export * from './enums/TransferNoteConfigRecordTypeEnum';
|
|
11
|
+
export * from './enums/TransferNoteConfirmationTypeEnum';
|
|
12
|
+
export * from './enums/TransferNoteConfirmationSourceEnum';
|
|
13
|
+
export * from './enums/TransferNoteHistoryActionEnum';
|
|
14
|
+
export * from './enums/TransferNoteFeedConceptEnum';
|
|
15
|
+
export * from './enums/TransferNoteErrorCodeEnum';
|
|
16
|
+
|
|
17
|
+
// Constantes y validadores
|
|
18
|
+
export * from './constants/transferNoteErrorHttpStatus';
|
|
19
|
+
export * from './constants/transferNoteValidation';
|
|
20
|
+
export * from './constants/transferNoteDefaultFees';
|
|
21
|
+
export * from './validators/IsTransferNoteSelectionConstraint';
|
|
22
|
+
|
|
23
|
+
// Entidades del dominio
|
|
24
|
+
export * from './dtos/TransferNote';
|
|
25
|
+
export * from './dtos/TransferNoteItem';
|
|
26
|
+
export * from './dtos/TransferNoteHistoryEntry';
|
|
27
|
+
export * from './dtos/TransferNoteSignedUrl';
|
|
28
|
+
export * from './dtos/TransferNoteConfigRecords';
|
|
29
|
+
export * from './dtos/TransferNoteFeedRecords';
|
|
30
|
+
|
|
31
|
+
// Request DTOs
|
|
32
|
+
export * from './dtos/requests/TransferNoteActionRequests';
|
|
33
|
+
export * from './dtos/requests/TransferNoteQueries';
|
|
34
|
+
export * from './dtos/requests/RetailerTransferNoteRequests';
|
|
35
|
+
export * from './dtos/requests/TransferNoteConfigRequests';
|
|
36
|
+
export * from './dtos/requests/PrivateTransferNoteRequests';
|
|
37
|
+
|
|
38
|
+
// Response DTOs
|
|
39
|
+
export * from './dtos/responses/TransferNoteResponses';
|
|
40
|
+
export * from './dtos/responses/RetailerTransferNoteResponses';
|
|
41
|
+
export * from './dtos/responses/TransferNoteConfigResponses';
|
|
42
|
+
export * from './dtos/responses/PrivateTransferNoteResponses';
|
|
43
|
+
|
|
44
|
+
// Eventos
|
|
45
|
+
export * from './events/TransferNoteReconciledEventDetail';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ValidatorConstraint, type ValidationArguments, type ValidatorConstraintInterface } from 'class-validator';
|
|
2
|
+
|
|
3
|
+
/** Exige `itemIds` (no vacío, sin strings vacíos) o `isoWeek`, nunca los dos ni ninguno. */
|
|
4
|
+
@ValidatorConstraint({ name: 'isTransferNoteSelection', async: false })
|
|
5
|
+
export class IsTransferNoteSelectionConstraint implements ValidatorConstraintInterface {
|
|
6
|
+
validate(itemIds: unknown, args: ValidationArguments): boolean {
|
|
7
|
+
const hasWeek = (args.object as { isoWeek?: unknown }).isoWeek !== undefined;
|
|
8
|
+
if (itemIds === undefined) return hasWeek;
|
|
9
|
+
if (hasWeek || !Array.isArray(itemIds) || itemIds.length === 0) return false;
|
|
10
|
+
return itemIds.every((id) => typeof id === 'string' && id.trim().length > 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
defaultMessage(): string {
|
|
14
|
+
return 'manda itemIds no vacío o isoWeek, uno de los dos';
|
|
15
|
+
}
|
|
16
|
+
}
|