@emilgroup/payment-sdk 1.4.1-beta.19 → 1.4.1-beta.20

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 (225) hide show
  1. package/.openapi-generator/FILES +0 -34
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +21 -465
  4. package/api/bank-transaction-api.ts +11 -11
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +166 -65
  7. package/api/payment-reminders-api.ts +17 -21
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +54 -55
  10. package/api/refunds-api.ts +16 -14
  11. package/api/tenant-bank-account-api.ts +25 -25
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +1 -1
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +17 -260
  18. package/dist/api/bank-accounts-api.js +17 -399
  19. package/dist/api/bank-transaction-api.d.ts +12 -12
  20. package/dist/api/bank-transaction-api.js +9 -9
  21. package/dist/api/default-api.d.ts +1 -1
  22. package/dist/api/default-api.js +1 -1
  23. package/dist/api/payment-methods-api.d.ts +100 -49
  24. package/dist/api/payment-methods-api.js +144 -46
  25. package/dist/api/payment-reminders-api.d.ts +21 -23
  26. package/dist/api/payment-reminders-api.js +9 -9
  27. package/dist/api/payment-setup-api.d.ts +19 -23
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +43 -46
  30. package/dist/api/payments-api.js +42 -38
  31. package/dist/api/refunds-api.d.ts +11 -11
  32. package/dist/api/refunds-api.js +12 -10
  33. package/dist/api/tenant-bank-account-api.d.ts +25 -25
  34. package/dist/api/tenant-bank-account-api.js +20 -20
  35. package/dist/api/webhooks-api.d.ts +1 -1
  36. package/dist/api/webhooks-api.js +1 -1
  37. package/dist/api.d.ts +1 -1
  38. package/dist/api.js +1 -1
  39. package/dist/base.d.ts +1 -1
  40. package/dist/base.js +1 -1
  41. package/dist/common.d.ts +2 -2
  42. package/dist/common.js +1 -1
  43. package/dist/configuration.d.ts +1 -1
  44. package/dist/configuration.js +1 -1
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/models/bank-transaction-response-class.d.ts +1 -1
  48. package/dist/models/bank-transaction-response-class.js +1 -1
  49. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  50. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +4 -4
  52. package/dist/models/create-payment-request-dto.js +1 -1
  53. package/dist/models/create-refund-request-dto.d.ts +1 -1
  54. package/dist/models/create-refund-request-dto.js +1 -1
  55. package/dist/models/create-refund-response-class.d.ts +1 -1
  56. package/dist/models/create-refund-response-class.js +1 -1
  57. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  58. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  59. package/dist/models/create-tenant-bank-account-response-class.d.ts +1 -1
  60. package/dist/models/create-tenant-bank-account-response-class.js +1 -1
  61. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  62. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  63. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  64. package/dist/models/get-bank-transactions-response-class.js +1 -1
  65. package/dist/models/get-refund-response-class.d.ts +1 -1
  66. package/dist/models/get-refund-response-class.js +1 -1
  67. package/dist/models/get-request-dto.d.ts +2 -2
  68. package/dist/models/get-request-dto.js +1 -1
  69. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  70. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  71. package/dist/models/index.d.ts +0 -34
  72. package/dist/models/index.js +0 -34
  73. package/dist/models/inline-response200.d.ts +1 -1
  74. package/dist/models/inline-response200.js +1 -1
  75. package/dist/models/inline-response503.d.ts +1 -1
  76. package/dist/models/inline-response503.js +1 -1
  77. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +1 -1
  78. package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
  79. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  80. package/dist/models/list-bank-transactions-response-class.js +1 -1
  81. package/dist/models/list-refunds-response-class.d.ts +1 -1
  82. package/dist/models/list-refunds-response-class.js +1 -1
  83. package/dist/models/list-tenant-bank-account-response-class.d.ts +1 -1
  84. package/dist/models/list-tenant-bank-account-response-class.js +1 -1
  85. package/dist/models/refund-class.d.ts +1 -1
  86. package/dist/models/refund-class.js +1 -1
  87. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  88. package/dist/models/tenant-bank-account-response-class.js +1 -1
  89. package/dist/models/transaction-class.d.ts +1 -1
  90. package/dist/models/transaction-class.js +1 -1
  91. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +2 -2
  92. package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
  93. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  94. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  95. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  96. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  97. package/index.ts +1 -1
  98. package/models/bank-transaction-response-class.ts +1 -1
  99. package/models/create-payment-reminder-request-dto.ts +1 -1
  100. package/models/create-payment-request-dto.ts +4 -4
  101. package/models/create-refund-request-dto.ts +1 -1
  102. package/models/create-refund-response-class.ts +1 -1
  103. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  104. package/models/create-tenant-bank-account-response-class.ts +1 -1
  105. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  106. package/models/get-bank-transactions-response-class.ts +1 -1
  107. package/models/get-refund-response-class.ts +1 -1
  108. package/models/get-request-dto.ts +2 -2
  109. package/models/get-tenant-bank-account-response-class.ts +1 -1
  110. package/models/index.ts +0 -34
  111. package/models/inline-response200.ts +1 -1
  112. package/models/inline-response503.ts +1 -1
  113. package/models/link-bank-transaction-request-dto-rest.ts +1 -1
  114. package/models/list-bank-transactions-response-class.ts +1 -1
  115. package/models/list-refunds-response-class.ts +1 -1
  116. package/models/list-tenant-bank-account-response-class.ts +1 -1
  117. package/models/refund-class.ts +1 -1
  118. package/models/tenant-bank-account-response-class.ts +1 -1
  119. package/models/transaction-class.ts +1 -1
  120. package/models/unlink-bank-transaction-request-dto-rest.ts +2 -2
  121. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  122. package/models/validate-pspconfig-request-dto.ts +2 -12
  123. package/package.json +1 -1
  124. package/dist/models/bank-account-class.d.ts +0 -79
  125. package/dist/models/bank-account-class.js +0 -15
  126. package/dist/models/billing-profile-dto.d.ts +0 -38
  127. package/dist/models/billing-profile-dto.js +0 -15
  128. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  129. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  130. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  131. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  132. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  133. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  134. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  135. package/dist/models/complete-payment-setup-response-class.js +0 -15
  136. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  137. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  138. package/dist/models/create-bank-account-request-dto.d.ts +0 -42
  139. package/dist/models/create-bank-account-request-dto.js +0 -15
  140. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  141. package/dist/models/create-payment-method-response-class.js +0 -15
  142. package/dist/models/create-payment-response-class.d.ts +0 -25
  143. package/dist/models/create-payment-response-class.js +0 -15
  144. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  145. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  146. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  147. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  148. package/dist/models/get-bank-account-response-class.d.ts +0 -25
  149. package/dist/models/get-bank-account-response-class.js +0 -15
  150. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  151. package/dist/models/get-payment-method-response-class.js +0 -15
  152. package/dist/models/get-payment-response-class.d.ts +0 -25
  153. package/dist/models/get-payment-response-class.js +0 -15
  154. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  155. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  156. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  157. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  158. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  159. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  160. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  161. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  162. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  163. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  164. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  165. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  166. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  167. package/dist/models/list-bank-accounts-response-class.js +0 -15
  168. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  169. package/dist/models/list-payment-methods-response-class.js +0 -15
  170. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  171. package/dist/models/list-payment-reminders-response-class.js +0 -15
  172. package/dist/models/list-payments-response-class.d.ts +0 -31
  173. package/dist/models/list-payments-response-class.js +0 -15
  174. package/dist/models/payment-class.d.ts +0 -103
  175. package/dist/models/payment-class.js +0 -15
  176. package/dist/models/payment-method-class.d.ts +0 -66
  177. package/dist/models/payment-method-class.js +0 -15
  178. package/dist/models/payment-reminder-class.d.ts +0 -112
  179. package/dist/models/payment-reminder-class.js +0 -36
  180. package/dist/models/primary-bank-account-response-class.d.ts +0 -42
  181. package/dist/models/primary-bank-account-response-class.js +0 -15
  182. package/dist/models/sepa-direct-dto.d.ts +0 -24
  183. package/dist/models/sepa-direct-dto.js +0 -15
  184. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +0 -24
  185. package/dist/models/set-primary-bank-account-request-dto-rest.js +0 -15
  186. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  187. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  188. package/dist/models/update-bank-account-request-dto-rest.d.ts +0 -30
  189. package/dist/models/update-bank-account-request-dto-rest.js +0 -15
  190. package/dist/models/update-bank-account-request-dto.d.ts +0 -36
  191. package/dist/models/update-bank-account-request-dto.js +0 -15
  192. package/models/bank-account-class.ts +0 -85
  193. package/models/billing-profile-dto.ts +0 -44
  194. package/models/billing-profile-limited-response-dto.ts +0 -60
  195. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  196. package/models/complete-payment-setup-request-dto.ts +0 -38
  197. package/models/complete-payment-setup-response-class.ts +0 -31
  198. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  199. package/models/create-bank-account-request-dto.ts +0 -48
  200. package/models/create-payment-method-response-class.ts +0 -31
  201. package/models/create-payment-response-class.ts +0 -31
  202. package/models/create-psp-payment-method-request-dto.ts +0 -70
  203. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  204. package/models/get-bank-account-response-class.ts +0 -31
  205. package/models/get-payment-method-response-class.ts +0 -31
  206. package/models/get-payment-response-class.ts +0 -31
  207. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  208. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  209. package/models/initiate-payment-setup-request-dto.ts +0 -50
  210. package/models/initiate-payment-setup-response-class.ts +0 -38
  211. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  212. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  213. package/models/list-bank-accounts-response-class.ts +0 -37
  214. package/models/list-payment-methods-response-class.ts +0 -37
  215. package/models/list-payment-reminders-response-class.ts +0 -37
  216. package/models/list-payments-response-class.ts +0 -37
  217. package/models/payment-class.ts +0 -109
  218. package/models/payment-method-class.ts +0 -72
  219. package/models/payment-reminder-class.ts +0 -122
  220. package/models/primary-bank-account-response-class.ts +0 -48
  221. package/models/sepa-direct-dto.ts +0 -30
  222. package/models/set-primary-bank-account-request-dto-rest.ts +0 -30
  223. package/models/symphony-profile-limited-response-dto.ts +0 -48
  224. package/models/update-bank-account-request-dto-rest.ts +0 -36
  225. package/models/update-bank-account-request-dto.ts +0 -42
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Emil Payment Service
6
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -93,7 +93,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
96
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
97
97
  * @summary Retrieve the Bank Transaction
