@emilgroup/payment-sdk 1.5.1-beta.1 → 1.6.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 (179) hide show
  1. package/.openapi-generator/FILES +50 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +20 -12
  4. package/api/bank-transaction-api.ts +20 -10
  5. package/api/payment-methods-api.ts +34 -26
  6. package/api/payment-reminders-api.ts +16 -8
  7. package/api/payment-setup-api.ts +36 -28
  8. package/api/payments-api.ts +12 -6
  9. package/api/refunds-api.ts +12 -6
  10. package/dist/api/bank-accounts-api.d.ts +22 -18
  11. package/dist/api/bank-transaction-api.d.ts +20 -15
  12. package/dist/api/payment-methods-api.d.ts +27 -23
  13. package/dist/api/payment-methods-api.js +18 -18
  14. package/dist/api/payment-reminders-api.d.ts +16 -12
  15. package/dist/api/payment-setup-api.d.ts +22 -18
  16. package/dist/api/payment-setup-api.js +24 -24
  17. package/dist/api/payments-api.d.ts +12 -9
  18. package/dist/api/refunds-api.d.ts +12 -9
  19. package/dist/models/bank-account-class-without-expand-properties.d.ts +84 -0
  20. package/dist/models/bank-account-class-without-expand-properties.js +15 -0
  21. package/dist/models/bank-account-class.d.ts +91 -0
  22. package/dist/models/bank-account-class.js +15 -0
  23. package/dist/models/bank-transaction-class.d.ts +140 -0
  24. package/dist/models/bank-transaction-class.js +15 -0
  25. package/dist/models/billing-profile-dto.d.ts +38 -0
  26. package/dist/models/billing-profile-dto.js +15 -0
  27. package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
  28. package/dist/models/billing-profile-limited-response-dto.js +15 -0
  29. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  30. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  31. package/dist/models/complete-payment-setup-request-dto.d.ts +38 -0
  32. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  33. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  34. package/dist/models/complete-payment-setup-response-class.js +15 -0
  35. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +77 -0
  36. package/dist/models/complete-stripe-payment-setup-request-dto.js +32 -0
  37. package/dist/models/create-bank-account-request-dto.d.ts +2 -2
  38. package/dist/models/create-bank-account-response-class.d.ts +25 -0
  39. package/dist/models/create-bank-account-response-class.js +15 -0
  40. package/dist/models/create-payment-method-response-class.d.ts +25 -0
  41. package/dist/models/create-payment-method-response-class.js +15 -0
  42. package/dist/models/create-payment-reminder-response-class.d.ts +25 -0
  43. package/dist/models/create-payment-reminder-response-class.js +15 -0
  44. package/dist/models/create-payment-request-dto.d.ts +1 -1
  45. package/dist/models/create-payment-response-class.d.ts +25 -0
  46. package/dist/models/create-payment-response-class.js +15 -0
  47. package/dist/models/create-psp-payment-method-request-dto.d.ts +67 -0
  48. package/dist/models/create-psp-payment-method-request-dto.js +32 -0
  49. package/dist/models/create-refund-response-class.d.ts +25 -0
  50. package/dist/models/create-refund-response-class.js +15 -0
  51. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  52. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  53. package/dist/models/deactivated-payment-reminder-class.d.ts +102 -0
  54. package/dist/models/deactivated-payment-reminder-class.js +15 -0
  55. package/dist/models/get-bank-account-response-class.d.ts +25 -0
  56. package/dist/models/get-bank-account-response-class.js +15 -0
  57. package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
  58. package/dist/models/get-bank-transactions-response-class.js +15 -0
  59. package/dist/models/get-payment-method-response-class.d.ts +25 -0
  60. package/dist/models/get-payment-method-response-class.js +15 -0
  61. package/dist/models/get-payment-reminder-response-class.d.ts +25 -0
  62. package/dist/models/get-payment-reminder-response-class.js +15 -0
  63. package/dist/models/get-payment-response-class.d.ts +25 -0
  64. package/dist/models/get-payment-response-class.js +15 -0
  65. package/dist/models/get-refund-response-class.d.ts +25 -0
  66. package/dist/models/get-refund-response-class.js +15 -0
  67. package/dist/models/import-bank-transactions-response-class.d.ts +25 -0
  68. package/dist/models/import-bank-transactions-response-class.js +15 -0
  69. package/dist/models/index.d.ts +50 -0
  70. package/dist/models/index.js +50 -0
  71. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  72. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  73. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  74. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  75. package/dist/models/initiate-payment-setup-request-dto.d.ts +50 -0
  76. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  77. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  78. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  79. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  80. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  81. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  82. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  83. package/dist/models/link-bank-transactions-response-class.d.ts +25 -0
  84. package/dist/models/link-bank-transactions-response-class.js +15 -0
  85. package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
  86. package/dist/models/list-bank-accounts-response-class.js +15 -0
  87. package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
  88. package/dist/models/list-bank-transactions-response-class.js +15 -0
  89. package/dist/models/list-payment-methods-response-class.d.ts +31 -0
  90. package/dist/models/list-payment-methods-response-class.js +15 -0
  91. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  92. package/dist/models/list-payment-reminders-response-class.js +15 -0
  93. package/dist/models/list-payments-response-class.d.ts +31 -0
  94. package/dist/models/list-payments-response-class.js +15 -0
  95. package/dist/models/list-refunds-response-class.d.ts +31 -0
  96. package/dist/models/list-refunds-response-class.js +15 -0
  97. package/dist/models/payment-class-without-expand-properties.d.ts +108 -0
  98. package/dist/models/payment-class-without-expand-properties.js +15 -0
  99. package/dist/models/payment-class.d.ts +115 -0
  100. package/dist/models/payment-class.js +15 -0
  101. package/dist/models/payment-method-class.d.ts +84 -0
  102. package/dist/models/payment-method-class.js +15 -0
  103. package/dist/models/payment-reminder-class.d.ts +102 -0
  104. package/dist/models/payment-reminder-class.js +15 -0
  105. package/dist/models/primary-bank-account-response-class.d.ts +54 -0
  106. package/dist/models/primary-bank-account-response-class.js +15 -0
  107. package/dist/models/refund-class.d.ts +118 -0
  108. package/dist/models/refund-class.js +29 -0
  109. package/dist/models/refund-item-class.d.ts +114 -0
  110. package/dist/models/refund-item-class.js +15 -0
  111. package/dist/models/sepa-direct-dto.d.ts +24 -0
  112. package/dist/models/sepa-direct-dto.js +15 -0
  113. package/dist/models/shared-transaction-class.d.ts +72 -0
  114. package/dist/models/shared-transaction-class.js +15 -0
  115. package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
  116. package/dist/models/symphony-profile-limited-response-dto.js +15 -0
  117. package/dist/models/unlink-bank-transactions-response-class.d.ts +25 -0
  118. package/dist/models/unlink-bank-transactions-response-class.js +15 -0
  119. package/dist/models/unlinked-bank-transaction-response-class.d.ts +108 -0
  120. package/dist/models/unlinked-bank-transaction-response-class.js +15 -0
  121. package/dist/models/update-bank-account-response-class.d.ts +25 -0
  122. package/dist/models/update-bank-account-response-class.js +15 -0
  123. package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
  124. package/dist/models/validate-pspconfig-request-dto.js +7 -0
  125. package/models/bank-account-class-without-expand-properties.ts +90 -0
  126. package/models/bank-account-class.ts +97 -0
  127. package/models/bank-transaction-class.ts +146 -0
  128. package/models/billing-profile-dto.ts +44 -0
  129. package/models/billing-profile-limited-response-dto.ts +60 -0
  130. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  131. package/models/complete-payment-setup-request-dto.ts +44 -0
  132. package/models/complete-payment-setup-response-class.ts +31 -0
  133. package/models/complete-stripe-payment-setup-request-dto.ts +86 -0
  134. package/models/create-bank-account-request-dto.ts +2 -2
  135. package/models/create-bank-account-response-class.ts +31 -0
  136. package/models/create-payment-method-response-class.ts +31 -0
  137. package/models/create-payment-reminder-response-class.ts +31 -0
  138. package/models/create-payment-request-dto.ts +1 -1
  139. package/models/create-payment-response-class.ts +31 -0
  140. package/models/create-psp-payment-method-request-dto.ts +76 -0
  141. package/models/create-refund-response-class.ts +31 -0
  142. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  143. package/models/deactivated-payment-reminder-class.ts +108 -0
  144. package/models/get-bank-account-response-class.ts +31 -0
  145. package/models/get-bank-transactions-response-class.ts +31 -0
  146. package/models/get-payment-method-response-class.ts +31 -0
  147. package/models/get-payment-reminder-response-class.ts +31 -0
  148. package/models/get-payment-response-class.ts +31 -0
  149. package/models/get-refund-response-class.ts +31 -0
  150. package/models/import-bank-transactions-response-class.ts +31 -0
  151. package/models/index.ts +50 -0
  152. package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
  153. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  154. package/models/initiate-payment-setup-request-dto.ts +56 -0
  155. package/models/initiate-payment-setup-response-class.ts +38 -0
  156. package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
  157. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  158. package/models/link-bank-transactions-response-class.ts +31 -0
  159. package/models/list-bank-accounts-response-class.ts +37 -0
  160. package/models/list-bank-transactions-response-class.ts +37 -0
  161. package/models/list-payment-methods-response-class.ts +37 -0
  162. package/models/list-payment-reminders-response-class.ts +37 -0
  163. package/models/list-payments-response-class.ts +37 -0
  164. package/models/list-refunds-response-class.ts +37 -0
  165. package/models/payment-class-without-expand-properties.ts +114 -0
  166. package/models/payment-class.ts +121 -0
  167. package/models/payment-method-class.ts +90 -0
  168. package/models/payment-reminder-class.ts +108 -0
  169. package/models/primary-bank-account-response-class.ts +60 -0
  170. package/models/refund-class.ts +128 -0
  171. package/models/refund-item-class.ts +120 -0
  172. package/models/sepa-direct-dto.ts +30 -0
  173. package/models/shared-transaction-class.ts +78 -0
  174. package/models/symphony-profile-limited-response-dto.ts +48 -0
  175. package/models/unlink-bank-transactions-response-class.ts +31 -0
  176. package/models/unlinked-bank-transaction-response-class.ts +114 -0
  177. package/models/update-bank-account-response-class.ts +31 -0
  178. package/models/validate-pspconfig-request-dto.ts +11 -1
  179. package/package.json +1 -1
