@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
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -35,7 +35,7 @@ import { UnlinkBankTransactionRequestDtoRest } from '../models';
35
35
  export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * 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.
38
+ * 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.
39
39
  * @summary Retrieve the Bank Transaction
40
40
  * @param {string} code
41
41
  * @param {string} [authorization] Bearer Token
@@ -188,7 +188,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
188
188
  };
189
189
  },
190
190
  /**
191
- * 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.
191
+ * 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.
192
192
  * @summary List bank transactions
193
193
  * @param {string} [authorization] Bearer Token
194
194
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -325,7 +325,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
325
325
  const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
326
326
  return {
327
327
  /**
328
- * 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.
328
+ * 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.
329
329
  * @summary Retrieve the Bank Transaction
330
330
  * @param {string} code
331
331
  * @param {string} [authorization] Bearer Token
@@ -363,7 +363,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
363
363
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
364
  },
365
365
  /**
366
- * 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.
366
+ * 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.
367
367
  * @summary List bank transactions
368
368
  * @param {string} [authorization] Bearer Token
369
369
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -376,7 +376,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
376
376
  * @param {*} [options] Override http request option.
377
377
  * @throws {RequiredError}
378
378
  */
379
- async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
379
+ async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
380
380
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
381
381
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
382
382
  },
@@ -404,7 +404,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
404
404
  const localVarFp = BankTransactionApiFp(configuration)
405
405
  return {
406
406
  /**
407
- * 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.
407
+ * 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.
408
408
  * @summary Retrieve the Bank Transaction
409
409
  * @param {string} code
410
410
  * @param {string} [authorization] Bearer Token
@@ -439,7 +439,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
439
439
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
440
440
  },
441
441
  /**
442
- * 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.
442
+ * 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.
443
443
  * @summary List bank transactions
444
444
  * @param {string} [authorization] Bearer Token
445
445
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -452,7 +452,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
452
452
  * @param {*} [options] Override http request option.
453
453
  * @throws {RequiredError}
454
454
  */
455
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
455
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void> {
456
456
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
457
457
  },
458
458
  /**
@@ -646,7 +646,7 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
646
646
  */
647
647
  export class BankTransactionApi extends BaseAPI {
648
648
  /**
649
- * 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.
649
+ * 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.
650
650
  * @summary Retrieve the Bank Transaction
651
651
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
652
652
  * @param {*} [options] Override http request option.
@@ -682,7 +682,7 @@ export class BankTransactionApi extends BaseAPI {
682
682
  }
683
683
 
684
684
  /**
685
- * 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.
685
+ * 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.
686
686
  * @summary List bank transactions
687
687
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
688
688
  * @param {*} [options] Override http request option.
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreatePaymentMethodResponseClass } from '../models';
25
- // @ts-ignore
26
- import { CreatePspPaymentMethodRequestDto } from '../models';
27
- // @ts-ignore
28
- import { GetPaymentMethodResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListPaymentMethodsResponseClass } from '../models';
31
23
  /**
32
24
  * PaymentMethodsApi - axios parameter creator
33
25
  * @export
@@ -36,15 +28,15 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
36
28
  return {
37
29
  /**
38
30
  * 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.
39
- * @summary Create the payment method
40
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
31
+ * @summary Create the payment-method
32
+ * @param {object} body
41
33
  * @param {string} [authorization] Bearer Token
42
34
  * @param {*} [options] Override http request option.
43
35
  * @throws {RequiredError}
44
36
  */
45
- createPaymentMethod: async (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
47
- assertParamExists('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto)
37
+ createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'body' is not null or undefined
39
+ assertParamExists('createPaymentMethod', 'body', body)
48
40
  const localVarPath = `/paymentservice/v1/payment-methods`;
49
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
42
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -74,7 +66,55 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
74
66
  setSearchParams(localVarUrlObj, localVarQueryParameter);
75
67
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
68
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration)
69
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
70
+
71
+ return {
72
+ url: toPathString(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ },
76
+ /**
77
+ * 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.
78
+ * @summary Delete a payment method
79
+ * @param {number} id Unique identifier for payment method
80
+ * @param {string} [authorization] Bearer Token
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ */
84
+ deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
85
+ // verify required parameter 'id' is not null or undefined
86
+ assertParamExists('deletePaymentMethod', 'id', id)
87
+ const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
88
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ let baseAccessToken;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ baseAccessToken = configuration.accessToken;
95
+ }
96
+
97
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
98
+ const localVarHeaderParameter = {} as any;
99
+ const localVarQueryParameter = {} as any;
100
+
101
+ // authentication bearer required
102
+ // http bearer authentication required
103
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
104
+
105
+ if (id !== undefined) {
106
+ localVarQueryParameter['id'] = id;
107
+ }
108
+
109
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
110
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
111
+ }
112
+
113
+
114
+
115
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
118
 
79
119
  return {
80
120
  url: toPathString(localVarUrlObj),
@@ -83,21 +123,22 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
83
123
  },
84
124
  /**
85
125
  * 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.
86
- * @summary Retrieve the payment method
87
- * @param {string} code
88
- * @param {string} code2 Unique identifier for the object.
126
+ * @summary Retrieve a payment method
127
+ * @param {string} code Unique identifier for the object.
128
+ * @param {string} expand Fields to expand response by
129
+ * @param {string} expand2 Fields to expand response by
89
130
  * @param {string} [authorization] Bearer Token
90
- * @param {string} [expand] Fields to expand response by
91
131
  * @param {*} [options] Override http request option.
92
132
  * @throws {RequiredError}
93
133
  */
94
- getPaymentMethod: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
134
+ getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
135
  // verify required parameter 'code' is not null or undefined
96
136
  assertParamExists('getPaymentMethod', 'code', code)
97
- // verify required parameter 'code2' is not null or undefined
98
- assertParamExists('getPaymentMethod', 'code2', code2)
99
- const localVarPath = `/paymentservice/v1/payment-methods/{code}`
100
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
137
+ // verify required parameter 'expand' is not null or undefined
138
+ assertParamExists('getPaymentMethod', 'expand', expand)
139
+ // verify required parameter 'expand2' is not null or undefined
140
+ assertParamExists('getPaymentMethod', 'expand2', expand2)
141
+ const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
101
142
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
143
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
144
  let baseOptions;
@@ -115,14 +156,18 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
115
156
  // http bearer authentication required
116
157
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
158
 
118
- if (code2 !== undefined) {
119
- localVarQueryParameter['code'] = code2;
159
+ if (code !== undefined) {
160
+ localVarQueryParameter['code'] = code;
120
161
  }
121
162
 
122
163
  if (expand !== undefined) {
123
164
  localVarQueryParameter['expand'] = expand;
124
165
  }
125
166
 
167
+ if (expand2 !== undefined) {
168
+ localVarQueryParameter['expand'] = expand2;
169
+ }
170
+
126
171
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
127
172
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
128
173
  }
@@ -139,7 +184,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
139
184
  };
140
185
  },