98
98
  * @param {string} code
99
99
  * @param {string} [authorization] Bearer Token
@@ -250,7 +250,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
250
250
  });
251
251
  },
252
252
  /**
253
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
253
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
254
254
  * @summary List bank transactions
255
255
  * @param {string} [authorization] Bearer Token
256
256
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -385,7 +385,7 @@ var BankTransactionApiFp = function (configuration) {
385
385
  var localVarAxiosParamCreator = (0, exports.BankTransactionApiAxiosParamCreator)(configuration);
386
386
  return {
387
387
  /**
388
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
388
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
389
389
  * @summary Retrieve the Bank Transaction
390
390
  * @param {string} code
391
391
  * @param {string} [authorization] Bearer Token
@@ -450,7 +450,7 @@ var BankTransactionApiFp = function (configuration) {
450
450
  });
451
451
  },
452
452
  /**
453
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
453
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
454
454
  * @summary List bank transactions
455
455
  * @param {string} [authorization] Bearer Token
456
456
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -509,7 +509,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
509
509
  var localVarFp = (0, exports.BankTransactionApiFp)(configuration);
510
510
  return {
511
511
  /**
512
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
512
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
513
513
  * @summary Retrieve the Bank Transaction
514
514
  * @param {string} code
515
515
  * @param {string} [authorization] Bearer Token
@@ -544,7 +544,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
544
544
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
545
545
  },
546
546
  /**
547
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
547
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
548
548
  * @summary List bank transactions
549
549
  * @param {string} [authorization] Bearer Token
550
550
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -587,7 +587,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
587
587
  return _super !== null && _super.apply(this, arguments) || this;
588
588
  }
589
589
  /**
590
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
590
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
591
591
  * @summary Retrieve the Bank Transaction
592
592
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
593
593
  * @param {*} [options] Override http request option.
@@ -623,7 +623,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
623
623
  return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
624
624
  };
625
625
  /**
626
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
626
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
627
627
  * @summary List bank transactions
628
628
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
629
629
  * @param {*} [options] Override http request option.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Emil Payment Service
6
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -12,10 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CreatePaymentMethodResponseClass } from '../models';
16
- import { CreatePspPaymentMethodRequestDto } from '../models';
17
- import { GetPaymentMethodResponseClass } from '../models';
18
- import { ListPaymentMethodsResponseClass } from '../models';
19
15
  /**
20
16
  * PaymentMethodsApi - axios parameter creator
21
17
  * @export
@@ -23,26 +19,35 @@ import { ListPaymentMethodsResponseClass } from '../models';
23
19
  export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Configuration) => {
24
20
  /**
25
21
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
26
- * @summary Create the payment method
27
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
22
+ * @summary Create the payment-method
23
+ * @param {object} body
28
24
  * @param {string} [authorization] Bearer Token
29
25
  * @param {*} [options] Override http request option.
30
26
  * @throws {RequiredError}
31
27
  */