@@ -18,26 +18,76 @@ common.ts
18
18
  configuration.ts
19
19
  git_push.sh
20
20
  index.ts
21
+ models/bank-account-class-without-expand-properties.ts
22
+ models/bank-account-class.ts
21
23
  models/bank-transaction-class-without-expand-properties.ts
24
+ models/bank-transaction-class.ts
25
+ models/billing-profile-dto.ts
26
+ models/billing-profile-limited-response-dto.ts
27
+ models/complete-braintree-payment-setup-request-dto.ts
28
+ models/complete-payment-setup-request-dto.ts
29
+ models/complete-payment-setup-response-class.ts
30
+ models/complete-stripe-payment-setup-request-dto.ts
22
31
  models/create-bank-account-request-dto.ts
32
+ models/create-bank-account-response-class.ts
33
+ models/create-payment-method-response-class.ts
23
34
  models/create-payment-reminder-request-dto.ts
35
+ models/create-payment-reminder-response-class.ts
24
36
  models/create-payment-request-dto.ts
37
+ models/create-payment-response-class.ts
38
+ models/create-psp-payment-method-request-dto.ts
25
39
  models/create-refund-request-dto.ts
40
+ models/create-refund-response-class.ts
26
41
  models/create-tenant-bank-account-request-dto.ts
