@emilgroup/payment-sdk 1.4.1-beta.7 → 1.4.1-beta.8

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 (120) hide show
  1. package/.openapi-generator/FILES +2 -29
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +16 -20
  4. package/api/bank-transaction-api.ts +48 -14
  5. package/api/payment-methods-api.ts +37 -41
  6. package/api/payment-reminders-api.ts +8 -12
  7. package/api/payment-setup-api.ts +28 -36
  8. package/api/payments-api.ts +25 -27
  9. package/api/refunds-api.ts +15 -13
  10. package/dist/api/bank-accounts-api.d.ts +12 -14
  11. package/dist/api/bank-accounts-api.js +12 -12
  12. package/dist/api/bank-transaction-api.d.ts +29 -9
  13. package/dist/api/bank-transaction-api.js +26 -12
  14. package/dist/api/payment-methods-api.d.ts +27 -31
  15. package/dist/api/payment-methods-api.js +28 -24
  16. package/dist/api/payment-reminders-api.d.ts +12 -14
  17. package/dist/api/payment-setup-api.d.ts +18 -22
  18. package/dist/api/payment-setup-api.js +24 -24
  19. package/dist/api/payments-api.d.ts +21 -24
  20. package/dist/api/payments-api.js +16 -12
  21. package/dist/api/refunds-api.d.ts +10 -10
  22. package/dist/api/refunds-api.js +11 -9
  23. package/dist/models/create-payment-request-dto.d.ts +3 -3
  24. package/dist/models/get-request-dto.d.ts +1 -1
  25. package/dist/models/index.d.ts +2 -29
  26. package/dist/models/index.js +2 -29
  27. package/dist/models/{sepa-direct-dto.d.ts → link-bank-transaction-request-dto-rest.d.ts} +5 -5
  28. package/dist/models/{initiate-braintree-payment-setup-response-class.d.ts → unlink-bank-transaction-request-dto-rest.d.ts} +5 -5
  29. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  30. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  31. package/models/create-payment-request-dto.ts +3 -3
  32. package/models/get-request-dto.ts +1 -1
  33. package/models/index.ts +2 -29
  34. package/models/{sepa-direct-dto.ts → link-bank-transaction-request-dto-rest.ts} +5 -5
  35. package/models/{initiate-braintree-payment-setup-response-class.ts → unlink-bank-transaction-request-dto-rest.ts} +5 -5
  36. package/models/validate-pspconfig-request-dto.ts +1 -11
  37. package/package.json +1 -1
  38. package/dist/models/bank-account-class.d.ts +0 -54
  39. package/dist/models/billing-profile-dto.d.ts +0 -38
  40. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  41. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  42. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  43. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  44. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  45. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  46. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  47. package/dist/models/complete-payment-setup-response-class.js +0 -15
  48. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  49. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  50. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  51. package/dist/models/create-bank-account-request-dto.js +0 -15
  52. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  53. package/dist/models/create-payment-method-response-class.js +0 -15
  54. package/dist/models/create-payment-response-class.d.ts +0 -25
  55. package/dist/models/create-payment-response-class.js +0 -15
  56. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  57. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  58. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  59. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  60. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  61. package/dist/models/get-payment-method-response-class.js +0 -15
  62. package/dist/models/get-payment-response-class.d.ts +0 -25
  63. package/dist/models/get-payment-response-class.js +0 -15
  64. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  65. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  66. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  67. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  68. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  69. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  70. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  71. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  72. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  73. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  74. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  75. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  76. package/dist/models/list-bank-accounts-response-class.js +0 -15
  77. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  78. package/dist/models/list-payment-methods-response-class.js +0 -15
  79. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  80. package/dist/models/list-payment-reminders-response-class.js +0 -15
  81. package/dist/models/list-payments-response-class.d.ts +0 -31
  82. package/dist/models/list-payments-response-class.js +0 -15
  83. package/dist/models/payment-class.d.ts +0 -103
  84. package/dist/models/payment-class.js +0 -15
  85. package/dist/models/payment-method-class.d.ts +0 -66
  86. package/dist/models/payment-method-class.js +0 -15
  87. package/dist/models/payment-reminder-class.d.ts +0 -112
  88. package/dist/models/payment-reminder-class.js +0 -36
  89. package/dist/models/sepa-direct-dto.js +0 -15
  90. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  91. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  92. package/models/bank-account-class.ts +0 -60
  93. package/models/billing-profile-dto.ts +0 -44
  94. package/models/billing-profile-limited-response-dto.ts +0 -60
  95. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  96. package/models/complete-payment-setup-request-dto.ts +0 -38
  97. package/models/complete-payment-setup-response-class.ts +0 -31
  98. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  99. package/models/create-bank-account-request-dto.ts +0 -36
  100. package/models/create-payment-method-response-class.ts +0 -31
  101. package/models/create-payment-response-class.ts +0 -31
  102. package/models/create-psp-payment-method-request-dto.ts +0 -70
  103. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  104. package/models/get-payment-method-response-class.ts +0 -31
  105. package/models/get-payment-response-class.ts +0 -31
  106. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  107. package/models/initiate-payment-setup-request-dto.ts +0 -50
  108. package/models/initiate-payment-setup-response-class.ts +0 -38
  109. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  110. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  111. package/models/list-bank-accounts-response-class.ts +0 -37
  112. package/models/list-payment-methods-response-class.ts +0 -37
  113. package/models/list-payment-reminders-response-class.ts +0 -37
  114. package/models/list-payments-response-class.ts +0 -37
  115. package/models/payment-class.ts +0 -109
  116. package/models/payment-method-class.ts +0 -72
  117. package/models/payment-reminder-class.ts +0 -122
  118. package/models/symphony-profile-limited-response-dto.ts +0 -48
  119. /package/dist/models/{bank-account-class.js → link-bank-transaction-request-dto-rest.js} +0 -0
  120. /package/dist/models/{billing-profile-dto.js → unlink-bank-transaction-request-dto-rest.js} +0 -0
