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

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 (119) hide show
  1. package/.openapi-generator/FILES +29 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +20 -16
  4. package/api/bank-transaction-api.ts +2 -2
  5. package/api/payment-methods-api.ts +41 -37
  6. package/api/payment-reminders-api.ts +12 -8
  7. package/api/payment-setup-api.ts +36 -28
  8. package/api/payments-api.ts +27 -25
  9. package/api/refunds-api.ts +13 -15
  10. package/dist/api/bank-accounts-api.d.ts +14 -12
  11. package/dist/api/bank-accounts-api.js +12 -12
  12. package/dist/api/bank-transaction-api.d.ts +3 -3
  13. package/dist/api/payment-methods-api.d.ts +31 -27
  14. package/dist/api/payment-methods-api.js +24 -28
  15. package/dist/api/payment-reminders-api.d.ts +14 -12
  16. package/dist/api/payment-setup-api.d.ts +22 -18
  17. package/dist/api/payment-setup-api.js +24 -24
  18. package/dist/api/payments-api.d.ts +24 -21
  19. package/dist/api/payments-api.js +12 -16
  20. package/dist/api/refunds-api.d.ts +10 -10
  21. package/dist/api/refunds-api.js +9 -11
  22. package/dist/models/bank-account-class.d.ts +54 -0
  23. package/dist/models/bank-account-class.js +15 -0
  24. package/dist/models/billing-profile-dto.d.ts +38 -0
  25. package/dist/models/billing-profile-dto.js +15 -0
  26. package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
  27. package/dist/models/billing-profile-limited-response-dto.js +15 -0
  28. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  29. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  30. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  31. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  32. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  33. package/dist/models/complete-payment-setup-response-class.js +15 -0
  34. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  35. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  36. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  37. package/dist/models/create-bank-account-request-dto.js +15 -0
  38. package/dist/models/create-payment-method-response-class.d.ts +25 -0
  39. package/dist/models/create-payment-method-response-class.js +15 -0
  40. package/dist/models/create-payment-request-dto.d.ts +3 -3
  41. package/dist/models/create-payment-response-class.d.ts +25 -0
  42. package/dist/models/create-payment-response-class.js +15 -0
  43. package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
  44. package/dist/models/create-psp-payment-method-request-dto.js +32 -0
  45. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  46. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  47. package/dist/models/get-payment-method-response-class.d.ts +25 -0
  48. package/dist/models/get-payment-method-response-class.js +15 -0
  49. package/dist/models/get-payment-response-class.d.ts +25 -0
  50. package/dist/models/get-payment-response-class.js +15 -0
  51. package/dist/models/get-request-dto.d.ts +1 -1
  52. package/dist/models/index.d.ts +29 -0
  53. package/dist/models/index.js +29 -0
  54. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  55. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  56. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  57. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  58. package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
  59. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  60. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  61. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  62. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  63. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  64. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  65. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  66. package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
  67. package/dist/models/list-bank-accounts-response-class.js +15 -0
  68. package/dist/models/list-payment-methods-response-class.d.ts +31 -0
  69. package/dist/models/list-payment-methods-response-class.js +15 -0
  70. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  71. package/dist/models/list-payment-reminders-response-class.js +15 -0
  72. package/dist/models/list-payments-response-class.d.ts +31 -0
  73. package/dist/models/list-payments-response-class.js +15 -0
  74. package/dist/models/payment-class.d.ts +103 -0
  75. package/dist/models/payment-class.js +15 -0
  76. package/dist/models/payment-method-class.d.ts +66 -0
  77. package/dist/models/payment-method-class.js +15 -0
  78. package/dist/models/payment-reminder-class.d.ts +112 -0
  79. package/dist/models/payment-reminder-class.js +36 -0
  80. package/dist/models/sepa-direct-dto.d.ts +24 -0
  81. package/dist/models/sepa-direct-dto.js +15 -0
  82. package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
  83. package/dist/models/symphony-profile-limited-response-dto.js +15 -0
  84. package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
  85. package/dist/models/validate-pspconfig-request-dto.js +7 -0
  86. package/models/bank-account-class.ts +60 -0
  87. package/models/billing-profile-dto.ts +44 -0
  88. package/models/billing-profile-limited-response-dto.ts +60 -0
  89. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  90. package/models/complete-payment-setup-request-dto.ts +38 -0
  91. package/models/complete-payment-setup-response-class.ts +31 -0
  92. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  93. package/models/create-bank-account-request-dto.ts +36 -0
  94. package/models/create-payment-method-response-class.ts +31 -0
  95. package/models/create-payment-request-dto.ts +3 -3
  96. package/models/create-payment-response-class.ts +31 -0
  97. package/models/create-psp-payment-method-request-dto.ts +70 -0
  98. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  99. package/models/get-payment-method-response-class.ts +31 -0
  100. package/models/get-payment-response-class.ts +31 -0
  101. package/models/get-request-dto.ts +1 -1
  102. package/models/index.ts +29 -0
  103. package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
  104. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  105. package/models/initiate-payment-setup-request-dto.ts +50 -0
  106. package/models/initiate-payment-setup-response-class.ts +38 -0
  107. package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
  108. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  109. package/models/list-bank-accounts-response-class.ts +37 -0
  110. package/models/list-payment-methods-response-class.ts +37 -0
  111. package/models/list-payment-reminders-response-class.ts +37 -0
  112. package/models/list-payments-response-class.ts +37 -0
  113. package/models/payment-class.ts +109 -0
  114. package/models/payment-method-class.ts +72 -0
  115. package/models/payment-reminder-class.ts +122 -0
  116. package/models/sepa-direct-dto.ts +30 -0
  117. package/models/symphony-profile-limited-response-dto.ts +48 -0
  118. package/models/validate-pspconfig-request-dto.ts +11 -1
  119. package/package.json +1 -1