27
42
  models/create-tenant-bank-account-response-class.ts
28
43
  models/deactivate-payment-reminder-request-dto.ts
44
+ models/deactivate-payment-reminder-response-class.ts
45
+ models/deactivated-payment-reminder-class.ts
46
+ models/get-bank-account-response-class.ts
47
+ models/get-bank-transactions-response-class.ts
48
+ models/get-payment-method-response-class.ts
49
+ models/get-payment-reminder-response-class.ts
50
+ models/get-payment-response-class.ts
51
+ models/get-refund-response-class.ts
29
52
  models/get-tenant-bank-account-response-class.ts
53
+ models/import-bank-transactions-response-class.ts
30
54
  models/index.ts
55
+ models/initiate-braintree-payment-setup-request-dto.ts
56
+ models/initiate-braintree-payment-setup-response-class.ts
57
+ models/initiate-payment-setup-request-dto.ts
58
+ models/initiate-payment-setup-response-class.ts
59
+ models/initiate-stripe-payment-setup-request-dto.ts
60
+ models/initiate-stripe-payment-setup-response-class.ts
31
61
  models/inline-response200.ts
32
62
  models/inline-response503.ts
33
63
  models/link-bank-transaction-request-dto-rest.ts
64
+ models/link-bank-transactions-response-class.ts
65
+ models/list-bank-accounts-response-class.ts
66
+ models/list-bank-transactions-response-class.ts
67
+ models/list-payment-methods-response-class.ts
68
+ models/list-payment-reminders-response-class.ts
69
+ models/list-payments-response-class.ts
70
+ models/list-refunds-response-class.ts
34
71
  models/list-tenant-bank-account-response-class.ts