@@ -18,54 +18,27 @@ common.ts
18
18
  configuration.ts
19
19
  git_push.sh
20
20
  index.ts
21
- models/bank-account-class.ts
22
21
  models/bank-transaction-response-class.ts
23
- models/billing-profile-dto.ts
24
- models/billing-profile-limited-response-dto.ts
25
- models/complete-braintree-payment-setup-request-dto.ts
26
- models/complete-payment-setup-request-dto.ts
27
- models/complete-payment-setup-response-class.ts
28
- models/complete-stripe-payment-setup-request-dto.ts
29
- models/create-bank-account-request-dto.ts
30
- models/create-payment-method-response-class.ts
31
22
  models/create-payment-reminder-request-dto.ts
32
23
  models/create-payment-request-dto.ts
33
- models/create-payment-response-class.ts
34
- models/create-psp-payment-method-request-dto.ts
35
24
  models/create-refund-request-dto.ts
36
25
  models/create-refund-response-class.ts
37
26
  models/create-tenant-bank-account-request-dto.ts
38
27
  models/deactivate-payment-reminder-request-dto.ts
39
- models/deactivate-payment-reminder-response-class.ts
40
28
  models/get-bank-transactions-response-class.ts
41
- models/get-payment-method-response-class.ts
42
- models/get-payment-response-class.ts
43
29
  models/get-refund-response-class.ts
44
30
  models/get-request-dto.ts
45
31
  models/get-tenant-bank-account-response-class.ts
46
32
  models/index.ts
47
- models/initiate-braintree-payment-setup-request-dto.ts
48
- models/initiate-braintree-payment-setup-response-class.ts
49
- models/initiate-payment-setup-request-dto.ts
50
- models/initiate-payment-setup-response-class.ts
51
- models/initiate-stripe-payment-setup-request-dto.ts
52
- models/initiate-stripe-payment-setup-response-class.ts
53
33
  models/inline-response200.ts
54
34
  models/inline-response503.ts
55
- models/list-bank-accounts-response-class.ts
35
+ models/link-bank-transaction-request-dto-rest.ts
56
36
  models/list-bank-transactions-response-class.ts
57
- models/list-payment-methods-response-class.ts
58
- models/list-payment-reminders-response-class.ts
59
- models/list-payments-response-class.ts
60
37
  models/list-refunds-response-class.ts
61
- models/payment-class.ts
62
- models/payment-method-class.ts
63
- models/payment-reminder-class.ts
64
38
  models/refund-class.ts