141
186
  /**
142
- * 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.
187
+ * 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.
143
188
  * @summary List payment methods
144
189
  * @param {string} [authorization] Bearer Token
145
190
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -226,32 +271,44 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
226
271
  return {
227
272
  /**
228
273
  * 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.
229
- * @summary Create the payment method
230
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
274
+ * @summary Create the payment-method
275
+ * @param {object} body
231
276
  * @param {string} [authorization] Bearer Token
232
277
  * @param {*} [options] Override http request option.
233
278
  * @throws {RequiredError}
234
279
  */
235
- async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
236
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
280
+ async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
282
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
283
+ },
284
+ /**
285
+ * 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.
286
+ * @summary Delete a payment method
287
+ * @param {number} id Unique identifier for payment method
288
+ * @param {string} [authorization] Bearer Token
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
237
294
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
238
295
  },
239
296
  /**
240
297
  * 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.
241
- * @summary Retrieve the payment method
242
- * @param {string} code
243
- * @param {string} code2 Unique identifier for the object.
298
+ * @summary Retrieve a payment method
299
+ * @param {string} code Unique identifier for the object.
300
+ * @param {string} expand Fields to expand response by
301
+ * @param {string} expand2 Fields to expand response by
244
302
  * @param {string} [authorization] Bearer Token
245
- * @param {string} [expand] Fields to expand response by
246
303
  * @param {*} [options] Override http request option.
247
304
  * @throws {RequiredError}
248
305
  */
249
- async getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
250
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, authorization, expand, options);
306
+ async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
307
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
251
308
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
252
309
  },
253
310
  /**
254
- * 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.
311
+ * 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.
255
312
  * @summary List payment methods
256
313
  * @param {string} [authorization] Bearer Token
257
314
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -264,7 +321,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
264
321
  * @param {*} [options] Override http request option.
265
322
  * @throws {RequiredError}
266
323
  */
