@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,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferNoteItemStatusEnum = void 0;
|
|
4
|
+
/** Estado de un item: en el pool de su par o incluido en una nota. */
|
|
5
|
+
var TransferNoteItemStatusEnum;
|
|
6
|
+
(function (TransferNoteItemStatusEnum) {
|
|
7
|
+
TransferNoteItemStatusEnum["POOLED"] = "POOLED";
|
|
8
|
+
TransferNoteItemStatusEnum["INCLUDED"] = "INCLUDED";
|
|
9
|
+
})(TransferNoteItemStatusEnum || (exports.TransferNoteItemStatusEnum = TransferNoteItemStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferNotePartyTypeEnum = void 0;
|
|
4
|
+
/** Tipo de parte de un par: GATEWAY es quien mueve el dinero (FSA), SOFOM la financiera, RETAILER cada tienda. */
|
|
5
|
+
var TransferNotePartyTypeEnum;
|
|
6
|
+
(function (TransferNotePartyTypeEnum) {
|
|
7
|
+
TransferNotePartyTypeEnum["GATEWAY"] = "GATEWAY";
|
|
8
|
+
TransferNotePartyTypeEnum["SOFOM"] = "SOFOM";
|
|
9
|
+
TransferNotePartyTypeEnum["RETAILER"] = "RETAILER";
|
|
10
|
+
})(TransferNotePartyTypeEnum || (exports.TransferNotePartyTypeEnum = TransferNotePartyTypeEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Estado de una nota; ISSUING es transitorio mientras el corte o la emisión toman sus items. */
|
|
2
|
+
export declare enum TransferNoteStatusEnum {
|
|
3
|
+
ISSUING = "ISSUING",
|
|
4
|
+
ISSUED = "ISSUED",
|
|
5
|
+
SENT = "SENT",
|
|
6
|
+
RECONCILED = "RECONCILED",
|
|
7
|
+
CANCELLED = "CANCELLED",
|
|
8
|
+
DISPUTED = "DISPUTED"
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferNoteStatusEnum = void 0;
|
|
4
|
+
/** Estado de una nota; ISSUING es transitorio mientras el corte o la emisión toman sus items. */
|
|
5
|
+
var TransferNoteStatusEnum;
|
|
6
|
+
(function (TransferNoteStatusEnum) {
|
|
7
|
+
TransferNoteStatusEnum["ISSUING"] = "ISSUING";
|
|
8
|
+
TransferNoteStatusEnum["ISSUED"] = "ISSUED";
|
|
9
|
+
TransferNoteStatusEnum["SENT"] = "SENT";
|
|
10
|
+
TransferNoteStatusEnum["RECONCILED"] = "RECONCILED";
|
|
11
|
+
TransferNoteStatusEnum["CANCELLED"] = "CANCELLED";
|
|
12
|
+
TransferNoteStatusEnum["DISPUTED"] = "DISPUTED";
|
|
13
|
+
})(TransferNoteStatusEnum || (exports.TransferNoteStatusEnum = TransferNoteStatusEnum = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
export declare const TRANSFER_NOTE_EVENTS_SOURCE = "fiado.transferNote";
|
|
3
|
+
export declare enum TransferNoteEventDetailTypeEnum {
|
|
4
|
+
TRANSFER_NOTE_RECONCILED = "transferNote.TransferNoteReconciled"
|
|
5
|
+
}
|
|
6
|
+
export declare class TransferNoteReconciledEventDetail {
|
|
7
|
+
/** Fijo por nota: un reenvío llega con el mismo id y el consumidor lo descarta. */
|
|
8
|
+
eventId: string;
|
|
9
|
+
tenantId: string;
|
|
10
|
+
noteId: string;
|
|
11
|
+
pairKey: string;
|
|
12
|
+
isoWeek: string;
|
|
13
|
+
netAmountCents: number;
|
|
14
|
+
currency: CurrencyId;
|
|
15
|
+
/** ISO 8601 de la última confirmación. */
|
|
16
|
+
reconciledAt: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferNoteReconciledEventDetail = exports.TransferNoteEventDetailTypeEnum = exports.TRANSFER_NOTE_EVENTS_SOURCE = void 0;
|
|
4
|
+
// Origen de los eventos de EventBridge que publica transfer-note-business.
|
|
5
|
+
exports.TRANSFER_NOTE_EVENTS_SOURCE = 'fiado.transferNote';
|
|
6
|
+
var TransferNoteEventDetailTypeEnum;
|
|
7
|
+
(function (TransferNoteEventDetailTypeEnum) {
|
|
8
|
+
TransferNoteEventDetailTypeEnum["TRANSFER_NOTE_RECONCILED"] = "transferNote.TransferNoteReconciled";
|
|
9
|
+
})(TransferNoteEventDetailTypeEnum || (exports.TransferNoteEventDetailTypeEnum = TransferNoteEventDetailTypeEnum = {}));
|
|
10
|
+
// `detail` de TransferNoteReconciled; el motor recalcula con él el agregado de la semana del par.
|
|
11
|
+
class TransferNoteReconciledEventDetail {
|
|
12
|
+
}
|
|
13
|
+
exports.TransferNoteReconciledEventDetail = TransferNoteReconciledEventDetail;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export * from './enums/TransferNoteStatusEnum';
|
|
2
|
+
export * from './enums/TransferNoteItemStatusEnum';
|
|
3
|
+
export * from './enums/TransferNoteConceptEnum';
|
|
4
|
+
export * from './enums/TransferNoteConceptSignEnum';
|
|
5
|
+
export * from './enums/TransferNotePartyTypeEnum';
|
|
6
|
+
export * from './enums/TransferNoteDisputeCategoryEnum';
|
|
7
|
+
export * from './enums/TransferNoteDisputeDecisionEnum';
|
|
8
|
+
export * from './enums/TransferNoteIssueOriginEnum';
|
|
9
|
+
export * from './enums/TransferNoteConfigRecordTypeEnum';
|
|
10
|
+
export * from './enums/TransferNoteConfirmationTypeEnum';
|
|
11
|
+
export * from './enums/TransferNoteConfirmationSourceEnum';
|
|
12
|
+
export * from './enums/TransferNoteHistoryActionEnum';
|
|
13
|
+
export * from './enums/TransferNoteFeedConceptEnum';
|
|
14
|
+
export * from './enums/TransferNoteErrorCodeEnum';
|
|
15
|
+
export * from './constants/transferNoteErrorHttpStatus';
|
|
16
|
+
export * from './constants/transferNoteValidation';
|
|
17
|
+
export * from './constants/transferNoteDefaultFees';
|
|
18
|
+
export * from './validators/IsTransferNoteSelectionConstraint';
|
|
19
|
+
export * from './dtos/TransferNote';
|
|
20
|
+
export * from './dtos/TransferNoteItem';
|
|
21
|
+
export * from './dtos/TransferNoteHistoryEntry';
|
|
22
|
+
export * from './dtos/TransferNoteSignedUrl';
|
|
23
|
+
export * from './dtos/TransferNoteConfigRecords';
|
|
24
|
+
export * from './dtos/TransferNoteFeedRecords';
|
|
25
|
+
export * from './dtos/requests/TransferNoteActionRequests';
|
|
26
|
+
export * from './dtos/requests/TransferNoteQueries';
|
|
27
|
+
export * from './dtos/requests/RetailerTransferNoteRequests';
|
|
28
|
+
export * from './dtos/requests/TransferNoteConfigRequests';
|
|
29
|
+
export * from './dtos/requests/PrivateTransferNoteRequests';
|
|
30
|
+
export * from './dtos/responses/TransferNoteResponses';
|
|
31
|
+
export * from './dtos/responses/RetailerTransferNoteResponses';
|
|
32
|
+
export * from './dtos/responses/TransferNoteConfigResponses';
|
|
33
|
+
export * from './dtos/responses/PrivateTransferNoteResponses';
|
|
34
|
+
export * from './events/TransferNoteReconciledEventDetail';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Enums
|
|
18
|
+
__exportStar(require("./enums/TransferNoteStatusEnum"), exports);
|
|
19
|
+
__exportStar(require("./enums/TransferNoteItemStatusEnum"), exports);
|
|
20
|
+
__exportStar(require("./enums/TransferNoteConceptEnum"), exports);
|
|
21
|
+
__exportStar(require("./enums/TransferNoteConceptSignEnum"), exports);
|
|
22
|
+
__exportStar(require("./enums/TransferNotePartyTypeEnum"), exports);
|
|
23
|
+
__exportStar(require("./enums/TransferNoteDisputeCategoryEnum"), exports);
|
|
24
|
+
__exportStar(require("./enums/TransferNoteDisputeDecisionEnum"), exports);
|
|
25
|
+
__exportStar(require("./enums/TransferNoteIssueOriginEnum"), exports);
|
|
26
|
+
__exportStar(require("./enums/TransferNoteConfigRecordTypeEnum"), exports);
|
|
27
|
+
__exportStar(require("./enums/TransferNoteConfirmationTypeEnum"), exports);
|
|
28
|
+
__exportStar(require("./enums/TransferNoteConfirmationSourceEnum"), exports);
|
|
29
|
+
__exportStar(require("./enums/TransferNoteHistoryActionEnum"), exports);
|
|
30
|
+
__exportStar(require("./enums/TransferNoteFeedConceptEnum"), exports);
|
|
31
|
+
__exportStar(require("./enums/TransferNoteErrorCodeEnum"), exports);
|
|
32
|
+
// Constantes y validadores
|
|
33
|
+
__exportStar(require("./constants/transferNoteErrorHttpStatus"), exports);
|
|
34
|
+
__exportStar(require("./constants/transferNoteValidation"), exports);
|
|
35
|
+
__exportStar(require("./constants/transferNoteDefaultFees"), exports);
|
|
36
|
+
__exportStar(require("./validators/IsTransferNoteSelectionConstraint"), exports);
|
|
37
|
+
// Entidades del dominio
|
|
38
|
+
__exportStar(require("./dtos/TransferNote"), exports);
|
|
39
|
+
__exportStar(require("./dtos/TransferNoteItem"), exports);
|
|
40
|
+
__exportStar(require("./dtos/TransferNoteHistoryEntry"), exports);
|
|
41
|
+
__exportStar(require("./dtos/TransferNoteSignedUrl"), exports);
|
|
42
|
+
__exportStar(require("./dtos/TransferNoteConfigRecords"), exports);
|
|
43
|
+
__exportStar(require("./dtos/TransferNoteFeedRecords"), exports);
|
|
44
|
+
// Request DTOs
|
|
45
|
+
__exportStar(require("./dtos/requests/TransferNoteActionRequests"), exports);
|
|
46
|
+
__exportStar(require("./dtos/requests/TransferNoteQueries"), exports);
|
|
47
|
+
__exportStar(require("./dtos/requests/RetailerTransferNoteRequests"), exports);
|
|
48
|
+
__exportStar(require("./dtos/requests/TransferNoteConfigRequests"), exports);
|
|
49
|
+
__exportStar(require("./dtos/requests/PrivateTransferNoteRequests"), exports);
|
|
50
|
+
// Response DTOs
|
|
51
|
+
__exportStar(require("./dtos/responses/TransferNoteResponses"), exports);
|
|
52
|
+
__exportStar(require("./dtos/responses/RetailerTransferNoteResponses"), exports);
|
|
53
|
+
__exportStar(require("./dtos/responses/TransferNoteConfigResponses"), exports);
|
|
54
|
+
__exportStar(require("./dtos/responses/PrivateTransferNoteResponses"), exports);
|
|
55
|
+
// Eventos
|
|
56
|
+
__exportStar(require("./events/TransferNoteReconciledEventDetail"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ValidationArguments, type ValidatorConstraintInterface } from 'class-validator';
|
|
2
|
+
/** Exige `itemIds` (no vacío, sin strings vacíos) o `isoWeek`, nunca los dos ni ninguno. */
|
|
3
|
+
export declare class IsTransferNoteSelectionConstraint implements ValidatorConstraintInterface {
|
|
4
|
+
validate(itemIds: unknown, args: ValidationArguments): boolean;
|
|
5
|
+
defaultMessage(): string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.IsTransferNoteSelectionConstraint = void 0;
|
|
10
|
+
const class_validator_1 = require("class-validator");
|
|
11
|
+
/** Exige `itemIds` (no vacío, sin strings vacíos) o `isoWeek`, nunca los dos ni ninguno. */
|
|
12
|
+
let IsTransferNoteSelectionConstraint = class IsTransferNoteSelectionConstraint {
|
|
13
|
+
validate(itemIds, args) {
|
|
14
|
+
const hasWeek = args.object.isoWeek !== undefined;
|
|
15
|
+
if (itemIds === undefined)
|
|
16
|
+
return hasWeek;
|
|
17
|
+
if (hasWeek || !Array.isArray(itemIds) || itemIds.length === 0)
|
|
18
|
+
return false;
|
|
19
|
+
return itemIds.every((id) => typeof id === 'string' && id.trim().length > 0);
|
|
20
|
+
}
|
|
21
|
+
defaultMessage() {
|
|
22
|
+
return 'manda itemIds no vacío o isoWeek, uno de los dos';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.IsTransferNoteSelectionConstraint = IsTransferNoteSelectionConstraint;
|
|
26
|
+
exports.IsTransferNoteSelectionConstraint = IsTransferNoteSelectionConstraint = __decorate([
|
|
27
|
+
(0, class_validator_1.ValidatorConstraint)({ name: 'isTransferNoteSelection', async: false })
|
|
28
|
+
], IsTransferNoteSelectionConstraint);
|
package/package.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export class BankAccountMCSendTransferRequest {
|
|
2
2
|
transactionNumber!: string;
|
|
3
3
|
amount!: number;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/** Intención por email/teléfono: obligatorios salvo que venga beneficiaryExternalAccountId. */
|
|
5
|
+
beneficiaryEmail?: string;
|
|
6
|
+
beneficiaryPhoneNumber?: string;
|
|
6
7
|
beneficiaryName?: string;
|
|
7
8
|
beneficiaryLastName?: string;
|
|
8
9
|
concept?: string;
|
|
9
10
|
externalAccountId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Push directo a una tarjeta del mismo programa (CARD_PUSH_FUNDS): cd_ de la tarjeta del
|
|
13
|
+
* beneficiario, usuario de Fiado. Si viene, CP acredita en la misma llamada sin intención.
|
|
14
|
+
*/
|
|
15
|
+
beneficiaryExternalAccountId?: string;
|
|
10
16
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { TransactionStatusEnum } from "../../transaction";
|
|
2
2
|
|
|
3
3
|
export class BankAccountMCSendTransferResponse {
|
|
4
|
+
/** Ids tx_ de los movimientos contables en CP, unidos por "|". */
|
|
4
5
|
externalTransactionId!: string;
|
|
6
|
+
/** Id mt_ de la network transfer en CP: sirve para consultar, cancelar o auditar el envío. */
|
|
7
|
+
externalTransferId?: string;
|
|
5
8
|
transactionStatus!: TransactionStatusEnum;
|
|
6
9
|
transactionNumber!: string;
|
|
7
10
|
}
|
package/src/index.ts
CHANGED
|
@@ -232,3 +232,11 @@ export * as TaskManager from './task-manager-business';
|
|
|
232
232
|
|
|
233
233
|
// CustomerMessages: historial de mensajes del cliente por venta o crédito, contador de cobranza y envío manual.
|
|
234
234
|
export * as CustomerMessages from './customerMessages';
|
|
235
|
+
|
|
236
|
+
// TransferNote: contrato de transfer-note-business (notas de transferencia entre partes de un tenant):
|
|
237
|
+
// endpoints públicos, rutas de retailer, espejo privado con author, ajustes y registros de sus feeds.
|
|
238
|
+
export * as TransferNote from './transferNote';
|
|
239
|
+
|
|
240
|
+
// Reconciliation: contrato de reconciliation-engine-business (definiciones, corridas, partidas y resoluciones),
|
|
241
|
+
// su espejo privado con author, el feed genérico que implementa cada dueño y sus eventos.
|
|
242
|
+
export * as Reconciliation from './reconciliation';
|
|
@@ -36,4 +36,16 @@ export enum AuditTrailActionEnum {
|
|
|
36
36
|
PAUSE = 'PAUSE',
|
|
37
37
|
RESUME = 'RESUME',
|
|
38
38
|
EXPIRE = 'EXPIRE',
|
|
39
|
+
// M8: la configuración de notas y de definiciones reusa UPDATE.
|
|
40
|
+
TRANSFER_NOTE_ISSUE = 'TRANSFER_NOTE_ISSUE',
|
|
41
|
+
TRANSFER_NOTE_SPEI_CAPTURE = 'TRANSFER_NOTE_SPEI_CAPTURE',
|
|
42
|
+
TRANSFER_NOTE_SPEI_REVERT = 'TRANSFER_NOTE_SPEI_REVERT',
|
|
43
|
+
TRANSFER_NOTE_RECEPTION_CONFIRM = 'TRANSFER_NOTE_RECEPTION_CONFIRM',
|
|
44
|
+
TRANSFER_NOTE_SETTLEMENT_CONFIRM = 'TRANSFER_NOTE_SETTLEMENT_CONFIRM',
|
|
45
|
+
TRANSFER_NOTE_CANCEL = 'TRANSFER_NOTE_CANCEL',
|
|
46
|
+
TRANSFER_NOTE_DISPUTE = 'TRANSFER_NOTE_DISPUTE',
|
|
47
|
+
TRANSFER_NOTE_DISPUTE_RESOLVE = 'TRANSFER_NOTE_DISPUTE_RESOLVE',
|
|
48
|
+
RECONCILIATION_ITEM_RESOLVE = 'RECONCILIATION_ITEM_RESOLVE',
|
|
49
|
+
RECONCILIATION_ITEM_REACTIVATE = 'RECONCILIATION_ITEM_REACTIVATE',
|
|
50
|
+
RECONCILIATION_ITEM_NOTE = 'RECONCILIATION_ITEM_NOTE',
|
|
39
51
|
}
|
|
@@ -9,4 +9,8 @@ export enum LoanAuditEntityTypeEnum {
|
|
|
9
9
|
LOAN_PARAMETER = 'LoanParameter',
|
|
10
10
|
LOAN_ASSIGNMENT_RULE = 'LoanAssignmentRule',
|
|
11
11
|
LOAN_COLLECTOR_ASSIGNMENT = 'LoanCollectorAssignment',
|
|
12
|
+
TRANSFER_NOTE = 'TRANSFER_NOTE',
|
|
13
|
+
TRANSFER_NOTE_CONFIG = 'TRANSFER_NOTE_CONFIG',
|
|
14
|
+
RECONCILIATION_DEFINITION = 'RECONCILIATION_DEFINITION',
|
|
15
|
+
RECONCILIATION_ITEM = 'RECONCILIATION_ITEM',
|
|
12
16
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReconciliationErrorCodeEnum as C } from '../enums/ReconciliationErrorCodeEnum';
|
|
2
|
+
import { ReconciliationFeedErrorCodeEnum } from '../enums/ReconciliationFeedErrorCodeEnum';
|
|
3
|
+
|
|
4
|
+
/** Status HTTP de cada code: 404 no existe · 409 conflicto de estado · 422 regla de negocio · 502 falló el dueño del dinero. */
|
|
5
|
+
export const RECONCILIATION_ERROR_HTTP_STATUS: Readonly<Record<C, 404 | 409 | 422 | 502>> = {
|
|
6
|
+
[C.DEFINITION_NOT_FOUND]: 404,
|
|
7
|
+
[C.RUN_IN_PROGRESS]: 409,
|
|
8
|
+
[C.ITEM_NOT_FOUND]: 404,
|
|
9
|
+
[C.ITEM_ALREADY_RESOLVED]: 409,
|
|
10
|
+
[C.ADJUSTMENT_IN_PROGRESS]: 409,
|
|
11
|
+
[C.ADJUSTMENT_UNDER_EXECUTED]: 422,
|
|
12
|
+
[C.ADJUSTMENT_NOT_ALLOWED]: 422,
|
|
13
|
+
[C.ADJUSTMENT_REJECTED]: 422,
|
|
14
|
+
[C.ADJUSTMENT_UNAVAILABLE]: 502,
|
|
15
|
+
[C.ITEM_ADJUSTED]: 409,
|
|
16
|
+
[C.AUTHOR_NOT_ALLOWED]: 422,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** Status HTTP de los codes del feed genérico. */
|
|
20
|
+
export const RECONCILIATION_FEED_ERROR_HTTP_STATUS: Readonly<Record<ReconciliationFeedErrorCodeEnum, 404>> = {
|
|
21
|
+
[ReconciliationFeedErrorCodeEnum.FEED_RECORD_NOT_FOUND]: 404,
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Periodo de una corrida: día `YYYY-MM-DD`, semana ISO `YYYY-Www` o mes `YYYY-MM`. */
|
|
2
|
+
export const RECONCILIATION_PERIOD_KEY_PATTERN = /^\d{4}-((0[1-9]|1[0-2])(-(0[1-9]|[12]\d|3[01]))?|W(0[1-9]|[1-4]\d|5[0-3]))$/;
|
|
3
|
+
|
|
4
|
+
/** Mes `YYYY-MM`. */
|
|
5
|
+
export const RECONCILIATION_MONTH_PATTERN = /^\d{4}-(0[1-9]|1[0-2])$/;
|
|
6
|
+
|
|
7
|
+
/** Largo mínimo de una nota de investigación. */
|
|
8
|
+
export const RECONCILIATION_MIN_NOTE_LENGTH = 10;
|
|
9
|
+
|
|
10
|
+
/** Registros por página de un feed de dueño. */
|
|
11
|
+
export const RECONCILIATION_FEED_PAGE_SIZE = 500;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
import { ReconciliationDefinitionStatusEnum } from '../enums/ReconciliationDefinitionStatusEnum';
|
|
3
|
+
import { ReconciliationFeedConceptEnum } from '../enums/ReconciliationFeedConceptEnum';
|
|
4
|
+
import { ReconciliationFeedOwnerEnum } from '../enums/ReconciliationFeedOwnerEnum';
|
|
5
|
+
import { ReconciliationPeriodEnum } from '../enums/ReconciliationPeriodEnum';
|
|
6
|
+
import { ReconciliationRuleTypeEnum } from '../enums/ReconciliationRuleTypeEnum';
|
|
7
|
+
import { ReconciliationSourceRoleEnum } from '../enums/ReconciliationSourceRoleEnum';
|
|
8
|
+
|
|
9
|
+
/** Feed que lee una definición; `partName` solo en las piezas de completitud. */
|
|
10
|
+
export interface ReconciliationDefinitionSource {
|
|
11
|
+
role: ReconciliationSourceRoleEnum;
|
|
12
|
+
domain: ReconciliationFeedOwnerEnum;
|
|
13
|
+
concept: ReconciliationFeedConceptEnum;
|
|
14
|
+
partName?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ReconciliationDefinition {
|
|
18
|
+
tenantId: string;
|
|
19
|
+
definitionId: string;
|
|
20
|
+
/** Módulo de negocio de la definición, p. ej. M8. */
|
|
21
|
+
module: string;
|
|
22
|
+
ruleType: ReconciliationRuleTypeEnum;
|
|
23
|
+
status: ReconciliationDefinitionStatusEnum;
|
|
24
|
+
sources: ReconciliationDefinitionSource[];
|
|
25
|
+
/** Nombre del lado para «Falta en {lado}», p. ej. FSA, SK o EdC. */
|
|
26
|
+
expectedSideName?: string;
|
|
27
|
+
executedSideName?: string;
|
|
28
|
+
amountToleranceCents: number;
|
|
29
|
+
waitBusinessDays: number;
|
|
30
|
+
period: ReconciliationPeriodEnum;
|
|
31
|
+
aggregatePeriod?: ReconciliationPeriodEnum;
|
|
32
|
+
/** Si ADJUST mueve dinero en esta definición. */
|
|
33
|
+
moneyMovement: boolean;
|
|
34
|
+
currency: CurrencyId;
|
|
35
|
+
/** Registros de estos retailers o directorios quedan en TEST. */
|
|
36
|
+
sandboxRetailerIds: string[];
|
|
37
|
+
sandboxDirectoryIds: string[];
|
|
38
|
+
activeFrom?: string;
|
|
39
|
+
version: number;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
createdBy: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
updatedBy?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
import { TransferNotePartyTypeEnum } from '../../transferNote/enums/TransferNotePartyTypeEnum';
|
|
3
|
+
import { ReconciliationFeedConceptEnum } from '../enums/ReconciliationFeedConceptEnum';
|
|
4
|
+
|
|
5
|
+
/** Lista cerrada de ids que un registro de feed puede traer; un registro con otra llave se rechaza. */
|
|
6
|
+
export interface ReconciliationFeedRefs {
|
|
7
|
+
creditId?: string;
|
|
8
|
+
saleId?: string;
|
|
9
|
+
customerId?: string;
|
|
10
|
+
bonusId?: string;
|
|
11
|
+
promotionId?: string;
|
|
12
|
+
attemptId?: string;
|
|
13
|
+
executionId?: string;
|
|
14
|
+
transactionId?: string;
|
|
15
|
+
contractId?: string;
|
|
16
|
+
directoryId?: string;
|
|
17
|
+
sellerId?: string;
|
|
18
|
+
periodId?: string;
|
|
19
|
+
noteId?: string;
|
|
20
|
+
itemId?: string;
|
|
21
|
+
trackingKey?: string;
|
|
22
|
+
/** Marca de reversa: el registro original que esta fila compensa. */
|
|
23
|
+
reversesRecordId?: string;
|
|
24
|
+
retailerId?: string;
|
|
25
|
+
counterpartyId?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Forma base de un registro de `GET /private/reconciliation-feeds/{concept}`; una reversa es una fila nueva. */
|
|
29
|
+
export interface ReconciliationFeedRecord {
|
|
30
|
+
recordId: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
concept: ReconciliationFeedConceptEnum;
|
|
33
|
+
/** Llave con la que el motor empareja esperado y ejecutado. */
|
|
34
|
+
matchKey: string;
|
|
35
|
+
/** Centavos con signo; una reversa trae el signo contrario a su original. */
|
|
36
|
+
amountCents: number;
|
|
37
|
+
currency: CurrencyId;
|
|
38
|
+
/** Fecha del movimiento en el origen, ISO 8601. */
|
|
39
|
+
occurredAt: string;
|
|
40
|
+
/** Día CDMX `YYYY-MM-DD` del índice del dueño. */
|
|
41
|
+
feedDay: string;
|
|
42
|
+
counterpartyType?: TransferNotePartyTypeEnum;
|
|
43
|
+
refs: ReconciliationFeedRefs;
|
|
44
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
import { ReconciliationFeedConceptEnum } from '../enums/ReconciliationFeedConceptEnum';
|
|
3
|
+
import { ReconciliationItemStateEnum } from '../enums/ReconciliationItemStateEnum';
|
|
4
|
+
import { ReconciliationLayerEnum } from '../enums/ReconciliationLayerEnum';
|
|
5
|
+
import { ReconciliationResolutionArchiveReasonEnum } from '../enums/ReconciliationResolutionArchiveReasonEnum';
|
|
6
|
+
import { ReconciliationResolutionStatusEnum } from '../enums/ReconciliationResolutionStatusEnum';
|
|
7
|
+
import { ReconciliationResolutionTypeEnum } from '../enums/ReconciliationResolutionTypeEnum';
|
|
8
|
+
import { ReconciliationFeedRefs } from './ReconciliationFeedRecord';
|
|
9
|
+
|
|
10
|
+
/** Un lado de la partida tal como llegó del feed. */
|
|
11
|
+
export interface ReconciliationItemSide {
|
|
12
|
+
recordId: string;
|
|
13
|
+
amountCents: number;
|
|
14
|
+
occurredAt: string;
|
|
15
|
+
refs: ReconciliationFeedRefs;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Pieza de completitud: sin `recordId` es la caja vacía. */
|
|
19
|
+
export interface ReconciliationItemPart {
|
|
20
|
+
partName: string;
|
|
21
|
+
concept: ReconciliationFeedConceptEnum;
|
|
22
|
+
recordId?: string;
|
|
23
|
+
amountCents?: number;
|
|
24
|
+
noteId?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ReconciliationResolution {
|
|
28
|
+
type: ReconciliationResolutionTypeEnum;
|
|
29
|
+
status: ReconciliationResolutionStatusEnum;
|
|
30
|
+
reason: string;
|
|
31
|
+
resolvedBy: string;
|
|
32
|
+
resolvedAt: string;
|
|
33
|
+
version: number;
|
|
34
|
+
/** Llave idempotente del ajuste al cliente; lleva tenantId. */
|
|
35
|
+
adjustmentKey?: string;
|
|
36
|
+
adjustmentTransactionId?: string;
|
|
37
|
+
adjustmentItemId?: string;
|
|
38
|
+
adjustedAmountCents?: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ReconciliationResolutionHistoryEntry extends ReconciliationResolution {
|
|
42
|
+
archivedAt: string;
|
|
43
|
+
archivedBy: string;
|
|
44
|
+
archiveReason: ReconciliationResolutionArchiveReasonEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface ReconciliationItemNote {
|
|
48
|
+
text: string;
|
|
49
|
+
author: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Partida persistente; `itemKey` es `{concept}#{matchKey}`. */
|
|
54
|
+
export interface ReconciliationItem {
|
|
55
|
+
tenantId: string;
|
|
56
|
+
definitionId: string;
|
|
57
|
+
itemKey: string;
|
|
58
|
+
concept: ReconciliationFeedConceptEnum;
|
|
59
|
+
matchKey: string;
|
|
60
|
+
layer: ReconciliationLayerEnum;
|
|
61
|
+
periodKey: string;
|
|
62
|
+
state: ReconciliationItemStateEnum;
|
|
63
|
+
currency: CurrencyId;
|
|
64
|
+
counterpartyId?: string;
|
|
65
|
+
expected?: ReconciliationItemSide;
|
|
66
|
+
executed?: ReconciliationItemSide;
|
|
67
|
+
parts?: ReconciliationItemPart[];
|
|
68
|
+
differenceCents?: number;
|
|
69
|
+
resolution?: ReconciliationResolution;
|
|
70
|
+
firstSeenRunId: string;
|
|
71
|
+
lastSeenRunId: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Los 6 campos de MAX-14, consultados en vivo; el que falle se omite. */
|
|
77
|
+
export interface ReconciliationItemLiveDetail {
|
|
78
|
+
customerName?: string;
|
|
79
|
+
customerPhone?: string;
|
|
80
|
+
creditId?: string;
|
|
81
|
+
amountCents?: number;
|
|
82
|
+
productModel?: string;
|
|
83
|
+
sellerName?: string;
|
|
84
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReconciliationFeedConceptEnum } from '../enums/ReconciliationFeedConceptEnum';
|
|
2
|
+
import { ReconciliationFeedOwnerEnum } from '../enums/ReconciliationFeedOwnerEnum';
|
|
3
|
+
import { ReconciliationItemStateEnum } from '../enums/ReconciliationItemStateEnum';
|
|
4
|
+
import { ReconciliationRunStatusEnum } from '../enums/ReconciliationRunStatusEnum';
|
|
5
|
+
|
|
6
|
+
export interface ReconciliationStateCount {
|
|
7
|
+
state: ReconciliationItemStateEnum;
|
|
8
|
+
count: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Feed que no respondió en la corrida. */
|
|
12
|
+
export interface ReconciliationRunFeedFailure {
|
|
13
|
+
domain: ReconciliationFeedOwnerEnum;
|
|
14
|
+
concept: ReconciliationFeedConceptEnum;
|
|
15
|
+
/** Code que devolvió el dueño del feed; queda abierto porque cada lambda trae su catálogo. */
|
|
16
|
+
errorCode: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ReconciliationRun {
|
|
20
|
+
runId: string;
|
|
21
|
+
tenantId: string;
|
|
22
|
+
definitionId: string;
|
|
23
|
+
periodKey: string;
|
|
24
|
+
status: ReconciliationRunStatusEnum;
|
|
25
|
+
countsByState: ReconciliationStateCount[];
|
|
26
|
+
rejectedRecordCount: number;
|
|
27
|
+
failedFeeds?: ReconciliationRunFeedFailure[];
|
|
28
|
+
startedAt: string;
|
|
29
|
+
finishedAt?: string;
|
|
30
|
+
startedBy: string;
|
|
31
|
+
}
|