65
- models/sepa-direct-dto.ts
66
- models/symphony-profile-limited-response-dto.ts
67
39
  models/tenant-bank-account-response-class.ts
68
40
  models/transaction-class.ts
41
+ models/unlink-bank-transaction-request-dto-rest.ts
69
42
  models/update-tenant-bank-account-rest-request-dto.ts
70
43
  models/validate-pspconfig-request-dto.ts
71
44
  package.json
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.4.1-beta.7 --save
20
+ npm install @emilgroup/payment-sdk@1.4.1-beta.8 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.4.1-beta.7
24
+ yarn add @emilgroup/payment-sdk@1.4.1-beta.8
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -20,10 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateBankAccountRequestDto } from '../models';
25
- // @ts-ignore
26
- import { ListBankAccountsResponseClass } from '../models';
27
23
  /**
28
24
  * BankAccountsApi - axios parameter creator
29
25
  * @export
@@ -33,14 +29,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
33
29
  /**
34
30
  * Creates a bank account for a specified account.
35
31
  * @summary Create a bank account
36
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
32
+ * @param {object} body
37
33
  * @param {string} [authorization] Bearer Token
38
34
  * @param {*} [options] Override http request option.
39
35
  * @throws {RequiredError}
40
36
  */
41
- createBankAccount: async (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'createBankAccountRequestDto' is not null or undefined
43
- assertParamExists('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto)
37
+ createBankAccount: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'body' is not null or undefined
39
+ assertParamExists('createBankAccount', 'body', body)
44
40
  const localVarPath = `/paymentservice/v1/bank-accounts`;
45
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
42
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -70,7 +66,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
70
66
  setSearchParams(localVarUrlObj, localVarQueryParameter);
71
67
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
68
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
- localVarRequestOptions.data = serializeDataIfNeeded(createBankAccountRequestDto, localVarRequestOptions, configuration)
69
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
74
70
 
75
71
  return {
76
72
  url: toPathString(localVarUrlObj),
@@ -166,13 +162,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
166
162
  /**
167
163
  * Creates a bank account for a specified account.
168
164
  * @summary Create a bank account
169
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
165
+ * @param {object} body
170
166
  * @param {string} [authorization] Bearer Token
171
167
  * @param {*} [options] Override http request option.
172
168
  * @throws {RequiredError}
173
169
  */
174
- async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
175
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
170
+ async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
176
172
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
177
173
  },
178
174
  /**
@@ -189,7 +185,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
189
185
  * @param {*} [options] Override http request option.
190
186
  * @throws {RequiredError}
191
187
  */
192
- async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
188
+ async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
193
189
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
194
190
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
195
191
  },
@@ -206,13 +202,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
206
202
  /**
207
203
  * Creates a bank account for a specified account.
208
204
  * @summary Create a bank account
209
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
205
+ * @param {object} body
210
206
  * @param {string} [authorization] Bearer Token
211
207
  * @param {*} [options] Override http request option.
212
208
  * @throws {RequiredError}
213
209
  */
214
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
215
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
210
+ createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
211
+ return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
216
212
  },
217
213
  /**
218
214
  * 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.
@@ -228,7 +224,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
228
224
  * @param {*} [options] Override http request option.
229
225
  * @throws {RequiredError}
230
226
  */
231
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
227
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
232
228
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
233
229
  },
234
230
  };
@@ -242,10 +238,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
242
238
  export interface BankAccountsApiCreateBankAccountRequest {
243
239
  /**
244
240
  *
245
- * @type {CreateBankAccountRequestDto}
241
+ * @type {object}
246
242
  * @memberof BankAccountsApiCreateBankAccount
247
243
  */
248
- readonly createBankAccountRequestDto: CreateBankAccountRequestDto
244
+ readonly body: object
249
245
 
250
246
  /**
251
247
  * Bearer Token
@@ -334,7 +330,7 @@ export class BankAccountsApi extends BaseAPI {
334
330
  * @memberof BankAccountsApi
335
331
  */
336
332
  public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
337
- return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
333
+ return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
338
334
  }
339
335
 