@@ -18,23 +18,52 @@ common.ts
18
18
  configuration.ts
19
19
  git_push.sh
20
20
  index.ts
21
+ models/bank-account-class.ts
21
22
  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
22
31
  models/create-payment-reminder-request-dto.ts
23
32
  models/create-payment-request-dto.ts
33
+ models/create-payment-response-class.ts
34
+ models/create-psp-payment-method-request-dto.ts
24
35
  models/create-refund-request-dto.ts
25
36
  models/create-refund-response-class.ts
26
37
  models/create-tenant-bank-account-request-dto.ts
27
38
  models/deactivate-payment-reminder-request-dto.ts
39
+ models/deactivate-payment-reminder-response-class.ts
28
40
  models/get-bank-transactions-response-class.ts
41
+ models/get-payment-method-response-class.ts
42
+ models/get-payment-response-class.ts
29
43
  models/get-refund-response-class.ts
30
44
  models/get-request-dto.ts
31
45
  models/get-tenant-bank-account-response-class.ts
32
46
  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
33
53
  models/inline-response200.ts
34
54
  models/inline-response503.ts
55
+ models/list-bank-accounts-response-class.ts
35
56
  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
36
60
  models/list-refunds-response-class.ts
61
+ models/payment-class.ts
62
+ models/payment-method-class.ts
63
+ models/payment-reminder-class.ts
37
64
  models/refund-class.ts
65
+ models/sepa-direct-dto.ts
66
+ models/symphony-profile-limited-response-dto.ts
38
67
  models/tenant-bank-account-response-class.ts
39
68
  models/transaction-class.ts
40
69
  models/update-tenant-bank-account-rest-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.4.1-beta.6 --save
20
+ npm install @emilgroup/payment-sdk@1.4.1-beta.7 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.4.1-beta.6
24
+ yarn add @emilgroup/payment-sdk@1.4.1-beta.7
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -20,6 +20,10 @@ 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';
23
27
  /**
24
28
  * BankAccountsApi - axios parameter creator
25
29
  * @export
@@ -29,14 +33,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
29
33
  /**
30
34
  * Creates a bank account for a specified account.
31
35
  * @summary Create a bank account
32
- * @param {object} body
36
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
33
37
  * @param {string} [authorization] Bearer Token
34
38
  * @param {*} [options] Override http request option.
35
39
  * @throws {RequiredError}
36
40
  */
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)
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)
40
44
  const localVarPath = `/paymentservice/v1/bank-accounts`;
41
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
46
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -66,7 +70,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
66
70
  setSearchParams(localVarUrlObj, localVarQueryParameter);
67
71
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
72
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
69
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
73
+ localVarRequestOptions.data = serializeDataIfNeeded(createBankAccountRequestDto, localVarRequestOptions, configuration)
70
74
 
71
75
  return {
72
76
  url: toPathString(localVarUrlObj),
@@ -162,13 +166,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
162
166
  /**
163
167
  * Creates a bank account for a specified account.
164
168
  * @summary Create a bank account
165
- * @param {object} body
169
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
166
170
  * @param {string} [authorization] Bearer Token
167
171
  * @param {*} [options] Override http request option.
168
172
  * @throws {RequiredError}
169
173
  */
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);
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);
172
176
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
173
177
  },
