@channelpayments/node-sdk 1.24.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.
Files changed (252) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/package.json +3 -0
  3. package/dist/cjs/src/apis/ChannelPaymentsApi.d.ts +281 -0
  4. package/dist/cjs/src/apis/ChannelPaymentsApi.js +1184 -0
  5. package/dist/cjs/src/apis/index.d.ts +1 -0
  6. package/dist/cjs/src/apis/index.js +19 -0
  7. package/dist/cjs/src/index.d.ts +3 -0
  8. package/dist/cjs/src/index.js +21 -0
  9. package/dist/cjs/src/models/AddressDto.d.ts +62 -0
  10. package/dist/cjs/src/models/AddressDto.js +63 -0
  11. package/dist/cjs/src/models/AddressEntity.d.ts +62 -0
  12. package/dist/cjs/src/models/AddressEntity.js +63 -0
  13. package/dist/cjs/src/models/BuyerAddressEntity.d.ts +62 -0
  14. package/dist/cjs/src/models/BuyerAddressEntity.js +58 -0
  15. package/dist/cjs/src/models/BuyerEntity.d.ts +81 -0
  16. package/dist/cjs/src/models/BuyerEntity.js +71 -0
  17. package/dist/cjs/src/models/BuyerEntity1.d.ts +69 -0
  18. package/dist/cjs/src/models/BuyerEntity1.js +67 -0
  19. package/dist/cjs/src/models/BuyerEntityAddress.d.ts +62 -0
  20. package/dist/cjs/src/models/BuyerEntityAddress.js +63 -0
  21. package/dist/cjs/src/models/BuyersSearchEntity.d.ts +51 -0
  22. package/dist/cjs/src/models/BuyersSearchEntity.js +58 -0
  23. package/dist/cjs/src/models/CFeeDto.d.ts +40 -0
  24. package/dist/cjs/src/models/CFeeDto.js +57 -0
  25. package/dist/cjs/src/models/CFeeEntity.d.ts +40 -0
  26. package/dist/cjs/src/models/CFeeEntity.js +57 -0
  27. package/dist/cjs/src/models/CaptureTransactionDto.d.ts +32 -0
  28. package/dist/cjs/src/models/CaptureTransactionDto.js +50 -0
  29. package/dist/cjs/src/models/CardDetails.d.ts +59 -0
  30. package/dist/cjs/src/models/CardDetails.js +67 -0
  31. package/dist/cjs/src/models/CreateBuyerDto.d.ts +57 -0
  32. package/dist/cjs/src/models/CreateBuyerDto.js +61 -0
  33. package/dist/cjs/src/models/CreateBuyerDtoAddress.d.ts +62 -0
  34. package/dist/cjs/src/models/CreateBuyerDtoAddress.js +63 -0
  35. package/dist/cjs/src/models/CreateMerchantAccountDto.d.ts +120 -0
  36. package/dist/cjs/src/models/CreateMerchantAccountDto.js +99 -0
  37. package/dist/cjs/src/models/CreateMerchantAccountDtoCfee.d.ts +40 -0
  38. package/dist/cjs/src/models/CreateMerchantAccountDtoCfee.js +57 -0
  39. package/dist/cjs/src/models/CreateMerchantAccountDtoGateways.d.ts +41 -0
  40. package/dist/cjs/src/models/CreateMerchantAccountDtoGateways.js +58 -0
  41. package/dist/cjs/src/models/CreateMerchantAccountsDto.d.ts +114 -0
  42. package/dist/cjs/src/models/CreateMerchantAccountsDto.js +96 -0
  43. package/dist/cjs/src/models/CreateMerchantAddressDto.d.ts +68 -0
  44. package/dist/cjs/src/models/CreateMerchantAddressDto.js +65 -0
  45. package/dist/cjs/src/models/CreateMerchantCredentialsDto.d.ts +32 -0
  46. package/dist/cjs/src/models/CreateMerchantCredentialsDto.js +50 -0
  47. package/dist/cjs/src/models/CreateMerchantDto.d.ts +70 -0
  48. package/dist/cjs/src/models/CreateMerchantDto.js +66 -0
  49. package/dist/cjs/src/models/CreateMerchantDtoAddress.d.ts +68 -0
  50. package/dist/cjs/src/models/CreateMerchantDtoAddress.js +65 -0
  51. package/dist/cjs/src/models/CreateMerchantGateway.d.ts +41 -0
  52. package/dist/cjs/src/models/CreateMerchantGateway.js +58 -0
  53. package/dist/cjs/src/models/CreatePaymentMethodDto.d.ts +63 -0
  54. package/dist/cjs/src/models/CreatePaymentMethodDto.js +65 -0
  55. package/dist/cjs/src/models/CreateTransactionDto.d.ts +80 -0
  56. package/dist/cjs/src/models/CreateTransactionDto.js +77 -0
  57. package/dist/cjs/src/models/CreateTransactionDtoPaymentMethod.d.ts +76 -0
  58. package/dist/cjs/src/models/CreateTransactionDtoPaymentMethod.js +68 -0
  59. package/dist/cjs/src/models/ErrorEntity.d.ts +56 -0
  60. package/dist/cjs/src/models/ErrorEntity.js +56 -0
  61. package/dist/cjs/src/models/MerchantAccountEntity.d.ts +108 -0
  62. package/dist/cjs/src/models/MerchantAccountEntity.js +97 -0
  63. package/dist/cjs/src/models/MerchantAccountEntityCfee.d.ts +40 -0
  64. package/dist/cjs/src/models/MerchantAccountEntityCfee.js +57 -0
  65. package/dist/cjs/src/models/MerchantAddressEntity.d.ts +68 -0
  66. package/dist/cjs/src/models/MerchantAddressEntity.js +65 -0
  67. package/dist/cjs/src/models/MerchantCredentialsEntity.d.ts +74 -0
  68. package/dist/cjs/src/models/MerchantCredentialsEntity.js +70 -0
  69. package/dist/cjs/src/models/MerchantEntity.d.ts +88 -0
  70. package/dist/cjs/src/models/MerchantEntity.js +75 -0
  71. package/dist/cjs/src/models/MerchantEntityAddress.d.ts +68 -0
  72. package/dist/cjs/src/models/MerchantEntityAddress.js +65 -0
  73. package/dist/cjs/src/models/MerchantGatewayEntity.d.ts +59 -0
  74. package/dist/cjs/src/models/MerchantGatewayEntity.js +67 -0
  75. package/dist/cjs/src/models/PaymentMethodDto.d.ts +76 -0
  76. package/dist/cjs/src/models/PaymentMethodDto.js +68 -0
  77. package/dist/cjs/src/models/PaymentMethodEntity.d.ts +124 -0
  78. package/dist/cjs/src/models/PaymentMethodEntity.js +97 -0
  79. package/dist/cjs/src/models/PaymentMethodEntity1.d.ts +89 -0
  80. package/dist/cjs/src/models/PaymentMethodEntity1.js +74 -0
  81. package/dist/cjs/src/models/PaymentMethodEntityBuyer.d.ts +69 -0
  82. package/dist/cjs/src/models/PaymentMethodEntityBuyer.js +67 -0
  83. package/dist/cjs/src/models/PaymentMethodEntityDetails.d.ts +59 -0
  84. package/dist/cjs/src/models/PaymentMethodEntityDetails.js +67 -0
  85. package/dist/cjs/src/models/PaymentMethodsSearchEntity.d.ts +51 -0
  86. package/dist/cjs/src/models/PaymentMethodsSearchEntity.js +58 -0
  87. package/dist/cjs/src/models/PaymentsBuyerEntity.d.ts +69 -0
  88. package/dist/cjs/src/models/PaymentsBuyerEntity.js +62 -0
  89. package/dist/cjs/src/models/RefundTransactionDto.d.ts +32 -0
  90. package/dist/cjs/src/models/RefundTransactionDto.js +50 -0
  91. package/dist/cjs/src/models/TransactionEntity.d.ts +198 -0
  92. package/dist/cjs/src/models/TransactionEntity.js +128 -0
  93. package/dist/cjs/src/models/TransactionRefundEntity.d.ts +85 -0
  94. package/dist/cjs/src/models/TransactionRefundEntity.js +80 -0
  95. package/dist/cjs/src/models/TransactionRefundsSearchEntity.d.ts +51 -0
  96. package/dist/cjs/src/models/TransactionRefundsSearchEntity.js +58 -0
  97. package/dist/cjs/src/models/TransactionsSearchEntity.d.ts +51 -0
  98. package/dist/cjs/src/models/TransactionsSearchEntity.js +58 -0
  99. package/dist/cjs/src/models/UpdateAddressDto.d.ts +62 -0
  100. package/dist/cjs/src/models/UpdateAddressDto.js +58 -0
  101. package/dist/cjs/src/models/UpdateBuyerDto.d.ts +63 -0
  102. package/dist/cjs/src/models/UpdateBuyerDto.js +60 -0
  103. package/dist/cjs/src/models/UpdateBuyerDtoAddress.d.ts +62 -0
  104. package/dist/cjs/src/models/UpdateBuyerDtoAddress.js +58 -0
  105. package/dist/cjs/src/models/UpdateCFeeDto.d.ts +40 -0
  106. package/dist/cjs/src/models/UpdateCFeeDto.js +55 -0
  107. package/dist/cjs/src/models/UpdateMerchantAccountDto.d.ts +107 -0
  108. package/dist/cjs/src/models/UpdateMerchantAccountDto.js +89 -0
  109. package/dist/cjs/src/models/UpdateMerchantAccountDtoCfee.d.ts +40 -0
  110. package/dist/cjs/src/models/UpdateMerchantAccountDtoCfee.js +55 -0
  111. package/dist/cjs/src/models/UpdateMerchantAddressDto.d.ts +68 -0
  112. package/dist/cjs/src/models/UpdateMerchantAddressDto.js +60 -0
  113. package/dist/cjs/src/models/UpdateMerchantCredentialsDto.d.ts +32 -0
  114. package/dist/cjs/src/models/UpdateMerchantCredentialsDto.js +49 -0
  115. package/dist/cjs/src/models/UpdateMerchantDto.d.ts +81 -0
  116. package/dist/cjs/src/models/UpdateMerchantDto.js +66 -0
  117. package/dist/cjs/src/models/UpdateMerchantDtoAddress.d.ts +68 -0
  118. package/dist/cjs/src/models/UpdateMerchantDtoAddress.js +60 -0
  119. package/dist/cjs/src/models/ValidateMerchantCredentialsDto.d.ts +26 -0
  120. package/dist/cjs/src/models/ValidateMerchantCredentialsDto.js +47 -0
  121. package/dist/cjs/src/models/index.d.ts +56 -0
  122. package/dist/cjs/src/models/index.js +74 -0
  123. package/dist/cjs/src/runtime.d.ts +118 -0
  124. package/dist/cjs/src/runtime.js +262 -0
  125. package/dist/cjs/test.d.ts +1 -0
  126. package/dist/cjs/test.js +81 -0
  127. package/dist/mjs/package.json +3 -0
  128. package/dist/mjs/src/apis/ChannelPaymentsApi.d.ts +281 -0
  129. package/dist/mjs/src/apis/ChannelPaymentsApi.js +1110 -0
  130. package/dist/mjs/src/apis/index.d.ts +1 -0
  131. package/dist/mjs/src/apis/index.js +3 -0
  132. package/dist/mjs/src/index.d.ts +3 -0
  133. package/dist/mjs/src/index.js +5 -0
  134. package/dist/mjs/src/models/AddressDto.d.ts +62 -0
  135. package/dist/mjs/src/models/AddressDto.js +56 -0
  136. package/dist/mjs/src/models/AddressEntity.d.ts +62 -0
  137. package/dist/mjs/src/models/AddressEntity.js +56 -0
  138. package/dist/mjs/src/models/BuyerAddressEntity.d.ts +62 -0
  139. package/dist/mjs/src/models/BuyerAddressEntity.js +51 -0
  140. package/dist/mjs/src/models/BuyerEntity.d.ts +81 -0
  141. package/dist/mjs/src/models/BuyerEntity.js +64 -0
  142. package/dist/mjs/src/models/BuyerEntity1.d.ts +69 -0
  143. package/dist/mjs/src/models/BuyerEntity1.js +60 -0
  144. package/dist/mjs/src/models/BuyerEntityAddress.d.ts +62 -0
  145. package/dist/mjs/src/models/BuyerEntityAddress.js +56 -0
  146. package/dist/mjs/src/models/BuyersSearchEntity.d.ts +51 -0
  147. package/dist/mjs/src/models/BuyersSearchEntity.js +51 -0
  148. package/dist/mjs/src/models/CFeeDto.d.ts +40 -0
  149. package/dist/mjs/src/models/CFeeDto.js +50 -0
  150. package/dist/mjs/src/models/CFeeEntity.d.ts +40 -0
  151. package/dist/mjs/src/models/CFeeEntity.js +50 -0
  152. package/dist/mjs/src/models/CaptureTransactionDto.d.ts +32 -0
  153. package/dist/mjs/src/models/CaptureTransactionDto.js +43 -0
  154. package/dist/mjs/src/models/CardDetails.d.ts +59 -0
  155. package/dist/mjs/src/models/CardDetails.js +60 -0
  156. package/dist/mjs/src/models/CreateBuyerDto.d.ts +57 -0
  157. package/dist/mjs/src/models/CreateBuyerDto.js +54 -0
  158. package/dist/mjs/src/models/CreateBuyerDtoAddress.d.ts +62 -0
  159. package/dist/mjs/src/models/CreateBuyerDtoAddress.js +56 -0
  160. package/dist/mjs/src/models/CreateMerchantAccountDto.d.ts +120 -0
  161. package/dist/mjs/src/models/CreateMerchantAccountDto.js +92 -0
  162. package/dist/mjs/src/models/CreateMerchantAccountDtoCfee.d.ts +40 -0
  163. package/dist/mjs/src/models/CreateMerchantAccountDtoCfee.js +50 -0
  164. package/dist/mjs/src/models/CreateMerchantAccountDtoGateways.d.ts +41 -0
  165. package/dist/mjs/src/models/CreateMerchantAccountDtoGateways.js +51 -0
  166. package/dist/mjs/src/models/CreateMerchantAccountsDto.d.ts +114 -0
  167. package/dist/mjs/src/models/CreateMerchantAccountsDto.js +89 -0
  168. package/dist/mjs/src/models/CreateMerchantAddressDto.d.ts +68 -0
  169. package/dist/mjs/src/models/CreateMerchantAddressDto.js +58 -0
  170. package/dist/mjs/src/models/CreateMerchantCredentialsDto.d.ts +32 -0
  171. package/dist/mjs/src/models/CreateMerchantCredentialsDto.js +43 -0
  172. package/dist/mjs/src/models/CreateMerchantDto.d.ts +70 -0
  173. package/dist/mjs/src/models/CreateMerchantDto.js +59 -0
  174. package/dist/mjs/src/models/CreateMerchantDtoAddress.d.ts +68 -0
  175. package/dist/mjs/src/models/CreateMerchantDtoAddress.js +58 -0
  176. package/dist/mjs/src/models/CreateMerchantGateway.d.ts +41 -0
  177. package/dist/mjs/src/models/CreateMerchantGateway.js +51 -0
  178. package/dist/mjs/src/models/CreatePaymentMethodDto.d.ts +63 -0
  179. package/dist/mjs/src/models/CreatePaymentMethodDto.js +58 -0
  180. package/dist/mjs/src/models/CreateTransactionDto.d.ts +80 -0
  181. package/dist/mjs/src/models/CreateTransactionDto.js +70 -0
  182. package/dist/mjs/src/models/CreateTransactionDtoPaymentMethod.d.ts +76 -0
  183. package/dist/mjs/src/models/CreateTransactionDtoPaymentMethod.js +61 -0
  184. package/dist/mjs/src/models/ErrorEntity.d.ts +56 -0
  185. package/dist/mjs/src/models/ErrorEntity.js +49 -0
  186. package/dist/mjs/src/models/MerchantAccountEntity.d.ts +108 -0
  187. package/dist/mjs/src/models/MerchantAccountEntity.js +90 -0
  188. package/dist/mjs/src/models/MerchantAccountEntityCfee.d.ts +40 -0
  189. package/dist/mjs/src/models/MerchantAccountEntityCfee.js +50 -0
  190. package/dist/mjs/src/models/MerchantAddressEntity.d.ts +68 -0
  191. package/dist/mjs/src/models/MerchantAddressEntity.js +58 -0
  192. package/dist/mjs/src/models/MerchantCredentialsEntity.d.ts +74 -0
  193. package/dist/mjs/src/models/MerchantCredentialsEntity.js +63 -0
  194. package/dist/mjs/src/models/MerchantEntity.d.ts +88 -0
  195. package/dist/mjs/src/models/MerchantEntity.js +68 -0
  196. package/dist/mjs/src/models/MerchantEntityAddress.d.ts +68 -0
  197. package/dist/mjs/src/models/MerchantEntityAddress.js +58 -0
  198. package/dist/mjs/src/models/MerchantGatewayEntity.d.ts +59 -0
  199. package/dist/mjs/src/models/MerchantGatewayEntity.js +60 -0
  200. package/dist/mjs/src/models/PaymentMethodDto.d.ts +76 -0
  201. package/dist/mjs/src/models/PaymentMethodDto.js +61 -0
  202. package/dist/mjs/src/models/PaymentMethodEntity.d.ts +124 -0
  203. package/dist/mjs/src/models/PaymentMethodEntity.js +90 -0
  204. package/dist/mjs/src/models/PaymentMethodEntity1.d.ts +89 -0
  205. package/dist/mjs/src/models/PaymentMethodEntity1.js +67 -0
  206. package/dist/mjs/src/models/PaymentMethodEntityBuyer.d.ts +69 -0
  207. package/dist/mjs/src/models/PaymentMethodEntityBuyer.js +60 -0
  208. package/dist/mjs/src/models/PaymentMethodEntityDetails.d.ts +59 -0
  209. package/dist/mjs/src/models/PaymentMethodEntityDetails.js +60 -0
  210. package/dist/mjs/src/models/PaymentMethodsSearchEntity.d.ts +51 -0
  211. package/dist/mjs/src/models/PaymentMethodsSearchEntity.js +51 -0
  212. package/dist/mjs/src/models/PaymentsBuyerEntity.d.ts +69 -0
  213. package/dist/mjs/src/models/PaymentsBuyerEntity.js +55 -0
  214. package/dist/mjs/src/models/RefundTransactionDto.d.ts +32 -0
  215. package/dist/mjs/src/models/RefundTransactionDto.js +43 -0
  216. package/dist/mjs/src/models/TransactionEntity.d.ts +198 -0
  217. package/dist/mjs/src/models/TransactionEntity.js +121 -0
  218. package/dist/mjs/src/models/TransactionRefundEntity.d.ts +85 -0
  219. package/dist/mjs/src/models/TransactionRefundEntity.js +73 -0
  220. package/dist/mjs/src/models/TransactionRefundsSearchEntity.d.ts +51 -0
  221. package/dist/mjs/src/models/TransactionRefundsSearchEntity.js +51 -0
  222. package/dist/mjs/src/models/TransactionsSearchEntity.d.ts +51 -0
  223. package/dist/mjs/src/models/TransactionsSearchEntity.js +51 -0
  224. package/dist/mjs/src/models/UpdateAddressDto.d.ts +62 -0
  225. package/dist/mjs/src/models/UpdateAddressDto.js +51 -0
  226. package/dist/mjs/src/models/UpdateBuyerDto.d.ts +63 -0
  227. package/dist/mjs/src/models/UpdateBuyerDto.js +53 -0
  228. package/dist/mjs/src/models/UpdateBuyerDtoAddress.d.ts +62 -0
  229. package/dist/mjs/src/models/UpdateBuyerDtoAddress.js +51 -0
  230. package/dist/mjs/src/models/UpdateCFeeDto.d.ts +40 -0
  231. package/dist/mjs/src/models/UpdateCFeeDto.js +48 -0
  232. package/dist/mjs/src/models/UpdateMerchantAccountDto.d.ts +107 -0
  233. package/dist/mjs/src/models/UpdateMerchantAccountDto.js +82 -0
  234. package/dist/mjs/src/models/UpdateMerchantAccountDtoCfee.d.ts +40 -0
  235. package/dist/mjs/src/models/UpdateMerchantAccountDtoCfee.js +48 -0
  236. package/dist/mjs/src/models/UpdateMerchantAddressDto.d.ts +68 -0
  237. package/dist/mjs/src/models/UpdateMerchantAddressDto.js +53 -0
  238. package/dist/mjs/src/models/UpdateMerchantCredentialsDto.d.ts +32 -0
  239. package/dist/mjs/src/models/UpdateMerchantCredentialsDto.js +42 -0
  240. package/dist/mjs/src/models/UpdateMerchantDto.d.ts +81 -0
  241. package/dist/mjs/src/models/UpdateMerchantDto.js +59 -0
  242. package/dist/mjs/src/models/UpdateMerchantDtoAddress.d.ts +68 -0
  243. package/dist/mjs/src/models/UpdateMerchantDtoAddress.js +53 -0
  244. package/dist/mjs/src/models/ValidateMerchantCredentialsDto.d.ts +26 -0
  245. package/dist/mjs/src/models/ValidateMerchantCredentialsDto.js +40 -0
  246. package/dist/mjs/src/models/index.d.ts +56 -0
  247. package/dist/mjs/src/models/index.js +58 -0
  248. package/dist/mjs/src/runtime.d.ts +118 -0
  249. package/dist/mjs/src/runtime.js +234 -0
  250. package/dist/mjs/test.d.ts +1 -0
  251. package/dist/mjs/test.js +47 -0
  252. package/package.json +32 -0
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface ErrorEntity
11
+ */
12
+ export interface ErrorEntity {
13
+ /**
14
+ *
15
+ * @type {number}
16
+ * @memberof ErrorEntity
17
+ */
18
+ statusCode?: number;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ErrorEntity
23
+ */
24
+ message?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ErrorEntity
29
+ */
30
+ path?: string;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof ErrorEntity
35
+ */
36
+ timestamp?: Date;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ErrorEntity
41
+ */
42
+ method?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ErrorEntity
47
+ */
48
+ requestId?: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the ErrorEntity interface.
52
+ */
53
+ export declare function instanceOfErrorEntity(value: object): boolean;
54
+ export declare function ErrorEntityFromJSON(json: any): ErrorEntity;
55
+ export declare function ErrorEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorEntity;
56
+ export declare function ErrorEntityToJSON(value?: ErrorEntity | null): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.ErrorEntityToJSON = exports.ErrorEntityFromJSONTyped = exports.ErrorEntityFromJSON = exports.instanceOfErrorEntity = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the ErrorEntity interface.
15
+ */
16
+ function instanceOfErrorEntity(value) {
17
+ let isInstance = true;
18
+ return isInstance;
19
+ }
20
+ exports.instanceOfErrorEntity = instanceOfErrorEntity;
21
+ function ErrorEntityFromJSON(json) {
22
+ return ErrorEntityFromJSONTyped(json, false);
23
+ }
24
+ exports.ErrorEntityFromJSON = ErrorEntityFromJSON;
25
+ function ErrorEntityFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ const typed = {
30
+ 'statusCode': !(0, runtime_1.exists)(json, 'statusCode') ? undefined : json['statusCode'],
31
+ 'message': !(0, runtime_1.exists)(json, 'message') ? undefined : json['message'],
32
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
33
+ 'timestamp': !(0, runtime_1.exists)(json, 'timestamp') ? undefined : (new Date(json['timestamp'])),
34
+ 'method': !(0, runtime_1.exists)(json, 'method') ? undefined : json['method'],
35
+ 'requestId': !(0, runtime_1.exists)(json, 'requestId') ? undefined : json['requestId'],
36
+ };
37
+ return (0, runtime_1.removeNullUndefined)(typed);
38
+ }
39
+ exports.ErrorEntityFromJSONTyped = ErrorEntityFromJSONTyped;
40
+ function ErrorEntityToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'statusCode': value.statusCode,
49
+ 'message': value.message,
50
+ 'path': value.path,
51
+ 'timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()),
52
+ 'method': value.method,
53
+ 'requestId': value.requestId,
54
+ };
55
+ }
56
+ exports.ErrorEntityToJSON = ErrorEntityToJSON;
@@ -0,0 +1,108 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { MerchantAccountEntityCfee } from './MerchantAccountEntityCfee';
8
+ import type { MerchantGatewayEntity } from './MerchantGatewayEntity';
9
+ /**
10
+ *
11
+ * @export
12
+ * @interface MerchantAccountEntity
13
+ */
14
+ export interface MerchantAccountEntity {
15
+ /**
16
+ * The alphanumeric ID of the merchant account
17
+ * @type {string}
18
+ * @memberof MerchantAccountEntity
19
+ */
20
+ merchantAccountId: string;
21
+ /**
22
+ * The associated merchant ID
23
+ * @type {string}
24
+ * @memberof MerchantAccountEntity
25
+ */
26
+ merchantId?: string;
27
+ /**
28
+ * The issued MID (Merchant ID)
29
+ * @type {string}
30
+ * @memberof MerchantAccountEntity
31
+ */
32
+ issuedMid: string;
33
+ /**
34
+ * The payment service provider
35
+ * @type {string}
36
+ * @memberof MerchantAccountEntity
37
+ */
38
+ psp: MerchantAccountEntityPspEnum;
39
+ /**
40
+ *
41
+ * @type {MerchantAccountEntityCfee}
42
+ * @memberof MerchantAccountEntity
43
+ */
44
+ cfee: MerchantAccountEntityCfee;
45
+ /**
46
+ * The accepted currencies
47
+ * @type {Array<string>}
48
+ * @memberof MerchantAccountEntity
49
+ */
50
+ acceptedCurrencies: Array<MerchantAccountEntityAcceptedCurrenciesEnum>;
51
+ /**
52
+ * The date the merchant was created
53
+ * @type {Date}
54
+ * @memberof MerchantAccountEntity
55
+ */
56
+ createdAt: Date;
57
+ /**
58
+ * The date the merchant was last updated
59
+ * @type {Date}
60
+ * @memberof MerchantAccountEntity
61
+ */
62
+ updatedAt: Date;
63
+ /**
64
+ * The payment method
65
+ * @type {string}
66
+ * @memberof MerchantAccountEntity
67
+ */
68
+ paymentMethod: MerchantAccountEntityPaymentMethodEnum;
69
+ /**
70
+ *
71
+ * @type {Array<MerchantGatewayEntity>}
72
+ * @memberof MerchantAccountEntity
73
+ */
74
+ gateways?: Array<MerchantGatewayEntity>;
75
+ }
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const MerchantAccountEntityPspEnum: {
80
+ readonly Tsys: "TSYS";
81
+ readonly Nashville: "NASHVILLE";
82
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
83
+ };
84
+ export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const MerchantAccountEntityAcceptedCurrenciesEnum: {
89
+ readonly Usd: "USD";
90
+ readonly Aud: "AUD";
91
+ readonly Cad: "CAD";
92
+ };
93
+ export type MerchantAccountEntityAcceptedCurrenciesEnum = typeof MerchantAccountEntityAcceptedCurrenciesEnum[keyof typeof MerchantAccountEntityAcceptedCurrenciesEnum];
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const MerchantAccountEntityPaymentMethodEnum: {
98
+ readonly Card: "CARD";
99
+ readonly Ach: "ACH";
100
+ };
101
+ export type MerchantAccountEntityPaymentMethodEnum = typeof MerchantAccountEntityPaymentMethodEnum[keyof typeof MerchantAccountEntityPaymentMethodEnum];
102
+ /**
103
+ * Check if a given object implements the MerchantAccountEntity interface.
104
+ */
105
+ export declare function instanceOfMerchantAccountEntity(value: object): boolean;
106
+ export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
107
+ export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
108
+ export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.MerchantAccountEntityToJSON = exports.MerchantAccountEntityFromJSONTyped = exports.MerchantAccountEntityFromJSON = exports.instanceOfMerchantAccountEntity = exports.MerchantAccountEntityPaymentMethodEnum = exports.MerchantAccountEntityAcceptedCurrenciesEnum = exports.MerchantAccountEntityPspEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ const MerchantAccountEntityCfee_1 = require("./MerchantAccountEntityCfee");
14
+ const MerchantGatewayEntity_1 = require("./MerchantGatewayEntity");
15
+ /**
16
+ * @export
17
+ */
18
+ exports.MerchantAccountEntityPspEnum = {
19
+ Tsys: 'TSYS',
20
+ Nashville: 'NASHVILLE',
21
+ ChannelPayments: 'CHANNEL_PAYMENTS'
22
+ };
23
+ /**
24
+ * @export
25
+ */
26
+ exports.MerchantAccountEntityAcceptedCurrenciesEnum = {
27
+ Usd: 'USD',
28
+ Aud: 'AUD',
29
+ Cad: 'CAD'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.MerchantAccountEntityPaymentMethodEnum = {
35
+ Card: 'CARD',
36
+ Ach: 'ACH'
37
+ };
38
+ /**
39
+ * Check if a given object implements the MerchantAccountEntity interface.
40
+ */
41
+ function instanceOfMerchantAccountEntity(value) {
42
+ let isInstance = true;
43
+ isInstance = isInstance && "merchantAccountId" in value;
44
+ isInstance = isInstance && "issuedMid" in value;
45
+ isInstance = isInstance && "psp" in value;
46
+ isInstance = isInstance && "cfee" in value;
47
+ isInstance = isInstance && "acceptedCurrencies" in value;
48
+ isInstance = isInstance && "createdAt" in value;
49
+ isInstance = isInstance && "updatedAt" in value;
50
+ isInstance = isInstance && "paymentMethod" in value;
51
+ return isInstance;
52
+ }
53
+ exports.instanceOfMerchantAccountEntity = instanceOfMerchantAccountEntity;
54
+ function MerchantAccountEntityFromJSON(json) {
55
+ return MerchantAccountEntityFromJSONTyped(json, false);
56
+ }
57
+ exports.MerchantAccountEntityFromJSON = MerchantAccountEntityFromJSON;
58
+ function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ const typed = {
63
+ 'merchantAccountId': json['merchantAccountId'],
64
+ 'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
65
+ 'issuedMid': json['issuedMid'],
66
+ 'psp': json['psp'],
67
+ 'cfee': (0, MerchantAccountEntityCfee_1.MerchantAccountEntityCfeeFromJSON)(json['cfee']),
68
+ 'acceptedCurrencies': json['acceptedCurrencies'],
69
+ 'createdAt': (new Date(json['createdAt'])),
70
+ 'updatedAt': (new Date(json['updatedAt'])),
71
+ 'paymentMethod': json['paymentMethod'],
72
+ 'gateways': !(0, runtime_1.exists)(json, 'gateways') ? undefined : (json['gateways'].map(MerchantGatewayEntity_1.MerchantGatewayEntityFromJSON)),
73
+ };
74
+ return (0, runtime_1.removeNullUndefined)(typed);
75
+ }
76
+ exports.MerchantAccountEntityFromJSONTyped = MerchantAccountEntityFromJSONTyped;
77
+ function MerchantAccountEntityToJSON(value) {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+ 'merchantAccountId': value.merchantAccountId,
86
+ 'merchantId': value.merchantId,
87
+ 'issuedMid': value.issuedMid,
88
+ 'psp': value.psp,
89
+ 'cfee': (0, MerchantAccountEntityCfee_1.MerchantAccountEntityCfeeToJSON)(value.cfee),
90
+ 'acceptedCurrencies': value.acceptedCurrencies,
91
+ 'createdAt': (value.createdAt.toISOString()),
92
+ 'updatedAt': (value.updatedAt.toISOString()),
93
+ 'paymentMethod': value.paymentMethod,
94
+ 'gateways': value.gateways === undefined ? undefined : (value.gateways.map(MerchantGatewayEntity_1.MerchantGatewayEntityToJSON)),
95
+ };
96
+ }
97
+ exports.MerchantAccountEntityToJSON = MerchantAccountEntityToJSON;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ * The CFee details
9
+ * @export
10
+ * @interface MerchantAccountEntityCfee
11
+ */
12
+ export interface MerchantAccountEntityCfee {
13
+ /**
14
+ * The type of the CFee
15
+ * @type {string}
16
+ * @memberof MerchantAccountEntityCfee
17
+ */
18
+ type: MerchantAccountEntityCfeeTypeEnum;
19
+ /**
20
+ * The rate of the CFee as an integer
21
+ * @type {number}
22
+ * @memberof MerchantAccountEntityCfee
23
+ */
24
+ rate: number;
25
+ }
26
+ /**
27
+ * @export
28
+ */
29
+ export declare const MerchantAccountEntityCfeeTypeEnum: {
30
+ readonly Percentage: "PERCENTAGE";
31
+ readonly Fixed: "FIXED";
32
+ };
33
+ export type MerchantAccountEntityCfeeTypeEnum = typeof MerchantAccountEntityCfeeTypeEnum[keyof typeof MerchantAccountEntityCfeeTypeEnum];
34
+ /**
35
+ * Check if a given object implements the MerchantAccountEntityCfee interface.
36
+ */
37
+ export declare function instanceOfMerchantAccountEntityCfee(value: object): boolean;
38
+ export declare function MerchantAccountEntityCfeeFromJSON(json: any): MerchantAccountEntityCfee;
39
+ export declare function MerchantAccountEntityCfeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntityCfee;
40
+ export declare function MerchantAccountEntityCfeeToJSON(value?: MerchantAccountEntityCfee | null): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.MerchantAccountEntityCfeeToJSON = exports.MerchantAccountEntityCfeeFromJSONTyped = exports.MerchantAccountEntityCfeeFromJSON = exports.instanceOfMerchantAccountEntityCfee = exports.MerchantAccountEntityCfeeTypeEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * @export
15
+ */
16
+ exports.MerchantAccountEntityCfeeTypeEnum = {
17
+ Percentage: 'PERCENTAGE',
18
+ Fixed: 'FIXED'
19
+ };
20
+ /**
21
+ * Check if a given object implements the MerchantAccountEntityCfee interface.
22
+ */
23
+ function instanceOfMerchantAccountEntityCfee(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "type" in value;
26
+ isInstance = isInstance && "rate" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfMerchantAccountEntityCfee = instanceOfMerchantAccountEntityCfee;
30
+ function MerchantAccountEntityCfeeFromJSON(json) {
31
+ return MerchantAccountEntityCfeeFromJSONTyped(json, false);
32
+ }
33
+ exports.MerchantAccountEntityCfeeFromJSON = MerchantAccountEntityCfeeFromJSON;
34
+ function MerchantAccountEntityCfeeFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ const typed = {
39
+ 'type': json['type'],
40
+ 'rate': json['rate'],
41
+ };
42
+ return (0, runtime_1.removeNullUndefined)(typed);
43
+ }
44
+ exports.MerchantAccountEntityCfeeFromJSONTyped = MerchantAccountEntityCfeeFromJSONTyped;
45
+ function MerchantAccountEntityCfeeToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'type': value.type,
54
+ 'rate': value.rate,
55
+ };
56
+ }
57
+ exports.MerchantAccountEntityCfeeToJSON = MerchantAccountEntityCfeeToJSON;
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface MerchantAddressEntity
11
+ */
12
+ export interface MerchantAddressEntity {
13
+ /**
14
+ * The country of the merchant address
15
+ * @type {string}
16
+ * @memberof MerchantAddressEntity
17
+ */
18
+ country: string;
19
+ /**
20
+ * The subdivision (state, province, or region) of the merchant address
21
+ * @type {string}
22
+ * @memberof MerchantAddressEntity
23
+ */
24
+ subdivision: string;
25
+ /**
26
+ * The city of the merchant address
27
+ * @type {string}
28
+ * @memberof MerchantAddressEntity
29
+ */
30
+ city: string;
31
+ /**
32
+ * The street address of the merchant
33
+ * @type {string}
34
+ * @memberof MerchantAddressEntity
35
+ */
36
+ streetAddress: string;
37
+ /**
38
+ * The postal code of the merchant address
39
+ * @type {string}
40
+ * @memberof MerchantAddressEntity
41
+ */
42
+ postalCode: string;
43
+ /**
44
+ * The country code of the merchant address
45
+ * @type {string}
46
+ * @memberof MerchantAddressEntity
47
+ */
48
+ countryCode?: string;
49
+ /**
50
+ * The subdivision code of the merchant address
51
+ * @type {string}
52
+ * @memberof MerchantAddressEntity
53
+ */
54
+ subdivisionCode?: string;
55
+ /**
56
+ * The second line of the street address of the merchant
57
+ * @type {string}
58
+ * @memberof MerchantAddressEntity
59
+ */
60
+ streetAddress2?: string;
61
+ }
62
+ /**
63
+ * Check if a given object implements the MerchantAddressEntity interface.
64
+ */
65
+ export declare function instanceOfMerchantAddressEntity(value: object): boolean;
66
+ export declare function MerchantAddressEntityFromJSON(json: any): MerchantAddressEntity;
67
+ export declare function MerchantAddressEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAddressEntity;
68
+ export declare function MerchantAddressEntityToJSON(value?: MerchantAddressEntity | null): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.MerchantAddressEntityToJSON = exports.MerchantAddressEntityFromJSONTyped = exports.MerchantAddressEntityFromJSON = exports.instanceOfMerchantAddressEntity = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the MerchantAddressEntity interface.
15
+ */
16
+ function instanceOfMerchantAddressEntity(value) {
17
+ let isInstance = true;
18
+ isInstance = isInstance && "country" in value;
19
+ isInstance = isInstance && "subdivision" in value;
20
+ isInstance = isInstance && "city" in value;
21
+ isInstance = isInstance && "streetAddress" in value;
22
+ isInstance = isInstance && "postalCode" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfMerchantAddressEntity = instanceOfMerchantAddressEntity;
26
+ function MerchantAddressEntityFromJSON(json) {
27
+ return MerchantAddressEntityFromJSONTyped(json, false);
28
+ }
29
+ exports.MerchantAddressEntityFromJSON = MerchantAddressEntityFromJSON;
30
+ function MerchantAddressEntityFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ const typed = {
35
+ 'country': json['country'],
36
+ 'subdivision': json['subdivision'],
37
+ 'city': json['city'],
38
+ 'streetAddress': json['streetAddress'],
39
+ 'postalCode': json['postalCode'],
40
+ 'countryCode': !(0, runtime_1.exists)(json, 'countryCode') ? undefined : json['countryCode'],
41
+ 'subdivisionCode': !(0, runtime_1.exists)(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
42
+ 'streetAddress2': !(0, runtime_1.exists)(json, 'streetAddress2') ? undefined : json['streetAddress2'],
43
+ };
44
+ return (0, runtime_1.removeNullUndefined)(typed);
45
+ }
46
+ exports.MerchantAddressEntityFromJSONTyped = MerchantAddressEntityFromJSONTyped;
47
+ function MerchantAddressEntityToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'country': value.country,
56
+ 'subdivision': value.subdivision,
57
+ 'city': value.city,
58
+ 'streetAddress': value.streetAddress,
59
+ 'postalCode': value.postalCode,
60
+ 'countryCode': value.countryCode,
61
+ 'subdivisionCode': value.subdivisionCode,
62
+ 'streetAddress2': value.streetAddress2,
63
+ };
64
+ }
65
+ exports.MerchantAddressEntityToJSON = MerchantAddressEntityToJSON;
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface MerchantCredentialsEntity
11
+ */
12
+ export interface MerchantCredentialsEntity {
13
+ /**
14
+ * The merchant credentials ID
15
+ * @type {string}
16
+ * @memberof MerchantCredentialsEntity
17
+ */
18
+ merchantCredentialsId: string;
19
+ /**
20
+ * The merchant ID
21
+ * @type {string}
22
+ * @memberof MerchantCredentialsEntity
23
+ */
24
+ merchantId: string;
25
+ /**
26
+ * The given reference name
27
+ * @type {string}
28
+ * @memberof MerchantCredentialsEntity
29
+ */
30
+ credentialsName: string;
31
+ /**
32
+ * The ID of the signing key
33
+ * @type {string}
34
+ * @memberof MerchantCredentialsEntity
35
+ */
36
+ thumbprint: string;
37
+ /**
38
+ * The creation date
39
+ * @type {Date}
40
+ * @memberof MerchantCredentialsEntity
41
+ */
42
+ createdAt: Date;
43
+ /**
44
+ * The last update date
45
+ * @type {Date}
46
+ * @memberof MerchantCredentialsEntity
47
+ */
48
+ updatedAt: Date;
49
+ /**
50
+ * The algorithm used to sign the JWT
51
+ * @type {string}
52
+ * @memberof MerchantCredentialsEntity
53
+ */
54
+ algorithm: string;
55
+ /**
56
+ * The user who created the credentials
57
+ * @type {object}
58
+ * @memberof MerchantCredentialsEntity
59
+ */
60
+ createdBy: object;
61
+ /**
62
+ * The signing key
63
+ * @type {string}
64
+ * @memberof MerchantCredentialsEntity
65
+ */
66
+ signingKey?: string;
67
+ }
68
+ /**
69
+ * Check if a given object implements the MerchantCredentialsEntity interface.
70
+ */
71
+ export declare function instanceOfMerchantCredentialsEntity(value: object): boolean;
72
+ export declare function MerchantCredentialsEntityFromJSON(json: any): MerchantCredentialsEntity;
73
+ export declare function MerchantCredentialsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantCredentialsEntity;
74
+ export declare function MerchantCredentialsEntityToJSON(value?: MerchantCredentialsEntity | null): any;