32
- createPaymentMethod: (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
+ /**
30
+ * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
31
+ * @summary Delete a payment method
32
+ * @param {number} id Unique identifier for payment method
33
+ * @param {string} [authorization] Bearer Token
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ deletePaymentMethod: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
38
  /**
34
39
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
35
- * @summary Retrieve the payment method
36
- * @param {string} code
37
- * @param {string} code2 Unique identifier for the object.
40
+ * @summary Retrieve a payment method
41
+ * @param {string} code Unique identifier for the object.
42
+ * @param {string} expand Fields to expand response by
43
+ * @param {string} expand2 Fields to expand response by
38
44
  * @param {string} [authorization] Bearer Token
39
- * @param {string} [expand] Fields to expand response by
40
45
  * @param {*} [options] Override http request option.
41
46
  * @throws {RequiredError}
42
47
  */
43
- getPaymentMethod: (code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
+ getPaymentMethod: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
49
  /**
45
- * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
50
+ * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
46
51
  * @summary List payment methods
47
52
  * @param {string} [authorization] Bearer Token
48
53
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -64,26 +69,35 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
64
69
  export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
65
70
  /**
66
71
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
67
- * @summary Create the payment method
68
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
72
+ * @summary Create the payment-method
73
+ * @param {object} body
69
74
  * @param {string} [authorization] Bearer Token
70
75
  * @param {*} [options] Override http request option.
71
76
  * @throws {RequiredError}
72
77
  */
73
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>>;
78
+ createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
79
+ /**
80
+ * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
81
+ * @summary Delete a payment method
82
+ * @param {number} id Unique identifier for payment method
83
+ * @param {string} [authorization] Bearer Token
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
74
88
  /**
75
89
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
76
- * @summary Retrieve the payment method
77
- * @param {string} code
78
- * @param {string} code2 Unique identifier for the object.
90
+ * @summary Retrieve a payment method
91
+ * @param {string} code Unique identifier for the object.
92
+ * @param {string} expand Fields to expand response by
93
+ * @param {string} expand2 Fields to expand response by
79
94
  * @param {string} [authorization] Bearer Token
80
- * @param {string} [expand] Fields to expand response by
81
95
  * @param {*} [options] Override http request option.
82
96
  * @throws {RequiredError}
83
97
  */
84
- getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>>;
98
+ getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
85
99
  /**
86
- * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
100
+ * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
87
101
  * @summary List payment methods
88
102
  * @param {string} [authorization] Bearer Token
89
103
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -96,7 +110,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
96
110
  * @param {*} [options] Override http request option.
97
111
  * @throws {RequiredError}
98
112
  */
99
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>>;
113
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
100
114
  };
101
115
  /**
102
116
  * PaymentMethodsApi - factory interface
@@ -105,26 +119,35 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
105
119
  export declare const PaymentMethodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
106
120
  /**
107
121
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
108
- * @summary Create the payment method
109
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
122
+ * @summary Create the payment-method
123
+ * @param {object} body
110
124
  * @param {string} [authorization] Bearer Token
111
125
  * @param {*} [options] Override http request option.
112
126
  * @throws {RequiredError}
113
127
  */
114
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass>;
128
+ createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
129
+ /**
130
+ * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
131
+ * @summary Delete a payment method
132
+ * @param {number} id Unique identifier for payment method
133
+ * @param {string} [authorization] Bearer Token
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void>;
115
138
  /**
116
139
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
117
- * @summary Retrieve the payment method
118
- * @param {string} code
119
- * @param {string} code2 Unique identifier for the object.
140
+ * @summary Retrieve a payment method
141
+ * @param {string} code Unique identifier for the object.
142
+ * @param {string} expand Fields to expand response by
143
+ * @param {string} expand2 Fields to expand response by
120
144
  * @param {string} [authorization] Bearer Token
121
- * @param {string} [expand] Fields to expand response by
122
145
  * @param {*} [options] Override http request option.
123
146
  * @throws {RequiredError}
124
147
  */
125
- getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass>;
148
+ getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
126
149
  /**
127
- * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
150
+ * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
128
151
  * @summary List payment methods
129
152
  * @param {string} [authorization] Bearer Token
130
153
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -137,7 +160,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
137
160
  * @param {*} [options] Override http request option.
138
161
  * @throws {RequiredError}
139
162
  */
140
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass>;
163
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
141
164
  };
