@emilgroup/payment-sdk-node 1.12.1 → 1.13.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +17 -21
- package/api/bank-transaction-api.ts +134 -42
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +38 -42
- package/api/payment-reminders-api.ts +9 -13
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +26 -28
- package/api/refunds-api.ts +16 -14
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +13 -15
- package/dist/api/bank-accounts-api.js +13 -13
- package/dist/api/bank-transaction-api.d.ts +86 -33
- package/dist/api/bank-transaction-api.js +122 -29
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +28 -32
- package/dist/api/payment-methods-api.js +29 -25
- package/dist/api/payment-reminders-api.d.ts +13 -15
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +22 -25
- package/dist/api/payments-api.js +17 -13
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +12 -10
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +0 -30
- package/dist/models/index.js +0 -30
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -30
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- 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/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/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/link-bank-transaction-request-dto.d.ts +0 -30
- package/dist/models/link-bank-transaction-request-dto.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/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/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/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/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/link-bank-transaction-request-dto.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/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -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
|
// URLSearchParams not necessarily used
|
|
32
24
|
// @ts-ignore
|
|
33
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -41,14 +33,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
41
33
|
/**
|
|
42
34
|
* 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.
|
|
43
35
|
* @summary Create the payment-method
|
|
44
|
-
* @param {
|
|
36
|
+
* @param {object} body
|
|
45
37
|
* @param {string} [authorization] Bearer Token
|
|
46
38
|
* @param {*} [options] Override http request option.
|
|
47
39
|
* @throws {RequiredError}
|
|
48
40
|
*/
|
|
49
|
-
createPaymentMethod: async (
|
|
50
|
-
// verify required parameter '
|
|
51
|
-
assertParamExists('createPaymentMethod', '
|
|
41
|
+
createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'body' is not null or undefined
|
|
43
|
+
assertParamExists('createPaymentMethod', 'body', body)
|
|
52
44
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
53
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -78,7 +70,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
78
70
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
71
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
72
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
82
74
|
|
|
83
75
|
return {
|
|
84
76
|
url: toPathString(localVarUrlObj),
|
|
@@ -137,15 +129,19 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
137
129
|
* 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.
|
|
138
130
|
* @summary Retrieve a payment method
|
|
139
131
|
* @param {string} code Unique identifier for the object.
|
|
132
|
+
* @param {string} expand Fields to expand response by
|
|
133
|
+
* @param {string} expand2 Fields to expand response by
|
|
140
134
|
* @param {string} [authorization] Bearer Token
|
|
141
|
-
* @param {string} [expand] Fields to expand response by
|
|
142
|
-
* @param {string} [expand2] Fields to expand response by
|
|
143
135
|
* @param {*} [options] Override http request option.
|
|
144
136
|
* @throws {RequiredError}
|
|
145
137
|
*/
|
|
146
|
-
getPaymentMethod: async (code: string,
|
|
138
|
+
getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
139
|
// verify required parameter 'code' is not null or undefined
|
|
148
140
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
141
|
+
// verify required parameter 'expand' is not null or undefined
|
|
142
|
+
assertParamExists('getPaymentMethod', 'expand', expand)
|
|
143
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
144
|
+
assertParamExists('getPaymentMethod', 'expand2', expand2)
|
|
149
145
|
const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
|
|
150
146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -275,13 +271,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
275
271
|
/**
|
|
276
272
|
* 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.
|
|
277
273
|
* @summary Create the payment-method
|
|
278
|
-
* @param {
|
|
274
|
+
* @param {object} body
|
|
279
275
|
* @param {string} [authorization] Bearer Token
|
|
280
276
|
* @param {*} [options] Override http request option.
|
|
281
277
|
* @throws {RequiredError}
|
|
282
278
|
*/
|
|
283
|
-
async createPaymentMethod(
|
|
284
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
279
|
+
async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
285
281
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
286
282
|
},
|
|
287
283
|
/**
|
|
@@ -300,14 +296,14 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
300
296
|
* 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.
|
|
301
297
|
* @summary Retrieve a payment method
|
|
302
298
|
* @param {string} code Unique identifier for the object.
|
|
299
|
+
* @param {string} expand Fields to expand response by
|
|
300
|
+
* @param {string} expand2 Fields to expand response by
|
|
303
301
|
* @param {string} [authorization] Bearer Token
|
|
304
|
-
* @param {string} [expand] Fields to expand response by
|
|
305
|
-
* @param {string} [expand2] Fields to expand response by
|
|
306
302
|
* @param {*} [options] Override http request option.
|
|
307
303
|
* @throws {RequiredError}
|
|
308
304
|
*/
|
|
309
|
-
async getPaymentMethod(code: string,
|
|
310
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code,
|
|
305
|
+
async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
|
|
311
307
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
312
308
|
},
|
|
313
309
|
/**
|
|
@@ -323,7 +319,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
323
319
|
* @param {*} [options] Override http request option.
|
|
324
320
|
* @throws {RequiredError}
|
|
325
321
|
*/
|
|
326
|
-
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
322
|
+
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
327
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
328
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
329
325
|
},
|
|
@@ -340,13 +336,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
340
336
|
/**
|
|
341
337
|
* 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.
|
|
342
338
|
* @summary Create the payment-method
|
|
343
|
-
* @param {
|
|
339
|
+
* @param {object} body
|
|
344
340
|
* @param {string} [authorization] Bearer Token
|
|
345
341
|
* @param {*} [options] Override http request option.
|
|
346
342
|
* @throws {RequiredError}
|
|
347
343
|
*/
|
|
348
|
-
createPaymentMethod(
|
|
349
|
-
return localVarFp.createPaymentMethod(
|
|
344
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
345
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
350
346
|
},
|
|
351
347
|
/**
|
|
352
348
|
* 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.
|
|
@@ -363,14 +359,14 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
363
359
|
* 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.
|
|
364
360
|
* @summary Retrieve a payment method
|
|
365
361
|
* @param {string} code Unique identifier for the object.
|
|
362
|
+
* @param {string} expand Fields to expand response by
|
|
363
|
+
* @param {string} expand2 Fields to expand response by
|
|
366
364
|
* @param {string} [authorization] Bearer Token
|
|
367
|
-
* @param {string} [expand] Fields to expand response by
|
|
368
|
-
* @param {string} [expand2] Fields to expand response by
|
|
369
365
|
* @param {*} [options] Override http request option.
|
|
370
366
|
* @throws {RequiredError}
|
|
371
367
|
*/
|
|
372
|
-
getPaymentMethod(code: string,
|
|
373
|
-
return localVarFp.getPaymentMethod(code,
|
|
368
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
369
|
+
return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
|
|
374
370
|
},
|
|
375
371
|
/**
|
|
376
372
|
* 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.
|
|
@@ -385,7 +381,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
385
381
|
* @param {*} [options] Override http request option.
|
|
386
382
|
* @throws {RequiredError}
|
|
387
383
|
*/
|
|
388
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
384
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
|
|
389
385
|
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
390
386
|
},
|
|
391
387
|
};
|
|
@@ -399,10 +395,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
399
395
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
400
396
|
/**
|
|
401
397
|
*
|
|
402
|
-
* @type {
|
|
398
|
+
* @type {object}
|
|
403
399
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
404
400
|
*/
|
|
405
|
-
readonly
|
|
401
|
+
readonly body: object
|
|
406
402
|
|
|
407
403
|
/**
|
|
408
404
|
* Bearer Token
|
|
@@ -447,25 +443,25 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
447
443
|
readonly code: string
|
|
448
444
|
|
|
449
445
|
/**
|
|
450
|
-
*
|
|
446
|
+
* Fields to expand response by
|
|
451
447
|
* @type {string}
|
|
452
448
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
453
449
|
*/
|
|
454
|
-
readonly
|
|
450
|
+
readonly expand: string
|
|
455
451
|
|
|
456
452
|
/**
|
|
457
453
|
* Fields to expand response by
|
|
458
454
|
* @type {string}
|
|
459
455
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
460
456
|
*/
|
|
461
|
-
readonly
|
|
457
|
+
readonly expand2: string
|
|
462
458
|
|
|
463
459
|
/**
|
|
464
|
-
*
|
|
460
|
+
* Bearer Token
|
|
465
461
|
* @type {string}
|
|
466
462
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
467
463
|
*/
|
|
468
|
-
readonly
|
|
464
|
+
readonly authorization?: string
|
|
469
465
|
}
|
|
470
466
|
|
|
471
467
|
/**
|
|
@@ -540,7 +536,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
540
536
|
* @memberof PaymentMethodsApi
|
|
541
537
|
*/
|
|
542
538
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
543
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
539
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
544
540
|
}
|
|
545
541
|
|
|
546
542
|
/**
|
|
@@ -564,7 +560,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
564
560
|
* @memberof PaymentMethodsApi
|
|
565
561
|
*/
|
|
566
562
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
567
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
563
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
568
564
|
}
|
|
569
565
|
|
|
570
566
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -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
|
// URLSearchParams not necessarily used
|
|
32
28
|
// @ts-ignore
|
|
33
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -270,7 +266,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
270
266
|
* @param {*} [options] Override http request option.
|
|
271
267
|
* @throws {RequiredError}
|
|
272
268
|
*/
|
|
273
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
269
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
274
270
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
275
271
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
276
272
|
},
|
|
@@ -283,7 +279,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
283
279
|
* @param {*} [options] Override http request option.
|
|
284
280
|
* @throws {RequiredError}
|
|
285
281
|
*/
|
|
286
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
282
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
287
283
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
288
284
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
289
285
|
},
|
|
@@ -295,7 +291,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
295
291
|
* @param {*} [options] Override http request option.
|
|
296
292
|
* @throws {RequiredError}
|
|
297
293
|
*/
|
|
298
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
294
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
299
295
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
300
296
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
301
297
|
},
|
|
@@ -312,7 +308,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
312
308
|
* @param {*} [options] Override http request option.
|
|
313
309
|
* @throws {RequiredError}
|
|
314
310
|
*/
|
|
315
|
-
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
311
|
+
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
316
312
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
317
313
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
318
314
|
},
|
|
@@ -334,7 +330,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
334
330
|
* @param {*} [options] Override http request option.
|
|
335
331
|
* @throws {RequiredError}
|
|
336
332
|
*/
|
|
337
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
333
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
338
334
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
339
335
|
},
|
|
340
336
|
/**
|
|
@@ -346,7 +342,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
346
342
|
* @param {*} [options] Override http request option.
|
|
347
343
|
* @throws {RequiredError}
|
|
348
344
|
*/
|
|
349
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
345
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
350
346
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
351
347
|
},
|
|
352
348
|
/**
|
|
@@ -357,7 +353,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
357
353
|
* @param {*} [options] Override http request option.
|
|
358
354
|
* @throws {RequiredError}
|
|
359
355
|
*/
|
|
360
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
356
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
361
357
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
362
358
|
},
|
|
363
359
|
/**
|
|
@@ -373,7 +369,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
373
369
|
* @param {*} [options] Override http request option.
|
|
374
370
|
* @throws {RequiredError}
|
|
375
371
|
*/
|
|
376
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
372
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
|
|
377
373
|
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
378
374
|
},
|
|
379
375
|
};
|
package/api/payment-setup-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -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
|
// URLSearchParams not necessarily used
|
|
32
24
|
// @ts-ignore
|
|
33
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -40,14 +32,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
40
32
|
return {
|
|
41
33
|
/**
|
|
42
34
|
*
|
|
43
|
-
* @param {
|
|
35
|
+
* @param {object} body
|
|
44
36
|
* @param {string} [authorization] Bearer Token
|
|
45
37
|
* @param {*} [options] Override http request option.
|
|
46
38
|
* @throws {RequiredError}
|
|
47
39
|
*/
|
|
48
|
-
completePaymentSetup: async (
|
|
49
|
-
// verify required parameter '
|
|
50
|
-
assertParamExists('completePaymentSetup', '
|
|
40
|
+
completePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
|
+
// verify required parameter 'body' is not null or undefined
|
|
42
|
+
assertParamExists('completePaymentSetup', 'body', body)
|
|
51
43
|
const localVarPath = `/paymentservice/v1/payment-setup/complete`;
|
|
52
44
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
45
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -77,7 +69,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
77
69
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
78
70
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79
71
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
72
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
81
73
|
|
|
82
74
|
return {
|
|
83
75
|
url: toPathString(localVarUrlObj),
|
|
@@ -86,14 +78,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
86
78
|
},
|
|
87
79
|
/**
|
|
88
80
|
*
|
|
89
|
-
* @param {
|
|
81
|
+
* @param {object} body
|
|
90
82
|
* @param {string} [authorization] Bearer Token
|
|
91
83
|
* @param {*} [options] Override http request option.
|
|
92
84
|
* @throws {RequiredError}
|
|
93
85
|
*/
|
|
94
|
-
initiatePaymentSetup: async (
|
|
95
|
-
// verify required parameter '
|
|
96
|
-
assertParamExists('initiatePaymentSetup', '
|
|
86
|
+
initiatePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
87
|
+
// verify required parameter 'body' is not null or undefined
|
|
88
|
+
assertParamExists('initiatePaymentSetup', 'body', body)
|
|
97
89
|
const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
|
|
98
90
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
91
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -123,7 +115,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
123
115
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
116
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
117
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
126
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
118
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
127
119
|
|
|
128
120
|
return {
|
|
129
121
|
url: toPathString(localVarUrlObj),
|
|
@@ -142,24 +134,24 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
|
|
|
142
134
|
return {
|
|
143
135
|
/**
|
|
144
136
|
*
|
|
145
|
-
* @param {
|
|
137
|
+
* @param {object} body
|
|
146
138
|
* @param {string} [authorization] Bearer Token
|
|
147
139
|
* @param {*} [options] Override http request option.
|
|
148
140
|
* @throws {RequiredError}
|
|
149
141
|
*/
|
|
150
|
-
async completePaymentSetup(
|
|
151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(
|
|
142
|
+
async completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
143
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(body, authorization, options);
|
|
152
144
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
153
145
|
},
|
|
154
146
|
/**
|
|
155
147
|
*
|
|
156
|
-
* @param {
|
|
148
|
+
* @param {object} body
|
|
157
149
|
* @param {string} [authorization] Bearer Token
|
|
158
150
|
* @param {*} [options] Override http request option.
|
|
159
151
|
* @throws {RequiredError}
|
|
160
152
|
*/
|
|
161
|
-
async initiatePaymentSetup(
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(
|
|
153
|
+
async initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options);
|
|
163
155
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
156
|
},
|
|
165
157
|
}
|
|
@@ -174,23 +166,23 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
174
166
|
return {
|
|
175
167
|
/**
|
|
176
168
|
*
|
|
177
|
-
* @param {
|
|
169
|
+
* @param {object} body
|
|
178
170
|
* @param {string} [authorization] Bearer Token
|
|
179
171
|
* @param {*} [options] Override http request option.
|
|
180
172
|
* @throws {RequiredError}
|
|
181
173
|
*/
|
|
182
|
-
completePaymentSetup(
|
|
183
|
-
return localVarFp.completePaymentSetup(
|
|
174
|
+
completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
175
|
+
return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
184
176
|
},
|
|
185
177
|
/**
|
|
186
178
|
*
|
|
187
|
-
* @param {
|
|
179
|
+
* @param {object} body
|
|
188
180
|
* @param {string} [authorization] Bearer Token
|
|
189
181
|
* @param {*} [options] Override http request option.
|
|
190
182
|
* @throws {RequiredError}
|
|
191
183
|
*/
|
|
192
|
-
initiatePaymentSetup(
|
|
193
|
-
return localVarFp.initiatePaymentSetup(
|
|
184
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
185
|
+
return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
194
186
|
},
|
|
195
187
|
};
|
|
196
188
|
};
|
|
@@ -203,10 +195,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
203
195
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
204
196
|
/**
|
|
205
197
|
*
|
|
206
|
-
* @type {
|
|
198
|
+
* @type {object}
|
|
207
199
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
208
200
|
*/
|
|
209
|
-
readonly
|
|
201
|
+
readonly body: object
|
|
210
202
|
|
|
211
203
|
/**
|
|
212
204
|
* Bearer Token
|
|
@@ -224,10 +216,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
224
216
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
225
217
|
/**
|
|
226
218
|
*
|
|
227
|
-
* @type {
|
|
219
|
+
* @type {object}
|
|
228
220
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
229
221
|
*/
|
|
230
|
-
readonly
|
|
222
|
+
readonly body: object
|
|
231
223
|
|
|
232
224
|
/**
|
|
233
225
|
* Bearer Token
|
|
@@ -252,7 +244,7 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
252
244
|
* @memberof PaymentSetupApi
|
|
253
245
|
*/
|
|
254
246
|
public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
255
|
-
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.
|
|
247
|
+
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
256
248
|
}
|
|
257
249
|
|
|
258
250
|
/**
|
|
@@ -263,6 +255,6 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
263
255
|
* @memberof PaymentSetupApi
|
|
264
256
|
*/
|
|
265
257
|
public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
266
|
-
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.
|
|
258
|
+
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
267
259
|
}
|
|
268
260
|
}
|