267
- async 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>> {
324
+ async 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>> {
268
325
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
269
326
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
270
327
  },
@@ -280,30 +337,41 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
280
337
  return {
281
338
  /**
282
339
  * 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.
283
- * @summary Create the payment method
284
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
340
+ * @summary Create the payment-method
341
+ * @param {object} body
342
+ * @param {string} [authorization] Bearer Token
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
347
+ return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
348
+ },
349
+ /**
350
+ * 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.
351
+ * @summary Delete a payment method
352
+ * @param {number} id Unique identifier for payment method
285
353
  * @param {string} [authorization] Bearer Token
286
354
  * @param {*} [options] Override http request option.
287
355
  * @throws {RequiredError}
288
356
  */
289
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
290
- return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
357
+ deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void> {
358
+ return localVarFp.deletePaymentMethod(id, authorization, options).then((request) => request(axios, basePath));
291
359
  },
292
360
  /**
293
361
  * 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.
294
- * @summary Retrieve the payment method
295
- * @param {string} code
296
- * @param {string} code2 Unique identifier for the object.
362
+ * @summary Retrieve a payment method
363
+ * @param {string} code Unique identifier for the object.
364
+ * @param {string} expand Fields to expand response by
365
+ * @param {string} expand2 Fields to expand response by
297
366
  * @param {string} [authorization] Bearer Token
298
- * @param {string} [expand] Fields to expand response by
299
367
  * @param {*} [options] Override http request option.
300
368
  * @throws {RequiredError}
301
369
  */
302
- getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
303
- return localVarFp.getPaymentMethod(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
370
+ getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
371
+ return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
304
372
  },
305
373
  /**
306
- * 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.
374
+ * 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.
307
375
  * @summary List payment methods
308
376
  * @param {string} [authorization] Bearer Token
309
377
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -316,7 +384,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
316
384
  * @param {*} [options] Override http request option.
317
385
  * @throws {RequiredError}
318
386
  */
319
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
387
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
320
388
  return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
321
389
  },
322
390
  };
@@ -330,10 +398,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
330
398
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
331
399
  /**
332
400
  *
333
- * @type {CreatePspPaymentMethodRequestDto}
401
+ * @type {object}
334
402
  * @memberof PaymentMethodsApiCreatePaymentMethod
335
403
  */
336
- readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
404
+ readonly body: object
337
405
 
338
406
  /**
339
407
  * Bearer Token
@@ -343,6 +411,27 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
343
411
  readonly authorization?: string
344
412
  }
345
413
 
414
+ /**
415
+ * Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
416
+ * @export
417
+ * @interface PaymentMethodsApiDeletePaymentMethodRequest
418
+ */
419
+ export interface PaymentMethodsApiDeletePaymentMethodRequest {
420
+ /**
421
+ * Unique identifier for payment method
422
+ * @type {number}
423
+ * @memberof PaymentMethodsApiDeletePaymentMethod
424
+ */
425
+ readonly id: number
426
+
427
+ /**
428
+ * Bearer Token
429
+ * @type {string}
430
+ * @memberof PaymentMethodsApiDeletePaymentMethod
431
+ */
432
+ readonly authorization?: string
433
+ }
434
+
346
435
  /**
347
436
  * Request parameters for getPaymentMethod operation in PaymentMethodsApi.
348
437
  * @export
@@ -350,32 +439,32 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
350
439
  */
351
440
  export interface PaymentMethodsApiGetPaymentMethodRequest {
352
441
  /**
353
- *
442
+ * Unique identifier for the object.
354
443
  * @type {string}
355
444
  * @memberof PaymentMethodsApiGetPaymentMethod
356
445
  */
357
446
  readonly code: string
358
447
 
359
448
  /**
360
- * Unique identifier for the object.
449
+ * Fields to expand response by
361
450
  * @type {string}
362
451
  * @memberof PaymentMethodsApiGetPaymentMethod
363
452
  */
364
- readonly code2: string
453
+ readonly expand: string
365
454
 
366
455
  /**
367
- * Bearer Token
456
+ * Fields to expand response by
368
457
  * @type {string}
369
458
  * @memberof PaymentMethodsApiGetPaymentMethod
370
459
  */
371
- readonly authorization?: string
460
+ readonly expand2: string
372
461
 
373
462
  /**
374
- * Fields to expand response by
463
+ * Bearer Token
375
464
  * @type {string}
376
465
  * @memberof PaymentMethodsApiGetPaymentMethod
377
466
  */
378
- readonly expand?: string
467
+ readonly authorization?: string
379
468
  }
380
469
 
381
470
  /**
@@ -450,30 +539,42 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
450
539
  export class PaymentMethodsApi extends BaseAPI {
451
540
  /**
452
541
  * 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.
453
- * @summary Create the payment method
542
+ * @summary Create the payment-method
454
543
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
455
544
  * @param {*} [options] Override http request option.
456
545
  * @throws {RequiredError}
457
546
  * @memberof PaymentMethodsApi
458
547
  */
459
548
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
460
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
549
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
550
+ }
551
+
552
+ /**
553
+ * 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.
554
+ * @summary Delete a payment method
555
+ * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ * @memberof PaymentMethodsApi
559
+ */
560
+ public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
561
+ return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
461
562
  }
462
563
 
463
564
  /**
464
565
  * 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.
465
- * @summary Retrieve the payment method
566
+ * @summary Retrieve a payment method
466
567
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
467
568
  * @param {*} [options] Override http request option.
468
569
  * @throws {RequiredError}
469
570
  * @memberof PaymentMethodsApi
470
571
  */
471
572
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
472
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
573
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
473
574
  }
474
575
 
475
576
  /**
476
- * 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.
577
+ * 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.
477
578
  * @summary List payment methods
478
579
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
479
580
  * @param {*} [options] Override http request option.