@emilgroup/payment-sdk 1.3.1 → 1.4.1-beta.1
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 +35 -25
- package/api/bank-transaction-api.ts +152 -46
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +56 -46
- package/api/payment-reminders-api.ts +27 -17
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +44 -32
- package/api/refunds-api.ts +36 -20
- package/api/tenant-bank-account-api.ts +21 -7
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +23 -16
- package/dist/api/bank-accounts-api.js +25 -19
- package/dist/api/bank-transaction-api.d.ts +96 -34
- package/dist/api/bank-transaction-api.js +134 -35
- 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 +38 -33
- package/dist/api/payment-methods-api.js +41 -31
- package/dist/api/payment-reminders-api.d.ts +23 -16
- package/dist/api/payment-reminders-api.js +13 -7
- 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 +32 -26
- package/dist/api/payments-api.js +29 -19
- package/dist/api/refunds-api.d.ts +23 -14
- package/dist/api/refunds-api.js +24 -16
- package/dist/api/tenant-bank-account-api.d.ts +13 -4
- package/dist/api/tenant-bank-account-api.js +13 -7
- 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 +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 +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
package/api/payments-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
|
|
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePaymentResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentsResponseClass } from '../models';
|
|
31
25
|
/**
|
|
32
26
|
* PaymentsApi - axios parameter creator
|
|
33
27
|
* @export
|
|
@@ -92,15 +86,19 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
92
86
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
93
87
|
* @summary Retrieve a payment
|
|
94
88
|
* @param {string} code Unique identifier for the object.
|
|
89
|
+
* @param {string} expand Fields to expand response by
|
|
90
|
+
* @param {string} expand2 Fields to expand response by
|
|
95
91
|
* @param {string} [authorization] Bearer Token
|
|
96
|
-
* @param {string} [expand] Fields to expand response by
|
|
97
|
-
* @param {string} [expand2] Fields to expand response by
|
|
98
92
|
* @param {*} [options] Override http request option.
|
|
99
93
|
* @throws {RequiredError}
|
|
100
94
|
*/
|
|
101
|
-
getPayment: async (code: string,
|
|
95
|
+
getPayment: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
96
|
// verify required parameter 'code' is not null or undefined
|
|
103
97
|
assertParamExists('getPayment', 'code', code)
|
|
98
|
+
// verify required parameter 'expand' is not null or undefined
|
|
99
|
+
assertParamExists('getPayment', 'expand', expand)
|
|
100
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
101
|
+
assertParamExists('getPayment', 'expand2', expand2)
|
|
104
102
|
const localVarPath = `/paymentservice/v1/payments/{code}`;
|
|
105
103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
104
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -156,10 +154,11 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
156
154
|
* @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.
|
|
157
155
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
158
156
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
157
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
159
158
|
* @param {*} [options] Override http request option.
|
|
160
159
|
* @throws {RequiredError}
|
|
161
160
|
*/
|
|
162
|
-
listPayments: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
161
|
+
listPayments: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
163
162
|
const localVarPath = `/paymentservice/v1/payments`;
|
|
164
163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
165
164
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -202,6 +201,10 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
202
201
|
localVarQueryParameter['expand'] = expand;
|
|
203
202
|
}
|
|
204
203
|
|
|
204
|
+
if (filters !== undefined) {
|
|
205
|
+
localVarQueryParameter['filters'] = filters;
|
|
206
|
+
}
|
|
207
|
+
|
|
205
208
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
206
209
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
207
210
|
}
|
|
@@ -236,7 +239,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
236
239
|
* @param {*} [options] Override http request option.
|
|
237
240
|
* @throws {RequiredError}
|
|
238
241
|
*/
|
|
239
|
-
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
242
|
+
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
240
243
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
241
244
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
242
245
|
},
|
|
@@ -244,14 +247,14 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
244
247
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
245
248
|
* @summary Retrieve a payment
|
|
246
249
|
* @param {string} code Unique identifier for the object.
|
|
250
|
+
* @param {string} expand Fields to expand response by
|
|
251
|
+
* @param {string} expand2 Fields to expand response by
|
|
247
252
|
* @param {string} [authorization] Bearer Token
|
|
248
|
-
* @param {string} [expand] Fields to expand response by
|
|
249
|
-
* @param {string} [expand2] Fields to expand response by
|
|
250
253
|
* @param {*} [options] Override http request option.
|
|
251
254
|
* @throws {RequiredError}
|
|
252
255
|
*/
|
|
253
|
-
async getPayment(code: string,
|
|
254
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code,
|
|
256
|
+
async getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options);
|
|
255
258
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
256
259
|
},
|
|
257
260
|
/**
|
|
@@ -264,11 +267,12 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
264
267
|
* @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.
|
|
265
268
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
266
269
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
270
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
267
271
|
* @param {*} [options] Override http request option.
|
|
268
272
|
* @throws {RequiredError}
|
|
269
273
|
*/
|
|
270
|
-
async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
271
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
274
|
+
async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
275
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
272
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
273
277
|
},
|
|
274
278
|
}
|
|
@@ -290,21 +294,21 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
290
294
|
* @param {*} [options] Override http request option.
|
|
291
295
|
* @throws {RequiredError}
|
|
292
296
|
*/
|
|
293
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
297
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
294
298
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
295
299
|
},
|
|
296
300
|
/**
|
|
297
301
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
298
302
|
* @summary Retrieve a payment
|
|
299
303
|
* @param {string} code Unique identifier for the object.
|
|
304
|
+
* @param {string} expand Fields to expand response by
|
|
305
|
+
* @param {string} expand2 Fields to expand response by
|
|
300
306
|
* @param {string} [authorization] Bearer Token
|
|
301
|
-
* @param {string} [expand] Fields to expand response by
|
|
302
|
-
* @param {string} [expand2] Fields to expand response by
|
|
303
307
|
* @param {*} [options] Override http request option.
|
|
304
308
|
* @throws {RequiredError}
|
|
305
309
|
*/
|
|
306
|
-
getPayment(code: string,
|
|
307
|
-
return localVarFp.getPayment(code,
|
|
310
|
+
getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
311
|
+
return localVarFp.getPayment(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
|
|
308
312
|
},
|
|
309
313
|
/**
|
|
310
314
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -316,11 +320,12 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
316
320
|
* @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.
|
|
317
321
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
318
322
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
323
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
319
324
|
* @param {*} [options] Override http request option.
|
|
320
325
|
* @throws {RequiredError}
|
|
321
326
|
*/
|
|
322
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
323
|
-
return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
327
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
328
|
+
return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
324
329
|
},
|
|
325
330
|
};
|
|
326
331
|
};
|
|
@@ -367,25 +372,25 @@ export interface PaymentsApiGetPaymentRequest {
|
|
|
367
372
|
readonly code: string
|
|
368
373
|
|
|
369
374
|
/**
|
|
370
|
-
*
|
|
375
|
+
* Fields to expand response by
|
|
371
376
|
* @type {string}
|
|
372
377
|
* @memberof PaymentsApiGetPayment
|
|
373
378
|
*/
|
|
374
|
-
readonly
|
|
379
|
+
readonly expand: string
|
|
375
380
|
|
|
376
381
|
/**
|
|
377
382
|
* Fields to expand response by
|
|
378
383
|
* @type {string}
|
|
379
384
|
* @memberof PaymentsApiGetPayment
|
|
380
385
|
*/
|
|
381
|
-
readonly
|
|
386
|
+
readonly expand2: string
|
|
382
387
|
|
|
383
388
|
/**
|
|
384
|
-
*
|
|
389
|
+
* Bearer Token
|
|
385
390
|
* @type {string}
|
|
386
391
|
* @memberof PaymentsApiGetPayment
|
|
387
392
|
*/
|
|
388
|
-
readonly
|
|
393
|
+
readonly authorization?: string
|
|
389
394
|
}
|
|
390
395
|
|
|
391
396
|
/**
|
|
@@ -442,6 +447,13 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
442
447
|
* @memberof PaymentsApiListPayments
|
|
443
448
|
*/
|
|
444
449
|
readonly expand?: any
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
453
|
+
* @type {any}
|
|
454
|
+
* @memberof PaymentsApiListPayments
|
|
455
|
+
*/
|
|
456
|
+
readonly filters?: any
|
|
445
457
|
}
|
|
446
458
|
|
|
447
459
|
/**
|
|
@@ -472,7 +484,7 @@ export class PaymentsApi extends BaseAPI {
|
|
|
472
484
|
* @memberof PaymentsApi
|
|
473
485
|
*/
|
|
474
486
|
public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
|
|
475
|
-
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
487
|
+
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
476
488
|
}
|
|
477
489
|
|
|
478
490
|
/**
|
|
@@ -484,6 +496,6 @@ export class PaymentsApi extends BaseAPI {
|
|
|
484
496
|
* @memberof PaymentsApi
|
|
485
497
|
*/
|
|
486
498
|
public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
|
|
487
|
-
return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
499
|
+
return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
488
500
|
}
|
|
489
501
|
}
|
package/api/refunds-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
|
|
@@ -84,16 +84,18 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
84
84
|
*
|
|
85
85
|
* @param {string} code
|
|
86
86
|
* @param {string} code2 Unique identifier for the object.
|
|
87
|
+
* @param {string} expand Fields to expand response by
|
|
87
88
|
* @param {string} [authorization] Bearer Token
|
|
88
|
-
* @param {string} [expand] Fields to expand response by
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
getRefund: async (code: string, code2: string,
|
|
92
|
+
getRefund: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
93
|
// verify required parameter 'code' is not null or undefined
|
|
94
94
|
assertParamExists('getRefund', 'code', code)
|
|
95
95
|
// verify required parameter 'code2' is not null or undefined
|
|
96
96
|
assertParamExists('getRefund', 'code2', code2)
|
|
97
|
+
// verify required parameter 'expand' is not null or undefined
|
|
98
|
+
assertParamExists('getRefund', 'expand', expand)
|
|
97
99
|
const localVarPath = `/paymentservice/v1/refunds/{code}`
|
|
98
100
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
99
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -145,10 +147,11 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
145
147
|
* @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.
|
|
146
148
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
147
149
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
150
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
148
151
|
* @param {*} [options] Override http request option.
|
|
149
152
|
* @throws {RequiredError}
|
|
150
153
|
*/
|
|
151
|
-
listRefunds: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
154
|
+
listRefunds: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
152
155
|
const localVarPath = `/paymentservice/v1/refunds`;
|
|
153
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
157
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -191,6 +194,10 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
191
194
|
localVarQueryParameter['expand'] = expand;
|
|
192
195
|
}
|
|
193
196
|
|
|
197
|
+
if (filters !== undefined) {
|
|
198
|
+
localVarQueryParameter['filters'] = filters;
|
|
199
|
+
}
|
|
200
|
+
|
|
194
201
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
195
202
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
196
203
|
}
|
|
@@ -231,13 +238,13 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
231
238
|
*
|
|
232
239
|
* @param {string} code
|
|
233
240
|
* @param {string} code2 Unique identifier for the object.
|
|
241
|
+
* @param {string} expand Fields to expand response by
|
|
234
242
|
* @param {string} [authorization] Bearer Token
|
|
235
|
-
* @param {string} [expand] Fields to expand response by
|
|
236
243
|
* @param {*} [options] Override http request option.
|
|
237
244
|
* @throws {RequiredError}
|
|
238
245
|
*/
|
|
239
|
-
async getRefund(code: string, code2: string,
|
|
240
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2,
|
|
246
|
+
async getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
|
|
247
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, expand, authorization, options);
|
|
241
248
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
242
249
|
},
|
|
243
250
|
/**
|
|
@@ -249,11 +256,12 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
249
256
|
* @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.
|
|
250
257
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
251
258
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
259
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
252
260
|
* @param {*} [options] Override http request option.
|
|
253
261
|
* @throws {RequiredError}
|
|
254
262
|
*/
|
|
255
|
-
async listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
|
|
256
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
263
|
+
async listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
|
|
264
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
257
265
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
258
266
|
},
|
|
259
267
|
}
|
|
@@ -280,13 +288,13 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
280
288
|
*
|
|
281
289
|
* @param {string} code
|
|
282
290
|
* @param {string} code2 Unique identifier for the object.
|
|
291
|
+
* @param {string} expand Fields to expand response by
|
|
283
292
|
* @param {string} [authorization] Bearer Token
|
|
284
|
-
* @param {string} [expand] Fields to expand response by
|
|
285
293
|
* @param {*} [options] Override http request option.
|
|
286
294
|
* @throws {RequiredError}
|
|
287
295
|
*/
|
|
288
|
-
getRefund(code: string, code2: string,
|
|
289
|
-
return localVarFp.getRefund(code, code2,
|
|
296
|
+
getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
|
|
297
|
+
return localVarFp.getRefund(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
|
|
290
298
|
},
|
|
291
299
|
/**
|
|
292
300
|
*
|
|
@@ -297,11 +305,12 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
297
305
|
* @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.
|
|
298
306
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
299
307
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
308
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
300
309
|
* @param {*} [options] Override http request option.
|
|
301
310
|
* @throws {RequiredError}
|
|
302
311
|
*/
|
|
303
|
-
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListRefundsResponseClass> {
|
|
304
|
-
return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
312
|
+
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListRefundsResponseClass> {
|
|
313
|
+
return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
305
314
|
},
|
|
306
315
|
};
|
|
307
316
|
};
|
|
@@ -348,18 +357,18 @@ export interface RefundsApiGetRefundRequest {
|
|
|
348
357
|
readonly code2: string
|
|
349
358
|
|
|
350
359
|
/**
|
|
351
|
-
*
|
|
360
|
+
* Fields to expand response by
|
|
352
361
|
* @type {string}
|
|
353
362
|
* @memberof RefundsApiGetRefund
|
|
354
363
|
*/
|
|
355
|
-
readonly
|
|
364
|
+
readonly expand: string
|
|
356
365
|
|
|
357
366
|
/**
|
|
358
|
-
*
|
|
367
|
+
* Bearer Token
|
|
359
368
|
* @type {string}
|
|
360
369
|
* @memberof RefundsApiGetRefund
|
|
361
370
|
*/
|
|
362
|
-
readonly
|
|
371
|
+
readonly authorization?: string
|
|
363
372
|
}
|
|
364
373
|
|
|
365
374
|
/**
|
|
@@ -416,6 +425,13 @@ export interface RefundsApiListRefundsRequest {
|
|
|
416
425
|
* @memberof RefundsApiListRefunds
|
|
417
426
|
*/
|
|
418
427
|
readonly expand?: any
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
431
|
+
* @type {any}
|
|
432
|
+
* @memberof RefundsApiListRefunds
|
|
433
|
+
*/
|
|
434
|
+
readonly filters?: any
|
|
419
435
|
}
|
|
420
436
|
|
|
421
437
|
/**
|
|
@@ -444,7 +460,7 @@ export class RefundsApi extends BaseAPI {
|
|
|
444
460
|
* @memberof RefundsApi
|
|
445
461
|
*/
|
|
446
462
|
public getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig) {
|
|
447
|
-
return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.
|
|
463
|
+
return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
448
464
|
}
|
|
449
465
|
|
|
450
466
|
/**
|
|
@@ -455,6 +471,6 @@ export class RefundsApi extends BaseAPI {
|
|
|
455
471
|
* @memberof RefundsApi
|
|
456
472
|
*/
|
|
457
473
|
public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
|
|
458
|
-
return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
474
|
+
return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
459
475
|
}
|
|
460
476
|
}
|
|
@@ -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
|
|
@@ -180,10 +180,11 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
180
180
|
* @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.
|
|
181
181
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
182
182
|
* @param {string} [expand] Expand the response with additional entities
|
|
183
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
183
184
|
* @param {*} [options] Override http request option.
|
|
184
185
|
* @throws {RequiredError}
|
|
185
186
|
*/
|
|
186
|
-
listTenantBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
187
|
+
listTenantBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
187
188
|
const localVarPath = `/paymentservice/v1/tenant/bank-accounts`;
|
|
188
189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -226,6 +227,10 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
226
227
|
localVarQueryParameter['expand'] = expand;
|
|
227
228
|
}
|
|
228
229
|
|
|
230
|
+
if (filters !== undefined) {
|
|
231
|
+
localVarQueryParameter['filters'] = filters;
|
|
232
|
+
}
|
|
233
|
+
|
|
229
234
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
230
235
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
231
236
|
}
|
|
@@ -344,11 +349,12 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
344
349
|
* @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.
|
|
345
350
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
346
351
|
* @param {string} [expand] Expand the response with additional entities
|
|
352
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
347
353
|
* @param {*} [options] Override http request option.
|
|
348
354
|
* @throws {RequiredError}
|
|
349
355
|
*/
|
|
350
|
-
async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
351
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
356
|
+
async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
352
358
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
353
359
|
},
|
|
354
360
|
/**
|
|
@@ -413,11 +419,12 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
413
419
|
* @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.
|
|
414
420
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
415
421
|
* @param {string} [expand] Expand the response with additional entities
|
|
422
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
416
423
|
* @param {*} [options] Override http request option.
|
|
417
424
|
* @throws {RequiredError}
|
|
418
425
|
*/
|
|
419
|
-
listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<void> {
|
|
420
|
-
return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
426
|
+
listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
|
|
427
|
+
return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
421
428
|
},
|
|
422
429
|
/**
|
|
423
430
|
*
|
|
@@ -557,6 +564,13 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
|
|
|
557
564
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
558
565
|
*/
|
|
559
566
|
readonly expand?: string
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
570
|
+
* @type {any}
|
|
571
|
+
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
572
|
+
*/
|
|
573
|
+
readonly filters?: any
|
|
560
574
|
}
|
|
561
575
|
|
|
562
576
|
/**
|
|
@@ -635,7 +649,7 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
635
649
|
* @memberof TenantBankAccountApi
|
|
636
650
|
*/
|
|
637
651
|
public listTenantBankAccounts(requestParameters: TenantBankAccountApiListTenantBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
638
|
-
return TenantBankAccountApiFp(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
652
|
+
return TenantBankAccountApiFp(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
639
653
|
}
|
|
640
654
|
|
|
641
655
|
/**
|
package/api/webhooks-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
|
package/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
|
package/base.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
|
|
@@ -87,6 +87,7 @@ export class BaseAPI {
|
|
|
87
87
|
if (configuration) {
|
|
88
88
|
this.configuration = configuration;
|
|
89
89
|
this.basePath = configuration.basePath || this.basePath;
|
|
90
|
+
this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
|
|
90
91
|
} else {
|
|
91
92
|
const { accessToken, username } = this.tokenData;
|
|
92
93
|
|
package/common.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
|
|
@@ -143,7 +143,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
143
143
|
* 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.
|
|
144
144
|
*
|
|
145
145
|
* The version of the OpenAPI document: 1.0
|
|
146
|
-
* Contact:
|
|
146
|
+
* Contact: z
|
|
147
147
|
*
|
|
148
148
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
149
149
|
* https://openapi-generator.tech
|
package/configuration.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
|