72
+ models/payment-class-without-expand-properties.ts
73
+ models/payment-class.ts
74
+ models/payment-method-class.ts
75
+ models/payment-reminder-class.ts
76
+ models/primary-bank-account-response-class.ts
77
+ models/refund-class.ts
78
+ models/refund-item-class.ts
79
+ models/sepa-direct-dto.ts
35
80
  models/set-primary-bank-account-request-dto-rest.ts
81
+ models/shared-transaction-class.ts
82
+ models/symphony-profile-limited-response-dto.ts
36
83
  models/tenant-bank-account-class-without-expand-properties.ts
37
84
  models/tenant-bank-account-class.ts
38
85
  models/unlink-bank-transaction-request-dto-rest.ts
86
+ models/unlink-bank-transactions-response-class.ts
87
+ models/unlinked-bank-transaction-response-class.ts
39
88
  models/update-bank-account-request-dto-rest.ts
40
89
  models/update-bank-account-request-dto.ts
90
+ models/update-bank-account-response-class.ts
41
91
  models/update-tenant-bank-account-response-class.ts
42
92
  models/update-tenant-bank-account-rest-request-dto.ts
43
93
  models/validate-pspconfig-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk@1.5.1-beta.1 --save
20
+ npm install @emilgroup/payment-sdk@1.6.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.5.1-beta.1
24
+ yarn add @emilgroup/payment-sdk@1.6.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -23,9 +23,17 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CreateBankAccountRequestDto } from '../models';
25
25
  // @ts-ignore
26
+ import { CreateBankAccountResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetBankAccountResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListBankAccountsResponseClass } from '../models';
31
+ // @ts-ignore
26
32
  import { SetPrimaryBankAccountRequestDtoRest } from '../models';
27
33
  // @ts-ignore
28
34
  import { UpdateBankAccountRequestDtoRest } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateBankAccountResponseClass } from '../models';
29
37
  /**
30
38
  * BankAccountsApi - axios parameter creator
31
39
  * @export
@@ -355,7 +363,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
355
363
  * @param {*} [options] Override http request option.
356
364
  * @throws {RequiredError}
357
365
  */
358
- async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
366
+ async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankAccountResponseClass>> {
359
367
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
360
368
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
361
369
  },
@@ -367,7 +375,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
367
375
  * @param {*} [options] Override http request option.
368
376
  * @throws {RequiredError}
369
377
  */
370
- async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
378
+ async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
371
379
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
372
380
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
381
  },
@@ -380,7 +388,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
380
388
  * @param {*} [options] Override http request option.
381
389
  * @throws {RequiredError}
382
390
  */
383
- async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
391
+ async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
384
392
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
385
393
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
386
394
  },
@@ -395,7 +403,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
395
403
  * @param {*} [options] Override http request option.
396
404
  * @throws {RequiredError}
397
405
  */
398
- async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
406
+ async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
399
407
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options);
400
408
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
401
409
  },