174
178
  /**
@@ -185,7 +189,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
185
189
  * @param {*} [options] Override http request option.
186
190
  * @throws {RequiredError}
187
191
  */
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>> {
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>> {
189
193
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
190
194
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
191
195
  },
@@ -202,13 +206,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
202
206
  /**
203
207
  * Creates a bank account for a specified account.
204
208
  * @summary Create a bank account
205
- * @param {object} body
209
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
206
210
  * @param {string} [authorization] Bearer Token
207
211
  * @param {*} [options] Override http request option.
208
212
  * @throws {RequiredError}
209
213
  */
210
- createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
211
- return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
214
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
215
+ return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
212
216
  },
213
217
  /**
214
218
  * 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.
@@ -224,7 +228,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
224
228
  * @param {*} [options] Override http request option.
225
229
  * @throws {RequiredError}
226
230
  */
227
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
231
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
228
232
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
229
233
  },
230
234
  };
@@ -238,10 +242,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
238
242
  export interface BankAccountsApiCreateBankAccountRequest {
239
243
  /**
240
244
  *
241
- * @type {object}
245
+ * @type {CreateBankAccountRequestDto}
242
246
  * @memberof BankAccountsApiCreateBankAccount
243
247
  */
244
- readonly body: object
248
+ readonly createBankAccountRequestDto: CreateBankAccountRequestDto
245
249
 
246
250
  /**
247
251
  * Bearer Token
@@ -330,7 +334,7 @@ export class BankAccountsApi extends BaseAPI {
330
334
  * @memberof BankAccountsApi
331
335
  */
332
336
  public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
333
- return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
337
+ return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
334
338
  }
335
339
 
336
340
  /**
@@ -357,7 +357,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
357
357
  * @param {*} [options] Override http request option.
358
358
  * @throws {RequiredError}
359
359
  */
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<void>> {
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>> {
361
361
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
362
362
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
363
  },
@@ -431,7 +431,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
431
431
  * @param {*} [options] Override http request option.
432
432
  * @throws {RequiredError}
433
433
  */
434
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
434
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
435
435
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
436
436
  },
437
437
  /**
@@ -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),
@@ -125,19 +133,15 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
125
133
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
126
134
  * @summary Retrieve a payment method
127
135
  * @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
130
136
  * @param {string} [authorization] Bearer Token
137
+ * @param {string} [expand] Fields to expand response by
138
+ * @param {string} [expand2] Fields to expand response by
131
139
  * @param {*} [options] Override http request option.
132
140
  * @throws {RequiredError}
133
141
  */
134
- getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ getPaymentMethod: async (code: string, authorization?: string, expand?: string, expand2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
135
143
  // verify required parameter 'code' is not null or undefined
136
144
  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)
141
145
  const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
142
146
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
147
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -272,13 +276,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
272
276
  /**
273
277
  * 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.
274
278
  * @summary Create the payment-method
275
- * @param {object} body
279
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
276
280
  * @param {string} [authorization] Bearer Token
277
281
  * @param {*} [options] Override http request option.
278
282
  * @throws {RequiredError}
279
283
  */
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);
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);
282
286
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
283
287
  },
284
288
  /**
@@ -297,14 +301,14 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
297
301
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
298
302
  * @summary Retrieve a payment method
299
303
  * @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
302
304
  * @param {string} [authorization] Bearer Token
305
+ * @param {string} [expand] Fields to expand response by
306
+ * @param {string} [expand2] Fields to expand response by
303
307
  * @param {*} [options] Override http request option.
304
308
  * @throws {RequiredError}
305
309
  */
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);
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);
308
312
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
309
313
  },
310
314
  /**
@@ -321,7 +325,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
321
325
  * @param {*} [options] Override http request option.
322
326
  * @throws {RequiredError}
323
327
  */
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>> {
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>> {
325
329
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
326
330
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
327
331
  },
@@ -338,13 +342,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
338
342
  /**
339
343
  * 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.
340
344
  * @summary Create the payment-method
341
- * @param {object} body
345
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
342
346
  * @param {string} [authorization] Bearer Token
343
347
  * @param {*} [options] Override http request option.
344
348
  * @throws {RequiredError}
345
349
  */
346
- createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
347
- return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
350
+ createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
351
+ return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
348
352
  },
