@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.5
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/.openapi-generator/FILES +0 -35
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +16 -20
- package/api/bank-transaction-api.ts +2 -204
- package/api/payment-methods-api.ts +37 -41
- package/api/payment-reminders-api.ts +8 -12
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +25 -27
- package/api.ts +0 -2
- package/dist/api/bank-accounts-api.d.ts +12 -14
- package/dist/api/bank-accounts-api.js +12 -12
- package/dist/api/bank-transaction-api.d.ts +3 -113
- package/dist/api/bank-transaction-api.js +0 -184
- package/dist/api/payment-methods-api.d.ts +27 -31
- package/dist/api/payment-methods-api.js +28 -24
- package/dist/api/payment-reminders-api.d.ts +12 -14
- package/dist/api/payment-setup-api.d.ts +18 -22
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +21 -24
- package/dist/api/payments-api.js +16 -12
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/bank-transaction-response-class.d.ts +6 -0
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +0 -34
- package/dist/models/index.js +0 -34
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
- package/dist/models/validate-pspconfig-request-dto.js +0 -7
- package/models/bank-transaction-response-class.ts +6 -0
- package/models/create-payment-request-dto.ts +3 -3
- package/models/get-request-dto.ts +1 -1
- package/models/index.ts +0 -34
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/api/refunds-api.ts +0 -474
- package/dist/api/refunds-api.d.ts +0 -269
- package/dist/api/refunds-api.js +0 -447
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-request-dto.d.ts +0 -24
- package/dist/models/create-refund-request-dto.js +0 -15
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/refund-class.d.ts +0 -104
- package/dist/models/refund-class.js +0 -28
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -36
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-request-dto.ts +0 -30
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/refund-class.ts +0 -114
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -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 {
|
|
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 (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('createPaymentMethod', '
|
|
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(
|
|
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,
|
|
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 {
|
|
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(
|
|
285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
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,
|
|
311
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code,
|
|
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<
|
|
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 {
|
|
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(
|
|
351
|
-
return localVarFp.createPaymentMethod(
|
|
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,
|
|
375
|
-
return localVarFp.getPaymentMethod(code,
|
|
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<
|
|
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 {
|
|
401
|
+
* @type {object}
|
|
406
402
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
407
403
|
*/
|
|
408
|
-
readonly
|
|
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
|
-
*
|
|
449
|
+
* Fields to expand response by
|
|
454
450
|
* @type {string}
|
|
455
451
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
456
452
|
*/
|
|
457
|
-
readonly
|
|
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
|
|
460
|
+
readonly expand2: string
|
|
465
461
|
|
|
466
462
|
/**
|
|
467
|
-
*
|
|
463
|
+
* Bearer Token
|
|
468
464
|
* @type {string}
|
|
469
465
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
470
466
|
*/
|
|
471
|
-
readonly
|
|
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.
|
|
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.
|
|
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
|
/**
|
|
@@ -24,10 +24,6 @@ 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';
|
|
31
27
|
/**
|
|
32
28
|
* PaymentRemindersApi - axios parameter creator
|
|
33
29
|
* @export
|
|
@@ -271,7 +267,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
271
267
|
* @param {*} [options] Override http request option.
|
|
272
268
|
* @throws {RequiredError}
|
|
273
269
|
*/
|
|
274
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
270
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
275
271
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
276
272
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
277
273
|
},
|
|
@@ -284,7 +280,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
284
280
|
* @param {*} [options] Override http request option.
|
|
285
281
|
* @throws {RequiredError}
|
|
286
282
|
*/
|
|
287
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
283
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
288
284
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
289
285
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
290
286
|
},
|
|
@@ -296,7 +292,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
296
292
|
* @param {*} [options] Override http request option.
|
|
297
293
|
* @throws {RequiredError}
|
|
298
294
|
*/
|
|
299
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
295
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
300
296
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
301
297
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
302
298
|
},
|
|
@@ -314,7 +310,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
314
310
|
* @param {*} [options] Override http request option.
|
|
315
311
|
* @throws {RequiredError}
|
|
316
312
|
*/
|
|
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<
|
|
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>> {
|
|
318
314
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
319
315
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
316
|
},
|
|
@@ -336,7 +332,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
336
332
|
* @param {*} [options] Override http request option.
|
|
337
333
|
* @throws {RequiredError}
|
|
338
334
|
*/
|
|
339
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
335
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
340
336
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
341
337
|
},
|
|
342
338
|
/**
|
|
@@ -348,7 +344,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
348
344
|
* @param {*} [options] Override http request option.
|
|
349
345
|
* @throws {RequiredError}
|
|
350
346
|
*/
|
|
351
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
347
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
352
348
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
353
349
|
},
|
|
354
350
|
/**
|
|
@@ -359,7 +355,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
359
355
|
* @param {*} [options] Override http request option.
|
|
360
356
|
* @throws {RequiredError}
|
|
361
357
|
*/
|
|
362
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
358
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
363
359
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
364
360
|
},
|
|
365
361
|
/**
|
|
@@ -376,7 +372,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
376
372
|
* @param {*} [options] Override http request option.
|
|
377
373
|
* @throws {RequiredError}
|
|
378
374
|
*/
|
|
379
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
375
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
380
376
|
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
381
377
|
},
|
|
382
378
|
};
|
package/api/payment-setup-api.ts
CHANGED
|
@@ -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 { CompletePaymentSetupRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
31
23
|
/**
|
|
32
24
|
* PaymentSetupApi - axios parameter creator
|
|
33
25
|
* @export
|
|
@@ -36,14 +28,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
36
28
|
return {
|
|
37
29
|
/**
|
|
38
30
|
*
|
|
39
|
-
* @param {
|
|
31
|
+
* @param {object} body
|
|
40
32
|
* @param {string} [authorization] Bearer Token
|
|
41
33
|
* @param {*} [options] Override http request option.
|
|
42
34
|
* @throws {RequiredError}
|
|
43
35
|
*/
|
|
44
|
-
completePaymentSetup: async (
|
|
45
|
-
// verify required parameter '
|
|
46
|
-
assertParamExists('completePaymentSetup', '
|
|
36
|
+
completePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37
|
+
// verify required parameter 'body' is not null or undefined
|
|
38
|
+
assertParamExists('completePaymentSetup', 'body', body)
|
|
47
39
|
const localVarPath = `/paymentservice/v1/payment-setup/complete`;
|
|
48
40
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
41
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -73,7 +65,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
73
65
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
66
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
67
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
68
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
77
69
|
|
|
78
70
|
return {
|
|
79
71
|
url: toPathString(localVarUrlObj),
|
|
@@ -82,14 +74,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
82
74
|
},
|
|
83
75
|
/**
|
|
84
76
|
*
|
|
85
|
-
* @param {
|
|
77
|
+
* @param {object} body
|
|
86
78
|
* @param {string} [authorization] Bearer Token
|
|
87
79
|
* @param {*} [options] Override http request option.
|
|
88
80
|
* @throws {RequiredError}
|
|
89
81
|
*/
|
|
90
|
-
initiatePaymentSetup: async (
|
|
91
|
-
// verify required parameter '
|
|
92
|
-
assertParamExists('initiatePaymentSetup', '
|
|
82
|
+
initiatePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
83
|
+
// verify required parameter 'body' is not null or undefined
|
|
84
|
+
assertParamExists('initiatePaymentSetup', 'body', body)
|
|
93
85
|
const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
|
|
94
86
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
95
87
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -119,7 +111,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
119
111
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
112
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
113
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
122
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
114
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
123
115
|
|
|
124
116
|
return {
|
|
125
117
|
url: toPathString(localVarUrlObj),
|
|
@@ -138,24 +130,24 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
|
|
|
138
130
|
return {
|
|
139
131
|
/**
|
|
140
132
|
*
|
|
141
|
-
* @param {
|
|
133
|
+
* @param {object} body
|
|
142
134
|
* @param {string} [authorization] Bearer Token
|
|
143
135
|
* @param {*} [options] Override http request option.
|
|
144
136
|
* @throws {RequiredError}
|
|
145
137
|
*/
|
|
146
|
-
async completePaymentSetup(
|
|
147
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(
|
|
138
|
+
async completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(body, authorization, options);
|
|
148
140
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
149
141
|
},
|
|
150
142
|
/**
|
|
151
143
|
*
|
|
152
|
-
* @param {
|
|
144
|
+
* @param {object} body
|
|
153
145
|
* @param {string} [authorization] Bearer Token
|
|
154
146
|
* @param {*} [options] Override http request option.
|
|
155
147
|
* @throws {RequiredError}
|
|
156
148
|
*/
|
|
157
|
-
async initiatePaymentSetup(
|
|
158
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(
|
|
149
|
+
async initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options);
|
|
159
151
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
160
152
|
},
|
|
161
153
|
}
|
|
@@ -170,23 +162,23 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
170
162
|
return {
|
|
171
163
|
/**
|
|
172
164
|
*
|
|
173
|
-
* @param {
|
|
165
|
+
* @param {object} body
|
|
174
166
|
* @param {string} [authorization] Bearer Token
|
|
175
167
|
* @param {*} [options] Override http request option.
|
|
176
168
|
* @throws {RequiredError}
|
|
177
169
|
*/
|
|
178
|
-
completePaymentSetup(
|
|
179
|
-
return localVarFp.completePaymentSetup(
|
|
170
|
+
completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
171
|
+
return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
180
172
|
},
|
|
181
173
|
/**
|
|
182
174
|
*
|
|
183
|
-
* @param {
|
|
175
|
+
* @param {object} body
|
|
184
176
|
* @param {string} [authorization] Bearer Token
|
|
185
177
|
* @param {*} [options] Override http request option.
|
|
186
178
|
* @throws {RequiredError}
|
|
187
179
|
*/
|
|
188
|
-
initiatePaymentSetup(
|
|
189
|
-
return localVarFp.initiatePaymentSetup(
|
|
180
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
181
|
+
return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
190
182
|
},
|
|
191
183
|
};
|
|
192
184
|
};
|
|
@@ -199,10 +191,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
199
191
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
200
192
|
/**
|
|
201
193
|
*
|
|
202
|
-
* @type {
|
|
194
|
+
* @type {object}
|
|
203
195
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
204
196
|
*/
|
|
205
|
-
readonly
|
|
197
|
+
readonly body: object
|
|
206
198
|
|
|
207
199
|
/**
|
|
208
200
|
* Bearer Token
|
|
@@ -220,10 +212,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
220
212
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
221
213
|
/**
|
|
222
214
|
*
|
|
223
|
-
* @type {
|
|
215
|
+
* @type {object}
|
|
224
216
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
225
217
|
*/
|
|
226
|
-
readonly
|
|
218
|
+
readonly body: object
|
|
227
219
|
|
|
228
220
|
/**
|
|
229
221
|
* Bearer Token
|
|
@@ -248,7 +240,7 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
248
240
|
* @memberof PaymentSetupApi
|
|
249
241
|
*/
|
|
250
242
|
public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
251
|
-
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.
|
|
243
|
+
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
252
244
|
}
|
|
253
245
|
|
|
254
246
|
/**
|
|
@@ -259,6 +251,6 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
259
251
|
* @memberof PaymentSetupApi
|
|
260
252
|
*/
|
|
261
253
|
public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
262
|
-
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.
|
|
254
|
+
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
263
255
|
}
|
|
264
256
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePaymentResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentsResponseClass } from '../models';
|
|
31
25
|
/**
|
|
32
26
|
* PaymentsApi - axios parameter creator
|
|
33
27
|
* @export
|
|
@@ -92,15 +86,19 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
92
86
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
93
87
|
* @summary Retrieve a payment
|
|
94
88
|
* @param {string} code Unique identifier for the object.
|
|
89
|
+
* @param {string} expand Fields to expand response by
|
|
90
|
+
* @param {string} expand2 Fields to expand response by
|
|
95
91
|
* @param {string} [authorization] Bearer Token
|
|
96
|
-
* @param {string} [expand] Fields to expand response by
|
|
97
|
-
* @param {string} [expand2] Fields to expand response by
|
|
98
92
|
* @param {*} [options] Override http request option.
|
|
99
93
|
* @throws {RequiredError}
|
|
100
94
|
*/
|
|
101
|
-
getPayment: async (code: string,
|
|
95
|
+
getPayment: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
96
|
// verify required parameter 'code' is not null or undefined
|
|
103
97
|
assertParamExists('getPayment', 'code', code)
|
|
98
|
+
// verify required parameter 'expand' is not null or undefined
|
|
99
|
+
assertParamExists('getPayment', 'expand', expand)
|
|
100
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
101
|
+
assertParamExists('getPayment', 'expand2', expand2)
|
|
104
102
|
const localVarPath = `/paymentservice/v1/payments/{code}`;
|
|
105
103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
104
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -241,7 +239,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
241
239
|
* @param {*} [options] Override http request option.
|
|
242
240
|
* @throws {RequiredError}
|
|
243
241
|
*/
|
|
244
|
-
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
242
|
+
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
245
243
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
246
244
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
247
245
|
},
|
|
@@ -249,14 +247,14 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
249
247
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
250
248
|
* @summary Retrieve a payment
|
|
251
249
|
* @param {string} code Unique identifier for the object.
|
|
250
|
+
* @param {string} expand Fields to expand response by
|
|
251
|
+
* @param {string} expand2 Fields to expand response by
|
|
252
252
|
* @param {string} [authorization] Bearer Token
|
|
253
|
-
* @param {string} [expand] Fields to expand response by
|
|
254
|
-
* @param {string} [expand2] Fields to expand response by
|
|
255
253
|
* @param {*} [options] Override http request option.
|
|
256
254
|
* @throws {RequiredError}
|
|
257
255
|
*/
|
|
258
|
-
async getPayment(code: string,
|
|
259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code,
|
|
256
|
+
async getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options);
|
|
260
258
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
261
259
|
},
|
|
262
260
|
/**
|
|
@@ -273,7 +271,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
273
271
|
* @param {*} [options] Override http request option.
|
|
274
272
|
* @throws {RequiredError}
|
|
275
273
|
*/
|
|
276
|
-
async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
274
|
+
async listPayments(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>> {
|
|
277
275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
278
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
277
|
},
|
|
@@ -296,21 +294,21 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
296
294
|
* @param {*} [options] Override http request option.
|
|
297
295
|
* @throws {RequiredError}
|
|
298
296
|
*/
|
|
299
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
297
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
300
298
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
301
299
|
},
|
|
302
300
|
/**
|
|
303
301
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
304
302
|
* @summary Retrieve a payment
|
|
305
303
|
* @param {string} code Unique identifier for the object.
|
|
304
|
+
* @param {string} expand Fields to expand response by
|
|
305
|
+
* @param {string} expand2 Fields to expand response by
|
|
306
306
|
* @param {string} [authorization] Bearer Token
|
|
307
|
-
* @param {string} [expand] Fields to expand response by
|
|
308
|
-
* @param {string} [expand2] Fields to expand response by
|
|
309
307
|
* @param {*} [options] Override http request option.
|
|
310
308
|
* @throws {RequiredError}
|
|
311
309
|
*/
|
|
312
|
-
getPayment(code: string,
|
|
313
|
-
return localVarFp.getPayment(code,
|
|
310
|
+
getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
311
|
+
return localVarFp.getPayment(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
|
|
314
312
|
},
|
|
315
313
|
/**
|
|
316
314
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -326,7 +324,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
326
324
|
* @param {*} [options] Override http request option.
|
|
327
325
|
* @throws {RequiredError}
|
|
328
326
|
*/
|
|
329
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
327
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
330
328
|
return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
331
329
|
},
|
|
332
330
|
};
|
|
@@ -374,25 +372,25 @@ export interface PaymentsApiGetPaymentRequest {
|
|
|
374
372
|
readonly code: string
|
|
375
373
|
|
|
376
374
|
/**
|
|
377
|
-
*
|
|
375
|
+
* Fields to expand response by
|
|
378
376
|
* @type {string}
|
|
379
377
|
* @memberof PaymentsApiGetPayment
|
|
380
378
|
*/
|
|
381
|
-
readonly
|
|
379
|
+
readonly expand: string
|
|
382
380
|
|
|
383
381
|
/**
|
|
384
382
|
* Fields to expand response by
|
|
385
383
|
* @type {string}
|
|
386
384
|
* @memberof PaymentsApiGetPayment
|
|
387
385
|
*/
|
|
388
|
-
readonly
|
|
386
|
+
readonly expand2: string
|
|
389
387
|
|
|
390
388
|
/**
|
|
391
|
-
*
|
|
389
|
+
* Bearer Token
|
|
392
390
|
* @type {string}
|
|
393
391
|
* @memberof PaymentsApiGetPayment
|
|
394
392
|
*/
|
|
395
|
-
readonly
|
|
393
|
+
readonly authorization?: string
|
|
396
394
|
}
|
|
397
395
|
|
|
398
396
|
/**
|
|
@@ -486,7 +484,7 @@ export class PaymentsApi extends BaseAPI {
|
|
|
486
484
|
* @memberof PaymentsApi
|
|
487
485
|
*/
|
|
488
486
|
public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
|
|
489
|
-
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
487
|
+
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
490
488
|
}
|
|
491
489
|
|
|
492
490
|
/**
|