@@ -408,7 +416,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
408
416
  * @param {*} [options] Override http request option.
409
417
  * @throws {RequiredError}
410
418
  */
411
- async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
419
+ async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
412
420
  const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
413
421
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
414
422
  },
@@ -421,7 +429,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
421
429
  * @param {*} [options] Override http request option.
422
430
  * @throws {RequiredError}
423
431
  */
424
- async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
432
+ async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>> {
425
433
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
426
434
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
427
435
  },
@@ -443,7 +451,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
443
451
  * @param {*} [options] Override http request option.
444
452
  * @throws {RequiredError}
445
453
  */
446
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
454
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankAccountResponseClass> {
447
455
  return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
448
456
  },
449
457
  /**
@@ -454,7 +462,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
454
462
  * @param {*} [options] Override http request option.
455
463
  * @throws {RequiredError}
456
464
  */
457
- deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
465
+ deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
458
466
  return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
459
467
  },
460
468
  /**
@@ -466,7 +474,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
466
474
  * @param {*} [options] Override http request option.
467
475
  * @throws {RequiredError}
468
476
  */
469
- getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
477
+ getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
470
478
  return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
471
479
  },
472
480
  /**
@@ -480,7 +488,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
480
488
  * @param {*} [options] Override http request option.
481
489
  * @throws {RequiredError}
482
490
  */
483
- listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
491
+ listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
484
492
  return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
485
493
  },
486
494
  /**
@@ -492,7 +500,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
492
500
  * @param {*} [options] Override http request option.
493
501
  * @throws {RequiredError}
494
502
  */
495
- setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
503
+ setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
496
504
  return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
497
505
  },
498
506
  /**
@@ -504,7 +512,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
504
512
  * @param {*} [options] Override http request option.
505
513
  * @throws {RequiredError}
506
514
  */
507
- updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
515
+ updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass> {
508
516
  return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
509
517
  },
510
518
  };
@@ -21,9 +21,19 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { GetBankTransactionsResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ImportBankTransactionsResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { LinkBankTransactionRequestDtoRest } from '../models';
25
29
  // @ts-ignore
30
+ import { LinkBankTransactionsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListBankTransactionsResponseClass } from '../models';
33
+ // @ts-ignore
26
34
  import { UnlinkBankTransactionRequestDtoRest } from '../models';
35
+ // @ts-ignore
36
+ import { UnlinkBankTransactionsResponseClass } from '../models';
27
37
  /**
28
38
  * BankTransactionApi - axios parameter creator
29
39
  * @export
@@ -319,7 +329,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
319
329
  * @param {*} [options] Override http request option.
320
330
  * @throws {RequiredError}
321
331
  */
322
- async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
332
+ async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
323
333
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
324
334
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
325
335
  },
@@ -331,7 +341,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
331
341
  * @param {*} [options] Override http request option.
332
342
  * @throws {RequiredError}
333
343
  */
334
- async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
344
+ async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportBankTransactionsResponseClass>> {
335
345
  const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
336
346
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
347
  },
@@ -344,7 +354,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
344
354
  * @param {*} [options] Override http request option.
345
355
  * @throws {RequiredError}
346
356
  */
347
- async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
357
+ async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionsResponseClass>> {
348
358
  const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
349
359
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
360
  },
@@ -360,7 +370,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
360
370
  * @param {*} [options] Override http request option.
361
371
  * @throws {RequiredError}
362
372
  */
363
- async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
373
+ async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
364
374
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options);
365
375
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
366
376
  },
@@ -373,7 +383,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
373
383
  * @param {*} [options] Override http request option.
374
384
  * @throws {RequiredError}
375
385
  */
376
- async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
386
+ async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>> {
377
387
  const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
378
388
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
379
389
  },
@@ -396,7 +406,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
396
406
  * @param {*} [options] Override http request option.
397
407
  * @throws {RequiredError}
398
408
  */
399
- getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
409
+ getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
400
410
  return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
401
411
  },
402
412
  /**
@@ -407,7 +417,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
407
417
  * @param {*} [options] Override http request option.
408
418
  * @throws {RequiredError}
409
419
  */