142
165
  /**
143
166
  * Request parameters for createPaymentMethod operation in PaymentMethodsApi.
@@ -147,10 +170,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
147
170
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
148
171
  /**
149
172
  *
150
- * @type {CreatePspPaymentMethodRequestDto}
173
+ * @type {object}
151
174
  * @memberof PaymentMethodsApiCreatePaymentMethod
152
175
  */
153
- readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto;
176
+ readonly body: object;
154
177
  /**
155
178
  * Bearer Token
156
179
  * @type {string}
@@ -158,6 +181,25 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
158
181
  */
159
182
  readonly authorization?: string;
160
183
  }
184
+ /**
185
+ * Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
186
+ * @export
187
+ * @interface PaymentMethodsApiDeletePaymentMethodRequest
188
+ */
189
+ export interface PaymentMethodsApiDeletePaymentMethodRequest {
190
+ /**
191
+ * Unique identifier for payment method
192
+ * @type {number}
193
+ * @memberof PaymentMethodsApiDeletePaymentMethod
194
+ */
195
+ readonly id: number;
196
+ /**
197
+ * Bearer Token
198
+ * @type {string}
199
+ * @memberof PaymentMethodsApiDeletePaymentMethod
200
+ */
201
+ readonly authorization?: string;
202
+ }
161
203
  /**
162
204
  * Request parameters for getPaymentMethod operation in PaymentMethodsApi.
163
205
  * @export
@@ -165,29 +207,29 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
165
207
  */
