@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.
@@ -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
- externalTransactionId?: string;
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
- provider: Provider;
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 = {}));
@@ -5,5 +5,6 @@ export declare enum ProductTypeEnum {
5
5
  STP_SERV_SA = "STP_SERV_SA",
6
6
  P2P = "P2P",
7
7
  BBVA = "BBVA",
8
- FIADO_BUSINESS = "FIADO_BUSINESS"
8
+ FIADO_BUSINESS = "FIADO_BUSINESS",
9
+ CP = "CP"
9
10
  }
@@ -10,4 +10,5 @@ var ProductTypeEnum;
10
10
  ProductTypeEnum["P2P"] = "P2P";
11
11
  ProductTypeEnum["BBVA"] = "BBVA";
12
12
  ProductTypeEnum["FIADO_BUSINESS"] = "FIADO_BUSINESS";
13
+ ProductTypeEnum["CP"] = "CP";
13
14
  })(ProductTypeEnum || (exports.ProductTypeEnum = ProductTypeEnum = {}));
@@ -5,5 +5,6 @@ export declare class Product {
5
5
  subType: string;
6
6
  details: ProductDetail;
7
7
  relatedProductId: string;
8
+ targetRelatedProductId: string;
8
9
  originalRelatedId: string;
9
10
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.8.46",
3
+ "version": "1.8.48",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -5,7 +5,8 @@ export class BankAccountP2pTransferResponse {
5
5
  from_account_id: string;
6
6
  to_account_id: string;
7
7
  transactionNumber?: string;
8
- externalTransactionId?: string;
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
- provider: Provider;
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
  }
@@ -6,4 +6,5 @@ export enum ProductTypeEnum {
6
6
  P2P = "P2P",
7
7
  BBVA = "BBVA",
8
8
  FIADO_BUSINESS = "FIADO_BUSINESS",
9
+ CP = "CP",
9
10
  }
@@ -17,6 +17,9 @@ export class Product {
17
17
  @IsString()
18
18
  relatedProductId: string;
19
19
 
20
+ @IsString()
21
+ targetRelatedProductId: string;
22
+
20
23
  @IsString()
21
24
  @IsOptional()
22
25
  originalRelatedId: string;
@@ -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;