410
- importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<void> {
420
+ importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<ImportBankTransactionsResponseClass> {
411
421
  return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
412
422
  },
413
423
  /**
@@ -419,7 +429,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
419
429
  * @param {*} [options] Override http request option.
420
430
  * @throws {RequiredError}
421
431
  */
422
- linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
432
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass> {
423
433
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
424
434
  },
425
435
  /**
@@ -434,7 +444,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
434
444
  * @param {*} [options] Override http request option.
435
445
  * @throws {RequiredError}
436
446
  */
437
- listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
447
+ listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
438
448
  return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
439
449
  },
440
450
  /**
@@ -446,7 +456,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
446
456
  * @param {*} [options] Override http request option.
447
457
  * @throws {RequiredError}
448
458
  */
449
- unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
459
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass> {
450
460
  return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
451
461
  },
452
462
  };
@@ -20,6 +20,14 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreatePaymentMethodResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePspPaymentMethodRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { GetPaymentMethodResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPaymentMethodsResponseClass } from '../models';
23
31
  /**
24
32
  * PaymentMethodsApi - axios parameter creator
25
33
  * @export
@@ -29,14 +37,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
29
37
  /**
30
38
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
31
39
  * @summary Create the payment method
32
- * @param {object} body
40
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
33
41
  * @param {string} [authorization] Bearer Token
34
42
  * @param {*} [options] Override http request option.
35
43
  * @throws {RequiredError}
36
44
  */
37
- createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
- // verify required parameter 'body' is not null or undefined
39
- assertParamExists('createPaymentMethod', 'body', body)
45
+ createPaymentMethod: async (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
47
+ assertParamExists('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto)
40
48
  const localVarPath = `/paymentservice/v1/payment-methods`;
41
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -66,7 +74,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
66
74
  setSearchParams(localVarUrlObj, localVarQueryParameter);
67
75
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
76
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
69
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
77
+ localVarRequestOptions.data = serializeDataIfNeeded(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration)
70
78
 
71
79
  return {
72
80
  url: toPathString(localVarUrlObj),
@@ -122,8 +130,8 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
122
130
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
123
131
  * @summary List payment methods
124
132
  * @param {string} [authorization] Bearer Token
125
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
126
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
133
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
134
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
127
135
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
128
136
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
129
137
  * @param {*} [options] Override http request option.
@@ -192,13 +200,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
192
200
  /**
193
201
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
194
202
  * @summary Create the payment method
195
- * @param {object} body
203
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
196
204
  * @param {string} [authorization] Bearer Token
197
205
  * @param {*} [options] Override http request option.
198
206
  * @throws {RequiredError}
199
207
  */
200
- async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
201
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
208
+ async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
209
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
202
210
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
203
211
  },
204
212
  /**
@@ -209,7 +217,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
209
217
  * @param {*} [options] Override http request option.
210
218
  * @throws {RequiredError}
211
219
  */
212
- async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
220
+ async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
213
221
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, options);
214
222
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
215
223
  },
@@ -217,14 +225,14 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
217
225
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
218
226
  * @summary List payment methods
219
227
  * @param {string} [authorization] Bearer Token
220
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
221
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
228
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
229
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
222
230
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
223
231
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
224
232
  * @param {*} [options] Override http request option.
225
233
  * @throws {RequiredError}
226
234
  */
227
- async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
235
+ async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>> {
228
236
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, filter, filters, order, expand, options);
229
237
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
230
238
  },
@@ -241,13 +249,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
241
249
  /**
242
250
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
243
251
  * @summary Create the payment method
244
- * @param {object} body
252
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
245
253
  * @param {string} [authorization] Bearer Token
246
254
  * @param {*} [options] Override http request option.
247
255
  * @throws {RequiredError}
248
256
  */
249
- createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
250
- return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
257
+ createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
258
+ return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
251
259
  },
252
260
  /**
253
261
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
@@ -257,21 +265,21 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
257
265
  * @param {*} [options] Override http request option.
258
266
  * @throws {RequiredError}
259
267
  */
260
- getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<void> {
268
+ getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
261
269
  return localVarFp.getPaymentMethod(code, authorization, options).then((request) => request(axios, basePath));
262
270
  },