340
336
  /**
@@ -23,7 +23,11 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { GetBankTransactionsResponseClass } from '../models';
25
25
  // @ts-ignore
26
+ import { LinkBankTransactionRequestDtoRest } from '../models';
27
+ // @ts-ignore
26
28
  import { ListBankTransactionsResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { UnlinkBankTransactionRequestDtoRest } from '../models';
27
31
  /**
28
32
  * BankTransactionApi - axios parameter creator
29
33
  * @export
@@ -134,13 +138,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
134
138
  * Links a bank transaction with an invoice
135
139
  * @summary Link Bank Transaction
136
140
  * @param {string} code Code of the bank transaction to link
141
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
137
142
  * @param {string} [authorization] Bearer Token
138
143
  * @param {*} [options] Override http request option.
139
144
  * @throws {RequiredError}
140
145
  */
141
- linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ linkBankTransaction: async (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
147
  // verify required parameter 'code' is not null or undefined
143
148
  assertParamExists('linkBankTransaction', 'code', code)
149
+ // verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
150
+ assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest)
144
151
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
145
152
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -166,9 +173,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
166
173
 
167
174
 
168
175
 
176
+ localVarHeaderParameter['Content-Type'] = 'application/json';
177
+
169
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
170
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
180
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
181
+ localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
172
182
 
173
183
  return {
174
184
  url: toPathString(localVarUrlObj),
@@ -255,13 +265,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
255
265
  * Unlinks an already linked bank transaction
256
266
  * @summary Unlink Bank Transaction
257
267
  * @param {string} code Code of the bank transaction to unlink
268
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
258
269
  * @param {string} [authorization] Bearer Token
259
270
  * @param {*} [options] Override http request option.
260
271
  * @throws {RequiredError}
261
272
  */
262
- unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
+ unlinkBankTransaction: async (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
274
  // verify required parameter 'code' is not null or undefined
264
275
  assertParamExists('unlinkBankTransaction', 'code', code)
276
+ // verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
277
+ assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
265
278
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
266
279
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
280
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -287,9 +300,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
287
300
 
288
301
 
289
302
 
303
+ localVarHeaderParameter['Content-Type'] = 'application/json';
304
+
290
305
  setSearchParams(localVarUrlObj, localVarQueryParameter);
291
306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
307
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
308
+ localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
293
309
 
294
310
  return {
295
311
  url: toPathString(localVarUrlObj),
@@ -335,12 +351,13 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
335
351
  * Links a bank transaction with an invoice
336
352
  * @summary Link Bank Transaction
337
353
  * @param {string} code Code of the bank transaction to link
354
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
338
355
  * @param {string} [authorization] Bearer Token
339
356
  * @param {*} [options] Override http request option.
340
357
  * @throws {RequiredError}
341
358
  */
342
- async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
343
- const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
359
+ async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
344
361
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
345
362
  },
346
363
  /**
@@ -357,7 +374,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
357
374
  * @param {*} [options] Override http request option.
358
375
  * @throws {RequiredError}
359
376
  */
360
- async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
377
+ async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
361
378
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
362
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
380
  },
@@ -365,12 +382,13 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
365
382
  * Unlinks an already linked bank transaction
366
383
  * @summary Unlink Bank Transaction
367
384
  * @param {string} code Code of the bank transaction to unlink
385
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
368
386
  * @param {string} [authorization] Bearer Token
369
387
  * @param {*} [options] Override http request option.
370
388
  * @throws {RequiredError}
371
389
  */
372
- async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
373
- const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
390
+ async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
374
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
375
393
  },
376
394
  }
@@ -410,12 +428,13 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
410
428
  * Links a bank transaction with an invoice
411
429
  * @summary Link Bank Transaction
412
430
  * @param {string} code Code of the bank transaction to link
431
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
413
432
  * @param {string} [authorization] Bearer Token
414
433
  * @param {*} [options] Override http request option.
415
434
  * @throws {RequiredError}
416
435
  */
417
- linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
418
- return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
436
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
437
+ return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
419
438
  },
420
439
  /**
421
440
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -431,19 +450,20 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
431
450
  * @param {*} [options] Override http request option.
432
451
  * @throws {RequiredError}
433
452
  */
434
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
453
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
435
454
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
436
455
  },
437
456
  /**
438
457
  * Unlinks an already linked bank transaction
439
458
  * @summary Unlink Bank Transaction
440
459
  * @param {string} code Code of the bank transaction to unlink
460
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
441
461
  * @param {string} [authorization] Bearer Token
442
462
  * @param {*} [options] Override http request option.
443
463
  * @throws {RequiredError}
444
464
  */
