@emilgroup/payment-sdk 1.3.1 → 1.4.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 +2 -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 +2 -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
  /**
32
26
  * PaymentsApi - axios parameter creator
33
27
  * @export
@@ -92,15 +86,19 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
92
86
  * 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.
93
87
  * @summary Retrieve a payment
94
88
  * @param {string} code Unique identifier for the object.
89
+ * @param {string} expand Fields to expand response by
90
+ * @param {string} expand2 Fields to expand response by
95
91
  * @param {string} [authorization] Bearer Token
96
- * @param {string} [expand] Fields to expand response by
97
- * @param {string} [expand2] Fields to expand response by
98
92
  * @param {*} [options] Override http request option.
99
93
  * @throws {RequiredError}
100
94
  */
101
- getPayment: async (code: string, authorization?: string, expand?: string, expand2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
+ getPayment: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
102
96
  // verify required parameter 'code' is not null or undefined
103
97
  assertParamExists('getPayment', 'code', code)
98
+ // verify required parameter 'expand' is not null or undefined
99
+ assertParamExists('getPayment', 'expand', expand)
100
+ // verify required parameter 'expand2' is not null or undefined
101
+ assertParamExists('getPayment', 'expand2', expand2)
104
102
  const localVarPath = `/paymentservice/v1/payments/{code}`;
105
103
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
104
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -236,7 +234,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
236
234
  * @param {*} [options] Override http request option.
237
235
  * @throws {RequiredError}
238
236
  */
239
- async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
237
+ async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
240
238
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
241
239
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
242
240
  },
@@ -244,14 +242,14 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
244
242
  * 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.
245
243
  * @summary Retrieve a payment
246
244
  * @param {string} code Unique identifier for the object.
245
+ * @param {string} expand Fields to expand response by
246
+ * @param {string} expand2 Fields to expand response by
247
247
  * @param {string} [authorization] Bearer Token
248
- * @param {string} [expand] Fields to expand response by
249
- * @param {string} [expand2] Fields to expand response by
250
248
  * @param {*} [options] Override http request option.
251
249
  * @throws {RequiredError}
252
250
  */
253
- async getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>> {
254
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, expand2, options);
251
+ async getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options);
255
253
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
256
254
  },
257
255
  /**
@@ -267,7 +265,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
267
265
  * @param {*} [options] Override http request option.
268
266
  * @throws {RequiredError}
269
267
  */
270
- 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>> {
268
+ 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>> {
271
269
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, options);
272
270
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
273
271
  },
@@ -290,21 +288,21 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
290
288
  * @param {*} [options] Override http request option.
291
289
  * @throws {RequiredError}
292
290
  */
293
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
291
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
294
292
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
295
293
  },
296
294
  /**
297
295
  * 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.
298
296
  * @summary Retrieve a payment
299
297
  * @param {string} code Unique identifier for the object.
298
+ * @param {string} expand Fields to expand response by
299
+ * @param {string} expand2 Fields to expand response by
300
300
  * @param {string} [authorization] Bearer Token
301
- * @param {string} [expand] Fields to expand response by
302
- * @param {string} [expand2] Fields to expand response by
303
301
  * @param {*} [options] Override http request option.
304
302
  * @throws {RequiredError}
305
303
  */
306
- getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentResponseClass> {
307
- return localVarFp.getPayment(code, authorization, expand, expand2, options).then((request) => request(axios, basePath));
304
+ getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
305
+ return localVarFp.getPayment(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
308
306
  },
309
307
  /**
310
308
  * 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.
@@ -319,7 +317,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
319
317
  * @param {*} [options] Override http request option.
320
318
  * @throws {RequiredError}
321
319
  */
322
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPaymentsResponseClass> {
320
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
323
321
  return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
324
322
  },
325
323
  };
@@ -367,25 +365,25 @@ export interface PaymentsApiGetPaymentRequest {
367
365
  readonly code: string
368
366
 
369
367
  /**
370
- * Bearer Token
368
+ * Fields to expand response by
371
369
  * @type {string}
372
370
  * @memberof PaymentsApiGetPayment
373
371
  */
374
- readonly authorization?: string
372
+ readonly expand: string
375
373
 
376
374
  /**
377
375
  * Fields to expand response by
378
376
  * @type {string}
379
377
  * @memberof PaymentsApiGetPayment
380
378
  */
381
- readonly expand?: string
379
+ readonly expand2: string
382
380
 
383
381
  /**
384
- * Fields to expand response by
382
+ * Bearer Token
385
383
  * @type {string}
386
384
  * @memberof PaymentsApiGetPayment
387
385
  */
388
- readonly expand2?: string
386
+ readonly authorization?: string
389
387
  }
390
388
 
391
389
  /**
@@ -472,7 +470,7 @@ export class PaymentsApi extends BaseAPI {
472
470
  * @memberof PaymentsApi
473
471
  */
474
472
  public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
475
- return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then((request) => request(this.axios, this.basePath));
473
+ return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
476
474
  }
477
475
 
478
476
  /**
@@ -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
@@ -84,16 +84,18 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
84
84
  *
85
85
  * @param {string} code
86
86
  * @param {string} code2 Unique identifier for the object.
87
+ * @param {string} expand Fields to expand response by
87
88
  * @param {string} [authorization] Bearer Token
88
- * @param {string} [expand] Fields to expand response by
89
89
  * @param {*} [options] Override http request option.
90
90
  * @throws {RequiredError}
91
91
  */
