@emilgroup/payment-sdk-node 1.12.1 → 1.13.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/.openapi-generator/FILES +0 -30
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +17 -21
  4. package/api/bank-transaction-api.ts +134 -42
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +38 -42
  7. package/api/payment-reminders-api.ts +9 -13
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +26 -28
  10. package/api/refunds-api.ts +16 -14
  11. package/api/tenant-bank-account-api.ts +1 -1
  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 +13 -15
  18. package/dist/api/bank-accounts-api.js +13 -13
  19. package/dist/api/bank-transaction-api.d.ts +86 -33
  20. package/dist/api/bank-transaction-api.js +122 -29
  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 +28 -32
  24. package/dist/api/payment-methods-api.js +29 -25
  25. package/dist/api/payment-reminders-api.d.ts +13 -15
  26. package/dist/api/payment-reminders-api.js +1 -1
  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 +22 -25
  30. package/dist/api/payments-api.js +17 -13
  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 +1 -1
  34. package/dist/api/tenant-bank-account-api.js +1 -1
  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/deactivate-payment-reminder-request-dto.d.ts +1 -1
  60. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  61. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  62. package/dist/models/get-bank-transactions-response-class.js +1 -1
  63. package/dist/models/get-refund-response-class.d.ts +1 -1
  64. package/dist/models/get-refund-response-class.js +1 -1
  65. package/dist/models/get-request-dto.d.ts +2 -2
  66. package/dist/models/get-request-dto.js +1 -1
  67. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  68. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  69. package/dist/models/index.d.ts +0 -30
  70. package/dist/models/index.js +0 -30
  71. package/dist/models/inline-response200.d.ts +1 -1
  72. package/dist/models/inline-response200.js +1 -1
  73. package/dist/models/inline-response503.d.ts +1 -1
  74. package/dist/models/inline-response503.js +1 -1
  75. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  76. package/dist/models/list-bank-transactions-response-class.js +1 -1
  77. package/dist/models/list-refunds-response-class.d.ts +1 -1
  78. package/dist/models/list-refunds-response-class.js +1 -1
  79. package/dist/models/refund-class.d.ts +1 -1
  80. package/dist/models/refund-class.js +1 -1
  81. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  82. package/dist/models/tenant-bank-account-response-class.js +1 -1
  83. package/dist/models/transaction-class.d.ts +1 -1
  84. package/dist/models/transaction-class.js +1 -1
  85. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  86. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  87. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  88. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  89. package/index.ts +1 -1
  90. package/models/bank-transaction-response-class.ts +1 -1
  91. package/models/create-payment-reminder-request-dto.ts +1 -1
  92. package/models/create-payment-request-dto.ts +4 -4
  93. package/models/create-refund-request-dto.ts +1 -1
  94. package/models/create-refund-response-class.ts +1 -1
  95. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  96. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  97. package/models/get-bank-transactions-response-class.ts +1 -1
  98. package/models/get-refund-response-class.ts +1 -1
  99. package/models/get-request-dto.ts +2 -2
  100. package/models/get-tenant-bank-account-response-class.ts +1 -1
  101. package/models/index.ts +0 -30
  102. package/models/inline-response200.ts +1 -1
  103. package/models/inline-response503.ts +1 -1
  104. package/models/list-bank-transactions-response-class.ts +1 -1
  105. package/models/list-refunds-response-class.ts +1 -1
  106. package/models/refund-class.ts +1 -1
  107. package/models/tenant-bank-account-response-class.ts +1 -1
  108. package/models/transaction-class.ts +1 -1
  109. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  110. package/models/validate-pspconfig-request-dto.ts +2 -12
  111. package/package.json +1 -1
  112. package/dist/models/bank-account-class.d.ts +0 -54
  113. package/dist/models/bank-account-class.js +0 -15
  114. package/dist/models/billing-profile-dto.d.ts +0 -38
  115. package/dist/models/billing-profile-dto.js +0 -15
  116. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  117. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  118. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  119. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  120. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  121. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  122. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  123. package/dist/models/complete-payment-setup-response-class.js +0 -15
  124. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  125. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  126. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  127. package/dist/models/create-bank-account-request-dto.js +0 -15
  128. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  129. package/dist/models/create-payment-method-response-class.js +0 -15
  130. package/dist/models/create-payment-response-class.d.ts +0 -25
  131. package/dist/models/create-payment-response-class.js +0 -15
  132. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  133. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  134. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  135. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  136. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  137. package/dist/models/get-payment-method-response-class.js +0 -15
  138. package/dist/models/get-payment-response-class.d.ts +0 -25
  139. package/dist/models/get-payment-response-class.js +0 -15
  140. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  141. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  142. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  143. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  144. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  145. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  146. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  147. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  148. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  149. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  150. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  151. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  152. package/dist/models/link-bank-transaction-request-dto.d.ts +0 -30
  153. package/dist/models/link-bank-transaction-request-dto.js +0 -15
  154. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  155. package/dist/models/list-bank-accounts-response-class.js +0 -15
  156. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  157. package/dist/models/list-payment-methods-response-class.js +0 -15
  158. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  159. package/dist/models/list-payment-reminders-response-class.js +0 -15
  160. package/dist/models/list-payments-response-class.d.ts +0 -31
  161. package/dist/models/list-payments-response-class.js +0 -15
  162. package/dist/models/payment-class.d.ts +0 -103
  163. package/dist/models/payment-class.js +0 -15
  164. package/dist/models/payment-method-class.d.ts +0 -66
  165. package/dist/models/payment-method-class.js +0 -15
  166. package/dist/models/payment-reminder-class.d.ts +0 -112
  167. package/dist/models/payment-reminder-class.js +0 -36
  168. package/dist/models/sepa-direct-dto.d.ts +0 -24
  169. package/dist/models/sepa-direct-dto.js +0 -15
  170. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  171. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  172. package/models/bank-account-class.ts +0 -60
  173. package/models/billing-profile-dto.ts +0 -44
  174. package/models/billing-profile-limited-response-dto.ts +0 -60
  175. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  176. package/models/complete-payment-setup-request-dto.ts +0 -38
  177. package/models/complete-payment-setup-response-class.ts +0 -31
  178. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  179. package/models/create-bank-account-request-dto.ts +0 -36
  180. package/models/create-payment-method-response-class.ts +0 -31
  181. package/models/create-payment-response-class.ts +0 -31
  182. package/models/create-psp-payment-method-request-dto.ts +0 -70
  183. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  184. package/models/get-payment-method-response-class.ts +0 -31
  185. package/models/get-payment-response-class.ts +0 -31
  186. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  187. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  188. package/models/initiate-payment-setup-request-dto.ts +0 -50
  189. package/models/initiate-payment-setup-response-class.ts +0 -38
  190. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  191. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  192. package/models/link-bank-transaction-request-dto.ts +0 -36
  193. package/models/list-bank-accounts-response-class.ts +0 -37
  194. package/models/list-payment-methods-response-class.ts +0 -37
  195. package/models/list-payment-reminders-response-class.ts +0 -37
  196. package/models/list-payments-response-class.ts +0 -37
  197. package/models/payment-class.ts +0 -109
  198. package/models/payment-method-class.ts +0 -72
  199. package/models/payment-reminder-class.ts +0 -122
  200. package/models/sepa-direct-dto.ts +0 -30
  201. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreatePaymentRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreatePaymentResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetPaymentResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListPaymentsResponseClass } from '../models';
