@emilgroup/payment-sdk 1.0.0 → 1.4.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 +15 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -25
- package/api/bank-transaction-api.ts +657 -0
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +42 -46
- package/api/payment-reminders-api.ts +17 -19
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +30 -32
- package/api/refunds-api.ts +462 -0
- package/api/tenant-bank-account-api.ts +651 -0
- package/api/webhooks-api.ts +1 -1
- package/api.ts +7 -3
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +17 -19
- package/dist/api/bank-accounts-api.js +16 -16
- package/dist/api/bank-transaction-api.d.ts +371 -0
- package/dist/api/bank-transaction-api.js +632 -0
- 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 +32 -36
- package/dist/api/payment-methods-api.js +32 -28
- package/dist/api/payment-reminders-api.d.ts +21 -22
- package/dist/api/payment-reminders-api.js +8 -8
- 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 +26 -29
- package/dist/api/payments-api.js +20 -16
- package/dist/api/refunds-api.d.ts +260 -0
- package/dist/api/refunds-api.js +443 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +616 -0
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -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 +122 -0
- package/dist/models/{bank-account-class.js → 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 +3 -3
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/{sepa-direct-dto.d.ts → create-refund-request-dto.d.ts} +6 -6
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-refund-request-dto.js} +1 -1
- package/dist/models/{validate-pspconfig-response-class.d.ts → create-refund-response-class.d.ts} +8 -7
- package/dist/models/{billing-profile-dto.js → create-refund-response-class.js} +1 -1
- package/dist/models/{billing-profile-limited-response-dto.d.ts → create-tenant-bank-account-request-dto.d.ts} +15 -27
- package/dist/models/{billing-profile-limited-response-dto.js → 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-payment-method-response-class.d.ts → get-bank-transactions-response-class.d.ts} +8 -8
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/{get-payment-response-class.d.ts → get-refund-response-class.d.ts} +8 -8
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/{create-bank-account-request-dto.d.ts → get-tenant-bank-account-response-class.d.ts} +8 -13
- package/dist/models/get-tenant-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +12 -29
- package/dist/models/index.js +12 -29
- package/dist/models/inline-response200.d.ts +7 -7
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +7 -7
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/{list-payment-methods-response-class.d.ts → list-bank-transactions-response-class.d.ts} +9 -9
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/{list-payments-response-class.d.ts → list-refunds-response-class.d.ts} +9 -9
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/{payment-method-class.d.ts → tenant-bank-account-response-class.d.ts} +25 -19
- package/dist/models/tenant-bank-account-response-class.js +15 -0
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/{symphony-profile-limited-response-dto.d.ts → update-tenant-bank-account-rest-request-dto.d.ts} +12 -18
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/git_push.sh +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +128 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +3 -3
- package/models/{sepa-direct-dto.ts → create-refund-request-dto.ts} +6 -6
- package/models/{validate-pspconfig-response-class.ts → create-refund-response-class.ts} +8 -7
- package/models/{billing-profile-limited-response-dto.ts → create-tenant-bank-account-request-dto.ts} +15 -27
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/{get-payment-method-response-class.ts → get-bank-transactions-response-class.ts} +8 -8
- package/models/{get-payment-response-class.ts → get-refund-response-class.ts} +8 -8
- package/models/get-request-dto.ts +2 -2
- package/models/{create-bank-account-request-dto.ts → get-tenant-bank-account-response-class.ts} +8 -13
- package/models/index.ts +12 -29
- package/models/inline-response200.ts +7 -7
- package/models/inline-response503.ts +7 -7
- package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts} +9 -9
- package/models/{list-payments-response-class.ts → list-refunds-response-class.ts} +9 -9
- package/models/refund-class.ts +114 -0
- package/models/{payment-method-class.ts → tenant-bank-account-response-class.ts} +25 -19
- package/models/transaction-class.ts +1 -1
- package/models/{symphony-profile-limited-response-dto.ts → update-tenant-bank-account-rest-request-dto.ts} +12 -18
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -2
- package/api/payment-service-providers-api.ts +0 -161
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -220
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- 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.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/get-payment-method-response-class.js +0 -15
- 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/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.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.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.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.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/validate-pspconfig-response-class.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- 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-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/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-reminders-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-reminder-class.ts +0 -122
|
@@ -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
|
/**
|
|
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);
|
|
@@ -191,7 +187,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
191
187
|
* 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.
|
|
192
188
|
* @summary List payment methods
|
|
193
189
|
* @param {string} [authorization] Bearer Token
|
|
194
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
190
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
195
191
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
196
192
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
197
193
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -271,13 +267,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
271
267
|
/**
|
|
272
268
|
* 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.
|
|
273
269
|
* @summary Create the payment-method
|
|
274
|
-
* @param {
|
|
270
|
+
* @param {object} body
|
|
275
271
|
* @param {string} [authorization] Bearer Token
|
|
276
272
|
* @param {*} [options] Override http request option.
|
|
277
273
|
* @throws {RequiredError}
|
|
278
274
|
*/
|
|
279
|
-
async createPaymentMethod(
|
|
280
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
275
|
+
async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
276
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
281
277
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
282
278
|
},
|
|
283
279
|
/**
|
|
@@ -296,21 +292,21 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
296
292
|
* 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.
|
|
297
293
|
* @summary Retrieve a payment method
|
|
298
294
|
* @param {string} code Unique identifier for the object.
|
|
295
|
+
* @param {string} expand Fields to expand response by
|
|
296
|
+
* @param {string} expand2 Fields to expand response by
|
|
299
297
|
* @param {string} [authorization] Bearer Token
|
|
300
|
-
* @param {string} [expand] Fields to expand response by
|
|
301
|
-
* @param {string} [expand2] Fields to expand response by
|
|
302
298
|
* @param {*} [options] Override http request option.
|
|
303
299
|
* @throws {RequiredError}
|
|
304
300
|
*/
|
|
305
|
-
async getPaymentMethod(code: string,
|
|
306
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code,
|
|
301
|
+
async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
302
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
|
|
307
303
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
308
304
|
},
|
|
309
305
|
/**
|
|
310
306
|
* 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.
|
|
311
307
|
* @summary List payment methods
|
|
312
308
|
* @param {string} [authorization] Bearer Token
|
|
313
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
309
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
314
310
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
315
311
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
316
312
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -319,7 +315,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
319
315
|
* @param {*} [options] Override http request option.
|
|
320
316
|
* @throws {RequiredError}
|
|
321
317
|
*/
|
|
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<
|
|
318
|
+
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>> {
|
|
323
319
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
324
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
325
321
|
},
|
|
@@ -336,13 +332,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
336
332
|
/**
|
|
337
333
|
* 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.
|
|
338
334
|
* @summary Create the payment-method
|
|
339
|
-
* @param {
|
|
335
|
+
* @param {object} body
|
|
340
336
|
* @param {string} [authorization] Bearer Token
|
|
341
337
|
* @param {*} [options] Override http request option.
|
|
342
338
|
* @throws {RequiredError}
|
|
343
339
|
*/
|
|
344
|
-
createPaymentMethod(
|
|
345
|
-
return localVarFp.createPaymentMethod(
|
|
340
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
341
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
346
342
|
},
|
|
347
343
|
/**
|
|
348
344
|
* 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.
|
|
@@ -359,20 +355,20 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
359
355
|
* 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.
|
|
360
356
|
* @summary Retrieve a payment method
|
|
361
357
|
* @param {string} code Unique identifier for the object.
|
|
358
|
+
* @param {string} expand Fields to expand response by
|
|
359
|
+
* @param {string} expand2 Fields to expand response by
|
|
362
360
|
* @param {string} [authorization] Bearer Token
|
|
363
|
-
* @param {string} [expand] Fields to expand response by
|
|
364
|
-
* @param {string} [expand2] Fields to expand response by
|
|
365
361
|
* @param {*} [options] Override http request option.
|
|
366
362
|
* @throws {RequiredError}
|
|
367
363
|
*/
|
|
368
|
-
getPaymentMethod(code: string,
|
|
369
|
-
return localVarFp.getPaymentMethod(code,
|
|
364
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
365
|
+
return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
|
|
370
366
|
},
|
|
371
367
|
/**
|
|
372
368
|
* 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.
|
|
373
369
|
* @summary List payment methods
|
|
374
370
|
* @param {string} [authorization] Bearer Token
|
|
375
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
371
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
376
372
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
377
373
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
378
374
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -381,7 +377,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
381
377
|
* @param {*} [options] Override http request option.
|
|
382
378
|
* @throws {RequiredError}
|
|
383
379
|
*/
|
|
384
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
380
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
|
|
385
381
|
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
386
382
|
},
|
|
387
383
|
};
|
|
@@ -395,10 +391,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
395
391
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
396
392
|
/**
|
|
397
393
|
*
|
|
398
|
-
* @type {
|
|
394
|
+
* @type {object}
|
|
399
395
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
400
396
|
*/
|
|
401
|
-
readonly
|
|
397
|
+
readonly body: object
|
|
402
398
|
|
|
403
399
|
/**
|
|
404
400
|
* Bearer Token
|
|
@@ -443,25 +439,25 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
443
439
|
readonly code: string
|
|
444
440
|
|
|
445
441
|
/**
|
|
446
|
-
*
|
|
442
|
+
* Fields to expand response by
|
|
447
443
|
* @type {string}
|
|
448
444
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
449
445
|
*/
|
|
450
|
-
readonly
|
|
446
|
+
readonly expand: 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 expand2: string
|
|
458
454
|
|
|
459
455
|
/**
|
|
460
|
-
*
|
|
456
|
+
* Bearer Token
|
|
461
457
|
* @type {string}
|
|
462
458
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
463
459
|
*/
|
|
464
|
-
readonly
|
|
460
|
+
readonly authorization?: string
|
|
465
461
|
}
|
|
466
462
|
|
|
467
463
|
/**
|
|
@@ -478,7 +474,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
478
474
|
readonly authorization?: string
|
|
479
475
|
|
|
480
476
|
/**
|
|
481
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
477
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
482
478
|
* @type {any}
|
|
483
479
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
484
480
|
*/
|
|
@@ -536,7 +532,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
536
532
|
* @memberof PaymentMethodsApi
|
|
537
533
|
*/
|
|
538
534
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
539
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
535
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
540
536
|
}
|
|
541
537
|
|
|
542
538
|
/**
|
|
@@ -560,7 +556,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
560
556
|
* @memberof PaymentMethodsApi
|
|
561
557
|
*/
|
|
562
558
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
563
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
559
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
564
560
|
}
|
|
565
561
|
|
|
566
562
|
/**
|
|
@@ -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,8 +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 { ListPaymentRemindersResponseClass } from '../models';
|
|
29
27
|
/**
|
|
30
28
|
* PaymentRemindersApi - axios parameter creator
|
|
31
29
|
* @export
|
|
@@ -80,7 +78,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
80
78
|
};
|
|
81
79
|
},
|
|
82
80
|
/**
|
|
83
|
-
*
|
|
81
|
+
* Deactivates the payment reminder
|
|
84
82
|
* @summary Update the payment-reminder
|
|
85
83
|
* @param {string} code Unique identifier for the object.
|
|
86
84
|
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
@@ -179,7 +177,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
179
177
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
180
178
|
* @summary List payment reminders
|
|
181
179
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
180
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
183
181
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
184
182
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
185
183
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -264,12 +262,12 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
264
262
|
* @param {*} [options] Override http request option.
|
|
265
263
|
* @throws {RequiredError}
|
|
266
264
|
*/
|
|
267
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
265
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
268
266
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
269
267
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
270
268
|
},
|
|
271
269
|
/**
|
|
272
|
-
*
|
|
270
|
+
* Deactivates the payment reminder
|
|
273
271
|
* @summary Update the payment-reminder
|
|
274
272
|
* @param {string} code Unique identifier for the object.
|
|
275
273
|
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
@@ -277,7 +275,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
277
275
|
* @param {*} [options] Override http request option.
|
|
278
276
|
* @throws {RequiredError}
|
|
279
277
|
*/
|
|
280
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
278
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
281
279
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
282
280
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
281
|
},
|
|
@@ -289,7 +287,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
289
287
|
* @param {*} [options] Override http request option.
|
|
290
288
|
* @throws {RequiredError}
|
|
291
289
|
*/
|
|
292
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
290
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
293
291
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
294
292
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
295
293
|
},
|
|
@@ -297,7 +295,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
297
295
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
298
296
|
* @summary List payment reminders
|
|
299
297
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
300
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
298
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
301
299
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
302
300
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
303
301
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -306,7 +304,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
306
304
|
* @param {*} [options] Override http request option.
|
|
307
305
|
* @throws {RequiredError}
|
|
308
306
|
*/
|
|
309
|
-
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
307
|
+
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>> {
|
|
310
308
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
311
309
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
312
310
|
},
|
|
@@ -328,11 +326,11 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
328
326
|
* @param {*} [options] Override http request option.
|
|
329
327
|
* @throws {RequiredError}
|
|
330
328
|
*/
|
|
331
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
329
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
332
330
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
333
331
|
},
|
|
334
332
|
/**
|
|
335
|
-
*
|
|
333
|
+
* Deactivates the payment reminder
|
|
336
334
|
* @summary Update the payment-reminder
|
|
337
335
|
* @param {string} code Unique identifier for the object.
|
|
338
336
|
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
@@ -340,7 +338,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
340
338
|
* @param {*} [options] Override http request option.
|
|
341
339
|
* @throws {RequiredError}
|
|
342
340
|
*/
|
|
343
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
341
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
344
342
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
345
343
|
},
|
|
346
344
|
/**
|
|
@@ -351,14 +349,14 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
351
349
|
* @param {*} [options] Override http request option.
|
|
352
350
|
* @throws {RequiredError}
|
|
353
351
|
*/
|
|
354
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
352
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
355
353
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
356
354
|
},
|
|
357
355
|
/**
|
|
358
356
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
359
357
|
* @summary List payment reminders
|
|
360
358
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
359
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
362
360
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
363
361
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
364
362
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -367,7 +365,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
367
365
|
* @param {*} [options] Override http request option.
|
|
368
366
|
* @throws {RequiredError}
|
|
369
367
|
*/
|
|
370
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
368
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
|
|
371
369
|
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
372
370
|
},
|
|
373
371
|
};
|
|
@@ -457,7 +455,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
457
455
|
readonly authorization?: string
|
|
458
456
|
|
|
459
457
|
/**
|
|
460
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
458
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
461
459
|
* @type {any}
|
|
462
460
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
463
461
|
*/
|
|
@@ -519,7 +517,7 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
519
517
|
}
|
|
520
518
|
|
|
521
519
|
/**
|
|
522
|
-
*
|
|
520
|
+
* Deactivates the payment reminder
|
|
523
521
|
* @summary Update the payment-reminder
|
|
524
522
|
* @param {PaymentRemindersApiDeactivatePaymentReminderRequest} requestParameters Request parameters.
|
|
525
523
|
* @param {*} [options] Override http request option.
|
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
|
/**
|
|
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
|
}
|