@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.31

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 (224) hide show
  1. package/.openapi-generator/FILES +12 -39
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +497 -47
  4. package/api/bank-transaction-api.ts +128 -96
  5. package/api/{default-api.ts → health-check-api.ts} +22 -18
  6. package/api/payment-methods-api.ts +74 -203
  7. package/api/payment-reminders-api.ts +76 -66
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +66 -89
  10. package/api/refunds-api.ts +74 -84
  11. package/api/tenant-bank-account-api.ts +88 -62
  12. package/api/webhooks-api.ts +17 -13
  13. package/api.ts +3 -3
  14. package/base.ts +6 -2
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +297 -49
  18. package/dist/api/bank-accounts-api.js +416 -28
  19. package/dist/api/bank-transaction-api.d.ts +109 -91
  20. package/dist/api/bank-transaction-api.js +83 -68
  21. package/dist/api/health-check-api.d.ts +70 -0
  22. package/dist/api/{default-api.js → health-check-api.js} +31 -27
  23. package/dist/api/payment-methods-api.d.ts +66 -134
  24. package/dist/api/payment-methods-api.js +55 -157
  25. package/dist/api/payment-reminders-api.d.ts +72 -65
  26. package/dist/api/payment-reminders-api.js +48 -42
  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 +64 -76
  30. package/dist/api/payments-api.js +47 -55
  31. package/dist/api/refunds-api.d.ts +74 -74
  32. package/dist/api/refunds-api.js +52 -48
  33. package/dist/api/tenant-bank-account-api.d.ts +89 -66
  34. package/dist/api/tenant-bank-account-api.js +59 -39
  35. package/dist/api/webhooks-api.d.ts +17 -13
  36. package/dist/api/webhooks-api.js +15 -11
  37. package/dist/api.d.ts +2 -2
  38. package/dist/api.js +2 -2
  39. package/dist/base.d.ts +2 -1
  40. package/dist/base.js +5 -2
  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 → bank-transaction-class-without-expand-properties.d.ts} +26 -34
  48. package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +1 -1
  49. package/dist/models/create-bank-account-request-dto.d.ts +15 -3
  50. package/dist/models/create-bank-account-request-dto.js +1 -1
  51. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  52. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  53. package/dist/models/create-payment-request-dto.d.ts +4 -4
  54. package/dist/models/create-payment-request-dto.js +1 -1
  55. package/dist/models/create-refund-request-dto.d.ts +1 -1
  56. package/dist/models/create-refund-request-dto.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 +25 -0
  60. package/dist/models/{bank-transaction-response-class.js → 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-tenant-bank-account-response-class.d.ts +5 -5
  64. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  65. package/dist/models/index.d.ts +11 -38
  66. package/dist/models/index.js +11 -38
  67. package/dist/models/inline-response200.d.ts +1 -1
  68. package/dist/models/inline-response200.js +1 -1
  69. package/dist/models/inline-response503.d.ts +1 -1
  70. package/dist/models/inline-response503.js +1 -1
  71. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
  72. package/dist/models/{billing-profile-limited-response-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
  73. package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
  74. package/dist/models/{billing-profile-dto.js → list-tenant-bank-account-response-class.js} +1 -1
  75. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
  76. package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
  77. package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +11 -11
  78. package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
  79. package/dist/models/tenant-bank-account-class.d.ts +73 -0
  80. package/dist/models/tenant-bank-account-class.js +15 -0
  81. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
  82. package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
  83. package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
  84. package/dist/models/update-bank-account-request-dto-rest.js +15 -0
  85. package/dist/models/update-bank-account-request-dto.d.ts +36 -0
  86. package/dist/models/update-bank-account-request-dto.js +15 -0
  87. package/dist/models/update-tenant-bank-account-response-class.d.ts +25 -0
  88. package/dist/models/update-tenant-bank-account-response-class.js +15 -0
  89. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  90. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  91. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  92. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  93. package/index.ts +1 -1
  94. package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +26 -34
  95. package/models/create-bank-account-request-dto.ts +15 -3
  96. package/models/create-payment-reminder-request-dto.ts +1 -1
  97. package/models/create-payment-request-dto.ts +4 -4
  98. package/models/create-refund-request-dto.ts +1 -1
  99. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  100. package/models/create-tenant-bank-account-response-class.ts +31 -0
  101. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  102. package/models/get-tenant-bank-account-response-class.ts +5 -5
  103. package/models/index.ts +11 -38
  104. package/models/inline-response200.ts +1 -1
  105. package/models/inline-response503.ts +1 -1
  106. package/models/link-bank-transaction-request-dto-rest.ts +30 -0
  107. package/models/list-tenant-bank-account-response-class.ts +37 -0
  108. package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
  109. package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +11 -11
  110. package/models/tenant-bank-account-class.ts +79 -0
  111. package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
  112. package/models/update-bank-account-request-dto-rest.ts +36 -0
  113. package/models/update-bank-account-request-dto.ts +42 -0
  114. package/models/update-tenant-bank-account-response-class.ts +31 -0
  115. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  116. package/models/validate-pspconfig-request-dto.ts +2 -12
  117. package/package.json +1 -1
  118. package/dist/api/default-api.d.ts +0 -66
  119. package/dist/models/bank-account-class.d.ts +0 -54
  120. package/dist/models/billing-profile-dto.d.ts +0 -38
  121. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  122. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  123. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  124. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  125. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  126. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  127. package/dist/models/complete-payment-setup-response-class.js +0 -15
  128. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  129. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  130. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  131. package/dist/models/create-payment-method-response-class.js +0 -15
  132. package/dist/models/create-payment-response-class.d.ts +0 -25
  133. package/dist/models/create-payment-response-class.js +0 -15
  134. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  135. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  136. package/dist/models/create-refund-response-class.d.ts +0 -25
  137. package/dist/models/create-refund-response-class.js +0 -15
  138. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  139. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  140. package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
  141. package/dist/models/get-bank-transactions-response-class.js +0 -15
  142. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  143. package/dist/models/get-payment-method-response-class.js +0 -15
  144. package/dist/models/get-payment-response-class.d.ts +0 -25
  145. package/dist/models/get-payment-response-class.js +0 -15
  146. package/dist/models/get-refund-response-class.d.ts +0 -25
  147. package/dist/models/get-refund-response-class.js +0 -15
  148. package/dist/models/get-request-dto.d.ts +0 -30
  149. package/dist/models/get-request-dto.js +0 -15
  150. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  151. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  152. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  153. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  154. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  155. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  156. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  157. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  158. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  159. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  160. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  161. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  162. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  163. package/dist/models/list-bank-accounts-response-class.js +0 -15
  164. package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
  165. package/dist/models/list-bank-transactions-response-class.js +0 -15
  166. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  167. package/dist/models/list-payment-methods-response-class.js +0 -15
  168. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  169. package/dist/models/list-payment-reminders-response-class.js +0 -15
  170. package/dist/models/list-payments-response-class.d.ts +0 -31
  171. package/dist/models/list-payments-response-class.js +0 -15
  172. package/dist/models/list-refunds-response-class.d.ts +0 -31
  173. package/dist/models/list-refunds-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/refund-class.d.ts +0 -104
  181. package/dist/models/refund-class.js +0 -28
  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/symphony-profile-limited-response-dto.d.ts +0 -42
  185. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  186. package/dist/models/tenant-bank-account-response-class.js +0 -15
  187. package/dist/models/transaction-class.d.ts +0 -54
  188. package/dist/models/transaction-class.js +0 -15
  189. package/models/bank-account-class.ts +0 -60
  190. package/models/billing-profile-dto.ts +0 -44
  191. package/models/billing-profile-limited-response-dto.ts +0 -60
  192. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  193. package/models/complete-payment-setup-request-dto.ts +0 -38
  194. package/models/complete-payment-setup-response-class.ts +0 -31
  195. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  196. package/models/create-payment-method-response-class.ts +0 -31
  197. package/models/create-payment-response-class.ts +0 -31
  198. package/models/create-psp-payment-method-request-dto.ts +0 -70
  199. package/models/create-refund-response-class.ts +0 -31
  200. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  201. package/models/get-bank-transactions-response-class.ts +0 -31
  202. package/models/get-payment-method-response-class.ts +0 -31
  203. package/models/get-payment-response-class.ts +0 -31
  204. package/models/get-refund-response-class.ts +0 -31
  205. package/models/get-request-dto.ts +0 -36
  206. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  207. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  208. package/models/initiate-payment-setup-request-dto.ts +0 -50
  209. package/models/initiate-payment-setup-response-class.ts +0 -38
  210. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  211. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  212. package/models/list-bank-accounts-response-class.ts +0 -37
  213. package/models/list-bank-transactions-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/list-refunds-response-class.ts +0 -37
  218. package/models/payment-class.ts +0 -109
  219. package/models/payment-method-class.ts +0 -72
  220. package/models/payment-reminder-class.ts +0 -122
  221. package/models/refund-class.ts +0 -114
  222. package/models/sepa-direct-dto.ts +0 -30
  223. package/models/symphony-profile-limited-response-dto.ts +0 -48
  224. package/models/transaction-class.ts +0 -60
@@ -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
@@ -25,13 +25,14 @@ import { InlineResponse200 } from '../models';
25
25
  // @ts-ignore
26
26
  import { InlineResponse503 } from '../models';
27
27
  /**
28
- * DefaultApi - axios parameter creator
28
+ * HealthCheckApi - axios parameter creator
29
29
  * @export
30
30
  */
31
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
31
+ export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
32
32
  return {
33
33
  /**
34
- *
34
+ * Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
35
+ * @summary Health Check
35
36
  * @param {*} [options] Override http request option.
36
37
  * @throws {RequiredError}
37
38
  */
@@ -65,14 +66,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
65
66
  };
66
67
 
67
68
  /**
68
- * DefaultApi - functional programming interface
69
+ * HealthCheckApi - functional programming interface
69
70
  * @export
70
71
  */
71
- export const DefaultApiFp = function(configuration?: Configuration) {
72
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
72
+ export const HealthCheckApiFp = function(configuration?: Configuration) {
73
+ const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
73
74
  return {
74
75
  /**
75
- *
76
+ * Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
77
+ * @summary Health Check
76
78
  * @param {*} [options] Override http request option.
77
79
  * @throws {RequiredError}
78
80
  */
@@ -84,14 +86,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
84
86
  };
85
87
 
86
88
  /**
87
- * DefaultApi - factory interface
89
+ * HealthCheckApi - factory interface
88
90
  * @export
89
91
  */
90
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
91
- const localVarFp = DefaultApiFp(configuration)
92
+ export const HealthCheckApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
+ const localVarFp = HealthCheckApiFp(configuration)
92
94
  return {
93
95
  /**
94
- *
96
+ * Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
97
+ * @summary Health Check
95
98
  * @param {*} [options] Override http request option.
96
99
  * @throws {RequiredError}
97
100
  */
@@ -102,19 +105,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
102
105
  };
103
106
 
104
107
  /**
105
- * DefaultApi - object-oriented interface
108
+ * HealthCheckApi - object-oriented interface
106
109
  * @export
107
- * @class DefaultApi
110
+ * @class HealthCheckApi
108
111
  * @extends {BaseAPI}
109
112
  */
110
- export class DefaultApi extends BaseAPI {
113
+ export class HealthCheckApi extends BaseAPI {
111
114
  /**
112
- *
115
+ * Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
116
+ * @summary Health Check
113
117
  * @param {*} [options] Override http request option.
114
118
  * @throws {RequiredError}
115
- * @memberof DefaultApi
119
+ * @memberof HealthCheckApi
116
120
  */
117
121
  public check(options?: AxiosRequestConfig) {
118
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
122
+ return HealthCheckApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
119
123
  }
120
124
  }
@@ -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,7 @@ 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)
78
70
 
79
71
  return {
80
72
  url: toPathString(localVarUrlObj),
@@ -82,67 +74,19 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
82
74
  };
83
75
  },
84
76
  /**
85
- * 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.
86
- * @summary Delete a payment method
87
- * @param {number} id Unique identifier for payment method
88
- * @param {string} [authorization] Bearer Token
89
- * @param {*} [options] Override http request option.
90
- * @throws {RequiredError}
91
- */
92
- deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
- // verify required parameter 'id' is not null or undefined
94
- assertParamExists('deletePaymentMethod', 'id', id)
95
- const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
96
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
97
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
98
- let baseOptions;
99
- let baseAccessToken;
100
- if (configuration) {
101
- baseOptions = configuration.baseOptions;
102
- baseAccessToken = configuration.accessToken;
103
- }
104
-
105
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
106
- const localVarHeaderParameter = {} as any;
107
- const localVarQueryParameter = {} as any;
108
-
109
- // authentication bearer required
110
- // http bearer authentication required
111
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
112
-
113
- if (id !== undefined) {
114
- localVarQueryParameter['id'] = id;
115
- }
116
-
117
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
118
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
119
- }
120
-
121
-
122
-
123
- setSearchParams(localVarUrlObj, localVarQueryParameter);
124
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
126
-
127
- return {
128
- url: toPathString(localVarUrlObj),
129
- options: localVarRequestOptions,
130
- };
131
- },
132
- /**
133
- * 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.
134
- * @summary Retrieve a payment method
77
+ * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
78
+ * @summary Retrieve the payment method
135
79
  * @param {string} code Unique identifier for the object.
136
80
  * @param {string} [authorization] Bearer Token
137
- * @param {string} [expand] Fields to expand response by
138
- * @param {string} [expand2] Fields to expand response by
81
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
139
82
  * @param {*} [options] Override http request option.
140
83
  * @throws {RequiredError}
141
84
  */
142
- getPaymentMethod: async (code: string, authorization?: string, expand?: string, expand2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
85
+ getPaymentMethod: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
86
  // verify required parameter 'code' is not null or undefined
144
87
  assertParamExists('getPaymentMethod', 'code', code)
145
- const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
88
+ const localVarPath = `/paymentservice/v1/payment-methods/{code}`
89
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
90
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
91
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
92
  let baseOptions;
@@ -160,18 +104,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
160
104
  // http bearer authentication required
161
105
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
106
 
163
- if (code !== undefined) {
164
- localVarQueryParameter['code'] = code;
165
- }
166
-
167
107
  if (expand !== undefined) {
168
108
  localVarQueryParameter['expand'] = expand;
169
109
  }
170
110
 
171
- if (expand2 !== undefined) {
172
- localVarQueryParameter['expand'] = expand2;
173
- }
174
-
175
111
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
176
112
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
177
113
  }
@@ -188,20 +124,20 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
188
124
  };
