@fiado/type-kit 3.264.0 → 3.265.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.
Files changed (64) hide show
  1. package/bin/collection/dtos/AuthorizeCollectionMovementRequest.d.ts +13 -0
  2. package/bin/collection/dtos/AuthorizeCollectionMovementRequest.js +57 -0
  3. package/bin/collection/dtos/AuthorizeCollectionMovementResponse.d.ts +7 -0
  4. package/bin/{platformRbac/dtos/ResendSelfRegisterOtpRequest.js → collection/dtos/AuthorizeCollectionMovementResponse.js} +17 -18
  5. package/bin/collection/dtos/CollectRequest.d.ts +8 -0
  6. package/bin/collection/dtos/CollectRequest.js +40 -0
  7. package/bin/collection/dtos/CollectResponse.d.ts +7 -0
  8. package/bin/collection/dtos/CollectResponse.js +33 -0
  9. package/bin/collection/dtos/CollectionResultEvent.d.ts +12 -0
  10. package/bin/collection/dtos/CollectionResultEvent.js +50 -0
  11. package/bin/collection/dtos/PendingChargeDto.d.ts +19 -0
  12. package/bin/collection/dtos/PendingChargeDto.js +87 -0
  13. package/bin/collection/dtos/RegisterCollectibleRequest.d.ts +7 -0
  14. package/bin/collection/dtos/RegisterCollectibleRequest.js +36 -0
  15. package/bin/collection/enums/CollectionResultStatus.d.ts +5 -0
  16. package/bin/collection/enums/CollectionResultStatus.js +9 -0
  17. package/bin/collection/enums/CollectionState.d.ts +8 -0
  18. package/bin/collection/enums/CollectionState.js +12 -0
  19. package/bin/collection/enums/MechanismType.d.ts +5 -0
  20. package/bin/collection/enums/MechanismType.js +9 -0
  21. package/bin/collection/enums/SagaStep.d.ts +7 -0
  22. package/bin/collection/enums/SagaStep.js +11 -0
  23. package/bin/collection/index.d.ts +11 -0
  24. package/bin/collection/index.js +29 -0
  25. package/bin/identity/enums/SelfieSourceEnum.d.ts +10 -0
  26. package/bin/identity/enums/SelfieSourceEnum.js +14 -0
  27. package/bin/index.d.ts +1 -0
  28. package/bin/index.js +6 -1
  29. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +11 -0
  30. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.js +46 -0
  31. package/bin/loanCredit/enums/ClientLevelEnum.d.ts +11 -0
  32. package/bin/loanCredit/enums/ClientLevelEnum.js +15 -0
  33. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +6 -0
  34. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +31 -0
  35. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +7 -0
  36. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +6 -0
  37. package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +11 -0
  38. package/bin/{platformRbac/dtos/ResendOtpRequest.js → walletFunding/dtos/CancelFundingRequest.js} +13 -16
  39. package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +14 -0
  40. package/bin/walletFunding/dtos/CancelFundingResponse.js +12 -0
  41. package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
  42. package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
  43. package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
  44. package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
  45. package/package.json +1 -1
  46. package/src/collection/dtos/AuthorizeCollectionMovementRequest.ts +15 -0
  47. package/src/collection/dtos/AuthorizeCollectionMovementResponse.ts +9 -0
  48. package/src/collection/dtos/CollectRequest.ts +10 -0
  49. package/src/collection/dtos/CollectResponse.ts +9 -0
  50. package/src/collection/dtos/CollectionResultEvent.ts +14 -0
  51. package/src/collection/dtos/PendingChargeDto.ts +21 -0
  52. package/src/collection/dtos/RegisterCollectibleRequest.ts +9 -0
  53. package/src/collection/enums/CollectionResultStatus.ts +5 -0
  54. package/src/collection/enums/CollectionState.ts +8 -0
  55. package/src/collection/enums/MechanismType.ts +5 -0
  56. package/src/collection/enums/SagaStep.ts +7 -0
  57. package/src/collection/index.ts +14 -0
  58. package/src/index.ts +5 -0
  59. package/bin/loanConfig/enums/ModifiableByRoleEnum.d.ts +0 -11
  60. package/bin/loanConfig/enums/ModifiableByRoleEnum.js +0 -15
  61. package/bin/places/dtos/CashInFeeDto.d.ts +0 -17
  62. package/bin/places/dtos/CashInFeeDto.js +0 -12
  63. package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +0 -22
  64. package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +0 -11