31
25
  // URLSearchParams not necessarily used
32
26
  // @ts-ignore
33
27
  import { URL, URLSearchParams } from 'url';
@@ -96,15 +90,19 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
96
90
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
97
91
  * @summary Retrieve a payment
98
92
  * @param {string} code Unique identifier for the object.
93
+ * @param {string} expand Fields to expand response by
94
+ * @param {string} expand2 Fields to expand response by
99
95
  * @param {string} [authorization] Bearer Token
100
- * @param {string} [expand] Fields to expand response by
101
- * @param {string} [expand2] Fields to expand response by
102
96
  * @param {*} [options] Override http request option.
103
97
  * @throws {RequiredError}
104
98
  */
105
- getPayment: async (code: string, authorization?: string, expand?: string, expand2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
+ getPayment: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
106
100
  // verify required parameter 'code' is not null or undefined
107
101
  assertParamExists('getPayment', 'code', code)
102
+ // verify required parameter 'expand' is not null or undefined
103
+ assertParamExists('getPayment', 'expand', expand)
104
+ // verify required parameter 'expand2' is not null or undefined
105
+ assertParamExists('getPayment', 'expand2', expand2)
108
106
  const localVarPath = `/paymentservice/v1/payments/{code}`;
109
107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
108
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -240,7 +238,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
240
238
  * @param {*} [options] Override http request option.
241
239
  * @throws {RequiredError}
242
240
  */
243
- async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
241
+ async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
244
242
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
245
243
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
246
244
  },
