@fiado/type-kit 1.1.56 → 1.1.57

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 (98) hide show
  1. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  2. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  3. package/bin/transactionProcessor/dtos/AmountInfo.d.ts +6 -0
  4. package/bin/transactionProcessor/dtos/AmountInfo.js +6 -0
  5. package/bin/transactionProcessor/dtos/AmountInfoItem.d.ts +4 -0
  6. package/bin/transactionProcessor/dtos/AmountInfoItem.js +6 -0
  7. package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.d.ts +17 -0
  8. package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.js +6 -0
  9. package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.d.ts +16 -0
  10. package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.js +6 -0
  11. package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.d.ts → AuthorizeP2pTransactionRequest.d.ts} +1 -0
  12. package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.d.ts → AuthorizePocketTransactionRequest.d.ts} +2 -1
  13. package/{src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts → bin/transactionProcessor/dtos/CardInfo.d.ts} +6 -6
  14. package/bin/{pomelo/dtos/PomeloCreateUserRequest.js → transactionProcessor/dtos/CardInfo.js} +4 -0
  15. package/bin/transactionProcessor/dtos/InstallmentsInfo.d.ts +7 -0
  16. package/bin/transactionProcessor/dtos/InstallmentsInfo.js +6 -0
  17. package/bin/transactionProcessor/dtos/{private/PrivateProcessorMerchantInfo.d.ts → MerchantInfo.d.ts} +1 -1
  18. package/bin/transactionProcessor/dtos/MerchantInfo.js +6 -0
  19. package/bin/transactionProcessor/dtos/{private/PrivateProcessorTransactionInfo.d.ts → TransactionInfo.d.ts} +1 -1
  20. package/bin/transactionProcessor/dtos/TransactionInfo.js +6 -0
  21. package/bin/transactionProcessor/index.d.ts +10 -8
  22. package/bin/transactionProcessor/index.js +10 -8
  23. package/package.json +1 -1
  24. package/src/transaction/dtos/TransactionCreateRequest.ts +1 -1
  25. package/src/transactionProcessor/dtos/AmountInfo.ts +7 -0
  26. package/src/transactionProcessor/dtos/AmountInfoItem.ts +4 -0
  27. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +18 -0
  28. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +17 -0
  29. package/src/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.ts → AuthorizeP2pTransactionRequest.ts} +1 -0
  30. package/src/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.ts → AuthorizePocketTransactionRequest.ts} +2 -1
  31. package/{bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts → src/transactionProcessor/dtos/CardInfo.ts} +6 -6
  32. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +7 -0
  33. package/src/transactionProcessor/dtos/{private/PrivateProcessorMerchantInfo.ts → MerchantInfo.ts} +1 -1
  34. package/src/transactionProcessor/dtos/{private/PrivateProcessorTransactionInfo.ts → TransactionInfo.ts} +1 -1
  35. package/src/transactionProcessor/index.ts +10 -8
  36. package/bin/account/dtos/AccountResponse.d.ts +0 -21
  37. package/bin/account/dtos/AccountResponse.js +0 -6
  38. package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
  39. package/bin/account/dtos/PocketCreateRequest.js +0 -31
  40. package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
  41. package/bin/account/dtos/PocketCreateResponse.js +0 -6
  42. package/bin/account/enums/AccountStatus.d.ts +0 -5
  43. package/bin/account/enums/AccountStatus.js +0 -9
  44. package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
  45. package/bin/card/dtos/CardCreateRequest.js +0 -176
  46. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
  47. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
  48. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
  49. package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
  50. package/bin/pomelo/enums/CountryEnum.js +0 -12
  51. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
  52. package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
  53. package/bin/pomelo/enums/SexEnum.d.ts +0 -4
  54. package/bin/pomelo/enums/SexEnum.js +0 -8
  55. package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
  56. package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
  57. package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
  58. package/bin/pomelo/enums/UserStatusEnum.js +0 -8
  59. package/bin/pomelo/index.d.ts +0 -7
  60. package/bin/pomelo/index.js +0 -25
  61. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  62. package/bin/tern/dtos/TernAddress.js +0 -40
  63. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  64. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  65. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
  66. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  67. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  68. package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
  69. package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
  70. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  71. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  72. package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
  73. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  74. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  75. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  76. package/bin/tern/dtos/TernGetUserRequest.js +0 -20
  77. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  78. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  79. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  80. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  81. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  82. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  83. package/bin/tern/index.d.ts +0 -11
  84. package/bin/tern/index.js +0 -29
  85. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
  86. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
  87. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
  88. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
  89. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
  90. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
  91. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
  92. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
  93. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
  94. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +0 -7
  95. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +0 -4
  96. package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +0 -17
  97. /package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.js → AuthorizeP2pTransactionRequest.js} +0 -0
  98. /package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.js → AuthorizePocketTransactionRequest.js} +0 -0
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsValueValid = exports.CardUpdateKeyConstraint = void 0;
9
+ exports.CardUpdateKeyConstraint = void 0;
10
+ exports.IsValueValid = IsValueValid;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const Status_1 = require("../enums/Status");
12
13
  const UpdateKey_1 = require("../enums/UpdateKey");