189
125
  },
190
126
  /**
191
- * 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.
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.
192
128
  * @summary List payment methods
193
129
  * @param {string} [authorization] Bearer Token
194
130
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
195
131
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
196
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
197
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
198
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
199
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
200
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
132
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
133
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
134
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
135
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
136
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
201
137
  * @param {*} [options] Override http request option.
202
138
  * @throws {RequiredError}
203
139
  */
204
- listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
140
+ listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
205
141
  const localVarPath = `/paymentservice/v1/payment-methods`;
206
142
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
143
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -275,57 +211,44 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
275
211
  return {
276
212
  /**
277
213
  * 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.
278
- * @summary Create the payment-method
279
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
214
+ * @summary Create the payment method
215
+ * @param {object} body
280
216
  * @param {string} [authorization] Bearer Token
281
217
  * @param {*} [options] Override http request option.
282
218
  * @throws {RequiredError}
283
219
  */
284
- async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
285
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
220
+ async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
286
222
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
287
223
  },
288
224
  /**
289
- * 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.
290
- * @summary Delete a payment method
291
- * @param {number} id Unique identifier for payment method
292
- * @param {string} [authorization] Bearer Token
293
- * @param {*} [options] Override http request option.
294
- * @throws {RequiredError}
295
- */
296
- async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
297
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
298
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
299
- },
300
- /**
301
- * 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.
302
- * @summary Retrieve a payment method
225
+ * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
226
+ * @summary Retrieve the payment method
303
227
  * @param {string} code Unique identifier for the object.
304
228
  * @param {string} [authorization] Bearer Token
305
- * @param {string} [expand] Fields to expand response by
306
- * @param {string} [expand2] Fields to expand response by
229
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
307
230
  * @param {*} [options] Override http request option.
308
231
  * @throws {RequiredError}
309
232
  */