445
- unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
446
- return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
465
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
466
+ return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
447
467
  },
448
468
  };
449
469
  };
@@ -510,6 +530,13 @@ export interface BankTransactionApiLinkBankTransactionRequest {
510
530
  */
511
531
  readonly code: string
512
532
 
533
+ /**
534
+ *
535
+ * @type {LinkBankTransactionRequestDtoRest}
536
+ * @memberof BankTransactionApiLinkBankTransaction
537
+ */
538
+ readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest
539
+
513
540
  /**
514
541
  * Bearer Token
515
542
  * @type {string}
@@ -594,6 +621,13 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
594
621
  */
595
622
  readonly code: string
596
623
 
624
+ /**
625
+ *
626
+ * @type {UnlinkBankTransactionRequestDtoRest}
627
+ * @memberof BankTransactionApiUnlinkBankTransaction
628
+ */
629
+ readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
630
+
597
631
  /**
598
632
  * Bearer Token
599
633
  * @type {string}
@@ -642,7 +676,7 @@ export class BankTransactionApi extends BaseAPI {
642
676
  * @memberof BankTransactionApi
643
677
  */
644
678
  public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
645
- return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
679
+ return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
646
680
  }
647
681
 
648
682
  /**
@@ -666,6 +700,6 @@ export class BankTransactionApi extends BaseAPI {
666
700
  * @memberof BankTransactionApi
667
701
  */
668
702
  public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
669
- return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
703
+ return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
670
704
  }
671
705
  }
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreatePaymentMethodResponseClass } from '../models';
25
- // @ts-ignore
26
- import { CreatePspPaymentMethodRequestDto } from '../models';
27
- // @ts-ignore
28
- import { GetPaymentMethodResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListPaymentMethodsResponseClass } from '../models';
31
23
  /**
32
24
  * PaymentMethodsApi - axios parameter creator
33
25
  * @export
@@ -37,14 +29,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
37
29
  /**
38
30
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
39
31
  * @summary Create the payment-method
40
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
32
+ * @param {object} body
41
33
  * @param {string} [authorization] Bearer Token
42
34
  * @param {*} [options] Override http request option.
43
35
  * @throws {RequiredError}
44
36
  */
45
- createPaymentMethod: async (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
47
- assertParamExists('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto)
37
+ createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'body' is not null or undefined
39
+ assertParamExists('createPaymentMethod', 'body', body)
48
40
  const localVarPath = `/paymentservice/v1/payment-methods`;
49
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
42
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -74,7 +66,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
74
66
  setSearchParams(localVarUrlObj, localVarQueryParameter);
75
67
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
68
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration)
69
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
78
70
 
79
71
  return {
80
72
  url: toPathString(localVarUrlObj),
@@ -133,15 +125,19 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
133
125
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
134
126
  * @summary Retrieve a payment method
135
127
  * @param {string} code Unique identifier for the object.
128
+ * @param {string} expand Fields to expand response by
129
+ * @param {string} expand2 Fields to expand response by
136
130
  * @param {string} [authorization] Bearer Token
137
- * @param {string} [expand] Fields to expand response by
138
- * @param {string} [expand2] Fields to expand response by
139
131
  * @param {*} [options] Override http request option.
140
132
  * @throws {RequiredError}
141
133
  */
142
- getPaymentMethod: async (code: string, authorization?: string, expand?: string, expand2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
134
+ getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
135
  // verify required parameter 'code' is not null or undefined
144
136
  assertParamExists('getPaymentMethod', 'code', code)
137
+ // verify required parameter 'expand' is not null or undefined
138
+ assertParamExists('getPaymentMethod', 'expand', expand)
139
+ // verify required parameter 'expand2' is not null or undefined
140
+ assertParamExists('getPaymentMethod', 'expand2', expand2)
145
141
  const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
146
142
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
143
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -276,13 +272,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
276
272
  /**
277
273
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
278
274
  * @summary Create the payment-method
279
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
275
+ * @param {object} body
280
276
  * @param {string} [authorization] Bearer Token
281
277
  * @param {*} [options] Override http request option.
282
278
  * @throws {RequiredError}
283
279
  */
284
- async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
285
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
280
+ async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
286
282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
287
283
  },
288
284
  /**
@@ -301,14 +297,14 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
301
297
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
302
298
  * @summary Retrieve a payment method
303
299
  * @param {string} code Unique identifier for the object.
300
+ * @param {string} expand Fields to expand response by
301
+ * @param {string} expand2 Fields to expand response by
304
302
  * @param {string} [authorization] Bearer Token
305
- * @param {string} [expand] Fields to expand response by
306
- * @param {string} [expand2] Fields to expand response by
307
303
  * @param {*} [options] Override http request option.
308
304
  * @throws {RequiredError}
309
305
  */
310
- async getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
311
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand, expand2, options);
306
+ async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
307
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
312
308
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
313
309
  },