@@ -0,0 +1,13 @@
1
+ import { MechanismType } from '../enums/MechanismType';
2
+ import { CurrencyId } from '../../currency/enums/CurrencyId';
3
+ export declare class AuthorizeCollectionMovementRequest {
4
+ executionId: string;
5
+ directoryId: string;
6
+ provider: string;
7
+ mechanism: MechanismType;
8
+ amount: number;
9
+ currencyId: CurrencyId;
10
+ intentId?: string;
11
+ chargeId?: string;
12
+ holdTxId?: string;
13
+ }
@@ -0,0 +1,57 @@
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.AuthorizeCollectionMovementRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const MechanismType_1 = require("../enums/MechanismType");
15
+ const CurrencyId_1 = require("../../currency/enums/CurrencyId");
16
+ class AuthorizeCollectionMovementRequest {
17
+ }
18
+ exports.AuthorizeCollectionMovementRequest = AuthorizeCollectionMovementRequest;
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ __metadata("design:type", String)
22
+ ], AuthorizeCollectionMovementRequest.prototype, "executionId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], AuthorizeCollectionMovementRequest.prototype, "directoryId", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], AuthorizeCollectionMovementRequest.prototype, "provider", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsEnum)(MechanismType_1.MechanismType),
33
+ __metadata("design:type", String)
34
+ ], AuthorizeCollectionMovementRequest.prototype, "mechanism", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsInt)(),
37
+ __metadata("design:type", Number)
38
+ ], AuthorizeCollectionMovementRequest.prototype, "amount", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsEnum)(CurrencyId_1.CurrencyId),
41
+ __metadata("design:type", String)
42
+ ], AuthorizeCollectionMovementRequest.prototype, "currencyId", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsString)(),
46
+ __metadata("design:type", String)
47
+ ], AuthorizeCollectionMovementRequest.prototype, "intentId", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsString)(),
51
+ __metadata("design:type", String)
52
+ ], AuthorizeCollectionMovementRequest.prototype, "chargeId", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.IsString)(),
56
+ __metadata("design:type", String)
57
+ ], AuthorizeCollectionMovementRequest.prototype, "holdTxId", void 0);
@@ -0,0 +1,7 @@
1
+ import { CollectionResultStatus } from '../enums/CollectionResultStatus';
2
+ export declare class AuthorizeCollectionMovementResponse {
3
+ status: CollectionResultStatus;
4
+ amount: number;
5
+ holdTxId?: string;
6
+ transactionId?: string;
7
+ }
@@ -9,28 +9,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ResendSelfRegisterOtpRequest = void 0;
13
- const class_transformer_1 = require("class-transformer");
12
+ exports.AuthorizeCollectionMovementResponse = void 0;
14
13
  const class_validator_1 = require("class-validator");
15
- /**
16
- * Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
17
- * Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
18
- * `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
19
- * server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
20
- * scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
21
- */
22
- class ResendSelfRegisterOtpRequest {
14
+ const CollectionResultStatus_1 = require("../enums/CollectionResultStatus");
15
+ class AuthorizeCollectionMovementResponse {
23
16
  }
24
- exports.ResendSelfRegisterOtpRequest = ResendSelfRegisterOtpRequest;
17
+ exports.AuthorizeCollectionMovementResponse = AuthorizeCollectionMovementResponse;
25
18
  __decorate([
26
- (0, class_transformer_1.Expose)(),
19
+ (0, class_validator_1.IsEnum)(CollectionResultStatus_1.CollectionResultStatus),
20
+ __metadata("design:type", String)
21
+ ], AuthorizeCollectionMovementResponse.prototype, "status", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsInt)(),
24
+ __metadata("design:type", Number)
25
+ ], AuthorizeCollectionMovementResponse.prototype, "amount", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
27
28
  (0, class_validator_1.IsString)(),
28
- (0, class_validator_1.IsNotEmpty)(),
29
29
  __metadata("design:type", String)