310
- async getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
311
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand, expand2, options);
233
+ async getPaymentMethod(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand, options);
312
235
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
313
236
  },
314
237
  /**
315
- * 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.
238
+ * 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.
316
239
  * @summary List payment methods
317
240
  * @param {string} [authorization] Bearer Token
318
241
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
319
242
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
320
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
321
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
322
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
323
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
324
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
243
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
244
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
245
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
246
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
247
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
325
248
  * @param {*} [options] Override http request option.
326
249
  * @throws {RequiredError}
327
250
  */
328
- 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>> {
251
+ async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
329
252
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
330
253
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
331
254
  },
@@ -341,54 +264,42 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
341
264
  return {
342
265
  /**
343
266
  * 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.
344
- * @summary Create the payment-method
345
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
346
- * @param {string} [authorization] Bearer Token
347
- * @param {*} [options] Override http request option.
348
- * @throws {RequiredError}
349
- */
350
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
351
- return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
352
- },
353
- /**
354
- * 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.
355
- * @summary Delete a payment method
356
- * @param {number} id Unique identifier for payment method
267
+ * @summary Create the payment method
268
+ * @param {object} body
357
269
  * @param {string} [authorization] Bearer Token
358
270
  * @param {*} [options] Override http request option.
359
271
  * @throws {RequiredError}
360
272
  */
