@fiado/type-kit 1.8.93 → 1.8.95

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 (140) hide show
  1. package/bin/account/dtos/AccountResponse.d.ts +21 -0
  2. package/bin/account/dtos/AccountResponse.js +6 -0
  3. package/bin/account/dtos/CreateBankAccountInput.d.ts +8 -0
  4. package/bin/account/dtos/CreateBankAccountInput.js +6 -0
  5. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
  6. package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
  7. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  8. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  9. package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
  10. package/bin/account/dtos/PocketCreateResponse.js +6 -0
  11. package/bin/account/enums/AccountStatus.d.ts +5 -0
  12. package/bin/account/enums/AccountStatus.js +9 -0
  13. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  14. package/bin/card/dtos/CardCreateRequest.js +176 -0
  15. package/bin/contactInfo/dtos/GetAllContactInfoResponse.d.ts +13 -0
  16. package/bin/contactInfo/dtos/GetAllContactInfoResponse.js +6 -0
  17. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  18. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  19. package/bin/legal-documents-business/enums/LegalDocumentType.d.ts +8 -0
  20. package/bin/legal-documents-business/enums/LegalDocumentType.js +12 -0
  21. package/bin/membership/dtos/CreateMembershipDirectoryUserRequest.d.ts +12 -0
  22. package/bin/membership/dtos/CreateMembershipDirectoryUserRequest.js +54 -0
  23. package/bin/membership/dtos/CreateMembershipRequest.d.ts +14 -0
  24. package/bin/membership/dtos/CreateMembershipRequest.js +56 -0
  25. package/bin/membership/dtos/GetMembershipDirectoryUserListAppResponse.d.ts +14 -0
  26. package/bin/membership/dtos/GetMembershipDirectoryUserListAppResponse.js +6 -0
  27. package/bin/membership/dtos/GetMembershipDirectoryUserListResponse.d.ts +21 -0
  28. package/bin/membership/dtos/GetMembershipDirectoryUserListResponse.js +6 -0
  29. package/bin/membership/dtos/GetMembershipListAppResponse.d.ts +10 -0
  30. package/bin/membership/dtos/GetMembershipListAppResponse.js +6 -0
  31. package/bin/membership/dtos/GetMembershipListResponse.d.ts +20 -0
  32. package/bin/membership/dtos/GetMembershipListResponse.js +6 -0
  33. package/bin/membership/dtos/RegisterMembershipDirectoryUserRequest.d.ts +4 -0
  34. package/bin/membership/dtos/RegisterMembershipDirectoryUserRequest.js +26 -0
  35. package/bin/membership/dtos/UpdateMembershipDirectoryUserRequest.d.ts +12 -0
  36. package/bin/membership/dtos/UpdateMembershipDirectoryUserRequest.js +54 -0
  37. package/bin/membership/dtos/UpdateMembershipRequest.d.ts +14 -0
  38. package/bin/membership/dtos/UpdateMembershipRequest.js +56 -0
  39. package/bin/membership/enums/MembershipDirectoryStatusEnum.d.ts +6 -0
  40. package/bin/membership/enums/MembershipDirectoryStatusEnum.js +10 -0
  41. package/bin/membership/enums/MembershipFlowEnum.d.ts +3 -0
  42. package/bin/membership/enums/MembershipFlowEnum.js +7 -0
  43. package/bin/{services/enums/ServiceProviderEnum.d.ts → membership/enums/MembershipProviderEnum.d.ts} +1 -1
  44. package/bin/membership/enums/MembershipProviderEnum.js +9 -0
  45. package/bin/membership/enums/MembershipStatusEnum.d.ts +4 -0
  46. package/bin/membership/enums/MembershipStatusEnum.js +8 -0
  47. package/bin/membership/enums/MembershipTypeEnum.d.ts +3 -0
  48. package/bin/membership/enums/MembershipTypeEnum.js +7 -0
  49. package/bin/membership/index.d.ts +14 -0
  50. package/bin/membership/index.js +32 -0
  51. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
  52. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
  53. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
  54. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
  55. package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
  56. package/bin/pomelo/enums/CountryEnum.js +12 -0
  57. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
  58. package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
  59. package/bin/pomelo/enums/SexEnum.d.ts +4 -0
  60. package/bin/pomelo/enums/SexEnum.js +8 -0
  61. package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
  62. package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
  63. package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
  64. package/bin/pomelo/enums/UserStatusEnum.js +8 -0
  65. package/bin/pomelo/index.d.ts +7 -0
  66. package/bin/pomelo/index.js +25 -0
  67. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -8
  68. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
  69. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
  70. package/bin/role/dtos/DirectoryBackoffice.d.ts +15 -0
  71. package/bin/role/dtos/DirectoryBackoffice.js +6 -0
  72. package/bin/role/enums/DirectoryBackofficeStatusEnum.d.ts +4 -0
  73. package/bin/role/enums/DirectoryBackofficeStatusEnum.js +8 -0
  74. package/bin/tern/dtos/TernAddress.d.ts +8 -0
  75. package/bin/tern/dtos/TernAddress.js +40 -0
  76. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
  77. package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
  78. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
  79. package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
  80. package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
  81. package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
  82. package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
  83. package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
  84. package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
  85. package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
  86. package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
  87. package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
  88. package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
  89. package/bin/tern/dtos/TernGetUserRequest.js +20 -0
  90. package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
  91. package/bin/tern/dtos/TernGetUserResponse.js +96 -0
  92. package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
  93. package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
  94. package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
  95. package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
  96. package/bin/tern/index.d.ts +11 -0
  97. package/bin/tern/index.js +29 -0
  98. package/bin/transactionProcessor/dtos/BankInfo.d.ts +8 -0
  99. package/bin/transactionProcessor/dtos/BankInfo.js +6 -0
  100. package/bin/transactionProcessor/dtos/EventTransactionInfo.d.ts +19 -0
  101. package/bin/transactionProcessor/dtos/EventTransactionInfo.js +6 -0
  102. package/bin/transactionProcessor/dtos/EventTransactionRequest.d.ts +16 -0
  103. package/bin/transactionProcessor/dtos/EventTransactionRequest.js +6 -0
  104. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +5 -0
  105. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +6 -0
  106. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +7 -0
  107. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +6 -0
  108. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +6 -0
  109. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +6 -0
  110. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +4 -0
  111. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +6 -0
  112. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +6 -0
  113. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +6 -0
  114. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +7 -0
  115. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +6 -0
  116. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +8 -0
  117. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +6 -0
  118. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +16 -0
  119. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +6 -0
  120. package/bin/transactionProcessor/enums/EventChannelEnum.d.ts +9 -0
  121. package/bin/transactionProcessor/enums/EventChannelEnum.js +13 -0
  122. package/bin/transactionProcessor/enums/EventTypeEnum.d.ts +10 -0
  123. package/bin/transactionProcessor/enums/EventTypeEnum.js +16 -0
  124. package/bin/transactionProcessor/enums/TransactionInfoStatusEnum.d.ts +6 -0
  125. package/bin/transactionProcessor/enums/TransactionInfoStatusEnum.js +10 -0
  126. package/bin/transactionProcessor/index.d.ts +6 -0
  127. package/bin/transactionProcessor/index.js +6 -0
  128. package/package.json +1 -1
  129. package/src/transactionProcessor/dtos/BankInfo.ts +10 -0
  130. package/src/transactionProcessor/dtos/EventTransactionInfo.ts +22 -0
  131. package/src/transactionProcessor/dtos/EventTransactionRequest.ts +19 -0
  132. package/src/transactionProcessor/enums/EventChannelEnum.ts +12 -0
  133. package/src/transactionProcessor/enums/EventTypeEnum.ts +16 -0
  134. package/src/transactionProcessor/enums/TransactionInfoStatusEnum.ts +8 -0
  135. package/src/transactionProcessor/index.ts +6 -0
  136. package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
  137. package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
  138. package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
  139. package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
  140. package/bin/services/enums/ServiceProviderEnum.js +0 -9