@@ -248,14 +246,14 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
248
246
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
249
247
  * @summary Retrieve a payment
250
248
  * @param {string} code Unique identifier for the object.
249
+ * @param {string} expand Fields to expand response by
250
+ * @param {string} expand2 Fields to expand response by
251
251
  * @param {string} [authorization] Bearer Token
252
- * @param {string} [expand] Fields to expand response by
253
- * @param {string} [expand2] Fields to expand response by
254
252
  * @param {*} [options] Override http request option.
255
253
  * @throws {RequiredError}
256
254
  */
257
- async getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>> {
258
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, expand2, options);
255
+ async getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
256
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options);
259
257
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
260
258
  },
261
259
  /**
@@ -271,7 +269,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
271
269
  * @param {*} [options] Override http request option.
272
270
  * @throws {RequiredError}
273
271
  */
274
- async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
272
+ async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
275
273
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, options);
276
274
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
277
275
  },
@@ -294,21 +292,21 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
294
292
  * @param {*} [options] Override http request option.
295
293
  * @throws {RequiredError}
296
294
  */
297
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
295
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
298
296
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
299
297
  },
300
298
  /**
301
299
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
302
300
  * @summary Retrieve a payment
303
301
  * @param {string} code Unique identifier for the object.
302
+ * @param {string} expand Fields to expand response by
303
+ * @param {string} expand2 Fields to expand response by
304
304
  * @param {string} [authorization] Bearer Token
305
- * @param {string} [expand] Fields to expand response by
306
- * @param {string} [expand2] Fields to expand response by
307
305
  * @param {*} [options] Override http request option.
308
306
  * @throws {RequiredError}
309
307
  */
310
- getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentResponseClass> {
311
- return localVarFp.getPayment(code, authorization, expand, expand2, options).then((request) => request(axios, basePath));
308
+ getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
309
+ return localVarFp.getPayment(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
312
310
  },
313
311
  /**
314
312
  * Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -323,7 +321,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
323
321
  * @param {*} [options] Override http request option.
324
322
  * @throws {RequiredError}
325
323
  */
326
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPaymentsResponseClass> {
324
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
327
325
  return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
328
326
  },
329
327
  };
@@ -371,25 +369,25 @@ export interface PaymentsApiGetPaymentRequest {
371
369
  readonly code: string
372
370
 
373
371
  /**
374
- * Bearer Token
372
+ * Fields to expand response by
375
373
  * @type {string}
376
374
  * @memberof PaymentsApiGetPayment
377
375
  */
378
- readonly authorization?: string
376
+ readonly expand: string
379
377
 
380
378
  /**
381
379
  * Fields to expand response by
382
380
  * @type {string}
383
381
  * @memberof PaymentsApiGetPayment
384
382
  */
385
- readonly expand?: string
383
+ readonly expand2: string
386
384
 
387
385
  /**
388
- * Fields to expand response by
386
+ * Bearer Token
389
387
  * @type {string}
390
388
  * @memberof PaymentsApiGetPayment
391
389
  */
392
- readonly expand2?: string
390
+ readonly authorization?: string
393
391
  }
394
392
 
395
393
  /**
@@ -476,7 +474,7 @@ export class PaymentsApi extends BaseAPI {
476
474
  * @memberof PaymentsApi
477
475
  */
478
476
  public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
479
- return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then((request) => request(this.axios, this.basePath));
477
+ return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
480
478
  }
481
479
 
482
480
  /**
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -88,16 +88,18 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
88
88
  *
89
89
  * @param {string} code
90
90
  * @param {string} code2 Unique identifier for the object.
91
+ * @param {string} expand Fields to expand response by
91
92
  * @param {string} [authorization] Bearer Token
92
- * @param {string} [expand] Fields to expand response by
93
93
  * @param {*} [options] Override http request option.
94
94
  * @throws {RequiredError}
95
95
  */
96
- getRefund: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ getRefund: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
97
  // verify required parameter 'code' is not null or undefined
98
98
  assertParamExists('getRefund', 'code', code)
99
99
  // verify required parameter 'code2' is not null or undefined
100
100
  assertParamExists('getRefund', 'code2', code2)