92
- getRefund: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
+ getRefund: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
93
  // verify required parameter 'code' is not null or undefined
94
94
  assertParamExists('getRefund', 'code', code)
95
95
  // verify required parameter 'code2' is not null or undefined
96
96
  assertParamExists('getRefund', 'code2', code2)
97
+ // verify required parameter 'expand' is not null or undefined
98
+ assertParamExists('getRefund', 'expand', expand)
97
99
  const localVarPath = `/paymentservice/v1/refunds/{code}`
98
100
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
99
101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -231,13 +233,13 @@ export const RefundsApiFp = function(configuration?: Configuration) {
231
233
  *
232
234
  * @param {string} code
233
235
  * @param {string} code2 Unique identifier for the object.
236
+ * @param {string} expand Fields to expand response by
234
237
  * @param {string} [authorization] Bearer Token
235
- * @param {string} [expand] Fields to expand response by
236
238
  * @param {*} [options] Override http request option.
237
239
  * @throws {RequiredError}
238
240
  */
239
- async getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
240
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, authorization, expand, options);
241
+ async getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, expand, authorization, options);
241
243
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
242
244
  },
243
245
  /**
@@ -280,13 +282,13 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
280
282
  *
281
283
  * @param {string} code
282
284
  * @param {string} code2 Unique identifier for the object.
285
+ * @param {string} expand Fields to expand response by
283
286
  * @param {string} [authorization] Bearer Token
284
- * @param {string} [expand] Fields to expand response by
285
287
  * @param {*} [options] Override http request option.
286
288
  * @throws {RequiredError}
287
289
  */
288
- getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
289
- return localVarFp.getRefund(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
290
+ getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
291
+ return localVarFp.getRefund(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
290
292
  },
291
293
  /**
292
294
  *
@@ -348,18 +350,18 @@ export interface RefundsApiGetRefundRequest {
348
350
  readonly code2: string
349
351
 
350
352
  /**
351
- * Bearer Token
353
+ * Fields to expand response by
352
354
  * @type {string}
353
355
  * @memberof RefundsApiGetRefund
354
356
  */
355
- readonly authorization?: string
357
+ readonly expand: string
356
358
 
357
359
  /**
358
- * Fields to expand response by
360
+ * Bearer Token
359
361
  * @type {string}
360
362
  * @memberof RefundsApiGetRefund
361
363
  */
362
- readonly expand?: string
364
+ readonly authorization?: string
363
365
  }
364
366
 
365
367
  /**
@@ -444,7 +446,7 @@ export class RefundsApi extends BaseAPI {
444
446
  * @memberof RefundsApi
445
447
  */
446
448
  public getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig) {
447
- return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
449
+ return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
448
450
  }
449
451
 
450
452
  /**
@@ -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
@@ -87,6 +87,7 @@ export class BaseAPI {
87
87
  if (configuration) {
88
88
  this.configuration = configuration;
89
89
  this.basePath = configuration.basePath || this.basePath;
90
+ this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
90
91
  } else {
91
92
  const { accessToken, username } = this.tokenData;
92
93
 
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
@@ -143,7 +143,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
143
143
  * 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.
144
144
  *
145
145
  * The version of the OpenAPI document: 1.0
146
- * Contact: kontakt@emil.de
146
+ * Contact: z
147
147
  *
148
148
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
149
149
  * 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
@@ -95,20 +95,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * Creates a bank account for a specified account.
97
97
  * @summary Create a bank account
98
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
98
+ * @param {object} body
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
103
+ createBankAccount: function (body, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'createBankAccountRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
110
+ // verify required parameter 'body' is not null or undefined
111
+ (0, common_1.assertParamExists)('createBankAccount', 'body', body);
112
112
  localVarPath = "/paymentservice/v1/bank-accounts";
113
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
114
  if (configuration) {
@@ -132,7 +132,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
132
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankAccountRequestDto, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -222,17 +222,17 @@ var BankAccountsApiFp = function (configuration) {
222
222
  /**
223
223
  * Creates a bank account for a specified account.
224
224
  * @summary Create a bank account
225
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
225
+ * @param {object} body
226
226
  * @param {string} [authorization] Bearer Token
227
227
  * @param {*} [options] Override http request option.
228
228
  * @throws {RequiredError}
229
229
  */
230
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
230
+ createBankAccount: function (body, authorization, options) {
231
231
  return __awaiter(this, void 0, void 0, function () {
232
232
  var localVarAxiosArgs;
233
233
  return __generator(this, function (_a) {
234
234
  switch (_a.label) {
235
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
235
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(body, authorization, options)];
236
236
  case 1:
237
237
  localVarAxiosArgs = _a.sent();
238
238
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -279,13 +279,13 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
279
279
  /**
280
280
  * Creates a bank account for a specified account.
281
281
  * @summary Create a bank account
282
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
282
+ * @param {object} body
283
283
  * @param {string} [authorization] Bearer Token
284
284
  * @param {*} [options] Override http request option.
285
285
  * @throws {RequiredError}
286
286
  */
287
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
288
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
287
+ createBankAccount: function (body, authorization, options) {
288
+ return localVarFp.createBankAccount(body, authorization, options).then(function (request) { return request(axios, basePath); });
289
289
  },
290
290
  /**
291
291
  * 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.
@@ -327,7 +327,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
327
327
  */
328
328
  BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
329
329
  var _this = this;
330
- return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
330
+ return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
331
331
  };
332
332
  /**
333
333
  * 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.