166
208
  export interface PaymentMethodsApiGetPaymentMethodRequest {
167
209
  /**
168
- *
210
+ * Unique identifier for the object.
169
211
  * @type {string}
170
212
  * @memberof PaymentMethodsApiGetPaymentMethod
171
213
  */
172
214
  readonly code: string;
173
215
  /**
174
- * Unique identifier for the object.
216
+ * Fields to expand response by
175
217
  * @type {string}
176
218
  * @memberof PaymentMethodsApiGetPaymentMethod
177
219
  */
178
- readonly code2: string;
220
+ readonly expand: string;
179
221
  /**
180
- * Bearer Token
222
+ * Fields to expand response by
181
223
  * @type {string}
182
224
  * @memberof PaymentMethodsApiGetPaymentMethod
183
225
  */
184
- readonly authorization?: string;
226
+ readonly expand2: string;
185
227
  /**
186
- * Fields to expand response by
228
+ * Bearer Token
187
229
  * @type {string}
188
230
  * @memberof PaymentMethodsApiGetPaymentMethod
189
231
  */
190
- readonly expand?: string;
232
+ readonly authorization?: string;
191
233
  }
192
234
  /**
193
235
  * Request parameters for listPaymentMethods operation in PaymentMethodsApi.
@@ -253,29 +295,38 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
253
295
  export declare class PaymentMethodsApi extends BaseAPI {
254
296
  /**
255
297
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
256
- * @summary Create the payment method
298
+ * @summary Create the payment-method
257
299
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
258
300
  * @param {*} [options] Override http request option.
259
301
  * @throws {RequiredError}
260
302
  * @memberof PaymentMethodsApi
261
303
  */
262
- createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any>>;
304
+ createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
305
+ /**
306
+ * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
307
+ * @summary Delete a payment method
308
+ * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ * @memberof PaymentMethodsApi
312
+ */
313
+ deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
263
314
  /**
264
315
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
265
- * @summary Retrieve the payment method
316
+ * @summary Retrieve a payment method
266
317
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
267
318
  * @param {*} [options] Override http request option.
268
319
  * @throws {RequiredError}
269
320
  * @memberof PaymentMethodsApi
270
321
  */
271
- getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any>>;
322
+ getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
272
323
  /**
273
- * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
324
+ * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
274
325
  * @summary List payment methods
275
326
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
276
327
  * @param {*} [options] Override http request option.
277
328
  * @throws {RequiredError}
278
329
  * @memberof PaymentMethodsApi
279
330
  */
280
- listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any>>;
331
+ listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
281
332
  }