@fiado/type-kit 3.262.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.
- package/bin/collection/dtos/AuthorizeCollectionMovementRequest.d.ts +13 -0
- package/bin/collection/dtos/AuthorizeCollectionMovementRequest.js +57 -0
- package/bin/collection/dtos/AuthorizeCollectionMovementResponse.d.ts +7 -0
- package/bin/collection/dtos/AuthorizeCollectionMovementResponse.js +35 -0
- package/bin/collection/dtos/CollectRequest.d.ts +8 -0
- package/bin/collection/dtos/CollectRequest.js +40 -0
- package/bin/collection/dtos/CollectResponse.d.ts +7 -0
- package/bin/collection/dtos/CollectResponse.js +33 -0
- package/bin/collection/dtos/CollectionResultEvent.d.ts +12 -0
- package/bin/collection/dtos/CollectionResultEvent.js +50 -0
- package/bin/collection/dtos/PendingChargeDto.d.ts +19 -0
- package/bin/collection/dtos/PendingChargeDto.js +87 -0
- package/bin/collection/dtos/RegisterCollectibleRequest.d.ts +7 -0
- package/bin/collection/dtos/RegisterCollectibleRequest.js +36 -0
- package/bin/collection/enums/CollectionResultStatus.d.ts +5 -0
- package/bin/collection/enums/CollectionResultStatus.js +9 -0
- package/bin/collection/enums/CollectionState.d.ts +8 -0
- package/bin/collection/enums/CollectionState.js +12 -0
- package/bin/collection/enums/MechanismType.d.ts +5 -0
- package/bin/collection/enums/MechanismType.js +9 -0
- package/bin/collection/enums/SagaStep.d.ts +7 -0
- package/bin/collection/enums/SagaStep.js +11 -0
- package/bin/collection/index.d.ts +11 -0
- package/bin/collection/index.js +29 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +6 -1
- package/bin/retailCatalog/dtos/requests/InventoryLensQuery.d.ts +13 -0
- package/bin/retailCatalog/dtos/requests/InventoryLensQuery.js +30 -0
- package/bin/retailCatalog/dtos/responses/InventoryLensResponse.d.ts +106 -0
- package/bin/retailCatalog/dtos/responses/InventoryLensResponse.js +2 -0
- package/bin/retailCatalog/enums/InventoryLensFilterEnum.d.ts +21 -0
- package/bin/retailCatalog/enums/InventoryLensFilterEnum.js +25 -0
- package/bin/retailCatalog/enums/InventoryLensUnavailableReasonEnum.d.ts +14 -0
- package/bin/retailCatalog/enums/InventoryLensUnavailableReasonEnum.js +18 -0
- package/bin/retailCatalog/enums/InventoryTransferReasonEnum.d.ts +11 -0
- package/bin/retailCatalog/enums/InventoryTransferReasonEnum.js +15 -0
- package/bin/retailCatalog/index.d.ts +5 -0
- package/bin/retailCatalog/index.js +6 -0
- package/bin/retailWizard/events/SaleCancelledV2.d.ts +20 -0
- package/bin/retailWizard/events/SaleCancelledV2.js +2 -0
- package/bin/retailWizard/events/SaleCompletedV2.d.ts +41 -0
- package/bin/retailWizard/events/SaleCompletedV2.js +2 -0
- package/bin/retailWizard/index.d.ts +2 -0
- package/bin/retailWizard/index.js +2 -0
- package/package.json +1 -1
- package/src/collection/dtos/AuthorizeCollectionMovementRequest.ts +15 -0
- package/src/collection/dtos/AuthorizeCollectionMovementResponse.ts +9 -0
- package/src/collection/dtos/CollectRequest.ts +10 -0
- package/src/collection/dtos/CollectResponse.ts +9 -0
- package/src/collection/dtos/CollectionResultEvent.ts +14 -0
- package/src/collection/dtos/PendingChargeDto.ts +21 -0
- package/src/collection/dtos/RegisterCollectibleRequest.ts +9 -0
- package/src/collection/enums/CollectionResultStatus.ts +5 -0
- package/src/collection/enums/CollectionState.ts +8 -0
- package/src/collection/enums/MechanismType.ts +5 -0
- package/src/collection/enums/SagaStep.ts +7 -0
- package/src/collection/index.ts +14 -0
- package/src/index.ts +5 -0
- package/src/retailCatalog/dtos/requests/InventoryLensQuery.ts +16 -0
- package/src/retailCatalog/dtos/responses/InventoryLensResponse.ts +123 -0
- package/src/retailCatalog/enums/InventoryLensFilterEnum.ts +21 -0
- package/src/retailCatalog/enums/InventoryLensUnavailableReasonEnum.ts +14 -0
- package/src/retailCatalog/enums/InventoryTransferReasonEnum.ts +11 -0
- package/src/retailCatalog/index.ts +7 -0
- package/src/retailWizard/events/SaleCancelledV2.ts +20 -0
- package/src/retailWizard/events/SaleCompletedV2.ts +42 -0
- package/src/retailWizard/index.ts +2 -0
|
@@ -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,35 @@
|
|
|
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.AuthorizeCollectionMovementResponse = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const CollectionResultStatus_1 = require("../enums/CollectionResultStatus");
|
|
15
|
+
class AuthorizeCollectionMovementResponse {
|
|
16
|
+
}
|
|
17
|
+
exports.AuthorizeCollectionMovementResponse = AuthorizeCollectionMovementResponse;
|
|
18
|
+
__decorate([
|
|
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)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], AuthorizeCollectionMovementResponse.prototype, "holdTxId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], AuthorizeCollectionMovementResponse.prototype, "transactionId", void 0);
|
|
@@ -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,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,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,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,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,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,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);
|
package/bin/index.d.ts
CHANGED
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,13 @@
|
|
|
1
|
+
import { InventoryLensFilterEnum } from '../../enums/InventoryLensFilterEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Query string de `GET /backoffice/inventory/lens`. SureKeep Fase 3 — pista Retail.
|
|
4
|
+
*
|
|
5
|
+
* `filter` es **obligatorio** a propósito: no hay un tab «por defecto» razonable, y caer a uno en
|
|
6
|
+
* silencio le devolvería al front una vista que no pidió. Un filtro ausente o desconocido es un 400.
|
|
7
|
+
*
|
|
8
|
+
* No lleva `retailerId`: el scope del endpoint es LEVEL_1 y el retailer se **impone desde el token**,
|
|
9
|
+
* nunca se acepta del request (si viajara, sería un IDOR entre cadenas).
|
|
10
|
+
*/
|
|
11
|
+
export declare class InventoryLensQuery {
|
|
12
|
+
filter: InventoryLensFilterEnum;
|
|
13
|
+
}
|
|
@@ -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.InventoryLensQuery = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const InventoryLensFilterEnum_1 = require("../../enums/InventoryLensFilterEnum");
|
|
15
|
+
/**
|
|
16
|
+
* Query string de `GET /backoffice/inventory/lens`. SureKeep Fase 3 — pista Retail.
|
|
17
|
+
*
|
|
18
|
+
* `filter` es **obligatorio** a propósito: no hay un tab «por defecto» razonable, y caer a uno en
|
|
19
|
+
* silencio le devolvería al front una vista que no pidió. Un filtro ausente o desconocido es un 400.
|
|
20
|
+
*
|
|
21
|
+
* No lleva `retailerId`: el scope del endpoint es LEVEL_1 y el retailer se **impone desde el token**,
|
|
22
|
+
* nunca se acepta del request (si viajara, sería un IDOR entre cadenas).
|
|
23
|
+
*/
|
|
24
|
+
class InventoryLensQuery {
|
|
25
|
+
}
|
|
26
|
+
exports.InventoryLensQuery = InventoryLensQuery;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsEnum)(InventoryLensFilterEnum_1.InventoryLensFilterEnum),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], InventoryLensQuery.prototype, "filter", void 0);
|