361
- deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void> {
362
- return localVarFp.deletePaymentMethod(id, authorization, options).then((request) => request(axios, basePath));
273
+ createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
274
+ return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
363
275
  },
364
276
  /**
365
- * 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.
366
- * @summary Retrieve a payment method
277
+ * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
278
+ * @summary Retrieve the payment method
367
279
  * @param {string} code Unique identifier for the object.
368
280
  * @param {string} [authorization] Bearer Token
369
- * @param {string} [expand] Fields to expand response by
370
- * @param {string} [expand2] Fields to expand response by
281
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
371
282
  * @param {*} [options] Override http request option.
372
283
  * @throws {RequiredError}
373
284
  */
374
- getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
375
- return localVarFp.getPaymentMethod(code, authorization, expand, expand2, options).then((request) => request(axios, basePath));
285
+ getPaymentMethod(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
286
+ return localVarFp.getPaymentMethod(code, authorization, expand, options).then((request) => request(axios, basePath));
376
287
  },
377
288
  /**
378
- * 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.
289
+ * 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.
379
290
  * @summary List payment methods
380
291
  * @param {string} [authorization] Bearer Token
381
292
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
382
293
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
383
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
384
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
385
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
386
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
387
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
294
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
295
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
296
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
297
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
298
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
388
299
  * @param {*} [options] Override http request option.
389
300
  * @throws {RequiredError}
390
301
  */