314
310
  /**
@@ -325,7 +321,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
325
321
  * @param {*} [options] Override http request option.
326
322
  * @throws {RequiredError}
327
323
  */
328
- async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>> {
324
+ async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
329
325
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
330
326
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
331
327
  },
@@ -342,13 +338,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
342
338
  /**
343
339
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
344
340
  * @summary Create the payment-method
345
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
341
+ * @param {object} body
346
342
  * @param {string} [authorization] Bearer Token
347
343
  * @param {*} [options] Override http request option.
348
344
  * @throws {RequiredError}
349
345
  */
350
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
351
- return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
346
+ createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
347
+ return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
352
348
  },
353
349
  /**
354
350
  * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
@@ -365,14 +361,14 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
365
361
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
366
362
  * @summary Retrieve a payment method
367
363
  * @param {string} code Unique identifier for the object.
364
+ * @param {string} expand Fields to expand response by
365
+ * @param {string} expand2 Fields to expand response by
368
366
  * @param {string} [authorization] Bearer Token
369
- * @param {string} [expand] Fields to expand response by
370
- * @param {string} [expand2] Fields to expand response by
371
367
  * @param {*} [options] Override http request option.
372
368
  * @throws {RequiredError}
373
369
  */
374
- getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
375
- return localVarFp.getPaymentMethod(code, authorization, expand, expand2, options).then((request) => request(axios, basePath));
370
+ getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
371
+ return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
376
372
  },
377
373
  /**
378
374
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -388,7 +384,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
388
384
  * @param {*} [options] Override http request option.
389
385
  * @throws {RequiredError}
390
386
  */
391
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
387
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
392
388
  return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
393
389
  },
394
390
  };
@@ -402,10 +398,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
402
398
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
403
399
  /**
404
400
  *
405
- * @type {CreatePspPaymentMethodRequestDto}
401
+ * @type {object}
406
402
  * @memberof PaymentMethodsApiCreatePaymentMethod
407
403
  */
408
- readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
404
+ readonly body: object
409
405
 
410
406
  /**
411
407
  * Bearer Token
@@ -450,25 +446,25 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
450
446
  readonly code: string
451
447
 
452
448
  /**
453
- * Bearer Token
449
+ * Fields to expand response by
454
450
  * @type {string}
455
451
  * @memberof PaymentMethodsApiGetPaymentMethod
456
452
  */
457
- readonly authorization?: string
453
+ readonly expand: string
458
454
 
459
455
  /**
460
456
  * Fields to expand response by
461
457
  * @type {string}
462
458
  * @memberof PaymentMethodsApiGetPaymentMethod
463
459
  */
464
- readonly expand?: string
460
+ readonly expand2: string
465
461
 
466
462
  /**
467
- * Fields to expand response by
463
+ * Bearer Token
468
464
  * @type {string}
469
465
  * @memberof PaymentMethodsApiGetPaymentMethod
470
466
  */
471
- readonly expand2?: string
467
+ readonly authorization?: string
472
468
  }
473
469
 
474
470
  /**
@@ -550,7 +546,7 @@ export class PaymentMethodsApi extends BaseAPI {
550
546
  * @memberof PaymentMethodsApi
551
547
  */
552
548
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
553
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
549
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
554
550
  }
555
551
 
556
552
  /**
@@ -574,7 +570,7 @@ export class PaymentMethodsApi extends BaseAPI {
574
570
  * @memberof PaymentMethodsApi
575
571
  */
576
572
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
577
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then((request) => request(this.axios, this.basePath));
573
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
578
574
  }
579
575
 
580
576
  /**