@@ -0,0 +1,19 @@
1
+ import { OperationEnum } from "../../transaction/enums/OperationEnum";
2
+ import { EventTypeEnum } from "../enums/EventTypeEnum";
3
+ import { TransactionInfoStatusEnum } from "../enums/TransactionInfoStatusEnum";
4
+ export declare class EventTransactionInfo {
5
+ transactionId: string;
6
+ externalTransactionRef?: string;
7
+ externalCardRef?: string;
8
+ transactionDate: string;
9
+ eventType: EventTypeEnum;
10
+ status: TransactionInfoStatusEnum;
11
+ network?: string;
12
+ description?: string;
13
+ installments?: number;
14
+ channel: 'CARD' | 'ACH';
15
+ sameDayTransfer?: boolean;
16
+ returnCode?: string;
17
+ operation?: OperationEnum;
18
+ deviceType?: string;
19
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTransactionInfo = void 0;
4
+ class EventTransactionInfo {
5
+ }
6
+ exports.EventTransactionInfo = EventTransactionInfo;
@@ -0,0 +1,16 @@
1
+ import { AmountInfo } from "./AmountInfo";
2
+ import { BankInfo } from "./BankInfo";
3
+ import { CardInfo } from "./CardInfo";
4
+ import { EventTransactionInfo } from "./EventTransactionInfo";
5
+ import { MerchantInfo } from "./MerchantInfo";
6
+ export declare class EventTransactionRequest {
7
+ idempotencyKey?: string;
8
+ externalUserId: string;
9
+ cardInfo?: CardInfo;
10
+ bankInfo?: BankInfo;
11
+ merchantInfo?: MerchantInfo;
12
+ amountInfo: AmountInfo;
13
+ transactionInfo: EventTransactionInfo;
14
+ productCatalogId?: string;
15
+ provider: string;
16
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTransactionRequest = void 0;
4
+ class EventTransactionRequest {
5
+ }
6
+ exports.EventTransactionRequest = EventTransactionRequest;
@@ -0,0 +1,5 @@
1
+ export declare class AuthorizeP2pTransactionRequest {
2
+ idempotencyKey: string;
3
+ targetDirectoryId: string;
4
+ amount: number;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizeP2pTransactionRequest = void 0;
4
+ class AuthorizeP2pTransactionRequest {
5
+ }
6
+ exports.AuthorizeP2pTransactionRequest = AuthorizeP2pTransactionRequest;
@@ -0,0 +1,7 @@
1
+ import { OperationEnum } from "../../../transaction";
2
+ export declare class AuthorizePocketTransactionRequest {
3
+ idempotencyKey: string;
4
+ targetPocketId: string;
5
+ operation: OperationEnum;
6
+ amount: number;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizePocketTransactionRequest = void 0;
4
+ class AuthorizePocketTransactionRequest {
5
+ }
6
+ exports.AuthorizePocketTransactionRequest = AuthorizePocketTransactionRequest;
@@ -0,0 +1,6 @@
1
+ import { PrivateProcessorAmountInfoItem } from "./PrivateProcessorAmountInfoItem";
2
+ export declare class PrivateProcessorAmountInfo {
3
+ transaction: PrivateProcessorAmountInfoItem;
4
+ settlement: PrivateProcessorAmountInfoItem;
5
+ local: PrivateProcessorAmountInfoItem;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateProcessorAmountInfo = void 0;
4
+ class PrivateProcessorAmountInfo {
5
+ }
6
+ exports.PrivateProcessorAmountInfo = PrivateProcessorAmountInfo;
@@ -0,0 +1,4 @@
1
+ export declare class PrivateProcessorAmountInfoItem {
2
+ total: number;
3
+ currencyId: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateProcessorAmountInfoItem = void 0;
4
+ class PrivateProcessorAmountInfoItem {
5
+ }
6
+ exports.PrivateProcessorAmountInfoItem = PrivateProcessorAmountInfoItem;
@@ -0,0 +1,6 @@
1
+ export declare class PrivateProcessorCardInfo {
2
+ productType: string;
3
+ lastFour: string;
4
+ provider: string;
5
+ externalCardId: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateProcessorCardInfo = void 0;
4
+ class PrivateProcessorCardInfo {
5
+ }
6
+ exports.PrivateProcessorCardInfo = PrivateProcessorCardInfo;
@@ -0,0 +1,7 @@
1
+ export declare class PrivateProcessorMerchantInfo {
2
+ id: string;
3
+ address: string;
4
+ name: string;
5
+ mcc: string;
6
+ terminalId: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateProcessorMerchantInfo = void 0;
4
+ class PrivateProcessorMerchantInfo {
5
+ }
6
+ exports.PrivateProcessorMerchantInfo = PrivateProcessorMerchantInfo;
@@ -0,0 +1,8 @@
1
+ export declare class PrivateProcessorTransactionInfo {
2
+ id: string;
3
+ type: string;
4
+ network: string;
5
+ date: string;
6
+ originalTransactionId: string;
7
+ pointType: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateProcessorTransactionInfo = void 0;
4
+ class PrivateProcessorTransactionInfo {
5
+ }
6
+ exports.PrivateProcessorTransactionInfo = PrivateProcessorTransactionInfo;
@@ -0,0 +1,16 @@
1
+ import { PrivateProcessorCardInfo } from "./PrivateProcessorCardInfo";
2
+ import { PrivateProcessorMerchantInfo } from "./PrivateProcessorMerchantInfo";
3
+ import { PrivateProcessorAmountInfo } from "./PrivateProcessorAmountInfo";
4
+ import { PrivateProcessorTransactionInfo } from "./PrivateProcessorTransactionInfo";
5
+ import { CountryId } from "../../../country";
6
+ export declare class PrivateTransactionProcessorRequest {
7
+ idempotencyKey: string;
8
+ externalUserId: string;
9
+ cardInfo: PrivateProcessorCardInfo | null;
10
+ productCatalogId: string;
11
+ merchantInfo: PrivateProcessorMerchantInfo;
12
+ amountInfo: PrivateProcessorAmountInfo;
13
+ transactionInfo: PrivateProcessorTransactionInfo;
14
+ countryId: CountryId;
15
+ additionalData: any;
16
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateTransactionProcessorRequest = void 0;
4
+ class PrivateTransactionProcessorRequest {
5
+ }
6
+ exports.PrivateTransactionProcessorRequest = PrivateTransactionProcessorRequest;
@@ -0,0 +1,9 @@
1
+ export declare enum EventChannelEnum {
2
+ CARD = "CARD",
3
+ CHECK = "CHECK",
4
+ ACH = "ACH",
5
+ DEPOSIT = "DEPOSIT",
6
+ WITHDRAWAL = "WITHDRAWAL",
7
+ PAYMENT = "PAYMENT",
8
+ REFUND = "REFUND"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventChannelEnum = void 0;
4
+ var EventChannelEnum;
5
+ (function (EventChannelEnum) {
6
+ EventChannelEnum["CARD"] = "CARD";
7
+ EventChannelEnum["CHECK"] = "CHECK";
8
+ EventChannelEnum["ACH"] = "ACH";
9
+ EventChannelEnum["DEPOSIT"] = "DEPOSIT";
10
+ EventChannelEnum["WITHDRAWAL"] = "WITHDRAWAL";
11
+ EventChannelEnum["PAYMENT"] = "PAYMENT";
12
+ EventChannelEnum["REFUND"] = "REFUND";
13
+ })(EventChannelEnum || (exports.EventChannelEnum = EventChannelEnum = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum EventTypeEnum {
2
+ CARD_AUTH_SUCCESS = "CARD_AUTH_SUCCESS",// Cuando la autorización de la tarjeta es exitosa
3
+ CARD_AUTH_EXPIRED = "CARD_AUTH_EXPIRED",// Cuando la autorización de la tarjeta ha expirado
4
+ CARD_AUTH_DECLINED = "CARD_AUTH_DECLINED",// Cuando la autorización de la tarjeta es rechazada
5
+ CARD_COMPLETION = "CARD_COMPLETION",// Cuando la transacción de la tarjeta se liquida SETTLED
6
+ CARD_POSTED = "CARD_POSTED",
7
+ ACH_SUCCESS = "ACH_SUCCESS",// Cuando la transacción ACH es exitosa
8
+ ACH_RETURN = "ACH_RETURN",// Cuando la transacción ACH es devuelta
9
+ ACH_NOC = "ACH_NOC"
10
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeEnum = void 0;
4
+ var EventTypeEnum;
5
+ (function (EventTypeEnum) {
6
+ // Transacciones con tarjeta
7
+ EventTypeEnum["CARD_AUTH_SUCCESS"] = "CARD_AUTH_SUCCESS";
8
+ EventTypeEnum["CARD_AUTH_EXPIRED"] = "CARD_AUTH_EXPIRED";
9
+ EventTypeEnum["CARD_AUTH_DECLINED"] = "CARD_AUTH_DECLINED";
10
+ EventTypeEnum["CARD_COMPLETION"] = "CARD_COMPLETION";
11
+ EventTypeEnum["CARD_POSTED"] = "CARD_POSTED";
12
+ // Transacciones ACH
13
+ EventTypeEnum["ACH_SUCCESS"] = "ACH_SUCCESS";
14
+ EventTypeEnum["ACH_RETURN"] = "ACH_RETURN";
15
+ EventTypeEnum["ACH_NOC"] = "ACH_NOC";
16
+ })(EventTypeEnum || (exports.EventTypeEnum = EventTypeEnum = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum TransactionInfoStatusEnum {
2
+ PENDING = "PENDING",
3
+ COMPLETE = "COMPLETE",
4
+ FAILED = "FAILED",
5
+ RETURNED = "RETURNED"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionInfoStatusEnum = void 0;
4
+ var TransactionInfoStatusEnum;
5
+ (function (TransactionInfoStatusEnum) {
6
+ TransactionInfoStatusEnum["PENDING"] = "PENDING";
7
+ TransactionInfoStatusEnum["COMPLETE"] = "COMPLETE";
8
+ TransactionInfoStatusEnum["FAILED"] = "FAILED";
9
+ TransactionInfoStatusEnum["RETURNED"] = "RETURNED";
10
+ })(TransactionInfoStatusEnum || (exports.TransactionInfoStatusEnum = TransactionInfoStatusEnum = {}));
@@ -20,6 +20,12 @@ export * from './dtos/TransactionProcessorQueueMessage';
20
20
  export * from './dtos/AuthorizeServicePaymentRequest';
21
21
  export * from './dtos/TransactionProcessorResponse';
22
22
  export * from './dtos/AuthorizeAdjustmentTransactionRequest';
23
+ export * from './dtos/BankInfo';
24
+ export * from './dtos/EventTransactionRequest';
25
+ export * from './dtos/EventTransactionInfo';
23
26
  export * from './enums/TransactionProcessorCodesEnum';
24
27
  export * from './enums/AsyncTxStatusEnum';
25
28
  export * from './enums/AppEnum';
29
+ export * from './enums/TransactionInfoStatusEnum';
30
+ export * from './enums/EventTypeEnum';
31
+ export * from './enums/EventChannelEnum';
@@ -36,6 +36,12 @@ __exportStar(require("./dtos/TransactionProcessorQueueMessage"), exports);
36
36
  __exportStar(require("./dtos/AuthorizeServicePaymentRequest"), exports);
37
37
  __exportStar(require("./dtos/TransactionProcessorResponse"), exports);
38
38
  __exportStar(require("./dtos/AuthorizeAdjustmentTransactionRequest"), exports);
39
+ __exportStar(require("./dtos/BankInfo"), exports);
40
+ __exportStar(require("./dtos/EventTransactionRequest"), exports);
41
+ __exportStar(require("./dtos/EventTransactionInfo"), exports);
39
42
  __exportStar(require("./enums/TransactionProcessorCodesEnum"), exports);
40
43
  __exportStar(require("./enums/AsyncTxStatusEnum"), exports);
41
44
  __exportStar(require("./enums/AppEnum"), exports);
45
+ __exportStar(require("./enums/TransactionInfoStatusEnum"), exports);
46
+ __exportStar(require("./enums/EventTypeEnum"), exports);
47
+ __exportStar(require("./enums/EventChannelEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.8.93",
3
+ "version": "1.8.95",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,10 @@
1
+
2
+
3
+ export class BankInfo {
4
+ accountId?: string;
5
+ accountNumber?: string;
6
+ routingNumber?: string;
7
+ accountType?: string;
8
+ accountTitle?: string;
9
+ bankName?: string;
10
+ }
@@ -0,0 +1,22 @@
1
+ import { OperationEnum } from "../../transaction/enums/OperationEnum";
2
+ import { EventTypeEnum } from "../enums/EventTypeEnum";
3
+ import { TransactionInfoStatusEnum } from "../enums/TransactionInfoStatusEnum";
4
+
5
+
6
+
7
+ export class EventTransactionInfo {
8
+ transactionId: string;
9
+ externalTransactionRef?: string;
10
+ externalCardRef?: string;
11
+ transactionDate: string;
12
+ eventType: EventTypeEnum;
13
+ status: TransactionInfoStatusEnum;
14
+ network?: string;
15
+ description?: string;
16
+ installments?: number;
17
+ channel: 'CARD' | 'ACH';
18
+ sameDayTransfer?: boolean;
19
+ returnCode?: string;
20
+ operation?: OperationEnum;
21
+ deviceType?: string;
22
+ }
@@ -0,0 +1,19 @@
1
+ import { AmountInfo } from "./AmountInfo";
2
+ import { BankInfo } from "./BankInfo";
3
+ import { CardInfo } from "./CardInfo";
4
+ import { EventTransactionInfo } from "./EventTransactionInfo";
5
+ import { MerchantInfo } from "./MerchantInfo";
6
+
7
+
8
+
9
+ export class EventTransactionRequest {
10
+ idempotencyKey?: string;
11
+ externalUserId: string;
12
+ cardInfo?: CardInfo;
13
+ bankInfo?: BankInfo;
14
+ merchantInfo?: MerchantInfo;
15
+ amountInfo: AmountInfo;
16
+ transactionInfo: EventTransactionInfo;
17
+ productCatalogId?: string;
18
+ provider: string;
19
+ }
@@ -0,0 +1,12 @@
1
+
2
+
3
+ export enum EventChannelEnum {
4
+
5
+ CARD = 'CARD',
6
+ CHECK = 'CHECK',
7
+ ACH = 'ACH',
8
+ DEPOSIT = 'DEPOSIT',
9
+ WITHDRAWAL = 'WITHDRAWAL',
10
+ PAYMENT = 'PAYMENT',
11
+ REFUND = 'REFUND',
12
+ }
@@ -0,0 +1,16 @@
1
+
2
+
3
+ export enum EventTypeEnum {
4
+
5
+ // Transacciones con tarjeta
6
+ CARD_AUTH_SUCCESS = 'CARD_AUTH_SUCCESS', // Cuando la autorización de la tarjeta es exitosa
7
+ CARD_AUTH_EXPIRED = 'CARD_AUTH_EXPIRED', // Cuando la autorización de la tarjeta ha expirado
8
+ CARD_AUTH_DECLINED = 'CARD_AUTH_DECLINED', // Cuando la autorización de la tarjeta es rechazada
9
+ CARD_COMPLETION = 'CARD_COMPLETION', // Cuando la transacción de la tarjeta se liquida SETTLED
10
+ CARD_POSTED = 'CARD_POSTED',
11
+ // Transacciones ACH
12
+ ACH_SUCCESS = "ACH_SUCCESS", // Cuando la transacción ACH es exitosa
13
+ ACH_RETURN = "ACH_RETURN", // Cuando la transacción ACH es devuelta
14
+ ACH_NOC = "ACH_NOC", // Cuando hay un cambio en la transacción ACH
15
+
16
+ }
@@ -0,0 +1,8 @@
1
+
2
+
3
+ export enum TransactionInfoStatusEnum {
4
+ PENDING = 'PENDING',
5
+ COMPLETE = 'COMPLETE',
6
+ FAILED = 'FAILED',
7
+ RETURNED = 'RETURNED',
8
+ }
@@ -20,8 +20,14 @@ export * from './dtos/TransactionProcessorQueueMessage';
20
20
  export * from './dtos/AuthorizeServicePaymentRequest';
21
21
  export * from './dtos/TransactionProcessorResponse';
22
22
  export * from './dtos/AuthorizeAdjustmentTransactionRequest';
23
+ export * from './dtos/BankInfo';
24
+ export * from './dtos/EventTransactionRequest';
25
+ export * from './dtos/EventTransactionInfo';
23
26
 
24
27
  export * from './enums/TransactionProcessorCodesEnum';
25
28
  export * from './enums/AsyncTxStatusEnum';
26
29
  export * from './enums/AppEnum';
30
+ export * from './enums/TransactionInfoStatusEnum';
31
+ export * from './enums/EventTypeEnum';
32
+ export * from './enums/EventChannelEnum';
27
33
 
@@ -1,4 +0,0 @@
1
- export declare class GetServiceListAppResponse {
2
- items: any[];
3
- index: string | null;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServiceListAppResponse = void 0;
4
- class GetServiceListAppResponse {
5
- }
6
- exports.GetServiceListAppResponse = GetServiceListAppResponse;
@@ -1,4 +0,0 @@
1
- export declare class GetServiceMembershipListAResponse {
2
- items: any[];
3
- index: string | null;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServiceMembershipListAResponse = void 0;
4
- class GetServiceMembershipListAResponse {
5
- }
6
- exports.GetServiceMembershipListAResponse = GetServiceMembershipListAResponse;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceProviderEnum = void 0;
4
- var ServiceProviderEnum;
5
- (function (ServiceProviderEnum) {
6
- ServiceProviderEnum["CP"] = "CP";
7
- ServiceProviderEnum["TERN"] = "TERN";
8
- ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
9
- })(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));