@@ -54,4 +55,3 @@ function IsValueValid(validationOptions) {
54
55
  });
55
56
  };
56
57
  }
57
- exports.IsValueValid = IsValueValid;
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
9
+ exports.IsPhoneNumberConstraint = void 0;
10
+ exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const regex_1 = require("../../helpers/constans/regex");
12
13
  let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
@@ -33,4 +34,3 @@ function IsPhoneNumberFiado(validationOptions) {
33
34
  });
34
35
  };
35
36
  }
36
- exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
@@ -0,0 +1,6 @@
1
+ import { AmountInfoItem } from "./AmountInfoItem";
2
+ export declare class AmountInfo {
3
+ transaction: AmountInfoItem;
4
+ settlement: AmountInfoItem;
5
+ local: AmountInfoItem;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AmountInfo = void 0;
4
+ class AmountInfo {
5
+ }
6
+ exports.AmountInfo = AmountInfo;
@@ -0,0 +1,4 @@
1
+ export declare class AmountInfoItem {
2
+ total: number;
3
+ currencyId: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AmountInfoItem = void 0;
4
+ class AmountInfoItem {
5
+ }
6
+ exports.AmountInfoItem = AmountInfoItem;
@@ -0,0 +1,17 @@
1
+ import { TransactionInfo } from "./TransactionInfo";
2
+ import { MerchantInfo } from "./MerchantInfo";
3
+ import { CardInfo } from "./CardInfo";
4
+ import { AmountInfo } from "./AmountInfo";
5
+ import { CountryId } from "../../country";
6
+ import { InstallmentsInfo } from "./InstallmentsInfo";
7
+ export declare class AuthorizeCreditCardAdjustmentRequest {
8
+ idempotencyKey: string;
9
+ externalUserId: string;
10
+ cardInfo: CardInfo;
11
+ productCatalogId: string;
12
+ merchantInfo: MerchantInfo;
13
+ amountInfo: AmountInfo;
14
+ transactionInfo: TransactionInfo;
15
+ countryId: CountryId;
16
+ installments: InstallmentsInfo;
17
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizeCreditCardAdjustmentRequest = void 0;
4
+ class AuthorizeCreditCardAdjustmentRequest {
5
+ }
6
+ exports.AuthorizeCreditCardAdjustmentRequest = AuthorizeCreditCardAdjustmentRequest;
@@ -0,0 +1,16 @@
1
+ import { CardInfo } from "./CardInfo";
2
+ import { MerchantInfo } from "./MerchantInfo";
3
+ import { AmountInfo } from "./AmountInfo";
4
+ import { TransactionInfo } from "./TransactionInfo";
5
+ import { CountryId } from "../../country";
6
+ export declare class AuthorizeCreditCardPurchaseRequest {
7
+ idempotencyKey: string;
8
+ externalUserId: string;
9
+ cardInfo: CardInfo | null;
10
+ productCatalogId: string;
11
+ merchantInfo: MerchantInfo;
12
+ amountInfo: AmountInfo;
13
+ transactionInfo: TransactionInfo;
14
+ countryId: CountryId;
15
+ additionalData: any;
16
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizeCreditCardPurchaseRequest = void 0;
4
+ class AuthorizeCreditCardPurchaseRequest {
5
+ }
6
+ exports.AuthorizeCreditCardPurchaseRequest = AuthorizeCreditCardPurchaseRequest;
@@ -1,5 +1,6 @@
1
1
  export declare class AuthorizeP2pTransactionRequest {
2
2
  idempotencyKey: string;
3
+ productCatalogId: string;
3
4
  targetDirectoryId: string;
4
5
  amount: number;
5
6
  }
@@ -1,6 +1,7 @@
1
- import { OperationEnum } from "../../../transaction";
1
+ import { OperationEnum } from "../../transaction";
2
2
  export declare class AuthorizePocketTransactionRequest {
3
3
  idempotencyKey: string;
4
+ productCatalogId: string;
4
5
  targetPocketId: string;
5
6
  operation: OperationEnum;
6
7
  amount: number;
@@ -1,6 +1,6 @@
1
- export class PrivateProcessorCardInfo {
2
- productType: string;
3
- lastFour: string;
4
- provider: string;
5
- externalCardId: string;
6
- }
1
+ export declare class CardInfo {
2
+ productType: string;
3
+ lastFour: string;
4
+ provider: string;
5
+ externalCardId: string;
6
+ }
@@ -1,2 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardInfo = void 0;
4
+ class CardInfo {
5
+ }
6
+ exports.CardInfo = CardInfo;
@@ -0,0 +1,7 @@
1
+ export declare class InstallmentsInfo {
2
+ quantity: string;
3
+ creditType: string;
4
+ gracePeriod: string;
5
+ currentInstallment: string;
6
+ promotionType: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstallmentsInfo = void 0;
4
+ class InstallmentsInfo {
5
+ }
6
+ exports.InstallmentsInfo = InstallmentsInfo;
@@ -1,4 +1,4 @@
1
- export declare class PrivateProcessorMerchantInfo {
1
+ export declare class MerchantInfo {
2
2
  id: string;
3
3
  address: string;
4
4
  name: string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MerchantInfo = void 0;
4
+ class MerchantInfo {
5
+ }
6
+ exports.MerchantInfo = MerchantInfo;
@@ -1,4 +1,4 @@
1
- export declare class PrivateProcessorTransactionInfo {
1
+ export declare class TransactionInfo {
2
2
  id: string;
3
3
  type: string;
4
4
  network: string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionInfo = void 0;
4
+ class TransactionInfo {
5
+ }
6
+ exports.TransactionInfo = TransactionInfo;
@@ -1,9 +1,11 @@
1
- export * from './dtos/private/PrivateTransactionProcessorRequest';
2
- export * from './dtos/private/PrivateProcessorTransactionInfo';
3
- export * from './dtos/private/PrivateProcessorMerchantInfo';
4
- export * from './dtos/private/PrivateProcessorCardInfo';
5
- export * from './dtos/private/PrivateProcessorAmountInfo';
6
- export * from './dtos/private/PrivateProcessorAmountInfoItem';
7
- export * from './dtos/private/AuthorizeP2pTransactionRequest';
8
- export * from './dtos/private/AuthorizePocketTransactionRequest';
1
+ export * from './dtos/AmountInfo';
2
+ export * from './dtos/AmountInfoItem';
3
+ export * from './dtos/AuthorizeCreditCardAdjustmentRequest';
4
+ export * from './dtos/AuthorizeCreditCardPurchaseRequest';
5
+ export * from './dtos/AuthorizeP2pTransactionRequest';
6
+ export * from './dtos/AuthorizePocketTransactionRequest';
7
+ export * from './dtos/CardInfo';
8
+ export * from './dtos/InstallmentsInfo';
9
+ export * from './dtos/MerchantInfo';
10
+ export * from './dtos/TransactionInfo';
9
11
  export * from './enums/TransactionProcessorCodesEnum';
@@ -14,12 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./dtos/private/PrivateTransactionProcessorRequest"), exports);
18
- __exportStar(require("./dtos/private/PrivateProcessorTransactionInfo"), exports);
19
- __exportStar(require("./dtos/private/PrivateProcessorMerchantInfo"), exports);
20
- __exportStar(require("./dtos/private/PrivateProcessorCardInfo"), exports);
21
- __exportStar(require("./dtos/private/PrivateProcessorAmountInfo"), exports);
22
- __exportStar(require("./dtos/private/PrivateProcessorAmountInfoItem"), exports);
23
- __exportStar(require("./dtos/private/AuthorizeP2pTransactionRequest"), exports);
24
- __exportStar(require("./dtos/private/AuthorizePocketTransactionRequest"), exports);
17
+ __exportStar(require("./dtos/AmountInfo"), exports);
18
+ __exportStar(require("./dtos/AmountInfoItem"), exports);
19
+ __exportStar(require("./dtos/AuthorizeCreditCardAdjustmentRequest"), exports);
20
+ __exportStar(require("./dtos/AuthorizeCreditCardPurchaseRequest"), exports);
21
+ __exportStar(require("./dtos/AuthorizeP2pTransactionRequest"), exports);
22
+ __exportStar(require("./dtos/AuthorizePocketTransactionRequest"), exports);
23
+ __exportStar(require("./dtos/CardInfo"), exports);
24
+ __exportStar(require("./dtos/InstallmentsInfo"), exports);
25
+ __exportStar(require("./dtos/MerchantInfo"), exports);
26
+ __exportStar(require("./dtos/TransactionInfo"), exports);
25
27
  __exportStar(require("./enums/TransactionProcessorCodesEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,4 @@
1
- import {IsDate, IsEmpty, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
1
+ import {IsEmpty, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
2
2
  import {regexUuidV4} from "../../helpers/constans/regex";
3
3
  import {CountryId} from "../../country";
4
4
  import {OperationEnum} from "../enums/OperationEnum";
@@ -0,0 +1,7 @@
1
+ import {AmountInfoItem} from "./AmountInfoItem";
2
+
3
+ export class AmountInfo {
4
+ transaction: AmountInfoItem;
5
+ settlement: AmountInfoItem;
6
+ local: AmountInfoItem;
7
+ }
@@ -0,0 +1,4 @@
1
+ export class AmountInfoItem {
2
+ total: number;
3
+ currencyId: string;
4
+ }
@@ -0,0 +1,18 @@
1
+ import {TransactionInfo} from "./TransactionInfo";
2
+ import {MerchantInfo} from "./MerchantInfo";
3
+ import {CardInfo} from "./CardInfo";
4
+ import {AmountInfo} from "./AmountInfo";
5
+ import {CountryId} from "../../country";
6
+ import {InstallmentsInfo} from "./InstallmentsInfo";
7
+
8
+ export class AuthorizeCreditCardAdjustmentRequest {
9
+ idempotencyKey: string;
10
+ externalUserId: string;
11
+ cardInfo: CardInfo;
12
+ productCatalogId: string;
13
+ merchantInfo: MerchantInfo;
14
+ amountInfo: AmountInfo;
15
+ transactionInfo: TransactionInfo;
16
+ countryId: CountryId;
17
+ installments: InstallmentsInfo;
18
+ }
@@ -0,0 +1,17 @@
1
+ import {CardInfo} from "./CardInfo";
2
+ import {MerchantInfo} from "./MerchantInfo";
3
+ import {AmountInfo} from "./AmountInfo";
4
+ import {TransactionInfo} from "./TransactionInfo";
5
+ import {CountryId} from "../../country";
6
+
7
+ export class AuthorizeCreditCardPurchaseRequest {
8
+ idempotencyKey: string;
9
+ externalUserId: string;
10
+ cardInfo: CardInfo | null;
11
+ productCatalogId: string;
12
+ merchantInfo: MerchantInfo;
13
+ amountInfo: AmountInfo;
14
+ transactionInfo: TransactionInfo;
15
+ countryId: CountryId;
16
+ additionalData: any;
17
+ }
@@ -1,5 +1,6 @@
1
1
  export class AuthorizeP2pTransactionRequest {
2
2
  idempotencyKey: string;
3
+ productCatalogId: string;
3
4
  targetDirectoryId: string;
4
5
  amount: number;
5
6
  }
@@ -1,7 +1,8 @@
1
- import {OperationEnum} from "../../../transaction";
1
+ import {OperationEnum} from "../../transaction";
2
2
 
3
3
  export class AuthorizePocketTransactionRequest {
4
4
  idempotencyKey: string;
5
+ productCatalogId: string;
5
6
  targetPocketId: string;
6
7
  operation: OperationEnum;
7
8
  amount: number;
@@ -1,6 +1,6 @@
1
- export declare class PrivateProcessorCardInfo {
2
- productType: string;
3
- lastFour: string;
4
- provider: string;
5
- externalCardId: string;
6
- }
1
+ export class CardInfo {
2
+ productType: string;
3
+ lastFour: string;
4
+ provider: string;
5
+ externalCardId: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ export class InstallmentsInfo {
2
+ quantity: string;
3
+ creditType: string;
4
+ gracePeriod: string;
5
+ currentInstallment: string;
6
+ promotionType: string;
7
+ }
@@ -1,4 +1,4 @@
1
- export class PrivateProcessorMerchantInfo {
1
+ export class MerchantInfo {
2
2
  id: string;
3
3
  address: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- export class PrivateProcessorTransactionInfo {
1
+ export class TransactionInfo {
2
2
  id: string;
3
3
  type: string;
4
4
  network: string;
@@ -1,11 +1,13 @@
1
- export * from './dtos/private/PrivateTransactionProcessorRequest';
2
- export * from './dtos/private/PrivateProcessorTransactionInfo';
3
- export * from './dtos/private/PrivateProcessorMerchantInfo';
4
- export * from './dtos/private/PrivateProcessorCardInfo';
5
- export * from './dtos/private/PrivateProcessorAmountInfo';
6
- export * from './dtos/private/PrivateProcessorAmountInfoItem';
7
- export * from './dtos/private/AuthorizeP2pTransactionRequest';
8
- export * from './dtos/private/AuthorizePocketTransactionRequest';
1
+ export * from './dtos/AmountInfo';
2
+ export * from './dtos/AmountInfoItem';
3
+ export * from './dtos/AuthorizeCreditCardAdjustmentRequest';
4
+ export * from './dtos/AuthorizeCreditCardPurchaseRequest';
5
+ export * from './dtos/AuthorizeP2pTransactionRequest';
6
+ export * from './dtos/AuthorizePocketTransactionRequest';
7
+ export * from './dtos/CardInfo';
8
+ export * from './dtos/InstallmentsInfo';
9
+ export * from './dtos/MerchantInfo';
10
+ export * from './dtos/TransactionInfo';
9
11
 
10
12
  export * from './enums/TransactionProcessorCodesEnum';
11
13
 
@@ -1,21 +0,0 @@
1
- import { Provider } from '../../provider/enums/Provider';
2
- import { Country } from '../../country/enums/Country';
3
- import { AccountStatus } from '../enums/AccountStatus';
4
- import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
5
- export declare class AccountResponse {
6
- id: string;
7
- typeOfAccountId: string;
8
- externalAccountId: string;
9
- externalSubAccountId: string | null;
10
- provider: Provider;
11
- directoryId: string;
12
- typeOfDirectoryId: TypeOfDirectoryId;
13
- currentBalance: number;
14
- balanceLock: number;
15
- countryId: Country;
16
- createDate: string;
17
- lastUpdateDate: string;
18
- accountNumber: string;
19
- routingNumber: string;
20
- status: AccountStatus;
21
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountResponse = void 0;
4
- class AccountResponse {
5
- }
6
- exports.AccountResponse = AccountResponse;
@@ -1,4 +0,0 @@
1
- export declare class PocketCreateRequest {
2
- beneficiaryDirectoryId?: string;
3
- accountId: string;
4
- }
@@ -1,31 +0,0 @@
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.PocketCreateRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const regex_1 = require("../../helpers/constans/regex");
15
- class PocketCreateRequest {
16
- }
17
- exports.PocketCreateRequest = PocketCreateRequest;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
21
- message: 'beneficiaryDirectoryId must be a valid UUID v4',
22
- }),
23
- __metadata("design:type", String)
24
- ], PocketCreateRequest.prototype, "beneficiaryDirectoryId", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
28
- message: 'accountId must be a valid UUID v4',
29
- }),
30
- __metadata("design:type", String)
31
- ], PocketCreateRequest.prototype, "accountId", void 0);
@@ -1,2 +0,0 @@
1
- export declare class PocketCreateResponse {
2
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PocketCreateResponse = void 0;
4
- class PocketCreateResponse {
5
- }
6
- exports.PocketCreateResponse = PocketCreateResponse;
@@ -1,5 +0,0 @@
1
- export declare enum AccountStatus {
2
- ACTIVE = "ACTIVE",
3
- INACTIVE = "INACTIVE",
4
- BLOCKED = "BLOCKED"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountStatus = void 0;
4
- var AccountStatus;
5
- (function (AccountStatus) {
6
- AccountStatus["ACTIVE"] = "ACTIVE";
7
- AccountStatus["INACTIVE"] = "INACTIVE";
8
- AccountStatus["BLOCKED"] = "BLOCKED";
9
- })(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
@@ -1,34 +0,0 @@
1
- import { CountryId } from '../../country/enums/CountryId';
2
- import { CardType } from '../enums/CardType';
3
- import { Brand } from '../enums/Brand';
4
- import { OwnershipType } from '../enums/OwnershipType';
5
- import { Status } from '../enums/Status';
6
- import { Shipping } from '../../address';
7
- export declare class CardCreateRequest {
8
- id?: string;
9
- accountId?: string;
10
- activationDate?: string;
11
- countryId: CountryId;
12
- type: CardType;
13
- directoryId?: string;
14
- externalCardId: string;
15
- externalUserId: string;
16
- externalShipmentId: string;
17
- shipmentProvider: string;
18
- externalShipmentTrackingId: string;
19
- externalShipmentTrackingUrl: string;
20
- holderName: string;
21
- holderLastName: string;
22
- imageUrl?: string;
23
- brand: Brand;
24
- ownershipType: OwnershipType;
25
- lastFour: string;
26
- providerName?: string;
27
- status: Status;
28
- statusUpdateDate?: string;
29
- tenantId?: string;
30
- spendLimitByTransaction?: number;
31
- spendLimitByDay?: number;
32
- spendLimitByMonth?: number;
33
- shippedAddress?: Shipping;
34
- }