30
- ], ResendSelfRegisterOtpRequest.prototype, "tenantId", void 0);
30
+ ], AuthorizeCollectionMovementResponse.prototype, "holdTxId", void 0);
31
31
  __decorate([
32
- (0, class_transformer_1.Expose)(),
33
- (0, class_validator_1.IsEmail)(),
34
- (0, class_validator_1.IsNotEmpty)(),
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsString)(),
35
34
  __metadata("design:type", String)
36
- ], ResendSelfRegisterOtpRequest.prototype, "email", void 0);
35
+ ], AuthorizeCollectionMovementResponse.prototype, "transactionId", void 0);
@@ -0,0 +1,8 @@
1
+ export declare class CollectRequest {
2
+ ownerRef: string;
3
+ tenantId: string;
4
+ domain: string;
5
+ productId: string;
6
+ chargeId: string;
7
+ amount: number;
8
+ }
@@ -0,0 +1,40 @@
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.CollectRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CollectRequest {
15
+ }
16
+ exports.CollectRequest = CollectRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], CollectRequest.prototype, "ownerRef", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], CollectRequest.prototype, "tenantId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], CollectRequest.prototype, "domain", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], CollectRequest.prototype, "productId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], CollectRequest.prototype, "chargeId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsInt)(),
39
+ __metadata("design:type", Number)
40
+ ], CollectRequest.prototype, "amount", void 0);
@@ -0,0 +1,7 @@
1
+ import { CollectionResultStatus } from '../enums/CollectionResultStatus';
2
+ export declare class CollectResponse {
3
+ intentId: string;
4
+ status: CollectionResultStatus;
5
+ amountReserved: number;
6
+ amountCollected: number;
7
+ }
@@ -0,0 +1,33 @@
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.CollectResponse = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const CollectionResultStatus_1 = require("../enums/CollectionResultStatus");
15
+ class CollectResponse {
16
+ }
17
+ exports.CollectResponse = CollectResponse;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], CollectResponse.prototype, "intentId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(CollectionResultStatus_1.CollectionResultStatus),
24
+ __metadata("design:type", String)
25
+ ], CollectResponse.prototype, "status", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsInt)(),
28
+ __metadata("design:type", Number)
29
+ ], CollectResponse.prototype, "amountReserved", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsInt)(),
32
+ __metadata("design:type", Number)
33
+ ], CollectResponse.prototype, "amountCollected", void 0);
@@ -0,0 +1,12 @@
1
+ import { CollectionResultStatus } from '../enums/CollectionResultStatus';
2
+ import { MechanismType } from '../enums/MechanismType';
3
+ export declare class CollectionResultEvent {
4
+ attemptId: string;
5
+ intentId: string;
6
+ domain: string;
7
+ tenantId: string;
8
+ chargeId: string;
9
+ status: CollectionResultStatus;
10
+ mechanism: MechanismType;
11
+ amount: number;
12
+ }
@@ -0,0 +1,50 @@
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.CollectionResultEvent = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const CollectionResultStatus_1 = require("../enums/CollectionResultStatus");
15
+ const MechanismType_1 = require("../enums/MechanismType");
16
+ class CollectionResultEvent {
17
+ }
18
+ exports.CollectionResultEvent = CollectionResultEvent;
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ __metadata("design:type", String)
22
+ ], CollectionResultEvent.prototype, "attemptId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], CollectionResultEvent.prototype, "intentId", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], CollectionResultEvent.prototype, "domain", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ __metadata("design:type", String)
34
+ ], CollectionResultEvent.prototype, "tenantId", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsString)(),
37
+ __metadata("design:type", String)
38
+ ], CollectionResultEvent.prototype, "chargeId", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsEnum)(CollectionResultStatus_1.CollectionResultStatus),
41
+ __metadata("design:type", String)
42
+ ], CollectionResultEvent.prototype, "status", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsEnum)(MechanismType_1.MechanismType),
45
+ __metadata("design:type", String)
46
+ ], CollectionResultEvent.prototype, "mechanism", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsInt)(),
49
+ __metadata("design:type", Number)
50
+ ], CollectionResultEvent.prototype, "amount", void 0);
@@ -0,0 +1,19 @@
1
+ import { CurrencyId } from '../../currency/enums/CurrencyId';
2
+ export declare class PendingChargeDto {
3
+ chargeId: string;
4
+ ownerRef: string;
5
+ tenantId: string;
6
+ domain: string;
7
+ parentDebtId: string;
8
+ installmentNumber: number;
9
+ amount: number;
10
+ currency: CurrencyId;
11
+ dueDate: string;
12
+ status: string;
13
+ principalAmount?: number;
14
+ interestAmount?: number;
15
+ taxAmount?: number;
16
+ outstandingBalance?: number;
17
+ amountCollected?: number;
18
+ metadata?: Record<string, unknown>;
19
+ }
@@ -0,0 +1,87 @@
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.PendingChargeDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const CurrencyId_1 = require("../../currency/enums/CurrencyId");
15
+ class PendingChargeDto {
16
+ }
17
+ exports.PendingChargeDto = PendingChargeDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], PendingChargeDto.prototype, "chargeId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], PendingChargeDto.prototype, "ownerRef", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], PendingChargeDto.prototype, "tenantId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], PendingChargeDto.prototype, "domain", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], PendingChargeDto.prototype, "parentDebtId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsInt)(),
40
+ __metadata("design:type", Number)
41
+ ], PendingChargeDto.prototype, "installmentNumber", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsInt)(),
44
+ __metadata("design:type", Number)
45
+ ], PendingChargeDto.prototype, "amount", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsEnum)(CurrencyId_1.CurrencyId),
48
+ __metadata("design:type", String)
49
+ ], PendingChargeDto.prototype, "currency", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsString)(),
52
+ __metadata("design:type", String)
53
+ ], PendingChargeDto.prototype, "dueDate", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsString)(),
56
+ __metadata("design:type", String)
57
+ ], PendingChargeDto.prototype, "status", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_validator_1.IsInt)(),
61
+ __metadata("design:type", Number)
62
+ ], PendingChargeDto.prototype, "principalAmount", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsOptional)(),
65
+ (0, class_validator_1.IsInt)(),
66
+ __metadata("design:type", Number)
67
+ ], PendingChargeDto.prototype, "interestAmount", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.IsInt)(),
71
+ __metadata("design:type", Number)
72
+ ], PendingChargeDto.prototype, "taxAmount", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, class_validator_1.IsInt)(),
76
+ __metadata("design:type", Number)
77
+ ], PendingChargeDto.prototype, "outstandingBalance", void 0);
78
+ __decorate([
79
+ (0, class_validator_1.IsOptional)(),
80
+ (0, class_validator_1.IsInt)(),
81
+ __metadata("design:type", Number)
82
+ ], PendingChargeDto.prototype, "amountCollected", void 0);
83
+ __decorate([
84
+ (0, class_validator_1.IsOptional)(),
85
+ (0, class_validator_1.IsObject)(),
86
+ __metadata("design:type", Object)
87
+ ], PendingChargeDto.prototype, "metadata", void 0);
@@ -0,0 +1,7 @@
1
+ export declare class RegisterCollectibleRequest {
2
+ ownerRef: string;
3
+ tenantId: string;
4
+ domain: string;
5
+ productId: string;
6
+ chargeId: string;
7
+ }
@@ -0,0 +1,36 @@
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.RegisterCollectibleRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class RegisterCollectibleRequest {
15
+ }
16
+ exports.RegisterCollectibleRequest = RegisterCollectibleRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], RegisterCollectibleRequest.prototype, "ownerRef", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], RegisterCollectibleRequest.prototype, "tenantId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], RegisterCollectibleRequest.prototype, "domain", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], RegisterCollectibleRequest.prototype, "productId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], RegisterCollectibleRequest.prototype, "chargeId", void 0);
@@ -0,0 +1,5 @@
1
+ export declare enum CollectionResultStatus {
2
+ FULL = "FULL",
3
+ PARTIAL = "PARTIAL",
4
+ NONE = "NONE"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CollectionResultStatus = void 0;
4
+ var CollectionResultStatus;
5
+ (function (CollectionResultStatus) {
6
+ CollectionResultStatus["FULL"] = "FULL";
7
+ CollectionResultStatus["PARTIAL"] = "PARTIAL";
8
+ CollectionResultStatus["NONE"] = "NONE";
9
+ })(CollectionResultStatus || (exports.CollectionResultStatus = CollectionResultStatus = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum CollectionState {
2
+ PENDING = "PENDING",
3
+ ATTEMPT = "ATTEMPT",
4
+ RESERVED = "RESERVED",
5
+ COLLECTED = "COLLECTED",
6
+ AWAITING_FUNDS = "AWAITING_FUNDS",
7
+ CANCELLED = "CANCELLED"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CollectionState = void 0;
4
+ var CollectionState;
5
+ (function (CollectionState) {
6
+ CollectionState["PENDING"] = "PENDING";
7
+ CollectionState["ATTEMPT"] = "ATTEMPT";
8
+ CollectionState["RESERVED"] = "RESERVED";
9
+ CollectionState["COLLECTED"] = "COLLECTED";
10
+ CollectionState["AWAITING_FUNDS"] = "AWAITING_FUNDS";
11
+ CollectionState["CANCELLED"] = "CANCELLED";
12
+ })(CollectionState || (exports.CollectionState = CollectionState = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum MechanismType {
2
+ USD_PREAUTH = "USD_PREAUTH",
3
+ USD_DIRECT = "USD_DIRECT",
4
+ MXN_DIRECT = "MXN_DIRECT"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MechanismType = void 0;
4
+ var MechanismType;
5
+ (function (MechanismType) {
6
+ MechanismType["USD_PREAUTH"] = "USD_PREAUTH";
7
+ MechanismType["USD_DIRECT"] = "USD_DIRECT";
8
+ MechanismType["MXN_DIRECT"] = "MXN_DIRECT";
9
+ })(MechanismType || (exports.MechanismType = MechanismType = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum SagaStep {
2
+ RESOLVE = "RESOLVE",
3
+ PICK_SOURCE = "PICK_SOURCE",
4
+ EXECUTE = "EXECUTE",
5
+ PERSIST = "PERSIST",
6
+ DISPATCH = "DISPATCH"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagaStep = void 0;
4
+ var SagaStep;
5
+ (function (SagaStep) {
6
+ SagaStep["RESOLVE"] = "RESOLVE";
7
+ SagaStep["PICK_SOURCE"] = "PICK_SOURCE";
8
+ SagaStep["EXECUTE"] = "EXECUTE";
9
+ SagaStep["PERSIST"] = "PERSIST";
10
+ SagaStep["DISPATCH"] = "DISPATCH";
11
+ })(SagaStep || (exports.SagaStep = SagaStep = {}));
@@ -0,0 +1,11 @@
1
+ export * from './enums/MechanismType';
2
+ export * from './enums/CollectionState';
3
+ export * from './enums/SagaStep';
4
+ export * from './enums/CollectionResultStatus';
5
+ export * from './dtos/PendingChargeDto';
6
+ export * from './dtos/CollectRequest';
7
+ export * from './dtos/CollectResponse';
8
+ export * from './dtos/RegisterCollectibleRequest';
9
+ export * from './dtos/CollectionResultEvent';
10
+ export * from './dtos/AuthorizeCollectionMovementRequest';
11
+ export * from './dtos/AuthorizeCollectionMovementResponse';
@@ -0,0 +1,29 @@
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/MechanismType"), exports);
19
+ __exportStar(require("./enums/CollectionState"), exports);
20
+ __exportStar(require("./enums/SagaStep"), exports);
21
+ __exportStar(require("./enums/CollectionResultStatus"), exports);
22
+ // DTOs
23
+ __exportStar(require("./dtos/PendingChargeDto"), exports);
24
+ __exportStar(require("./dtos/CollectRequest"), exports);
25
+ __exportStar(require("./dtos/CollectResponse"), exports);
26
+ __exportStar(require("./dtos/RegisterCollectibleRequest"), exports);
27
+ __exportStar(require("./dtos/CollectionResultEvent"), exports);
28
+ __exportStar(require("./dtos/AuthorizeCollectionMovementRequest"), exports);
29
+ __exportStar(require("./dtos/AuthorizeCollectionMovementResponse"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Con qué criterio se resolvió cuál archivo de S3 es la selfie del usuario.
3
+ * Le dice al consumidor qué tan confiable es el match antes de mandarla a un facematch.
4
+ */
5
+ export declare enum SelfieSourceEnum {
6
+ /** Matcheó el verificationId de la verificación vigente en People. */
7
+ VERIFICATION = "VERIFICATION",
8
+ /** No hubo match por verificación: se tomó el archivo de selfie más reciente del bucket. */
9
+ LATEST = "LATEST"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelfieSourceEnum = void 0;
4
+ /**
5
+ * Con qué criterio se resolvió cuál archivo de S3 es la selfie del usuario.
6
+ * Le dice al consumidor qué tan confiable es el match antes de mandarla a un facematch.
7
+ */
8
+ var SelfieSourceEnum;
9
+ (function (SelfieSourceEnum) {
10
+ /** Matcheó el verificationId de la verificación vigente en People. */
11
+ SelfieSourceEnum["VERIFICATION"] = "VERIFICATION";
12
+ /** No hubo match por verificación: se tomó el archivo de selfie más reciente del bucket. */
13
+ SelfieSourceEnum["LATEST"] = "LATEST";
14
+ })(SelfieSourceEnum || (exports.SelfieSourceEnum = SelfieSourceEnum = {}));
package/bin/index.d.ts CHANGED
@@ -107,3 +107,4 @@ export * from './messaging';
107
107
  export * from './complaint';
108
108
  export * as PhoneSales from './phoneSales';
109
109
  export * as Shipping from './shipping';
110
+ export * as Collection from './collection';
package/bin/index.js CHANGED
@@ -38,7 +38,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BenefitCenter = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.TransactionAnalytics = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.UserTags = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.AppContent = exports.App = exports.Offices = exports.Places = exports.Address = exports.Beneficiary = exports.Activity = exports.Biometrics = exports.MetamapConnector = exports.Account = exports.Crypto = void 0;
40
40
  exports.LoanOfferings = exports.Shortlink = exports.LoanConfig = exports.RetailWizard = exports.RetailCustomer = exports.RetailCards = exports.RetailCatalog = exports.RetailOrg = exports.EmailVerification = exports.NetworkConnector = exports.Modelias = exports.TotpSecurity = exports.Passport = exports.WalletFunding = exports.Remittance = exports.PlatformRbac = exports.CognitoBackofficeConnector = exports.TwilioConnector = exports.MessagesConnector = exports.Mdm = exports.MilestoneBusiness = exports.CirculoCredito = exports.CreditStatements = exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CustomerFile = exports.CreditBackoffice = exports.CreditDashboard = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = void 0;
41
- exports.Shipping = exports.PhoneSales = exports.Onboarding = exports.Kyc = exports.LoanScoring = exports.LoanCredit = exports.LoanCollectorAssignment = void 0;
41
+ exports.Collection = exports.Shipping = exports.PhoneSales = exports.Onboarding = exports.Kyc = exports.LoanScoring = exports.LoanCredit = exports.LoanCollectorAssignment = void 0;
42
42
  exports.Crypto = __importStar(require("./crypto"));
43
43
  exports.Account = __importStar(require("./account"));
44
44
  exports.MetamapConnector = __importStar(require("./metamapConnector"));
@@ -194,3 +194,8 @@ exports.PhoneSales = __importStar(require("./phoneSales"));
194
194
  // (tarjetas, teléfonos, …). ExternalShippingStatus se reexporta acá desde `card/` sin moverlo,
195
195
  // para no romper a los consumidores actuales del namespace Card.
196
196
  exports.Shipping = __importStar(require("./shipping"));
197
+ // Collection: contrato del motor de cobro central (collection-engine-business) — dominio
198
+ // agnóstico de proveedores/cuentas. PendingChargeDto es la deuda genérica; CollectRequest/
199
+ // CollectResponse el contrato dominio↔motor; AuthorizeCollectionMovementRequest/Response el
200
+ // contrato motor↔processor. Ver spec 2026-07-29-motor-cobro-central-design.
201
+ exports.Collection = __importStar(require("./collection"));
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
3
+ * cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
4
+ * (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
5
+ */
6
+ export declare class UpdateActivationChecklistRequest {
7
+ downPayment?: boolean;
8
+ contractSigned?: boolean;
9
+ imeiEnrolled?: boolean;
10
+ lockVerified?: boolean;
11
+ }
@@ -0,0 +1,46 @@
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.UpdateActivationChecklistRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
17
+ * cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
18
+ * (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
19
+ */
20
+ class UpdateActivationChecklistRequest {
21
+ }
22
+ exports.UpdateActivationChecklistRequest = UpdateActivationChecklistRequest;
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsBoolean)(),
27
+ __metadata("design:type", Boolean)
28
+ ], UpdateActivationChecklistRequest.prototype, "downPayment", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsBoolean)(),
33
+ __metadata("design:type", Boolean)
34
+ ], UpdateActivationChecklistRequest.prototype, "contractSigned", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsBoolean)(),
39
+ __metadata("design:type", Boolean)
40
+ ], UpdateActivationChecklistRequest.prototype, "imeiEnrolled", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsBoolean)(),
45
+ __metadata("design:type", Boolean)
46
+ ], UpdateActivationChecklistRequest.prototype, "lockVerified", void 0);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
3
+ * Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
4
+ * un CLIENTE nunca es `ALL`.
5
+ * @enum {string}
6
+ */
7
+ export declare enum ClientLevelEnum {
8
+ BRONZE = "BRONZE",
9
+ SILVER = "SILVER",
10
+ GOLD = "GOLD"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientLevelEnum = void 0;
4
+ /**
5
+ * Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
6
+ * Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
7
+ * un CLIENTE nunca es `ALL`.
8
+ * @enum {string}
9
+ */
10
+ var ClientLevelEnum;
11
+ (function (ClientLevelEnum) {
12
+ ClientLevelEnum["BRONZE"] = "BRONZE";
13
+ ClientLevelEnum["SILVER"] = "SILVER";
14
+ ClientLevelEnum["GOLD"] = "GOLD";
15
+ })(ClientLevelEnum || (exports.ClientLevelEnum = ClientLevelEnum = {}));
@@ -0,0 +1,6 @@
1
+ export declare class CancelFundingReferenceRequest {
2
+ /** Referencia Passport (PK de EqualityFundingReference_GT). */
3
+ reference: string;
4
+ directoryId: string;
5
+ idempotencyKey: string;
6
+ }
@@ -0,0 +1,31 @@
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.CancelFundingReferenceRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CancelFundingReferenceRequest {
15
+ }
16
+ exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MaxLength)(64),
20
+ __metadata("design:type", String)
21
+ ], CancelFundingReferenceRequest.prototype, "reference", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.MaxLength)(64),
25
+ __metadata("design:type", String)
26
+ ], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.MaxLength)(64),
30
+ __metadata("design:type", String)
31
+ ], CancelFundingReferenceRequest.prototype, "idempotencyKey", void 0);
@@ -0,0 +1,7 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+ export declare class CancelFundingReferenceResponse {
4
+ reference: string;
5
+ status: BenefitPaymentStatusEnum;
6
+ errorCode?: WalletFundingErrorCodeEnum;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelFundingReferenceResponse = void 0;
4
+ class CancelFundingReferenceResponse {
5
+ }
6
+ exports.CancelFundingReferenceResponse = CancelFundingReferenceResponse;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Request del cancel via Centro de Beneficios (spec 13 v2.0).
3
+ * `reference` viaja en el path, `directoryId` se resuelve del JWT.
4
+ * `providerModuleName` permite al marketplace rutear al publisher correcto
5
+ * sin tener que persistir el mapping (el wallet-app sabe el moduleName
6
+ * porque vino en la respuesta del authorize).
7
+ */
8
+ export declare class CancelFundingRequest {
9
+ idempotencyKey: string;
10
+ providerModuleName: string;
11
+ }
@@ -9,28 +9,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ResendOtpRequest = void 0;
13
- const class_transformer_1 = require("class-transformer");
12
+ exports.CancelFundingRequest = void 0;
14
13
  const class_validator_1 = require("class-validator");
15
14
  /**
16
- * Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
17
- * Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
18
- * identidad SIN password. `tenantId` obligatorio (DEC-064 el picker ya lo resolvió, NO "solo email").
19
- * El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
20
- * siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
15
+ * Request del cancel via Centro de Beneficios (spec 13 v2.0).
16
+ * `reference` viaja en el path, `directoryId` se resuelve del JWT.
17
+ * `providerModuleName` permite al marketplace rutear al publisher correcto
18
+ * sin tener que persistir el mapping (el wallet-app sabe el moduleName
19
+ * porque vino en la respuesta del authorize).
21
20
  */
22
- class ResendOtpRequest {
21
+ class CancelFundingRequest {
23
22
  }
24
- exports.ResendOtpRequest = ResendOtpRequest;
23
+ exports.CancelFundingRequest = CancelFundingRequest;
25
24
  __decorate([
26
- (0, class_transformer_1.Expose)(),
27
- (0, class_validator_1.IsEmail)(),
28
- (0, class_validator_1.IsNotEmpty)(),
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.MaxLength)(64),
29
27
  __metadata("design:type", String)
30
- ], ResendOtpRequest.prototype, "email", void 0);
28
+ ], CancelFundingRequest.prototype, "idempotencyKey", void 0);
31
29
  __decorate([
32
- (0, class_transformer_1.Expose)(),
33
30
  (0, class_validator_1.IsString)(),
34
- (0, class_validator_1.IsNotEmpty)(),
31
+ (0, class_validator_1.MaxLength)(128),
35
32
  __metadata("design:type", String)
36
- ], ResendOtpRequest.prototype, "tenantId", void 0);
33
+ ], CancelFundingRequest.prototype, "providerModuleName", void 0);
@@ -0,0 +1,14 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+ /**
4
+ * Response del cancel via Centro de Beneficios (spec 13 v2.0).
5
+ * `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
6
+ * REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
7
+ * (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
8
+ */
9
+ export declare class CancelFundingResponse {
10
+ reference: string;
11
+ status: BenefitPaymentStatusEnum;
12
+ errorCode?: WalletFundingErrorCodeEnum;
13
+ message?: string;
14
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelFundingResponse = void 0;
4
+ /**
5
+ * Response del cancel via Centro de Beneficios (spec 13 v2.0).
6
+ * `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
7
+ * REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
8
+ * (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
9
+ */
10
+ class CancelFundingResponse {
11
+ }
12
+ exports.CancelFundingResponse = CancelFundingResponse;
@@ -0,0 +1,3 @@
1
+ export declare class CancelWalletFundingRequest {
2
+ idempotencyKey: string;
3
+ }
@@ -0,0 +1,21 @@
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.CancelWalletFundingRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CancelWalletFundingRequest {
15
+ }
16
+ exports.CancelWalletFundingRequest = CancelWalletFundingRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MaxLength)(64),
20
+ __metadata("design:type", String)
21
+ ], CancelWalletFundingRequest.prototype, "idempotencyKey", void 0);
@@ -0,0 +1,7 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+ export declare class CancelWalletFundingResponse {
4
+ status: BenefitPaymentStatusEnum;
5
+ errorCode?: WalletFundingErrorCodeEnum;
6
+ reference?: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelWalletFundingResponse = void 0;
4
+ class CancelWalletFundingResponse {
5
+ }
6
+ exports.CancelWalletFundingResponse = CancelWalletFundingResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.264.0",
3
+ "version": "3.265.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,15 @@
1
+ import { IsString, IsInt, IsEnum, IsOptional } from 'class-validator';
2
+ import { MechanismType } from '../enums/MechanismType';
3
+ import { CurrencyId } from '../../currency/enums/CurrencyId';
4
+
5
+ export class AuthorizeCollectionMovementRequest {
6
+ @IsString() executionId!: string; // idempotencia (@IdempotencyController)
7
+ @IsString() directoryId!: string;
8
+ @IsString() provider!: string; // lo pone el motor desde la config
9
+ @IsEnum(MechanismType) mechanism!: MechanismType;
10
+ @IsInt() amount!: number; // ya convertido por el motor (FX previo)
11
+ @IsEnum(CurrencyId) currencyId!: CurrencyId;
12
+ @IsOptional() @IsString() intentId?: string;
13
+ @IsOptional() @IsString() chargeId?: string;
14
+ @IsOptional() @IsString() holdTxId?: string;
15
+ }
@@ -0,0 +1,9 @@
1
+ import { IsString, IsInt, IsEnum, IsOptional } from 'class-validator';
2
+ import { CollectionResultStatus } from '../enums/CollectionResultStatus';
3
+
4
+ export class AuthorizeCollectionMovementResponse {
5
+ @IsEnum(CollectionResultStatus) status!: CollectionResultStatus;
6
+ @IsInt() amount!: number; // reservado o cobrado
7
+ @IsOptional() @IsString() holdTxId?: string;
8
+ @IsOptional() @IsString() transactionId?: string;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { IsString, IsInt } from 'class-validator';
2
+
3
+ export class CollectRequest {
4
+ @IsString() ownerRef!: string;
5
+ @IsString() tenantId!: string;
6
+ @IsString() domain!: string;
7
+ @IsString() productId!: string;
8
+ @IsString() chargeId!: string;
9
+ @IsInt() amount!: number;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { IsString, IsInt, IsEnum } from 'class-validator';
2
+ import { CollectionResultStatus } from '../enums/CollectionResultStatus';
3
+
4
+ export class CollectResponse {
5
+ @IsString() intentId!: string;
6
+ @IsEnum(CollectionResultStatus) status!: CollectionResultStatus;
7
+ @IsInt() amountReserved!: number;
8
+ @IsInt() amountCollected!: number;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { IsString, IsInt, IsEnum } from 'class-validator';
2
+ import { CollectionResultStatus } from '../enums/CollectionResultStatus';
3
+ import { MechanismType } from '../enums/MechanismType';
4
+
5
+ export class CollectionResultEvent {
6
+ @IsString() attemptId!: string; // dedupe en el consumidor
7
+ @IsString() intentId!: string;
8
+ @IsString() domain!: string; // routing (filter policy)
9
+ @IsString() tenantId!: string;
10
+ @IsString() chargeId!: string;
11
+ @IsEnum(CollectionResultStatus) status!: CollectionResultStatus;
12
+ @IsEnum(MechanismType) mechanism!: MechanismType;
13
+ @IsInt() amount!: number; // reservado o cobrado según mecanismo
14
+ }
@@ -0,0 +1,21 @@
1
+ import { IsString, IsInt, IsOptional, IsEnum, IsObject } from 'class-validator';
2
+ import { CurrencyId } from '../../currency/enums/CurrencyId';
3
+
4
+ export class PendingChargeDto {
5
+ @IsString() chargeId!: string; // record_id / INSTALLMENT#n
6
+ @IsString() ownerRef!: string; // directoryId
7
+ @IsString() tenantId!: string; // FIADO | surekeep
8
+ @IsString() domain!: string; // une-credit | surekeep-retail
9
+ @IsString() parentDebtId!: string; // credit_id / CREDIT#id
10
+ @IsInt() installmentNumber!: number; // coupon_number / installment_number
11
+ @IsInt() amount!: number; // centavos
12
+ @IsEnum(CurrencyId) currency!: CurrencyId;
13
+ @IsString() dueDate!: string; // ISO date
14
+ @IsString() status!: string; // estado del cargo en el dominio (normalizado por el motor)
15
+ @IsOptional() @IsInt() principalAmount?: number;
16
+ @IsOptional() @IsInt() interestAmount?: number;
17
+ @IsOptional() @IsInt() taxAmount?: number;
18
+ @IsOptional() @IsInt() outstandingBalance?: number;
19
+ @IsOptional() @IsInt() amountCollected?: number;
20
+ @IsOptional() @IsObject() metadata?: Record<string, unknown>; // por-dominio (fiado_/loanco_interest, imei…)
21
+ }
@@ -0,0 +1,9 @@
1
+ import { IsString } from 'class-validator';
2
+
3
+ export class RegisterCollectibleRequest {
4
+ @IsString() ownerRef!: string;
5
+ @IsString() tenantId!: string;
6
+ @IsString() domain!: string;
7
+ @IsString() productId!: string;
8
+ @IsString() chargeId!: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ export enum CollectionResultStatus {
2
+ FULL = 'FULL',
3
+ PARTIAL = 'PARTIAL',
4
+ NONE = 'NONE',
5
+ }
@@ -0,0 +1,8 @@
1
+ export enum CollectionState {
2
+ PENDING = 'PENDING',
3
+ ATTEMPT = 'ATTEMPT',
4
+ RESERVED = 'RESERVED',
5
+ COLLECTED = 'COLLECTED',
6
+ AWAITING_FUNDS = 'AWAITING_FUNDS',
7
+ CANCELLED = 'CANCELLED',
8
+ }
@@ -0,0 +1,5 @@
1
+ export enum MechanismType {
2
+ USD_PREAUTH = 'USD_PREAUTH',
3
+ USD_DIRECT = 'USD_DIRECT',
4
+ MXN_DIRECT = 'MXN_DIRECT',
5
+ }
@@ -0,0 +1,7 @@
1
+ export enum SagaStep {
2
+ RESOLVE = 'RESOLVE',
3
+ PICK_SOURCE = 'PICK_SOURCE',
4
+ EXECUTE = 'EXECUTE',
5
+ PERSIST = 'PERSIST',
6
+ DISPATCH = 'DISPATCH',
7
+ }
@@ -0,0 +1,14 @@
1
+ // Enums
2
+ export * from './enums/MechanismType';
3
+ export * from './enums/CollectionState';
4
+ export * from './enums/SagaStep';
5
+ export * from './enums/CollectionResultStatus';
6
+
7
+ // DTOs
8
+ export * from './dtos/PendingChargeDto';
9
+ export * from './dtos/CollectRequest';
10
+ export * from './dtos/CollectResponse';
11
+ export * from './dtos/RegisterCollectibleRequest';
12
+ export * from './dtos/CollectionResultEvent';
13
+ export * from './dtos/AuthorizeCollectionMovementRequest';
14
+ export * from './dtos/AuthorizeCollectionMovementResponse';
package/src/index.ts CHANGED
@@ -153,3 +153,8 @@ export * as PhoneSales from './phoneSales';
153
153
  // (tarjetas, teléfonos, …). ExternalShippingStatus se reexporta acá desde `card/` sin moverlo,
154
154
  // para no romper a los consumidores actuales del namespace Card.
155
155
  export * as Shipping from './shipping';
156
+ // Collection: contrato del motor de cobro central (collection-engine-business) — dominio
157
+ // agnóstico de proveedores/cuentas. PendingChargeDto es la deuda genérica; CollectRequest/
158
+ // CollectResponse el contrato dominio↔motor; AuthorizeCollectionMovementRequest/Response el
159
+ // contrato motor↔processor. Ver spec 2026-07-29-motor-cobro-central-design.
160
+ export * as Collection from './collection';
@@ -1,11 +0,0 @@
1
- /**
2
- * Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
3
- * `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
4
- * TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
5
- * @enum {string}
6
- */
7
- export declare enum ModifiableByRoleEnum {
8
- SUPER_ADMIN = "super_admin",
9
- SOFOM_ADMIN = "sofom_admin",
10
- RETAILER_ADMIN = "retailer_admin"
11
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModifiableByRoleEnum = void 0;
4
- /**
5
- * Rol RBAC mínimo que puede modificar un parámetro (RBAC a nivel de parámetro, modelo-datos §8).
6
- * `retailer_admin` = "Admin VentasLuga" de M6 §8. Valores = identificadores de rol de RBAC F0.
7
- * TD-004: confirmar mapeo super_admin ↔ platform_super_admin con el naming real de F0.
8
- * @enum {string}
9
- */
10
- var ModifiableByRoleEnum;
11
- (function (ModifiableByRoleEnum) {
12
- ModifiableByRoleEnum["SUPER_ADMIN"] = "super_admin";
13
- ModifiableByRoleEnum["SOFOM_ADMIN"] = "sofom_admin";
14
- ModifiableByRoleEnum["RETAILER_ADMIN"] = "retailer_admin";
15
- })(ModifiableByRoleEnum || (exports.ModifiableByRoleEnum = ModifiableByRoleEnum = {}));
@@ -1,17 +0,0 @@
1
- import { CurrencyId } from '../../currency/enums/CurrencyId';
2
- /**
3
- * Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
4
- * - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
5
- * - Passport (MX): por red → `fixed` + `percentage`.
6
- * Response DTO — sin decoradores de validación.
7
- */
8
- export declare class CashInFeeDto {
9
- /** Comisión fija, en la moneda del país. */
10
- fixed?: number;
11
- /** Porcentaje del monto depositado (0–100). */
12
- percentage?: number;
13
- /** Tope máximo de comisión (GreenDot: el asociado cobra hasta este cap). */
14
- cap?: number;
15
- /** Moneda del fee: USD (GreenDot) | MXN (Passport). */
16
- currency: CurrencyId;
17
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CashInFeeDto = void 0;
4
- /**
5
- * Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
6
- * - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
7
- * - Passport (MX): por red → `fixed` + `percentage`.
8
- * Response DTO — sin decoradores de validación.
9
- */
10
- class CashInFeeDto {
11
- }
12
- exports.CashInFeeDto = CashInFeeDto;
@@ -1,22 +0,0 @@
1
- import { MfaMethodEnum } from '../enums/MfaMethodEnum';
2
- /**
3
- * Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
4
- * Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
5
- * identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
6
- * El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
7
- * siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
8
- */
9
- export declare class ResendOtpRequest {
10
- email: string;
11
- tenantId: string;
12
- }
13
- /**
14
- * Respuesta del resend-otp. `session`/`mfaMethod` frescos del nuevo challenge CUSTOM_AUTH.
15
- * Plain sin validators (no validamos lo que mandamos al cliente — fiado-validation-and-dtos § 7).
16
- * Ambos opcionales: en los caminos de rechazo silencioso (anti-enumeración) o ramas sin CUSTOM_AUTH
17
- * el server responde 200 genérico sin session ni método.
18
- */
19
- export interface ResendOtpResponse {
20
- session?: string;
21
- mfaMethod?: MfaMethodEnum;
22
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
3
- * Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
4
- * `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
5
- * server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
6
- * scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
7
- */
8
- export declare class ResendSelfRegisterOtpRequest {
9
- tenantId: string;
10
- email: string;
11
- }