@fiado/type-kit 1.8.46 → 1.8.48
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/account/dtos/BankAccountP2pTransferResponse.d.ts +2 -1
- package/bin/account/dtos/ExecuteP2pOperationRequest.d.ts +1 -2
- package/bin/productCatalog/enums/ProductSubtypeEnum.d.ts +9 -1
- package/bin/productCatalog/enums/ProductSubtypeEnum.js +10 -0
- package/bin/productCatalog/enums/ProductTypeEnum.d.ts +2 -1
- package/bin/productCatalog/enums/ProductTypeEnum.js +1 -0
- package/bin/transaction/dtos/Product.d.ts +1 -0
- package/bin/transaction/dtos/Product.js +4 -0
- package/bin/transaction/dtos/ProductDetail.d.ts +2 -0
- package/bin/transaction/dtos/ProductDetail.js +10 -0
- package/package.json +1 -1
- package/src/account/dtos/BankAccountP2pTransferResponse.ts +2 -1
- package/src/account/dtos/ExecuteP2pOperationRequest.ts +1 -2
- package/src/productCatalog/enums/ProductSubtypeEnum.ts +11 -0
- package/src/productCatalog/enums/ProductTypeEnum.ts +1 -0
- package/src/transaction/dtos/Product.ts +3 -0
- package/src/transaction/dtos/ProductDetail.ts +8 -0
|
@@ -4,7 +4,8 @@ export declare class BankAccountP2pTransferResponse {
|
|
|
4
4
|
from_account_id: string;
|
|
5
5
|
to_account_id: string;
|
|
6
6
|
transactionNumber?: string;
|
|
7
|
-
|
|
7
|
+
sourceExternalTransactionId?: string;
|
|
8
|
+
targetExternalTransactionId?: string;
|
|
8
9
|
amount: number;
|
|
9
10
|
status: string;
|
|
10
11
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { CountryId } from "../../country";
|
|
2
2
|
import { BankAccountP2pTransferType } from "../enums/BankAccountP2pTransferType";
|
|
3
|
-
import { Provider } from "../../provider";
|
|
4
3
|
export declare class ExecuteP2pOperationRequest {
|
|
5
4
|
transferType: BankAccountP2pTransferType;
|
|
6
5
|
source: string;
|
|
7
6
|
target: string;
|
|
8
7
|
amount: number;
|
|
9
8
|
currencyId: CountryId;
|
|
10
|
-
|
|
9
|
+
transactionNumber?: string;
|
|
11
10
|
}
|
|
@@ -37,5 +37,13 @@ export declare enum ProductSubtypeEnum {
|
|
|
37
37
|
FIADO_BUSINESS_PROV = "PROV",
|
|
38
38
|
FIADO_BUSINESS_REV_PROV = "REV_PROV",
|
|
39
39
|
FIADO_BUSINESS_ADJUSTMENT = "ADJUSTMENT",
|
|
40
|
-
FIADO_BUSINESS_REV_ADJUSTMENT = "REV_ADJUSTMENT"
|
|
40
|
+
FIADO_BUSINESS_REV_ADJUSTMENT = "REV_ADJUSTMENT",
|
|
41
|
+
P2P_CP_OTHER_OUT = "OTHER_OUT",
|
|
42
|
+
P2P_CP_OTHER_IN = "OTHER_IN",
|
|
43
|
+
P2P_CP_POCKET = "POCKET",
|
|
44
|
+
P2P_TERN_OTHER_OUT = "OTHER_OUT",
|
|
45
|
+
P2P_TERN_OTHER_IN = "OTHER_IN",
|
|
46
|
+
P2P_TERN_POCKET = "POCKET",
|
|
47
|
+
CP_ACH_OUT = "ACH_OUT",
|
|
48
|
+
CP_ACH_IN = "ACH_IN"
|
|
41
49
|
}
|
|
@@ -49,4 +49,14 @@ var ProductSubtypeEnum;
|
|
|
49
49
|
ProductSubtypeEnum["FIADO_BUSINESS_REV_PROV"] = "REV_PROV";
|
|
50
50
|
ProductSubtypeEnum["FIADO_BUSINESS_ADJUSTMENT"] = "ADJUSTMENT";
|
|
51
51
|
ProductSubtypeEnum["FIADO_BUSINESS_REV_ADJUSTMENT"] = "REV_ADJUSTMENT";
|
|
52
|
+
// FIADO INC
|
|
53
|
+
ProductSubtypeEnum["P2P_CP_OTHER_OUT"] = "OTHER_OUT";
|
|
54
|
+
ProductSubtypeEnum["P2P_CP_OTHER_IN"] = "OTHER_IN";
|
|
55
|
+
ProductSubtypeEnum["P2P_CP_POCKET"] = "POCKET";
|
|
56
|
+
ProductSubtypeEnum["P2P_TERN_OTHER_OUT"] = "OTHER_OUT";
|
|
57
|
+
ProductSubtypeEnum["P2P_TERN_OTHER_IN"] = "OTHER_IN";
|
|
58
|
+
ProductSubtypeEnum["P2P_TERN_POCKET"] = "POCKET";
|
|
59
|
+
// CP
|
|
60
|
+
ProductSubtypeEnum["CP_ACH_OUT"] = "ACH_OUT";
|
|
61
|
+
ProductSubtypeEnum["CP_ACH_IN"] = "ACH_IN";
|
|
52
62
|
})(ProductSubtypeEnum || (exports.ProductSubtypeEnum = ProductSubtypeEnum = {}));
|
|
@@ -33,6 +33,10 @@ __decorate([
|
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], Product.prototype, "relatedProductId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Product.prototype, "targetRelatedProductId", void 0);
|
|
36
40
|
__decorate([
|
|
37
41
|
(0, class_validator_1.IsString)(),
|
|
38
42
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -3,10 +3,12 @@ export declare class ProductDetail {
|
|
|
3
3
|
sourceNumber: string;
|
|
4
4
|
sourceBankName: string;
|
|
5
5
|
sourceClabe: string;
|
|
6
|
+
sourceAccountNumber: string;
|
|
6
7
|
targetName: string;
|
|
7
8
|
targetNumber: string;
|
|
8
9
|
targetBankName: string;
|
|
9
10
|
targetClabe: string;
|
|
10
11
|
trackingNumber: string;
|
|
12
|
+
targetAccountNumber: string;
|
|
11
13
|
description: string;
|
|
12
14
|
}
|
|
@@ -34,6 +34,11 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], ProductDetail.prototype, "sourceClabe", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ProductDetail.prototype, "sourceAccountNumber", void 0);
|
|
37
42
|
__decorate([
|
|
38
43
|
(0, class_validator_1.IsOptional)(),
|
|
39
44
|
(0, class_validator_1.IsString)(),
|
|
@@ -59,6 +64,11 @@ __decorate([
|
|
|
59
64
|
(0, class_validator_1.IsString)(),
|
|
60
65
|
__metadata("design:type", String)
|
|
61
66
|
], ProductDetail.prototype, "trackingNumber", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], ProductDetail.prototype, "targetAccountNumber", void 0);
|
|
62
72
|
__decorate([
|
|
63
73
|
(0, class_validator_1.IsOptional)(),
|
|
64
74
|
(0, class_validator_1.IsString)(),
|
package/package.json
CHANGED
|
@@ -5,7 +5,8 @@ export class BankAccountP2pTransferResponse {
|
|
|
5
5
|
from_account_id: string;
|
|
6
6
|
to_account_id: string;
|
|
7
7
|
transactionNumber?: string;
|
|
8
|
-
|
|
8
|
+
sourceExternalTransactionId?: string;
|
|
9
|
+
targetExternalTransactionId?: string;
|
|
9
10
|
amount: number;
|
|
10
11
|
status: string;
|
|
11
12
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {CountryId} from "../../country";
|
|
2
2
|
import {BankAccountP2pTransferType} from "../enums/BankAccountP2pTransferType";
|
|
3
|
-
import {Provider} from "../../provider";
|
|
4
3
|
|
|
5
4
|
export class ExecuteP2pOperationRequest {
|
|
6
5
|
transferType: BankAccountP2pTransferType;
|
|
@@ -8,5 +7,5 @@ export class ExecuteP2pOperationRequest {
|
|
|
8
7
|
target: string;
|
|
9
8
|
amount: number;
|
|
10
9
|
currencyId: CountryId;
|
|
11
|
-
|
|
10
|
+
transactionNumber?: string;
|
|
12
11
|
}
|
|
@@ -53,4 +53,15 @@ export enum ProductSubtypeEnum {
|
|
|
53
53
|
FIADO_BUSINESS_ADJUSTMENT = "ADJUSTMENT",
|
|
54
54
|
FIADO_BUSINESS_REV_ADJUSTMENT = "REV_ADJUSTMENT",
|
|
55
55
|
|
|
56
|
+
// FIADO INC
|
|
57
|
+
P2P_CP_OTHER_OUT = "OTHER_OUT",
|
|
58
|
+
P2P_CP_OTHER_IN = "OTHER_IN",
|
|
59
|
+
P2P_CP_POCKET = "POCKET",
|
|
60
|
+
P2P_TERN_OTHER_OUT = "OTHER_OUT",
|
|
61
|
+
P2P_TERN_OTHER_IN = "OTHER_IN",
|
|
62
|
+
P2P_TERN_POCKET = "POCKET",
|
|
63
|
+
|
|
64
|
+
// CP
|
|
65
|
+
CP_ACH_OUT = "ACH_OUT",
|
|
66
|
+
CP_ACH_IN = "ACH_IN",
|
|
56
67
|
}
|
|
@@ -18,6 +18,10 @@ export class ProductDetail {
|
|
|
18
18
|
@IsString()
|
|
19
19
|
sourceClabe: string;
|
|
20
20
|
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsString()
|
|
23
|
+
sourceAccountNumber: string;
|
|
24
|
+
|
|
21
25
|
@IsOptional()
|
|
22
26
|
@IsString()
|
|
23
27
|
targetName: string;
|
|
@@ -38,6 +42,10 @@ export class ProductDetail {
|
|
|
38
42
|
@IsString()
|
|
39
43
|
trackingNumber: string;
|
|
40
44
|
|
|
45
|
+
@IsOptional()
|
|
46
|
+
@IsString()
|
|
47
|
+
targetAccountNumber: string;
|
|
48
|
+
|
|
41
49
|
@IsOptional()
|
|
42
50
|
@IsString()
|
|
43
51
|
description: string;
|