101
+ // verify required parameter 'expand' is not null or undefined
102
+ assertParamExists('getRefund', 'expand', expand)
101
103
  const localVarPath = `/paymentservice/v1/refunds/{code}`
102
104
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
103
105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -235,13 +237,13 @@ export const RefundsApiFp = function(configuration?: Configuration) {
235
237
  *
236
238
  * @param {string} code
237
239
  * @param {string} code2 Unique identifier for the object.
240
+ * @param {string} expand Fields to expand response by
238
241
  * @param {string} [authorization] Bearer Token
239
- * @param {string} [expand] Fields to expand response by
240
242
  * @param {*} [options] Override http request option.
241
243
  * @throws {RequiredError}
242
244
  */
243
- async getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
244
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, authorization, expand, options);
245
+ async getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
246
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, expand, authorization, options);
245
247
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
246
248
  },
247
249
  /**
@@ -284,13 +286,13 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
284
286
  *
285
287
  * @param {string} code
286
288
  * @param {string} code2 Unique identifier for the object.
289
+ * @param {string} expand Fields to expand response by
287
290
  * @param {string} [authorization] Bearer Token
288
- * @param {string} [expand] Fields to expand response by
289
291
  * @param {*} [options] Override http request option.
290
292
  * @throws {RequiredError}
291
293
  */
292
- getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
293
- return localVarFp.getRefund(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
294
+ getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
295
+ return localVarFp.getRefund(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
294
296
  },
295
297
  /**
296
298
  *
@@ -352,18 +354,18 @@ export interface RefundsApiGetRefundRequest {
352
354
  readonly code2: string
353
355
 
354
356
  /**
355
- * Bearer Token
357
+ * Fields to expand response by
356
358
  * @type {string}
357
359
  * @memberof RefundsApiGetRefund
358
360
  */
359
- readonly authorization?: string
361
+ readonly expand: string
360
362
 
361
363
  /**
362
- * Fields to expand response by
364
+ * Bearer Token
363
365
  * @type {string}
364
366
  * @memberof RefundsApiGetRefund
365
367
  */
366
- readonly expand?: string
368
+ readonly authorization?: string
367
369
  }
368
370
 
369
371
  /**
@@ -448,7 +450,7 @@ export class RefundsApi extends BaseAPI {
448
450
  * @memberof RefundsApi
449
451
  */
450
452
  public getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig) {
451
- return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
453
+ return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
452
454
  }
453
455
 
454
456
  /**
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/api.ts CHANGED
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/base.ts CHANGED
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/common.ts CHANGED
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -144,7 +144,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
144
144
  * 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.
145
145
  *
146
146
  * The version of the OpenAPI document: 1.0
147
- * Contact: kontakt@emil.de
147
+ * Contact: z
148
148
  *
149
149
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
150
150
  * https://openapi-generator.tech
package/configuration.ts CHANGED
@@ -5,7 +5,7 @@
5
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
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -3,7 +3,7 @@
3
3
  * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
6
+ * Contact: z
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -12,8 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateBankAccountRequestDto } from '../models';
16
- import { ListBankAccountsResponseClass } from '../models';
17
15
  /**
18
16
  * BankAccountsApi - axios parameter creator
19
17
  * @export
@@ -22,12 +20,12 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
22
20
  /**
23
21
  * Creates a bank account for a specified account.
24
22
  * @summary Create a bank account
25
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
23
+ * @param {object} body
26
24
  * @param {string} [authorization] Bearer Token
27
25
  * @param {*} [options] Override http request option.
28
26
  * @throws {RequiredError}
29
27
  */
30
- createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ createBankAccount: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
29
  /**
32
30
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
33
31
  * @summary List bank accounts
@@ -51,12 +49,12 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
51
49
  /**
52
50
  * Creates a bank account for a specified account.
53
51
  * @summary Create a bank account
54
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
52
+ * @param {object} body
55
53
  * @param {string} [authorization] Bearer Token
56
54
  * @param {*} [options] Override http request option.
57
55
  * @throws {RequiredError}
58
56
  */
59
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
57
+ createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
60
58
  /**
61
59
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
62
60
  * @summary List bank accounts
@@ -70,7 +68,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
70
68
  * @param {*} [options] Override http request option.
71
69
  * @throws {RequiredError}
72
70
  */
73
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
71
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
74
72
  };