391
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
302
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
392
303
  return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
393
304
  },
394
305
  };
@@ -402,10 +313,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
402
313
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
403
314
  /**
404
315
  *
405
- * @type {CreatePspPaymentMethodRequestDto}
316
+ * @type {object}
406
317
  * @memberof PaymentMethodsApiCreatePaymentMethod
407
318
  */
408
- readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
319
+ readonly body: object
409
320
 
410
321
  /**
411
322
  * Bearer Token
@@ -415,27 +326,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
415
326
  readonly authorization?: string
416
327
  }
417
328
 
418
- /**
419
- * Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
420
- * @export
421
- * @interface PaymentMethodsApiDeletePaymentMethodRequest
422
- */
423
- export interface PaymentMethodsApiDeletePaymentMethodRequest {
424
- /**
425
- * Unique identifier for payment method
426
- * @type {number}
427
- * @memberof PaymentMethodsApiDeletePaymentMethod
428
- */
429
- readonly id: number
430
-
431
- /**
432
- * Bearer Token
433
- * @type {string}
434
- * @memberof PaymentMethodsApiDeletePaymentMethod
435
- */
436
- readonly authorization?: string
437
- }
438
-
439
329
  /**
440
330
  * Request parameters for getPaymentMethod operation in PaymentMethodsApi.
441
331
  * @export
@@ -457,18 +347,11 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
457
347
  readonly authorization?: string
458
348
 
459
349
  /**
460
- * Fields to expand response by
350
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
461
351
  * @type {string}
462
352
  * @memberof PaymentMethodsApiGetPaymentMethod
463
353
  */
