@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,107 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PrivateAuthorizeReconciliationAdjustmentRequest = exports.AdjustmentKeyOfTenantConstraint = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const regex_1 = require("../../helpers/constans/regex");
|
|
16
|
+
const CurrencyId_1 = require("../../currency/enums/CurrencyId");
|
|
17
|
+
const OperationEnum_1 = require("../../transaction/enums/OperationEnum");
|
|
18
|
+
const ReconciliationAdjustmentReference_1 = require("./ReconciliationAdjustmentReference");
|
|
19
|
+
/** La llave `{tenantId}#{definitionId}#{itemKey}#{resolutionVersion}` debe empezar con el tenant del body. */
|
|
20
|
+
let AdjustmentKeyOfTenantConstraint = class AdjustmentKeyOfTenantConstraint {
|
|
21
|
+
validate(value, args) {
|
|
22
|
+
const { tenantId } = args.object;
|
|
23
|
+
return typeof value === 'string' && typeof tenantId === 'string' && tenantId.length > 0
|
|
24
|
+
&& value.startsWith(`${tenantId}#`) && value.split('#').length >= 4;
|
|
25
|
+
}
|
|
26
|
+
defaultMessage() {
|
|
27
|
+
return 'adjustmentKey debe ser {tenantId}#{definitionId}#{itemKey}#{resolutionVersion}';
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.AdjustmentKeyOfTenantConstraint = AdjustmentKeyOfTenantConstraint;
|
|
31
|
+
exports.AdjustmentKeyOfTenantConstraint = AdjustmentKeyOfTenantConstraint = __decorate([
|
|
32
|
+
(0, class_validator_1.ValidatorConstraint)({ name: 'adjustmentKeyOfTenant' })
|
|
33
|
+
], AdjustmentKeyOfTenantConstraint);
|
|
34
|
+
/** Body de privateAuthorizeReconciliationAdjustment: ajuste al cliente idempotente por `adjustmentKey`. */
|
|
35
|
+
class PrivateAuthorizeReconciliationAdjustmentRequest {
|
|
36
|
+
}
|
|
37
|
+
exports.PrivateAuthorizeReconciliationAdjustmentRequest = PrivateAuthorizeReconciliationAdjustmentRequest;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "tenantId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
(0, class_validator_1.Validate)(AdjustmentKeyOfTenantConstraint),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "adjustmentKey", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_validator_1.Matches)(regex_1.regexUuidV4, { message: 'directoryId must be a valid UUID v4' }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "directoryId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
(0, class_validator_1.IsEnum)(OperationEnum_1.OperationEnum),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "operation", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
62
|
+
(0, class_validator_1.IsInt)(),
|
|
63
|
+
(0, class_validator_1.Min)(1),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "amountCents", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
(0, class_validator_1.IsEnum)(CurrencyId_1.CurrencyId),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "currencyId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "originalTransactionId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "executionId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
(0, class_validator_1.ValidateNested)(),
|
|
87
|
+
(0, class_transformer_1.Type)(() => ReconciliationAdjustmentReference_1.ReconciliationAdjustmentReference),
|
|
88
|
+
__metadata("design:type", ReconciliationAdjustmentReference_1.ReconciliationAdjustmentReference)
|
|
89
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "reference", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'string' ? value.trim() : value)),
|
|
93
|
+
(0, class_validator_1.IsString)(),
|
|
94
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "reason", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_transformer_1.Expose)(),
|
|
99
|
+
(0, class_validator_1.IsEmail)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "actor", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_transformer_1.Expose)(),
|
|
104
|
+
(0, class_validator_1.IsString)(),
|
|
105
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], PrivateAuthorizeReconciliationAdjustmentRequest.prototype, "author", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Respuesta de privateAuthorizeReconciliationAdjustment; un `adjustmentKey` repetido devuelve el primer movimiento. */
|
|
2
|
+
export interface PrivateAuthorizeReconciliationAdjustmentResponse {
|
|
3
|
+
adjustmentKey: string;
|
|
4
|
+
transactionId: string;
|
|
5
|
+
/** `true` si la llave ya existía y no se movió dinero otra vez. */
|
|
6
|
+
replayed: boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReconciliationAdjustmentReference = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Partida del motor que pidió el ajuste. */
|
|
16
|
+
class ReconciliationAdjustmentReference {
|
|
17
|
+
}
|
|
18
|
+
exports.ReconciliationAdjustmentReference = ReconciliationAdjustmentReference;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ReconciliationAdjustmentReference.prototype, "definitionId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ReconciliationAdjustmentReference.prototype, "itemKey", void 0);
|
|
@@ -42,6 +42,9 @@ export * from './dtos/AuthorizeRenewalPreAuthRequest';
|
|
|
42
42
|
export * from './dtos/AuthorizeRenewalPreAuthResponse';
|
|
43
43
|
export * from './dtos/PublishFiadoTxRequest';
|
|
44
44
|
export * from './dtos/PublishFiadoTxResponse';
|
|
45
|
+
export * from './dtos/ReconciliationAdjustmentReference';
|
|
46
|
+
export * from './dtos/PrivateAuthorizeReconciliationAdjustmentRequest';
|
|
47
|
+
export * from './dtos/PrivateAuthorizeReconciliationAdjustmentResponse';
|
|
45
48
|
export * from './enums/TransactionProcessorCodesEnum';
|
|
46
49
|
export * from './enums/AsyncTxStatusEnum';
|
|
47
50
|
export * from './enums/AppEnum';
|
|
@@ -58,6 +58,9 @@ __exportStar(require("./dtos/AuthorizeRenewalPreAuthRequest"), exports);
|
|
|
58
58
|
__exportStar(require("./dtos/AuthorizeRenewalPreAuthResponse"), exports);
|
|
59
59
|
__exportStar(require("./dtos/PublishFiadoTxRequest"), exports);
|
|
60
60
|
__exportStar(require("./dtos/PublishFiadoTxResponse"), exports);
|
|
61
|
+
__exportStar(require("./dtos/ReconciliationAdjustmentReference"), exports);
|
|
62
|
+
__exportStar(require("./dtos/PrivateAuthorizeReconciliationAdjustmentRequest"), exports);
|
|
63
|
+
__exportStar(require("./dtos/PrivateAuthorizeReconciliationAdjustmentResponse"), exports);
|
|
61
64
|
__exportStar(require("./enums/TransactionProcessorCodesEnum"), exports);
|
|
62
65
|
__exportStar(require("./enums/AsyncTxStatusEnum"), exports);
|
|
63
66
|
__exportStar(require("./enums/AppEnum"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRANSFER_NOTE_DEFAULT_FEE_CENTS = void 0;
|
|
4
|
+
const TransferNoteConceptEnum_1 = require("../enums/TransferNoteConceptEnum");
|
|
5
|
+
/** Tarifa por omisión en centavos por crédito firmado (REQ-52), si el tenant no configura otra. */
|
|
6
|
+
exports.TRANSFER_NOTE_DEFAULT_FEE_CENTS = {
|
|
7
|
+
[TransferNoteConceptEnum_1.TransferNoteConceptEnum.ORIGINATION_BONUS]: 5000,
|
|
8
|
+
[TransferNoteConceptEnum_1.TransferNoteConceptEnum.ACCOUNT_OPENING]: 2500,
|
|
9
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TransferNoteErrorCodeEnum as C } from '../enums/TransferNoteErrorCodeEnum';
|
|
2
|
+
/** Status HTTP de cada code: 400 request inválido · 404 no existe · 409 conflicto de estado · 422 regla de negocio. */
|
|
3
|
+
export declare const TRANSFER_NOTE_ERROR_HTTP_STATUS: Readonly<Record<C, 400 | 404 | 409 | 422>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRANSFER_NOTE_ERROR_HTTP_STATUS = void 0;
|
|
4
|
+
const reconciliationErrorHttpStatus_1 = require("../../reconciliation/constants/reconciliationErrorHttpStatus");
|
|
5
|
+
const ReconciliationFeedErrorCodeEnum_1 = require("../../reconciliation/enums/ReconciliationFeedErrorCodeEnum");
|
|
6
|
+
const TransferNoteErrorCodeEnum_1 = require("../enums/TransferNoteErrorCodeEnum");
|
|
7
|
+
/** Status HTTP de cada code: 400 request inválido · 404 no existe · 409 conflicto de estado · 422 regla de negocio. */
|
|
8
|
+
exports.TRANSFER_NOTE_ERROR_HTTP_STATUS = {
|
|
9
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.TRANSFER_NOTE_NOT_FOUND]: 404,
|
|
10
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOTE_NOT_DISPUTABLE]: 409,
|
|
11
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NET_NOT_POSITIVE]: 422,
|
|
12
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOT_NOTE_CONTROLLER]: 422,
|
|
13
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.PAYEE_ACCOUNT_NOT_REGISTERED]: 422,
|
|
14
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.ITEM_ALREADY_INCLUDED]: 409,
|
|
15
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.WEEK_ALREADY_CUT]: 409,
|
|
16
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOTE_NOT_ISSUED]: 409,
|
|
17
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOTE_DISPUTED]: 409,
|
|
18
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOT_NOTE_PAYER]: 422,
|
|
19
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOTE_NOT_SENT]: 409,
|
|
20
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOT_NOTE_PAYEE]: 422,
|
|
21
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.NOTE_NOT_DISPUTED]: 409,
|
|
22
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.CONTACT_EMAIL_MISSING]: 422,
|
|
23
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.INVALID_CONFIG_RECORD_TYPE]: 400,
|
|
24
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.AUTHOR_NOT_ALLOWED]: 422,
|
|
25
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.SETTLEMENT_NOT_REQUIRED]: 422,
|
|
26
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.RUN_IN_PROGRESS]: 409,
|
|
27
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.SOURCE_ITEM_NOT_FOUND]: 404,
|
|
28
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.TRANSFER_NOTE_ITEM_NOT_FOUND]: 404,
|
|
29
|
+
[TransferNoteErrorCodeEnum_1.TransferNoteErrorCodeEnum.FEED_RECORD_NOT_FOUND]: reconciliationErrorHttpStatus_1.RECONCILIATION_FEED_ERROR_HTTP_STATUS[ReconciliationFeedErrorCodeEnum_1.ReconciliationFeedErrorCodeEnum.FEED_RECORD_NOT_FOUND],
|
|
30
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Largo mínimo de la razón de una emisión manual y de una objeción. */
|
|
2
|
+
export declare const TRANSFER_NOTE_MIN_REASON_LENGTH = 20;
|
|
3
|
+
/** Semana ISO `YYYY-Www`, p. ej. `2026-W43`. */
|
|
4
|
+
export declare const TRANSFER_NOTE_ISO_WEEK_PATTERN: RegExp;
|
|
5
|
+
/** CLABE interbancaria de 18 dígitos. */
|
|
6
|
+
export declare const TRANSFER_NOTE_CLABE_PATTERN: RegExp;
|
|
7
|
+
export declare const TRANSFER_NOTE_MAX_PAGE_SIZE = 100;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRANSFER_NOTE_MAX_PAGE_SIZE = exports.TRANSFER_NOTE_CLABE_PATTERN = exports.TRANSFER_NOTE_ISO_WEEK_PATTERN = exports.TRANSFER_NOTE_MIN_REASON_LENGTH = void 0;
|
|
4
|
+
/** Largo mínimo de la razón de una emisión manual y de una objeción. */
|
|
5
|
+
exports.TRANSFER_NOTE_MIN_REASON_LENGTH = 20;
|
|
6
|
+
/** Semana ISO `YYYY-Www`, p. ej. `2026-W43`. */
|
|
7
|
+
exports.TRANSFER_NOTE_ISO_WEEK_PATTERN = /^\d{4}-W(0[1-9]|[1-4]\d|5[0-3])$/;
|
|
8
|
+
/** CLABE interbancaria de 18 dígitos. */
|
|
9
|
+
exports.TRANSFER_NOTE_CLABE_PATTERN = /^\d{18}$/;
|
|
10
|
+
exports.TRANSFER_NOTE_MAX_PAGE_SIZE = 100;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
import { TransferNoteConceptEnum } from '../enums/TransferNoteConceptEnum';
|
|
3
|
+
import { TransferNoteConfirmationSourceEnum } from '../enums/TransferNoteConfirmationSourceEnum';
|
|
4
|
+
import { TransferNoteConfirmationTypeEnum } from '../enums/TransferNoteConfirmationTypeEnum';
|
|
5
|
+
import { TransferNoteDisputeCategoryEnum } from '../enums/TransferNoteDisputeCategoryEnum';
|
|
6
|
+
import { TransferNoteIssueOriginEnum } from '../enums/TransferNoteIssueOriginEnum';
|
|
7
|
+
import { TransferNotePartyTypeEnum } from '../enums/TransferNotePartyTypeEnum';
|
|
8
|
+
import { TransferNoteStatusEnum } from '../enums/TransferNoteStatusEnum';
|
|
9
|
+
/** Parte de una nota, sin datos de contacto ni de cuenta. */
|
|
10
|
+
export interface TransferNoteParty {
|
|
11
|
+
partyId: string;
|
|
12
|
+
partyType: TransferNotePartyTypeEnum;
|
|
13
|
+
/** Solo en partes RETAILER. */
|
|
14
|
+
retailerId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TransferNoteSubtotal {
|
|
17
|
+
concept: TransferNoteConceptEnum;
|
|
18
|
+
amountCents: number;
|
|
19
|
+
itemCount: number;
|
|
20
|
+
}
|
|
21
|
+
export interface TransferNoteSpeiPayment {
|
|
22
|
+
trackingKey: string;
|
|
23
|
+
paidAt: string;
|
|
24
|
+
amountCents: number;
|
|
25
|
+
capturedBy: string;
|
|
26
|
+
capturedAt: string;
|
|
27
|
+
receiptUploaded: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface TransferNoteConfirmation {
|
|
30
|
+
type: TransferNoteConfirmationTypeEnum;
|
|
31
|
+
source: TransferNoteConfirmationSourceEnum;
|
|
32
|
+
confirmedBy: string;
|
|
33
|
+
confirmedAt: string;
|
|
34
|
+
}
|
|
35
|
+
export interface TransferNoteDispute {
|
|
36
|
+
category: TransferNoteDisputeCategoryEnum;
|
|
37
|
+
reason: string;
|
|
38
|
+
disputedBy: string;
|
|
39
|
+
disputedAt: string;
|
|
40
|
+
/** Estado al que vuelve la nota si se rechaza la objeción. */
|
|
41
|
+
previousStatus: TransferNoteStatusEnum;
|
|
42
|
+
}
|
|
43
|
+
/** Fila de los listados de notas. */
|
|
44
|
+
export interface TransferNoteSummary {
|
|
45
|
+
noteId: string;
|
|
46
|
+
tenantId: string;
|
|
47
|
+
pairKey: string;
|
|
48
|
+
isoWeek: string;
|
|
49
|
+
payer: TransferNoteParty;
|
|
50
|
+
payee: TransferNoteParty;
|
|
51
|
+
/** Calculado de pagador y receptor; no se guarda. */
|
|
52
|
+
controllerPartyType: TransferNotePartyTypeEnum;
|
|
53
|
+
status: TransferNoteStatusEnum;
|
|
54
|
+
issueOrigin: TransferNoteIssueOriginEnum;
|
|
55
|
+
netAmountCents: number;
|
|
56
|
+
currency: CurrencyId;
|
|
57
|
+
itemCount: number;
|
|
58
|
+
issuedAt?: string;
|
|
59
|
+
dueAt?: string;
|
|
60
|
+
}
|
|
61
|
+
/** Detalle de una nota. */
|
|
62
|
+
export interface TransferNote extends TransferNoteSummary {
|
|
63
|
+
subtotals: TransferNoteSubtotal[];
|
|
64
|
+
requiredConfirmations: TransferNoteConfirmationTypeEnum[];
|
|
65
|
+
confirmations: TransferNoteConfirmation[];
|
|
66
|
+
/** Razón de la emisión manual. */
|
|
67
|
+
issueReason?: string;
|
|
68
|
+
speiPayment?: TransferNoteSpeiPayment;
|
|
69
|
+
dispute?: TransferNoteDispute;
|
|
70
|
+
/** Nota cancelada de la que nace esta, o la regenerada que la reemplaza. */
|
|
71
|
+
regeneratedFromNoteId?: string;
|
|
72
|
+
regeneratedNoteId?: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
createdBy: string;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
updatedBy?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface TransferNoteStatusCount {
|
|
79
|
+
status: TransferNoteStatusEnum;
|
|
80
|
+
count: number;
|
|
81
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
import { TransferNoteConceptEnum } from '../enums/TransferNoteConceptEnum';
|
|
3
|
+
import { TransferNoteConceptSignEnum } from '../enums/TransferNoteConceptSignEnum';
|
|
4
|
+
import { TransferNoteConfigRecordTypeEnum } from '../enums/TransferNoteConfigRecordTypeEnum';
|
|
5
|
+
import { TransferNotePartyTypeEnum } from '../enums/TransferNotePartyTypeEnum';
|
|
6
|
+
/** Registro TENANT. */
|
|
7
|
+
export interface TransferNoteTenantSettings {
|
|
8
|
+
activeFrom: string;
|
|
9
|
+
currency: CurrencyId;
|
|
10
|
+
}
|
|
11
|
+
/** Registro PARTY#partyId: la cuenta destino y el correo de contacto de una parte. */
|
|
12
|
+
export interface TransferNotePartySettings {
|
|
13
|
+
partyId: string;
|
|
14
|
+
partyType: TransferNotePartyTypeEnum;
|
|
15
|
+
displayName: string;
|
|
16
|
+
retailerId?: string;
|
|
17
|
+
clabe?: string;
|
|
18
|
+
contactEmail?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Registro CONCEPT#concept: a qué tipo de par va, con qué signo y desde cuándo. */
|
|
21
|
+
export interface TransferNoteConceptSettings {
|
|
22
|
+
concept: TransferNoteConceptEnum;
|
|
23
|
+
payerPartyType: TransferNotePartyTypeEnum;
|
|
24
|
+
payeePartyType: TransferNotePartyTypeEnum;
|
|
25
|
+
sign: TransferNoteConceptSignEnum;
|
|
26
|
+
activeFrom: string;
|
|
27
|
+
/** Tarifa por crédito firmado, solo en conceptos derivados. */
|
|
28
|
+
rateCents?: number;
|
|
29
|
+
}
|
|
30
|
+
/** Registro PAIR#pairKey con su contador de cortes sin emitir. */
|
|
31
|
+
export interface TransferNotePairSettings {
|
|
32
|
+
pairKey: string;
|
|
33
|
+
payerPartyId: string;
|
|
34
|
+
payeePartyId: string;
|
|
35
|
+
activeFrom: string;
|
|
36
|
+
consecutiveUnissuedCutoffs: number;
|
|
37
|
+
/** Se llena al 4.º corte seguido sin emitir. */
|
|
38
|
+
discrepancyOpenedAt?: string;
|
|
39
|
+
}
|
|
40
|
+
/** Un registro de configuración; trae solo el sub-shape de su `recordType`. */
|
|
41
|
+
export interface TransferNoteConfigRecord {
|
|
42
|
+
recordKey: string;
|
|
43
|
+
recordType: TransferNoteConfigRecordTypeEnum;
|
|
44
|
+
tenant?: TransferNoteTenantSettings;
|
|
45
|
+
party?: TransferNotePartySettings;
|
|
46
|
+
concept?: TransferNoteConceptSettings;
|
|
47
|
+
pair?: TransferNotePairSettings;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
updatedBy: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReconciliationFeedRecord, ReconciliationFeedRefs } from '../../reconciliation/dtos/ReconciliationFeedRecord';
|
|
2
|
+
import type { ReconciliationFeedConceptEnum } from '../../reconciliation/enums/ReconciliationFeedConceptEnum';
|
|
3
|
+
import { TransferNoteConceptEnum } from '../enums/TransferNoteConceptEnum';
|
|
4
|
+
import { TransferNotePartyTypeEnum } from '../enums/TransferNotePartyTypeEnum';
|
|
5
|
+
import { TransferNoteStatusEnum } from '../enums/TransferNoteStatusEnum';
|
|
6
|
+
/** Registro del feed TRANSFER_NOTE_ITEM: un item ya incluido en una nota; `recordId` es su itemId. */
|
|
7
|
+
export interface TransferNoteItemFeedRecord extends ReconciliationFeedRecord {
|
|
8
|
+
concept: ReconciliationFeedConceptEnum.TRANSFER_NOTE_ITEM;
|
|
9
|
+
/** `matchKey` del registro de origen; `feedDay` es el día CDMX de `includedAt`. */
|
|
10
|
+
refs: ReconciliationFeedRefs & {
|
|
11
|
+
noteId: string;
|
|
12
|
+
itemId: string;
|
|
13
|
+
};
|
|
14
|
+
itemConcept: TransferNoteConceptEnum;
|
|
15
|
+
pairKey: string;
|
|
16
|
+
/** `recordId` en el feed del dueño del que salió el item. */
|
|
17
|
+
sourceRecordId: string;
|
|
18
|
+
includedAt: string;
|
|
19
|
+
}
|
|
20
|
+
/** Registro del feed TRANSFER_NOTE_SETTLEMENT: lo que una nota debe pagar y lo capturado; `recordId` y `matchKey` son el noteId. */
|
|
21
|
+
export interface TransferNoteSettlementFeedRecord extends ReconciliationFeedRecord {
|
|
22
|
+
concept: ReconciliationFeedConceptEnum.TRANSFER_NOTE_SETTLEMENT;
|
|
23
|
+
/** `amountCents` es el neto de la nota; `occurredAt` su emisión. */
|
|
24
|
+
refs: ReconciliationFeedRefs & {
|
|
25
|
+
noteId: string;
|
|
26
|
+
};
|
|
27
|
+
pairKey: string;
|
|
28
|
+
payerPartyType: TransferNotePartyTypeEnum;
|
|
29
|
+
payerPartyId: string;
|
|
30
|
+
payeePartyType: TransferNotePartyTypeEnum;
|
|
31
|
+
payeePartyId: string;
|
|
32
|
+
status: TransferNoteStatusEnum;
|
|
33
|
+
dueAt: string;
|
|
34
|
+
/** Cuenta registrada del receptor al emitir. */
|
|
35
|
+
payeeClabe: string;
|
|
36
|
+
paidAt?: string;
|
|
37
|
+
paidAmountCents?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TransferNoteHistoryActionEnum } from '../enums/TransferNoteHistoryActionEnum';
|
|
2
|
+
import { TransferNoteStatusEnum } from '../enums/TransferNoteStatusEnum';
|
|
3
|
+
import { TransferNoteConfirmation } from './TransferNote';
|
|
4
|
+
/** Una acción del historial de la nota. */
|
|
5
|
+
export interface TransferNoteHistoryEntry {
|
|
6
|
+
action: TransferNoteHistoryActionEnum;
|
|
7
|
+
actor: string;
|
|
8
|
+
occurredAt: string;
|
|
9
|
+
reason?: string;
|
|
10
|
+
fromStatus?: TransferNoteStatusEnum;
|
|
11
|
+
toStatus?: TransferNoteStatusEnum;
|
|
12
|
+
/** Items que volvieron al pool al cancelar. */
|
|
13
|
+
itemIds?: string[];
|
|
14
|
+
/** Confirmaciones anuladas al revertir el SPEI. */
|
|
15
|
+
annulledConfirmations?: TransferNoteConfirmation[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
import { TransferNoteConceptEnum } from '../enums/TransferNoteConceptEnum';
|
|
3
|
+
import { TransferNoteItemStatusEnum } from '../enums/TransferNoteItemStatusEnum';
|
|
4
|
+
/** Lista cerrada de ids que ligan un item con su origen; nunca datos personales. */
|
|
5
|
+
export interface TransferNoteItemRefs {
|
|
6
|
+
creditId?: string;
|
|
7
|
+
saleId?: string;
|
|
8
|
+
customerId?: string;
|
|
9
|
+
retailerId?: string;
|
|
10
|
+
promotionId?: string;
|
|
11
|
+
attemptId?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Item de un par: en el pool no trae `noteId`. */
|
|
14
|
+
export interface TransferNoteItem {
|
|
15
|
+
itemId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
pairKey: string;
|
|
18
|
+
concept: TransferNoteConceptEnum;
|
|
19
|
+
/** Centavos con signo: positivo suma a lo que el pagador le debe al receptor. */
|
|
20
|
+
amountCents: number;
|
|
21
|
+
currency: CurrencyId;
|
|
22
|
+
status: TransferNoteItemStatusEnum;
|
|
23
|
+
/** Id del registro en el feed del dueño; con `concept` es la llave del candado SOURCE. */
|
|
24
|
+
sourceRecordId: string;
|
|
25
|
+
/** Fecha del movimiento en el origen, ISO 8601. */
|
|
26
|
+
occurredAt: string;
|
|
27
|
+
refs: TransferNoteItemRefs;
|
|
28
|
+
noteId?: string;
|
|
29
|
+
/** Item que esta reversa compensa. */
|
|
30
|
+
reversedItemId?: string;
|
|
31
|
+
/** Llave idempotente del ajuste y el item que corrige. */
|
|
32
|
+
adjustmentKey?: string;
|
|
33
|
+
adjustedItemId?: string;
|
|
34
|
+
pooledAt: string;
|
|
35
|
+
includedAt?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { TransferNoteConceptEnum } from '../../enums/TransferNoteConceptEnum';
|
|
2
|
+
import { CancelTransferNoteRequest, CaptureTransferNoteSpeiRequest, IssueTransferNoteRequest, PreviewTransferNoteRequest, ResolveTransferNoteDisputeRequest, RevertTransferNoteSpeiRequest } from './TransferNoteActionRequests';
|
|
3
|
+
import { ListTransferNoteItemsQuery, ListTransferNotePoolQuery, ListTransferNotesQuery } from './TransferNoteQueries';
|
|
4
|
+
/** Tenant y servicio que llama; el lambda valida `author` contra su lista permitida. */
|
|
5
|
+
export declare class PrivateTransferNoteCaller {
|
|
6
|
+
tenantId: string;
|
|
7
|
+
author: string;
|
|
8
|
+
}
|
|
9
|
+
/** Caller del espejo que llama fiado-dashboard; `actor` es el email del operador de la sesión. */
|
|
10
|
+
export declare class PrivateTransferNoteOperatorCaller extends PrivateTransferNoteCaller {
|
|
11
|
+
actor: string;
|
|
12
|
+
}
|
|
13
|
+
/** Body de privatePreviewTransferNote. */
|
|
14
|
+
export declare class PrivatePreviewTransferNoteRequest extends PreviewTransferNoteRequest {
|
|
15
|
+
tenantId: string;
|
|
16
|
+
author: string;
|
|
17
|
+
actor: string;
|
|
18
|
+
}
|
|
19
|
+
/** Body de privateIssueTransferNote. */
|
|
20
|
+
export declare class PrivateIssueTransferNoteRequest extends IssueTransferNoteRequest {
|
|
21
|
+
tenantId: string;
|
|
22
|
+
author: string;
|
|
23
|
+
actor: string;
|
|
24
|
+
}
|
|
25
|
+
/** Body de privateCaptureTransferNoteSpei. */
|
|
26
|
+
export declare class PrivateCaptureTransferNoteSpeiRequest extends CaptureTransferNoteSpeiRequest {
|
|
27
|
+
tenantId: string;
|
|
28
|
+
author: string;
|
|
29
|
+
actor: string;
|
|
30
|
+
}
|
|
31
|
+
/** Body de privateRevertTransferNoteSpei. */
|
|
32
|
+
export declare class PrivateRevertTransferNoteSpeiRequest extends RevertTransferNoteSpeiRequest {
|
|
33
|
+
tenantId: string;
|
|
34
|
+
author: string;
|
|
35
|
+
actor: string;
|
|
36
|
+
}
|
|
37
|
+
/** Body de privateCancelTransferNote. */
|
|
38
|
+
export declare class PrivateCancelTransferNoteRequest extends CancelTransferNoteRequest {
|
|
39
|
+
tenantId: string;
|
|
40
|
+
author: string;
|
|
41
|
+
actor: string;
|
|
42
|
+
}
|
|
43
|
+
/** Body de privateResolveTransferNoteDispute. */
|
|
44
|
+
export declare class PrivateResolveTransferNoteDisputeRequest extends ResolveTransferNoteDisputeRequest {
|
|
45
|
+
tenantId: string;
|
|
46
|
+
author: string;
|
|
47
|
+
actor: string;
|
|
48
|
+
}
|
|
49
|
+
/** Body de privateConfirmTransferNoteReception. */
|
|
50
|
+
export declare class PrivateConfirmTransferNoteReceptionRequest extends PrivateTransferNoteOperatorCaller {
|
|
51
|
+
}
|
|
52
|
+
/** Body de privateSendTransferNoteNotice. */
|
|
53
|
+
export declare class PrivateSendTransferNoteNoticeRequest extends PrivateTransferNoteOperatorCaller {
|
|
54
|
+
}
|
|
55
|
+
/** Body de privateCreateSpeiReceiptUploadUrl. */
|
|
56
|
+
export declare class PrivateCreateSpeiReceiptUploadUrlRequest extends PrivateTransferNoteOperatorCaller {
|
|
57
|
+
}
|
|
58
|
+
/** Body de privateConfirmTransferNoteSettlement: FSA confirma el SPEI en su estado de cuenta. */
|
|
59
|
+
export declare class PrivateConfirmTransferNoteSettlementRequest extends PrivateTransferNoteOperatorCaller {
|
|
60
|
+
}
|
|
61
|
+
/** Query de privateGetTransferNote. */
|
|
62
|
+
export declare class PrivateGetTransferNoteQuery extends PrivateTransferNoteOperatorCaller {
|
|
63
|
+
}
|
|
64
|
+
/** Query de privateGetTransferNoteHistory. */
|
|
65
|
+
export declare class PrivateGetTransferNoteHistoryQuery extends PrivateTransferNoteOperatorCaller {
|
|
66
|
+
}
|
|
67
|
+
/** Query de privateGetTransferNotePdf. */
|
|
68
|
+
export declare class PrivateGetTransferNotePdfQuery extends PrivateTransferNoteOperatorCaller {
|
|
69
|
+
}
|
|
70
|
+
/** Query de privateListTransferNotes. */
|
|
71
|
+
export declare class PrivateListTransferNotesQuery extends ListTransferNotesQuery {
|
|
72
|
+
tenantId: string;
|
|
73
|
+
author: string;
|
|
74
|
+
actor: string;
|
|
75
|
+
}
|
|
76
|
+
/** Query de privateListTransferNotePool. */
|
|
77
|
+
export declare class PrivateListTransferNotePoolQuery extends ListTransferNotePoolQuery {
|
|
78
|
+
tenantId: string;
|
|
79
|
+
author: string;
|
|
80
|
+
actor: string;
|
|
81
|
+
}
|
|
82
|
+
/** Query de privateListTransferNoteItems. */
|
|
83
|
+
export declare class PrivateListTransferNoteItemsQuery extends ListTransferNoteItemsQuery {
|
|
84
|
+
tenantId: string;
|
|
85
|
+
author: string;
|
|
86
|
+
actor: string;
|
|
87
|
+
}
|
|
88
|
+
/** Body de privateRunTransferNoteCutoff: responde 202 con `runId` y corre asíncrono. */
|
|
89
|
+
export declare class PrivateRunTransferNoteCutoffRequest extends PrivateTransferNoteCaller {
|
|
90
|
+
isoWeek: string;
|
|
91
|
+
}
|
|
92
|
+
/** Body de privateCreateTransferNoteAdjustment; un `adjustmentKey` repetido devuelve el primer ajuste. */
|
|
93
|
+
export declare class PrivateCreateTransferNoteAdjustmentRequest extends PrivateTransferNoteCaller {
|
|
94
|
+
adjustmentKey: string;
|
|
95
|
+
/** Item original; el ajuste va a su mismo par. */
|
|
96
|
+
sourceItemId: string;
|
|
97
|
+
/** Centavos con signo, distinto de cero. */
|
|
98
|
+
amountCents: number;
|
|
99
|
+
reason: string;
|
|
100
|
+
}
|
|
101
|
+
/** Query de privateGetTransferNoteItemBySource; la llama el motor, sin operador. */
|
|
102
|
+
export declare class PrivateGetTransferNoteItemBySourceQuery extends PrivateTransferNoteCaller {
|
|
103
|
+
concept: TransferNoteConceptEnum;
|
|
104
|
+
sourceRecordId: string;
|
|
105
|
+
}
|