263
271
  /**
264
272
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
265
273
  * @summary List payment methods
266
274
  * @param {string} [authorization] Bearer Token
267
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
268
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
275
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
276
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
269
277
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
270
278
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
271
279
  * @param {*} [options] Override http request option.
272
280
  * @throws {RequiredError}
273
281
  */
274
- listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
282
+ listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
275
283
  return localVarFp.listPaymentMethods(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
276
284
  },
277
285
  };
@@ -285,10 +293,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
285
293
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
286
294
  /**
287
295
  *
288
- * @type {object}
296
+ * @type {CreatePspPaymentMethodRequestDto}
289
297
  * @memberof PaymentMethodsApiCreatePaymentMethod
290
298
  */
291
- readonly body: object
299
+ readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
292
300
 
293
301
  /**
294
302
  * Bearer Token
@@ -333,14 +341,14 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
333
341
  readonly authorization?: string
334
342
 
335
343
  /**
336
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
344
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
337
345
  * @type {string}
338
346
  * @memberof PaymentMethodsApiListPaymentMethods
339
347
  */
340
348
  readonly filter?: string
341
349
 
342
350
  /**
343
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type&lt;/i&gt;
351
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
344
352
  * @type {string}
345
353
  * @memberof PaymentMethodsApiListPaymentMethods
346
354
  */
@@ -377,7 +385,7 @@ export class PaymentMethodsApi extends BaseAPI {
377
385
  * @memberof PaymentMethodsApi
378
386
  */
379
387
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
380
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
388
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
381
389
  }
382
390
 
383
391
  /**
@@ -23,7 +23,15 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CreatePaymentReminderRequestDto } from '../models';
25
25
  // @ts-ignore
26
+ import { CreatePaymentReminderResponseClass } from '../models';
27
+ // @ts-ignore
26
28
  import { DeactivatePaymentReminderRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { DeactivatePaymentReminderResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { GetPaymentReminderResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { ListPaymentRemindersResponseClass } from '../models';
27
35
  /**
28
36
  * PaymentRemindersApi - axios parameter creator
29
37
  * @export
@@ -252,7 +260,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
252
260
  * @param {*} [options] Override http request option.
253
261
  * @throws {RequiredError}
254
262
  */
255
- async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
263
+ async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentReminderResponseClass>> {
256
264
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
257
265
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
258
266
  },
@@ -265,7 +273,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
265
273
  * @param {*} [options] Override http request option.
266
274
  * @throws {RequiredError}
267
275
  */
268
- async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
276
+ async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>> {
269
277
  const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
270
278
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
271
279
  },
@@ -277,7 +285,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
277
285
  * @param {*} [options] Override http request option.
278
286
  * @throws {RequiredError}
279
287
  */
280
- async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
288
+ async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentReminderResponseClass>> {
281
289
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
282
290
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
283
291
  },
@@ -292,7 +300,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
292
300
  * @param {*} [options] Override http request option.
293
301
  * @throws {RequiredError}
294
302
  */
295
- async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
303
+ async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
296
304
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, filter, filters, order, expand, options);
297
305
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
298
306
  },
@@ -314,7 +322,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
314
322
  * @param {*} [options] Override http request option.
315
323
  * @throws {RequiredError}
316
324
  */
317
- createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
325
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentReminderResponseClass> {
318
326
  return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
319
327
  },
320
328
  /**
@@ -326,7 +334,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
326
334
  * @param {*} [options] Override http request option.
327
335
  * @throws {RequiredError}
328
336
  */
329
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
337
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
330
338
  return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
331
339
  },
332
340
  /**
@@ -337,7 +345,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
337
345
  * @param {*} [options] Override http request option.
338
346
  * @throws {RequiredError}
339
347
  */
340
- getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
348
+ getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<GetPaymentReminderResponseClass> {
341
349
  return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
342
350
  },
343
351
  /**
@@ -351,7 +359,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
351
359
  * @param {*} [options] Override http request option.
352
360
  * @throws {RequiredError}
353
361
  */
354
- listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
362
+ listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
355
363
  return localVarFp.listPaymentReminders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
356
364
  },
357
365
  };