464
354
  readonly expand?: string
465
-
466
- /**
467
- * Fields to expand response by
468
- * @type {string}
469
- * @memberof PaymentMethodsApiGetPaymentMethod
470
- */
471
- readonly expand2?: string
472
355
  }
473
356
 
474
357
  /**
@@ -499,39 +382,39 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
499
382
  readonly pageToken?: any
500
383
 
501
384
  /**
502
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
503
- * @type {any}
385
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
386
+ * @type {string}
504
387
  * @memberof PaymentMethodsApiListPaymentMethods
505
388
  */
506
- readonly filter?: any
389
+ readonly filter?: string
507
390
 
508
391
  /**
509
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
392
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
510
393
  * @type {any}
511
394
  * @memberof PaymentMethodsApiListPaymentMethods
512
395
  */
513
396
  readonly search?: any
514
397
 
515
398
  /**
516
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
517
- * @type {any}
399
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
400
+ * @type {string}
518
401
  * @memberof PaymentMethodsApiListPaymentMethods
519
402
  */
520
- readonly order?: any
403
+ readonly order?: string
521
404
 
522
405
  /**
523
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
524
- * @type {any}
406
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
407
+ * @type {string}
525
408
  * @memberof PaymentMethodsApiListPaymentMethods
526
409
  */
527
- readonly expand?: any
410
+ readonly expand?: string
528
411
 
529
412
  /**
530
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
531
- * @type {any}
413
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
414
+ * @type {string}
532
415
  * @memberof PaymentMethodsApiListPaymentMethods
533
416
  */
534
- readonly filters?: any
417
+ readonly filters?: string
535
418
  }
536
419
 
537
420
  /**
@@ -543,42 +426,30 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
543
426
  export class PaymentMethodsApi extends BaseAPI {
544
427
  /**
545
428
  * 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.
546
- * @summary Create the payment-method
429
+ * @summary Create the payment method
547
430
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
548
431
  * @param {*} [options] Override http request option.
549
432
  * @throws {RequiredError}
550
433
  * @memberof PaymentMethodsApi
551
434
  */
552
435
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
553
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
554
- }
555
-
556
- /**
557
- * 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.
558
- * @summary Delete a payment method
559
- * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
560
- * @param {*} [options] Override http request option.
561
- * @throws {RequiredError}
562
- * @memberof PaymentMethodsApi
563
- */
564
- public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
565
- return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
436
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
566
437
  }
567
438
 
568
439
  /**
569
- * 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.
570
- * @summary Retrieve a payment method
440
+ * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
441
+ * @summary Retrieve the payment method
571
442
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
572
443
  * @param {*} [options] Override http request option.
573
444
  * @throws {RequiredError}
574
445
  * @memberof PaymentMethodsApi
575
446
  */
576
447
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
577
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then((request) => request(this.axios, this.basePath));
448
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
578
449
  }
579
450
 
580
451
  /**
581
- * 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.
452
+ * 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.
582
453
  * @summary List payment methods
583
454
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
584
455
  * @param {*} [options] Override http request option.