@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,58 @@
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.CreateMerchantAccountDtoGatewaysToJSON = exports.CreateMerchantAccountDtoGatewaysFromJSONTyped = exports.CreateMerchantAccountDtoGatewaysFromJSON = exports.instanceOfCreateMerchantAccountDtoGateways = exports.CreateMerchantAccountDtoGatewaysNameEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * @export
15
+ */
16
+ exports.CreateMerchantAccountDtoGatewaysNameEnum = {
17
+ Epay: 'EPAY',
18
+ Nmi: 'NMI',
19
+ AuthorizeNet: 'AUTHORIZE_NET'
20
+ };
21
+ /**
22
+ * Check if a given object implements the CreateMerchantAccountDtoGateways interface.
23
+ */
24
+ function instanceOfCreateMerchantAccountDtoGateways(value) {
25
+ let isInstance = true;
26
+ isInstance = isInstance && "name" in value;
27
+ isInstance = isInstance && "issuedGatewayId" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfCreateMerchantAccountDtoGateways = instanceOfCreateMerchantAccountDtoGateways;
31
+ function CreateMerchantAccountDtoGatewaysFromJSON(json) {
32
+ return CreateMerchantAccountDtoGatewaysFromJSONTyped(json, false);
33
+ }
34
+ exports.CreateMerchantAccountDtoGatewaysFromJSON = CreateMerchantAccountDtoGatewaysFromJSON;
35
+ function CreateMerchantAccountDtoGatewaysFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ const typed = {
40
+ 'name': json['name'],
41
+ 'issuedGatewayId': json['issuedGatewayId'],
42
+ };
43
+ return (0, runtime_1.removeNullUndefined)(typed);
44
+ }
45
+ exports.CreateMerchantAccountDtoGatewaysFromJSONTyped = CreateMerchantAccountDtoGatewaysFromJSONTyped;
46
+ function CreateMerchantAccountDtoGatewaysToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'name': value.name,
55
+ 'issuedGatewayId': value.issuedGatewayId,
56
+ };
57
+ }
58
+ exports.CreateMerchantAccountDtoGatewaysToJSON = CreateMerchantAccountDtoGatewaysToJSON;
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CreateMerchantAccountDtoCfee } from './CreateMerchantAccountDtoCfee';
8
+ import type { CreateMerchantAccountDtoGateways } from './CreateMerchantAccountDtoGateways';
9
+ /**
10
+ *
11
+ * @export
12
+ * @interface CreateMerchantAccountsDto
13
+ */
14
+ export interface CreateMerchantAccountsDto {
15
+ /**
16
+ * The issued MID (Merchant ID)
17
+ * @type {string}
18
+ * @memberof CreateMerchantAccountsDto
19
+ */
20
+ issuedMid: string;
21
+ /**
22
+ * The payment method
23
+ * @type {string}
24
+ * @memberof CreateMerchantAccountsDto
25
+ */
26
+ paymentMethod: CreateMerchantAccountsDtoPaymentMethodEnum;
27
+ /**
28
+ * The payment service provider
29
+ * @type {string}
30
+ * @memberof CreateMerchantAccountsDto
31
+ */
32
+ psp: CreateMerchantAccountsDtoPspEnum;
33
+ /**
34
+ *
35
+ * @type {CreateMerchantAccountDtoCfee}
36
+ * @memberof CreateMerchantAccountsDto
37
+ */
38
+ cfee: CreateMerchantAccountDtoCfee;
39
+ /**
40
+ *
41
+ * @type {CreateMerchantAccountDtoGateways}
42
+ * @memberof CreateMerchantAccountsDto
43
+ */
44
+ gateways: CreateMerchantAccountDtoGateways;
45
+ /**
46
+ * The accepted currencies
47
+ * @type {Array<string>}
48
+ * @memberof CreateMerchantAccountsDto
49
+ */
50
+ acceptedCurrencies?: Array<CreateMerchantAccountsDtoAcceptedCurrenciesEnum>;
51
+ /**
52
+ * The MCC (Merchant Category Code)
53
+ * @type {string}
54
+ * @memberof CreateMerchantAccountsDto
55
+ */
56
+ mcc?: string;
57
+ /**
58
+ * The BIN (Bank Identification Number)
59
+ * @type {string}
60
+ * @memberof CreateMerchantAccountsDto
61
+ */
62
+ bin?: string;
63
+ /**
64
+ * The chain or franchise information associated with the merchant
65
+ * @type {string}
66
+ * @memberof CreateMerchantAccountsDto
67
+ */
68
+ chain?: string;
69
+ /**
70
+ * The store information associated with the merchant
71
+ * @type {string}
72
+ * @memberof CreateMerchantAccountsDto
73
+ */
74
+ store?: string;
75
+ /**
76
+ * The agent information associated with the merchant
77
+ * @type {string}
78
+ * @memberof CreateMerchantAccountsDto
79
+ */
80
+ agent?: string;
81
+ }
82
+ /**
83
+ * @export
84
+ */
85
+ export declare const CreateMerchantAccountsDtoPaymentMethodEnum: {
86
+ readonly Card: "CARD";
87
+ readonly Ach: "ACH";
88
+ };
89
+ export type CreateMerchantAccountsDtoPaymentMethodEnum = typeof CreateMerchantAccountsDtoPaymentMethodEnum[keyof typeof CreateMerchantAccountsDtoPaymentMethodEnum];
90
+ /**
91
+ * @export
92
+ */
93
+ export declare const CreateMerchantAccountsDtoPspEnum: {
94
+ readonly Tsys: "TSYS";
95
+ readonly Nashville: "NASHVILLE";
96
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
97
+ };
98
+ export type CreateMerchantAccountsDtoPspEnum = typeof CreateMerchantAccountsDtoPspEnum[keyof typeof CreateMerchantAccountsDtoPspEnum];
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const CreateMerchantAccountsDtoAcceptedCurrenciesEnum: {
103
+ readonly Usd: "USD";
104
+ readonly Aud: "AUD";
105
+ readonly Cad: "CAD";
106
+ };
107
+ export type CreateMerchantAccountsDtoAcceptedCurrenciesEnum = typeof CreateMerchantAccountsDtoAcceptedCurrenciesEnum[keyof typeof CreateMerchantAccountsDtoAcceptedCurrenciesEnum];
108
+ /**
109
+ * Check if a given object implements the CreateMerchantAccountsDto interface.
110
+ */
111
+ export declare function instanceOfCreateMerchantAccountsDto(value: object): boolean;
112
+ export declare function CreateMerchantAccountsDtoFromJSON(json: any): CreateMerchantAccountsDto;
113
+ export declare function CreateMerchantAccountsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountsDto;
114
+ export declare function CreateMerchantAccountsDtoToJSON(value?: CreateMerchantAccountsDto | null): any;
@@ -0,0 +1,96 @@
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.CreateMerchantAccountsDtoToJSON = exports.CreateMerchantAccountsDtoFromJSONTyped = exports.CreateMerchantAccountsDtoFromJSON = exports.instanceOfCreateMerchantAccountsDto = exports.CreateMerchantAccountsDtoAcceptedCurrenciesEnum = exports.CreateMerchantAccountsDtoPspEnum = exports.CreateMerchantAccountsDtoPaymentMethodEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ const CreateMerchantAccountDtoCfee_1 = require("./CreateMerchantAccountDtoCfee");
14
+ const CreateMerchantAccountDtoGateways_1 = require("./CreateMerchantAccountDtoGateways");
15
+ /**
16
+ * @export
17
+ */
18
+ exports.CreateMerchantAccountsDtoPaymentMethodEnum = {
19
+ Card: 'CARD',
20
+ Ach: 'ACH'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateMerchantAccountsDtoPspEnum = {
26
+ Tsys: 'TSYS',
27
+ Nashville: 'NASHVILLE',
28
+ ChannelPayments: 'CHANNEL_PAYMENTS'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.CreateMerchantAccountsDtoAcceptedCurrenciesEnum = {
34
+ Usd: 'USD',
35
+ Aud: 'AUD',
36
+ Cad: 'CAD'
37
+ };
38
+ /**
39
+ * Check if a given object implements the CreateMerchantAccountsDto interface.
40
+ */
41
+ function instanceOfCreateMerchantAccountsDto(value) {
42
+ let isInstance = true;
43
+ isInstance = isInstance && "issuedMid" in value;
44
+ isInstance = isInstance && "paymentMethod" in value;
45
+ isInstance = isInstance && "psp" in value;
46
+ isInstance = isInstance && "cfee" in value;
47
+ isInstance = isInstance && "gateways" in value;
48
+ return isInstance;
49
+ }
50
+ exports.instanceOfCreateMerchantAccountsDto = instanceOfCreateMerchantAccountsDto;
51
+ function CreateMerchantAccountsDtoFromJSON(json) {
52
+ return CreateMerchantAccountsDtoFromJSONTyped(json, false);
53
+ }
54
+ exports.CreateMerchantAccountsDtoFromJSON = CreateMerchantAccountsDtoFromJSON;
55
+ function CreateMerchantAccountsDtoFromJSONTyped(json, ignoreDiscriminator) {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ const typed = {
60
+ 'issuedMid': json['issuedMid'],
61
+ 'paymentMethod': json['paymentMethod'],
62
+ 'psp': json['psp'],
63
+ 'cfee': (0, CreateMerchantAccountDtoCfee_1.CreateMerchantAccountDtoCfeeFromJSON)(json['cfee']),
64
+ 'gateways': (0, CreateMerchantAccountDtoGateways_1.CreateMerchantAccountDtoGatewaysFromJSON)(json['gateways']),
65
+ 'acceptedCurrencies': !(0, runtime_1.exists)(json, 'acceptedCurrencies') ? undefined : json['acceptedCurrencies'],
66
+ 'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
67
+ 'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
68
+ 'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
69
+ 'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
70
+ 'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
71
+ };
72
+ return (0, runtime_1.removeNullUndefined)(typed);
73
+ }
74
+ exports.CreateMerchantAccountsDtoFromJSONTyped = CreateMerchantAccountsDtoFromJSONTyped;
75
+ function CreateMerchantAccountsDtoToJSON(value) {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+ 'issuedMid': value.issuedMid,
84
+ 'paymentMethod': value.paymentMethod,
85
+ 'psp': value.psp,
86
+ 'cfee': (0, CreateMerchantAccountDtoCfee_1.CreateMerchantAccountDtoCfeeToJSON)(value.cfee),
87
+ 'gateways': (0, CreateMerchantAccountDtoGateways_1.CreateMerchantAccountDtoGatewaysToJSON)(value.gateways),
88
+ 'acceptedCurrencies': value.acceptedCurrencies,
89
+ 'mcc': value.mcc,
90
+ 'bin': value.bin,
91
+ 'chain': value.chain,
92
+ 'store': value.store,
93
+ 'agent': value.agent,
94
+ };
95
+ }
96
+ exports.CreateMerchantAccountsDtoToJSON = CreateMerchantAccountsDtoToJSON;
@@ -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 CreateMerchantAddressDto
11
+ */
12
+ export interface CreateMerchantAddressDto {
13
+ /**
14
+ * The country of the merchant address
15
+ * @type {string}
16
+ * @memberof CreateMerchantAddressDto
17
+ */
18
+ country: string;
19
+ /**
20
+ * The subdivision (state, province, or region) of the merchant address
21
+ * @type {string}
22
+ * @memberof CreateMerchantAddressDto
23
+ */
24
+ subdivision: string;
25
+ /**
26
+ * The city of the merchant address
27
+ * @type {string}
28
+ * @memberof CreateMerchantAddressDto
29
+ */
30
+ city: string;
31
+ /**
32
+ * The street address of the merchant
33
+ * @type {string}
34
+ * @memberof CreateMerchantAddressDto
35
+ */
36
+ streetAddress: string;
37
+ /**
38
+ * The postal code of the merchant address
39
+ * @type {string}
40
+ * @memberof CreateMerchantAddressDto
41
+ */
42
+ postalCode: string;
43
+ /**
44
+ * The country code of the merchant address
45
+ * @type {string}
46
+ * @memberof CreateMerchantAddressDto
47
+ */
48
+ countryCode?: string;
49
+ /**
50
+ * The second line of the street address of the merchant
51
+ * @type {string}
52
+ * @memberof CreateMerchantAddressDto
53
+ */
54
+ streetAddress2?: string;
55
+ /**
56
+ * The subdivision code of the merchant address
57
+ * @type {string}
58
+ * @memberof CreateMerchantAddressDto
59
+ */
60
+ subdivisionCode?: string;
61
+ }
62
+ /**
63
+ * Check if a given object implements the CreateMerchantAddressDto interface.
64
+ */
65
+ export declare function instanceOfCreateMerchantAddressDto(value: object): boolean;
66
+ export declare function CreateMerchantAddressDtoFromJSON(json: any): CreateMerchantAddressDto;
67
+ export declare function CreateMerchantAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAddressDto;
68
+ export declare function CreateMerchantAddressDtoToJSON(value?: CreateMerchantAddressDto | 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.CreateMerchantAddressDtoToJSON = exports.CreateMerchantAddressDtoFromJSONTyped = exports.CreateMerchantAddressDtoFromJSON = exports.instanceOfCreateMerchantAddressDto = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the CreateMerchantAddressDto interface.
15
+ */
16
+ function instanceOfCreateMerchantAddressDto(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.instanceOfCreateMerchantAddressDto = instanceOfCreateMerchantAddressDto;
26
+ function CreateMerchantAddressDtoFromJSON(json) {
27
+ return CreateMerchantAddressDtoFromJSONTyped(json, false);
28
+ }
29
+ exports.CreateMerchantAddressDtoFromJSON = CreateMerchantAddressDtoFromJSON;
30
+ function CreateMerchantAddressDtoFromJSONTyped(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
+ 'streetAddress2': !(0, runtime_1.exists)(json, 'streetAddress2') ? undefined : json['streetAddress2'],
42
+ 'subdivisionCode': !(0, runtime_1.exists)(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
43
+ };
44
+ return (0, runtime_1.removeNullUndefined)(typed);
45
+ }
46
+ exports.CreateMerchantAddressDtoFromJSONTyped = CreateMerchantAddressDtoFromJSONTyped;
47
+ function CreateMerchantAddressDtoToJSON(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
+ 'streetAddress2': value.streetAddress2,
62
+ 'subdivisionCode': value.subdivisionCode,
63
+ };
64
+ }
65
+ exports.CreateMerchantAddressDtoToJSON = CreateMerchantAddressDtoToJSON;
@@ -0,0 +1,32 @@
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 CreateMerchantCredentialsDto
11
+ */
12
+ export interface CreateMerchantCredentialsDto {
13
+ /**
14
+ * The alphanumeric ID of the merchant
15
+ * @type {string}
16
+ * @memberof CreateMerchantCredentialsDto
17
+ */
18
+ merchantId: string;
19
+ /**
20
+ * The given reference name
21
+ * @type {string}
22
+ * @memberof CreateMerchantCredentialsDto
23
+ */
24
+ credentialsName: string;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CreateMerchantCredentialsDto interface.
28
+ */
29
+ export declare function instanceOfCreateMerchantCredentialsDto(value: object): boolean;
30
+ export declare function CreateMerchantCredentialsDtoFromJSON(json: any): CreateMerchantCredentialsDto;
31
+ export declare function CreateMerchantCredentialsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantCredentialsDto;
32
+ export declare function CreateMerchantCredentialsDtoToJSON(value?: CreateMerchantCredentialsDto | null): any;
@@ -0,0 +1,50 @@
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.CreateMerchantCredentialsDtoToJSON = exports.CreateMerchantCredentialsDtoFromJSONTyped = exports.CreateMerchantCredentialsDtoFromJSON = exports.instanceOfCreateMerchantCredentialsDto = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the CreateMerchantCredentialsDto interface.
15
+ */
16
+ function instanceOfCreateMerchantCredentialsDto(value) {
17
+ let isInstance = true;
18
+ isInstance = isInstance && "merchantId" in value;
19
+ isInstance = isInstance && "credentialsName" in value;
20
+ return isInstance;
21
+ }
22
+ exports.instanceOfCreateMerchantCredentialsDto = instanceOfCreateMerchantCredentialsDto;
23
+ function CreateMerchantCredentialsDtoFromJSON(json) {
24
+ return CreateMerchantCredentialsDtoFromJSONTyped(json, false);
25
+ }
26
+ exports.CreateMerchantCredentialsDtoFromJSON = CreateMerchantCredentialsDtoFromJSON;
27
+ function CreateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ const typed = {
32
+ 'merchantId': json['merchantId'],
33
+ 'credentialsName': json['credentialsName'],
34
+ };
35
+ return (0, runtime_1.removeNullUndefined)(typed);
36
+ }
37
+ exports.CreateMerchantCredentialsDtoFromJSONTyped = CreateMerchantCredentialsDtoFromJSONTyped;
38
+ function CreateMerchantCredentialsDtoToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'merchantId': value.merchantId,
47
+ 'credentialsName': value.credentialsName,
48
+ };
49
+ }
50
+ exports.CreateMerchantCredentialsDtoToJSON = CreateMerchantCredentialsDtoToJSON;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CreateMerchantAccountsDto } from './CreateMerchantAccountsDto';
8
+ import type { CreateMerchantDtoAddress } from './CreateMerchantDtoAddress';
9
+ /**
10
+ *
11
+ * @export
12
+ * @interface CreateMerchantDto
13
+ */
14
+ export interface CreateMerchantDto {
15
+ /**
16
+ * The name of the merchant
17
+ * @type {string}
18
+ * @memberof CreateMerchantDto
19
+ */
20
+ name: string;
21
+ /**
22
+ * The email address of the merchant
23
+ * @type {string}
24
+ * @memberof CreateMerchantDto
25
+ */
26
+ email: string;
27
+ /**
28
+ * The phone number of the merchant in E.164 format
29
+ * @type {string}
30
+ * @memberof CreateMerchantDto
31
+ */
32
+ phoneNumber: string;
33
+ /**
34
+ *
35
+ * @type {CreateMerchantDtoAddress}
36
+ * @memberof CreateMerchantDto
37
+ */
38
+ address: CreateMerchantDtoAddress;
39
+ /**
40
+ * The website URL of the merchant
41
+ * @type {string}
42
+ * @memberof CreateMerchantDto
43
+ */
44
+ website?: string;
45
+ /**
46
+ * The URL of the merchant logo
47
+ * @type {string}
48
+ * @memberof CreateMerchantDto
49
+ */
50
+ logo?: string;
51
+ /**
52
+ * The alphanumeric parent merchant ID
53
+ * @type {string}
54
+ * @memberof CreateMerchantDto
55
+ */
56
+ parentMerchantId?: string;
57
+ /**
58
+ * Array of merchant accounts
59
+ * @type {Array<CreateMerchantAccountsDto>}
60
+ * @memberof CreateMerchantDto
61
+ */
62
+ merchantAccounts?: Array<CreateMerchantAccountsDto>;
63
+ }
64
+ /**
65
+ * Check if a given object implements the CreateMerchantDto interface.
66
+ */
67
+ export declare function instanceOfCreateMerchantDto(value: object): boolean;
68
+ export declare function CreateMerchantDtoFromJSON(json: any): CreateMerchantDto;
69
+ export declare function CreateMerchantDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantDto;
70
+ export declare function CreateMerchantDtoToJSON(value?: CreateMerchantDto | null): any;
@@ -0,0 +1,66 @@
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.CreateMerchantDtoToJSON = exports.CreateMerchantDtoFromJSONTyped = exports.CreateMerchantDtoFromJSON = exports.instanceOfCreateMerchantDto = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ const CreateMerchantAccountsDto_1 = require("./CreateMerchantAccountsDto");
14
+ const CreateMerchantDtoAddress_1 = require("./CreateMerchantDtoAddress");
15
+ /**
16
+ * Check if a given object implements the CreateMerchantDto interface.
17
+ */
18
+ function instanceOfCreateMerchantDto(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "name" in value;
21
+ isInstance = isInstance && "email" in value;
22
+ isInstance = isInstance && "phoneNumber" in value;
23
+ isInstance = isInstance && "address" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfCreateMerchantDto = instanceOfCreateMerchantDto;
27
+ function CreateMerchantDtoFromJSON(json) {
28
+ return CreateMerchantDtoFromJSONTyped(json, false);
29
+ }
30
+ exports.CreateMerchantDtoFromJSON = CreateMerchantDtoFromJSON;
31
+ function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ const typed = {
36
+ 'name': json['name'],
37
+ 'email': json['email'],
38
+ 'phoneNumber': json['phoneNumber'],
39
+ 'address': (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressFromJSON)(json['address']),
40
+ 'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
41
+ 'logo': !(0, runtime_1.exists)(json, 'logo') ? undefined : json['logo'],
42
+ 'parentMerchantId': !(0, runtime_1.exists)(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
43
+ 'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountsDto_1.CreateMerchantAccountsDtoFromJSON)),
44
+ };
45
+ return (0, runtime_1.removeNullUndefined)(typed);
46
+ }
47
+ exports.CreateMerchantDtoFromJSONTyped = CreateMerchantDtoFromJSONTyped;
48
+ function CreateMerchantDtoToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'name': value.name,
57
+ 'email': value.email,
58
+ 'phoneNumber': value.phoneNumber,
59
+ 'address': (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressToJSON)(value.address),
60
+ 'website': value.website,
61
+ 'logo': value.logo,
62
+ 'parentMerchantId': value.parentMerchantId,
63
+ 'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountsDto_1.CreateMerchantAccountsDtoToJSON)),
64
+ };
65
+ }
66
+ exports.CreateMerchantDtoToJSON = CreateMerchantDtoToJSON;