349
353
  /**
350
354
  * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
@@ -361,14 +365,14 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
361
365
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
362
366
  * @summary Retrieve a payment method
363
367
  * @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
366
368
  * @param {string} [authorization] Bearer Token
369
+ * @param {string} [expand] Fields to expand response by
370
+ * @param {string} [expand2] Fields to expand response by
367
371
  * @param {*} [options] Override http request option.
368
372
  * @throws {RequiredError}
369
373
  */
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));
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));
372
376
  },
373
377
  /**
374
378
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -384,7 +388,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
384
388
  * @param {*} [options] Override http request option.
385
389
  * @throws {RequiredError}
386
390
  */
387
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
391
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
388
392
  return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
389
393
  },
390
394
  };
@@ -398,10 +402,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
398
402
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
399
403
  /**
400
404
  *
401
- * @type {object}
405
+ * @type {CreatePspPaymentMethodRequestDto}
402
406
  * @memberof PaymentMethodsApiCreatePaymentMethod
403
407
  */
404
- readonly body: object
408
+ readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
405
409
 
406
410
  /**
407
411
  * Bearer Token
@@ -446,25 +450,25 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
446
450
  readonly code: string
447
451
 
448
452
  /**
449
- * Fields to expand response by
453
+ * Bearer Token
450
454
  * @type {string}
451
455
  * @memberof PaymentMethodsApiGetPaymentMethod
452
456
  */
453
- readonly expand: string
457
+ readonly authorization?: string
454
458
 
455
459
  /**
456
460
  * Fields to expand response by
457
461
  * @type {string}
458
462
  * @memberof PaymentMethodsApiGetPaymentMethod
459
463
  */
460
- readonly expand2: string
464
+ readonly expand?: string
461
465
 
462
466
  /**
463
- * Bearer Token
467
+ * Fields to expand response by
464
468
  * @type {string}
465
469
  * @memberof PaymentMethodsApiGetPaymentMethod
466
470
  */
467
- readonly authorization?: string
471
+ readonly expand2?: string
468
472
  }
469
473
 
470
474
  /**
@@ -546,7 +550,7 @@ export class PaymentMethodsApi extends BaseAPI {
546
550
  * @memberof PaymentMethodsApi
547
551
  */
548
552
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
549
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
553
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
550
554
  }
551
555
 
552
556
  /**
@@ -570,7 +574,7 @@ export class PaymentMethodsApi extends BaseAPI {
570
574
  * @memberof PaymentMethodsApi
571
575
  */
572
576
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
573
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
577
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then((request) => request(this.axios, this.basePath));
574
578
  }
575
579
 
576
580
  /**
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { CreatePaymentReminderRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { DeactivatePaymentReminderRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { DeactivatePaymentReminderResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPaymentRemindersResponseClass } from '../models';
27
31
  /**
28
32
  * PaymentRemindersApi - axios parameter creator
29
33
  * @export
@@ -267,7 +271,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
267
271
  * @param {*} [options] Override http request option.
268
272
  * @throws {RequiredError}
269
273
  */
270
- async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
274
+ async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
271
275
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
272
276
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
273
277
  },
@@ -280,7 +284,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
280
284
  * @param {*} [options] Override http request option.
281
285
  * @throws {RequiredError}
282
286
  */
283
- async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
287
+ async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>> {
284
288
  const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
285
289
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
286
290
  },
@@ -292,7 +296,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
292
296
  * @param {*} [options] Override http request option.
293
297
  * @throws {RequiredError}
294
298
  */
295
- async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
299
+ async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
296
300
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
297
301
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
298
302
  },
@@ -310,7 +314,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
310
314
  * @param {*} [options] Override http request option.
311
315
  * @throws {RequiredError}
312
316
  */
313
- async listPaymentReminders(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>> {
317
+ async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
314
318
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
315
319
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
316
320
  },
@@ -332,7 +336,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
332
336
  * @param {*} [options] Override http request option.
333
337
  * @throws {RequiredError}
334
338
  */
335
- createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
339
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
336
340
  return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
337
341
  },
338
342
  /**
@@ -344,7 +348,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
344
348
  * @param {*} [options] Override http request option.
345
349
  * @throws {RequiredError}
346
350
  */
347
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
351
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
348
352
  return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
349
353
  },
350
354
  /**
@@ -355,7 +359,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
355
359
  * @param {*} [options] Override http request option.
356
360
  * @throws {RequiredError}
357
361
  */
358
- getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
362
+ getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object> {
359
363
  return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
360
364
  },
361
365
  /**
@@ -372,7 +376,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
372
376
  * @param {*} [options] Override http request option.
373
377
  * @throws {RequiredError}
374
378
  */
375
- listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
379
+ listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
376
380
  return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
377
381
  },
378
382
  };