75
73
  /**
76
74
  * BankAccountsApi - factory interface
@@ -80,12 +78,12 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
80
78
  /**
81
79
  * Creates a bank account for a specified account.
82
80
  * @summary Create a bank account
83
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
81
+ * @param {object} body
84
82
  * @param {string} [authorization] Bearer Token
85
83
  * @param {*} [options] Override http request option.
86
84
  * @throws {RequiredError}
87
85
  */
88
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
86
+ createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void>;
89
87
  /**
90
88
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
91
89
  * @summary List bank accounts
@@ -99,7 +97,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
99
97
  * @param {*} [options] Override http request option.
100
98
  * @throws {RequiredError}
101
99
  */
102
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
100
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void>;
103
101
  };
104
102
  /**
105
103
  * Request parameters for createBankAccount operation in BankAccountsApi.
@@ -109,10 +107,10 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
109
107
  export interface BankAccountsApiCreateBankAccountRequest {
110
108
  /**
111
109
  *
112
- * @type {CreateBankAccountRequestDto}
110
+ * @type {object}
113
111
  * @memberof BankAccountsApiCreateBankAccount
114
112
  */
115
- readonly createBankAccountRequestDto: CreateBankAccountRequestDto;
113
+ readonly body: object;
116
114
  /**
117
115
  * Bearer Token
118
116
  * @type {string}
@@ -184,7 +182,7 @@ export declare class BankAccountsApi extends BaseAPI {
184
182
  * @throws {RequiredError}
185
183
  * @memberof BankAccountsApi
186
184
  */
187
- createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
185
+ createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
188
186
  /**
189
187
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
190
188
  * @summary List bank accounts
@@ -193,5 +191,5 @@ export declare class BankAccountsApi extends BaseAPI {
193
191
  * @throws {RequiredError}
194
192
  * @memberof BankAccountsApi
195
193
  */
196
- listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
194
+ listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
197
195
  }
@@ -6,7 +6,7 @@
6
6
  * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
9
+ * Contact: z
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -99,20 +99,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * Creates a bank account for a specified account.
101
101
  * @summary Create a bank account
102
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
102
+ * @param {object} body
103
103
  * @param {string} [authorization] Bearer Token
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
107
+ createBankAccount: function (body, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'createBankAccountRequestDto' is not null or undefined
115
- (0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
114
+ // verify required parameter 'body' is not null or undefined
115
+ (0, common_1.assertParamExists)('createBankAccount', 'body', body);
116
116
  localVarPath = "/paymentservice/v1/bank-accounts";
117
117
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
118
  if (configuration) {
@@ -136,7 +136,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
136
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
137
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
138
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankAccountRequestDto, localVarRequestOptions, configuration);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
140
140
  return [2 /*return*/, {
141
141
  url: (0, common_1.toPathString)(localVarUrlObj),
142
142
  options: localVarRequestOptions,
@@ -226,17 +226,17 @@ var BankAccountsApiFp = function (configuration) {
226
226
  /**
227
227
  * Creates a bank account for a specified account.
228
228
  * @summary Create a bank account
229
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
229
+ * @param {object} body
230
230
  * @param {string} [authorization] Bearer Token
231
231
  * @param {*} [options] Override http request option.
232
232
  * @throws {RequiredError}
233
233
  */
234
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
234
+ createBankAccount: function (body, authorization, options) {
235
235
  return __awaiter(this, void 0, void 0, function () {
236
236
  var localVarAxiosArgs;
237
237
  return __generator(this, function (_a) {
238
238
  switch (_a.label) {
239
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
239
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(body, authorization, options)];
240
240
  case 1:
241
241
  localVarAxiosArgs = _a.sent();
242
242
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -283,13 +283,13 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
283
283
  /**
284
284
  * Creates a bank account for a specified account.
285
285
  * @summary Create a bank account
286
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
286
+ * @param {object} body
287
287
  * @param {string} [authorization] Bearer Token
288
288
  * @param {*} [options] Override http request option.
289
289
  * @throws {RequiredError}
290
290
  */
291
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
292
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
291
+ createBankAccount: function (body, authorization, options) {
292
+ return localVarFp.createBankAccount(body, authorization, options).then(function (request) { return request(axios, basePath); });
293
293
  },
294
294
  /**
295
295
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -331,7 +331,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
331
331
  */
332
332
  BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
333
333
  var _this = this;
334
- return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
334
+ return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
335
335
  };
336
336
  /**
337
337
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.