@emilgroup/payment-sdk 1.4.1-beta.23 → 1.4.1-beta.24
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.
- package/README.md +2 -2
- package/api/bank-transaction-api.ts +8 -8
- package/api/payment-methods-api.ts +34 -141
- package/api/payment-reminders-api.ts +8 -8
- package/api/payments-api.ts +38 -41
- package/api/tenant-bank-account-api.ts +16 -16
- package/dist/api/bank-transaction-api.d.ts +8 -8
- package/dist/api/bank-transaction-api.js +8 -8
- package/dist/api/payment-methods-api.d.ts +25 -80
- package/dist/api/payment-methods-api.js +30 -126
- package/dist/api/payment-reminders-api.d.ts +8 -8
- package/dist/api/payment-reminders-api.js +8 -8
- package/dist/api/payments-api.d.ts +29 -29
- package/dist/api/payments-api.js +34 -36
- package/dist/api/tenant-bank-account-api.d.ts +16 -16
- package/dist/api/tenant-bank-account-api.js +11 -11
- package/package.json +1 -1
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.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.24 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.4.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.4.1-beta.24
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -35,7 +35,7 @@ import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
|
35
35
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
38
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
39
39
|
* @summary Retrieve the Bank Transaction
|
|
40
40
|
* @param {string} code
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
@@ -188,7 +188,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
190
|
/**
|
|
191
|
-
* Returns a list of bank transactions you have previously created.
|
|
191
|
+
* 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.
|
|
192
192
|
* @summary List bank transactions
|
|
193
193
|
* @param {string} [authorization] Bearer Token
|
|
194
194
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -325,7 +325,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
325
325
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
326
326
|
return {
|
|
327
327
|
/**
|
|
328
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
328
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
329
329
|
* @summary Retrieve the Bank Transaction
|
|
330
330
|
* @param {string} code
|
|
331
331
|
* @param {string} [authorization] Bearer Token
|
|
@@ -363,7 +363,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
363
363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
|
-
* Returns a list of bank transactions you have previously created.
|
|
366
|
+
* 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.
|
|
367
367
|
* @summary List bank transactions
|
|
368
368
|
* @param {string} [authorization] Bearer Token
|
|
369
369
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -404,7 +404,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
404
404
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
405
405
|
return {
|
|
406
406
|
/**
|
|
407
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
407
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
408
408
|
* @summary Retrieve the Bank Transaction
|
|
409
409
|
* @param {string} code
|
|
410
410
|
* @param {string} [authorization] Bearer Token
|
|
@@ -439,7 +439,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
439
439
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
440
440
|
},
|
|
441
441
|
/**
|
|
442
|
-
* Returns a list of bank transactions you have previously created.
|
|
442
|
+
* 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.
|
|
443
443
|
* @summary List bank transactions
|
|
444
444
|
* @param {string} [authorization] Bearer Token
|
|
445
445
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -646,7 +646,7 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
646
646
|
*/
|
|
647
647
|
export class BankTransactionApi extends BaseAPI {
|
|
648
648
|
/**
|
|
649
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
649
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
650
650
|
* @summary Retrieve the Bank Transaction
|
|
651
651
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
652
652
|
* @param {*} [options] Override http request option.
|
|
@@ -682,7 +682,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
/**
|
|
685
|
-
* Returns a list of bank transactions you have previously created.
|
|
685
|
+
* 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.
|
|
686
686
|
* @summary List bank transactions
|
|
687
687
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
688
688
|
* @param {*} [options] Override http request option.
|
|
@@ -28,7 +28,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
28
28
|
return {
|
|
29
29
|
/**
|
|
30
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.
|
|
31
|
-
* @summary Create the payment
|
|
31
|
+
* @summary Create the payment method
|
|
32
32
|
* @param {object} body
|
|
33
33
|
* @param {string} [authorization] Bearer Token
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
@@ -73,72 +73,25 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
73
73
|
options: localVarRequestOptions,
|
|
74
74
|
};
|
|
75
75
|
},
|
|
76
|
-
/**
|
|
77
|
-
* 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.
|
|
78
|
-
* @summary Delete a payment method
|
|
79
|
-
* @param {number} id Unique identifier for payment method
|
|
80
|
-
* @param {string} [authorization] Bearer Token
|
|
81
|
-
* @param {*} [options] Override http request option.
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
*/
|
|
84
|
-
deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
85
|
-
// verify required parameter 'id' is not null or undefined
|
|
86
|
-
assertParamExists('deletePaymentMethod', 'id', id)
|
|
87
|
-
const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
|
|
88
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
90
|
-
let baseOptions;
|
|
91
|
-
let baseAccessToken;
|
|
92
|
-
if (configuration) {
|
|
93
|
-
baseOptions = configuration.baseOptions;
|
|
94
|
-
baseAccessToken = configuration.accessToken;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
98
|
-
const localVarHeaderParameter = {} as any;
|
|
99
|
-
const localVarQueryParameter = {} as any;
|
|
100
|
-
|
|
101
|
-
// authentication bearer required
|
|
102
|
-
// http bearer authentication required
|
|
103
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
104
|
-
|
|
105
|
-
if (id !== undefined) {
|
|
106
|
-
localVarQueryParameter['id'] = id;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
110
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
118
|
-
|
|
119
|
-
return {
|
|
120
|
-
url: toPathString(localVarUrlObj),
|
|
121
|
-
options: localVarRequestOptions,
|
|
122
|
-
};
|
|
123
|
-
},
|
|
124
76
|
/**
|
|
125
77
|
* 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
|
-
* @summary Retrieve
|
|
127
|
-
* @param {string} code
|
|
78
|
+
* @summary Retrieve the payment method
|
|
79
|
+
* @param {string} code
|
|
80
|
+
* @param {string} code2 Unique identifier for the object.
|
|
128
81
|
* @param {string} expand Fields to expand response by
|
|
129
|
-
* @param {string} expand2 Fields to expand response by
|
|
130
82
|
* @param {string} [authorization] Bearer Token
|
|
131
83
|
* @param {*} [options] Override http request option.
|
|
132
84
|
* @throws {RequiredError}
|
|
133
85
|
*/
|
|
134
|
-
getPaymentMethod: async (code: string,
|
|
86
|
+
getPaymentMethod: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
135
87
|
// verify required parameter 'code' is not null or undefined
|
|
136
88
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
89
|
+
// verify required parameter 'code2' is not null or undefined
|
|
90
|
+
assertParamExists('getPaymentMethod', 'code2', code2)
|
|
137
91
|
// verify required parameter 'expand' is not null or undefined
|
|
138
92
|
assertParamExists('getPaymentMethod', 'expand', expand)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
|
|
93
|
+
const localVarPath = `/paymentservice/v1/payment-methods/{code}`
|
|
94
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
142
95
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
96
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
144
97
|
let baseOptions;
|
|
@@ -156,18 +109,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
156
109
|
// http bearer authentication required
|
|
157
110
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
158
111
|
|
|
159
|
-
if (
|
|
160
|
-
localVarQueryParameter['code'] =
|
|
112
|
+
if (code2 !== undefined) {
|
|
113
|
+
localVarQueryParameter['code'] = code2;
|
|
161
114
|
}
|
|
162
115
|
|
|
163
116
|
if (expand !== undefined) {
|
|
164
117
|
localVarQueryParameter['expand'] = expand;
|
|
165
118
|
}
|
|
166
119
|
|
|
167
|
-
if (expand2 !== undefined) {
|
|
168
|
-
localVarQueryParameter['expand'] = expand2;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
120
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
172
121
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
173
122
|
}
|
|
@@ -184,7 +133,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
184
133
|
};
|
|
185
134
|
},
|
|
186
135
|
/**
|
|
187
|
-
* Returns a list of payment methods you
|
|
136
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
188
137
|
* @summary List payment methods
|
|
189
138
|
* @param {string} [authorization] Bearer Token
|
|
190
139
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -271,7 +220,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
271
220
|
return {
|
|
272
221
|
/**
|
|
273
222
|
* 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
|
-
* @summary Create the payment
|
|
223
|
+
* @summary Create the payment method
|
|
275
224
|
* @param {object} body
|
|
276
225
|
* @param {string} [authorization] Bearer Token
|
|
277
226
|
* @param {*} [options] Override http request option.
|
|
@@ -281,34 +230,22 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
281
230
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
282
231
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
232
|
},
|
|
284
|
-
/**
|
|
285
|
-
* 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.
|
|
286
|
-
* @summary Delete a payment method
|
|
287
|
-
* @param {number} id Unique identifier for payment method
|
|
288
|
-
* @param {string} [authorization] Bearer Token
|
|
289
|
-
* @param {*} [options] Override http request option.
|
|
290
|
-
* @throws {RequiredError}
|
|
291
|
-
*/
|
|
292
|
-
async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
293
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
|
|
294
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
295
|
-
},
|
|
296
233
|
/**
|
|
297
234
|
* 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
|
-
* @summary Retrieve
|
|
299
|
-
* @param {string} code
|
|
235
|
+
* @summary Retrieve the payment method
|
|
236
|
+
* @param {string} code
|
|
237
|
+
* @param {string} code2 Unique identifier for the object.
|
|
300
238
|
* @param {string} expand Fields to expand response by
|
|
301
|
-
* @param {string} expand2 Fields to expand response by
|
|
302
239
|
* @param {string} [authorization] Bearer Token
|
|
303
240
|
* @param {*} [options] Override http request option.
|
|
304
241
|
* @throws {RequiredError}
|
|
305
242
|
*/
|
|
306
|
-
async getPaymentMethod(code: string,
|
|
307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code,
|
|
243
|
+
async getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options);
|
|
308
245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
309
246
|
},
|
|
310
247
|
/**
|
|
311
|
-
* Returns a list of payment methods you
|
|
248
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
312
249
|
* @summary List payment methods
|
|
313
250
|
* @param {string} [authorization] Bearer Token
|
|
314
251
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -337,7 +274,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
337
274
|
return {
|
|
338
275
|
/**
|
|
339
276
|
* 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
|
-
* @summary Create the payment
|
|
277
|
+
* @summary Create the payment method
|
|
341
278
|
* @param {object} body
|
|
342
279
|
* @param {string} [authorization] Bearer Token
|
|
343
280
|
* @param {*} [options] Override http request option.
|
|
@@ -346,32 +283,21 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
346
283
|
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
347
284
|
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
348
285
|
},
|
|
349
|
-
/**
|
|
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.
|
|
351
|
-
* @summary Delete a payment method
|
|
352
|
-
* @param {number} id Unique identifier for payment method
|
|
353
|
-
* @param {string} [authorization] Bearer Token
|
|
354
|
-
* @param {*} [options] Override http request option.
|
|
355
|
-
* @throws {RequiredError}
|
|
356
|
-
*/
|
|
357
|
-
deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
358
|
-
return localVarFp.deletePaymentMethod(id, authorization, options).then((request) => request(axios, basePath));
|
|
359
|
-
},
|
|
360
286
|
/**
|
|
361
287
|
* 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
|
-
* @summary Retrieve
|
|
363
|
-
* @param {string} code
|
|
288
|
+
* @summary Retrieve the payment method
|
|
289
|
+
* @param {string} code
|
|
290
|
+
* @param {string} code2 Unique identifier for the object.
|
|
364
291
|
* @param {string} expand Fields to expand response by
|
|
365
|
-
* @param {string} expand2 Fields to expand response by
|
|
366
292
|
* @param {string} [authorization] Bearer Token
|
|
367
293
|
* @param {*} [options] Override http request option.
|
|
368
294
|
* @throws {RequiredError}
|
|
369
295
|
*/
|
|
370
|
-
getPaymentMethod(code: string,
|
|
371
|
-
return localVarFp.getPaymentMethod(code,
|
|
296
|
+
getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
297
|
+
return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
|
|
372
298
|
},
|
|
373
299
|
/**
|
|
374
|
-
* Returns a list of payment methods you
|
|
300
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
375
301
|
* @summary List payment methods
|
|
376
302
|
* @param {string} [authorization] Bearer Token
|
|
377
303
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -411,27 +337,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
411
337
|
readonly authorization?: string
|
|
412
338
|
}
|
|
413
339
|
|
|
414
|
-
/**
|
|
415
|
-
* Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
|
|
416
|
-
* @export
|
|
417
|
-
* @interface PaymentMethodsApiDeletePaymentMethodRequest
|
|
418
|
-
*/
|
|
419
|
-
export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
420
|
-
/**
|
|
421
|
-
* Unique identifier for payment method
|
|
422
|
-
* @type {number}
|
|
423
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
424
|
-
*/
|
|
425
|
-
readonly id: number
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Bearer Token
|
|
429
|
-
* @type {string}
|
|
430
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
431
|
-
*/
|
|
432
|
-
readonly authorization?: string
|
|
433
|
-
}
|
|
434
|
-
|
|
435
340
|
/**
|
|
436
341
|
* Request parameters for getPaymentMethod operation in PaymentMethodsApi.
|
|
437
342
|
* @export
|
|
@@ -439,25 +344,25 @@ export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
|
439
344
|
*/
|
|
440
345
|
export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
441
346
|
/**
|
|
442
|
-
*
|
|
347
|
+
*
|
|
443
348
|
* @type {string}
|
|
444
349
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
445
350
|
*/
|
|
446
351
|
readonly code: string
|
|
447
352
|
|
|
448
353
|
/**
|
|
449
|
-
*
|
|
354
|
+
* Unique identifier for the object.
|
|
450
355
|
* @type {string}
|
|
451
356
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
452
357
|
*/
|
|
453
|
-
readonly
|
|
358
|
+
readonly code2: string
|
|
454
359
|
|
|
455
360
|
/**
|
|
456
361
|
* Fields to expand response by
|
|
457
362
|
* @type {string}
|
|
458
363
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
459
364
|
*/
|
|
460
|
-
readonly
|
|
365
|
+
readonly expand: string
|
|
461
366
|
|
|
462
367
|
/**
|
|
463
368
|
* Bearer Token
|
|
@@ -539,7 +444,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
539
444
|
export class PaymentMethodsApi extends BaseAPI {
|
|
540
445
|
/**
|
|
541
446
|
* 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.
|
|
542
|
-
* @summary Create the payment
|
|
447
|
+
* @summary Create the payment method
|
|
543
448
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
544
449
|
* @param {*} [options] Override http request option.
|
|
545
450
|
* @throws {RequiredError}
|
|
@@ -549,32 +454,20 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
549
454
|
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
550
455
|
}
|
|
551
456
|
|
|
552
|
-
/**
|
|
553
|
-
* 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.
|
|
554
|
-
* @summary Delete a payment method
|
|
555
|
-
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
556
|
-
* @param {*} [options] Override http request option.
|
|
557
|
-
* @throws {RequiredError}
|
|
558
|
-
* @memberof PaymentMethodsApi
|
|
559
|
-
*/
|
|
560
|
-
public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
561
|
-
return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
562
|
-
}
|
|
563
|
-
|
|
564
457
|
/**
|
|
565
458
|
* 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.
|
|
566
|
-
* @summary Retrieve
|
|
459
|
+
* @summary Retrieve the payment method
|
|
567
460
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
568
461
|
* @param {*} [options] Override http request option.
|
|
569
462
|
* @throws {RequiredError}
|
|
570
463
|
* @memberof PaymentMethodsApi
|
|
571
464
|
*/
|
|
572
465
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
573
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
466
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
574
467
|
}
|
|
575
468
|
|
|
576
469
|
/**
|
|
577
|
-
* Returns a list of payment methods you
|
|
470
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
578
471
|
* @summary List payment methods
|
|
579
472
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
580
473
|
* @param {*} [options] Override http request option.
|
|
@@ -129,7 +129,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
129
129
|
};
|
|
130
130
|
},
|
|
131
131
|
/**
|
|
132
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
132
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
133
133
|
* @summary Retrieve the payment reminder
|
|
134
134
|
* @param {string} code Unique identifier for the object.
|
|
135
135
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -174,7 +174,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
174
174
|
};
|
|
175
175
|
},
|
|
176
176
|
/**
|
|
177
|
-
* Returns a list of payment reminders you have previously created.
|
|
177
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
178
178
|
* @summary List payment reminders
|
|
179
179
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
180
180
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -285,7 +285,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
285
285
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
288
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
289
289
|
* @summary Retrieve the payment reminder
|
|
290
290
|
* @param {string} code Unique identifier for the object.
|
|
291
291
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -297,7 +297,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
297
297
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
298
298
|
},
|
|
299
299
|
/**
|
|
300
|
-
* Returns a list of payment reminders you have previously created.
|
|
300
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
301
301
|
* @summary List payment reminders
|
|
302
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
303
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -348,7 +348,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
348
348
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
351
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
352
352
|
* @summary Retrieve the payment reminder
|
|
353
353
|
* @param {string} code Unique identifier for the object.
|
|
354
354
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -359,7 +359,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
359
359
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
360
360
|
},
|
|
361
361
|
/**
|
|
362
|
-
* Returns a list of payment reminders you have previously created.
|
|
362
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
363
363
|
* @summary List payment reminders
|
|
364
364
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
365
365
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -543,7 +543,7 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
/**
|
|
546
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
546
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
547
547
|
* @summary Retrieve the payment reminder
|
|
548
548
|
* @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
|
|
549
549
|
* @param {*} [options] Override http request option.
|
|
@@ -555,7 +555,7 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
/**
|
|
558
|
-
* Returns a list of payment reminders you have previously created.
|
|
558
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
559
559
|
* @summary List payment reminders
|
|
560
560
|
* @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
|
|
561
561
|
* @param {*} [options] Override http request option.
|