@emilgroup/payment-sdk-node 1.12.1 → 1.13.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 +1 -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 +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +0 -30
- package/dist/models/index.js +0 -30
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -30
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/link-bank-transaction-request-dto.d.ts +0 -30
- package/dist/models/link-bank-transaction-request-dto.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -36
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/link-bank-transaction-request-dto.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
package/api/default-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
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CreatePaymentMethodResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentMethodResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentMethodsResponseClass } from '../models';
|
|
31
23
|
// URLSearchParams not necessarily used
|
|
32
24
|
// @ts-ignore
|
|
33
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -41,14 +33,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
41
33
|
/**
|
|
42
34
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
43
35
|
* @summary Create the payment-method
|
|
44
|
-
* @param {
|
|
36
|
+
* @param {object} body
|
|
45
37
|
* @param {string} [authorization] Bearer Token
|
|
46
38
|
* @param {*} [options] Override http request option.
|
|
47
39
|
* @throws {RequiredError}
|
|
48
40
|
*/
|
|
49
|
-
createPaymentMethod: async (
|
|
50
|
-
// verify required parameter '
|
|
51
|
-
assertParamExists('createPaymentMethod', '
|
|
41
|
+
createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'body' is not null or undefined
|
|
43
|
+
assertParamExists('createPaymentMethod', 'body', body)
|
|
52
44
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
53
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -78,7 +70,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
78
70
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
71
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
72
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
82
74
|
|
|
83
75
|
return {
|
|
84
76
|
url: toPathString(localVarUrlObj),
|
|
@@ -137,15 +129,19 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
137
129
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
138
130
|
* @summary Retrieve a payment method
|
|
139
131
|
* @param {string} code Unique identifier for the object.
|
|
132
|
+
* @param {string} expand Fields to expand response by
|
|
133
|
+
* @param {string} expand2 Fields to expand response by
|
|
140
134
|
* @param {string} [authorization] Bearer Token
|
|
141
|
-
* @param {string} [expand] Fields to expand response by
|
|
142
|
-
* @param {string} [expand2] Fields to expand response by
|
|
143
135
|
* @param {*} [options] Override http request option.
|
|
144
136
|
* @throws {RequiredError}
|
|
145
137
|
*/
|
|
146
|
-
getPaymentMethod: async (code: string,
|
|
138
|
+
getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
139
|
// verify required parameter 'code' is not null or undefined
|
|
148
140
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
141
|
+
// verify required parameter 'expand' is not null or undefined
|
|
142
|
+
assertParamExists('getPaymentMethod', 'expand', expand)
|
|
143
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
144
|
+
assertParamExists('getPaymentMethod', 'expand2', expand2)
|
|
149
145
|
const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
|
|
150
146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -201,10 +197,11 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
201
197
|
* @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.
|
|
202
198
|
* @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.
|
|
203
199
|
* @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.
|
|
200
|
+
* @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.
|
|
204
201
|
* @param {*} [options] Override http request option.
|
|
205
202
|
* @throws {RequiredError}
|
|
206
203
|
*/
|
|
207
|
-
listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
204
|
+
listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
208
205
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
209
206
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
207
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -247,6 +244,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
247
244
|
localVarQueryParameter['expand'] = expand;
|
|
248
245
|
}
|
|
249
246
|
|
|
247
|
+
if (filters !== undefined) {
|
|
248
|
+
localVarQueryParameter['filters'] = filters;
|
|
249
|
+
}
|
|
250
|
+
|
|
250
251
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
252
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
252
253
|
}
|
|
@@ -275,13 +276,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
275
276
|
/**
|
|
276
277
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
277
278
|
* @summary Create the payment-method
|
|
278
|
-
* @param {
|
|
279
|
+
* @param {object} body
|
|
279
280
|
* @param {string} [authorization] Bearer Token
|
|
280
281
|
* @param {*} [options] Override http request option.
|
|
281
282
|
* @throws {RequiredError}
|
|
282
283
|
*/
|
|
283
|
-
async createPaymentMethod(
|
|
284
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
284
|
+
async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
285
286
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
286
287
|
},
|
|
287
288
|
/**
|
|
@@ -300,14 +301,14 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
300
301
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
301
302
|
* @summary Retrieve a payment method
|
|
302
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
|
|
303
306
|
* @param {string} [authorization] Bearer Token
|
|
304
|
-
* @param {string} [expand] Fields to expand response by
|
|
305
|
-
* @param {string} [expand2] Fields to expand response by
|
|
306
307
|
* @param {*} [options] Override http request option.
|
|
307
308
|
* @throws {RequiredError}
|
|
308
309
|
*/
|
|
309
|
-
async getPaymentMethod(code: string,
|
|
310
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code,
|
|
310
|
+
async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
311
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
|
|
311
312
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
312
313
|
},
|
|
313
314
|
/**
|
|
@@ -320,11 +321,12 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
320
321
|
* @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.
|
|
321
322
|
* @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.
|
|
322
323
|
* @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.
|
|
324
|
+
* @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.
|
|
323
325
|
* @param {*} [options] Override http request option.
|
|
324
326
|
* @throws {RequiredError}
|
|
325
327
|
*/
|
|
326
|
-
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
328
|
+
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
328
330
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
329
331
|
},
|
|
330
332
|
}
|
|
@@ -340,13 +342,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
340
342
|
/**
|
|
341
343
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
342
344
|
* @summary Create the payment-method
|
|
343
|
-
* @param {
|
|
345
|
+
* @param {object} body
|
|
344
346
|
* @param {string} [authorization] Bearer Token
|
|
345
347
|
* @param {*} [options] Override http request option.
|
|
346
348
|
* @throws {RequiredError}
|
|
347
349
|
*/
|
|
348
|
-
createPaymentMethod(
|
|
349
|
-
return localVarFp.createPaymentMethod(
|
|
350
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
351
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
350
352
|
},
|
|
351
353
|
/**
|
|
352
354
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
@@ -363,14 +365,14 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
363
365
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
364
366
|
* @summary Retrieve a payment method
|
|
365
367
|
* @param {string} code Unique identifier for the object.
|
|
368
|
+
* @param {string} expand Fields to expand response by
|
|
369
|
+
* @param {string} expand2 Fields to expand response by
|
|
366
370
|
* @param {string} [authorization] Bearer Token
|
|
367
|
-
* @param {string} [expand] Fields to expand response by
|
|
368
|
-
* @param {string} [expand2] Fields to expand response by
|
|
369
371
|
* @param {*} [options] Override http request option.
|
|
370
372
|
* @throws {RequiredError}
|
|
371
373
|
*/
|
|
372
|
-
getPaymentMethod(code: string,
|
|
373
|
-
return localVarFp.getPaymentMethod(code,
|
|
374
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
375
|
+
return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
|
|
374
376
|
},
|
|
375
377
|
/**
|
|
376
378
|
* 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.
|
|
@@ -382,11 +384,12 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
382
384
|
* @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.
|
|
383
385
|
* @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.
|
|
384
386
|
* @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.
|
|
387
|
+
* @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.
|
|
385
388
|
* @param {*} [options] Override http request option.
|
|
386
389
|
* @throws {RequiredError}
|
|
387
390
|
*/
|
|
388
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
389
|
-
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
391
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
392
|
+
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
390
393
|
},
|
|
391
394
|
};
|
|
392
395
|
};
|
|
@@ -399,10 +402,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
399
402
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
400
403
|
/**
|
|
401
404
|
*
|
|
402
|
-
* @type {
|
|
405
|
+
* @type {object}
|
|
403
406
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
404
407
|
*/
|
|
405
|
-
readonly
|
|
408
|
+
readonly body: object
|
|
406
409
|
|
|
407
410
|
/**
|
|
408
411
|
* Bearer Token
|
|
@@ -447,25 +450,25 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
447
450
|
readonly code: string
|
|
448
451
|
|
|
449
452
|
/**
|
|
450
|
-
*
|
|
453
|
+
* Fields to expand response by
|
|
451
454
|
* @type {string}
|
|
452
455
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
453
456
|
*/
|
|
454
|
-
readonly
|
|
457
|
+
readonly expand: string
|
|
455
458
|
|
|
456
459
|
/**
|
|
457
460
|
* Fields to expand response by
|
|
458
461
|
* @type {string}
|
|
459
462
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
460
463
|
*/
|
|
461
|
-
readonly
|
|
464
|
+
readonly expand2: string
|
|
462
465
|
|
|
463
466
|
/**
|
|
464
|
-
*
|
|
467
|
+
* Bearer Token
|
|
465
468
|
* @type {string}
|
|
466
469
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
467
470
|
*/
|
|
468
|
-
readonly
|
|
471
|
+
readonly authorization?: string
|
|
469
472
|
}
|
|
470
473
|
|
|
471
474
|
/**
|
|
@@ -522,6 +525,13 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
522
525
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
523
526
|
*/
|
|
524
527
|
readonly expand?: any
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* 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.
|
|
531
|
+
* @type {any}
|
|
532
|
+
* @memberof PaymentMethodsApiListPaymentMethods
|
|
533
|
+
*/
|
|
534
|
+
readonly filters?: any
|
|
525
535
|
}
|
|
526
536
|
|
|
527
537
|
/**
|
|
@@ -540,7 +550,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
540
550
|
* @memberof PaymentMethodsApi
|
|
541
551
|
*/
|
|
542
552
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
543
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
553
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
544
554
|
}
|
|
545
555
|
|
|
546
556
|
/**
|
|
@@ -564,7 +574,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
564
574
|
* @memberof PaymentMethodsApi
|
|
565
575
|
*/
|
|
566
576
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
567
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
577
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
568
578
|
}
|
|
569
579
|
|
|
570
580
|
/**
|
|
@@ -576,6 +586,6 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
576
586
|
* @memberof PaymentMethodsApi
|
|
577
587
|
*/
|
|
578
588
|
public listPaymentMethods(requestParameters: PaymentMethodsApiListPaymentMethodsRequest = {}, options?: AxiosRequestConfig) {
|
|
579
|
-
return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
589
|
+
return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
580
590
|
}
|
|
581
591
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -24,10 +24,6 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
24
24
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentRemindersResponseClass } from '../models';
|
|
31
27
|
// URLSearchParams not necessarily used
|
|
32
28
|
// @ts-ignore
|
|
33
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -191,10 +187,11 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
191
187
|
* @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.
|
|
192
188
|
* @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.
|
|
193
189
|
* @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.
|
|
190
|
+
* @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.
|
|
194
191
|
* @param {*} [options] Override http request option.
|
|
195
192
|
* @throws {RequiredError}
|
|
196
193
|
*/
|
|
197
|
-
listPaymentReminders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
194
|
+
listPaymentReminders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
198
195
|
const localVarPath = `/paymentservice/v1/payment-reminders`;
|
|
199
196
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
197
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -237,6 +234,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
237
234
|
localVarQueryParameter['expand'] = expand;
|
|
238
235
|
}
|
|
239
236
|
|
|
237
|
+
if (filters !== undefined) {
|
|
238
|
+
localVarQueryParameter['filters'] = filters;
|
|
239
|
+
}
|
|
240
|
+
|
|
240
241
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
241
242
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
242
243
|
}
|
|
@@ -270,7 +271,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
270
271
|
* @param {*} [options] Override http request option.
|
|
271
272
|
* @throws {RequiredError}
|
|
272
273
|
*/
|
|
273
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
274
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
274
275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
275
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
276
277
|
},
|
|
@@ -283,7 +284,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
283
284
|
* @param {*} [options] Override http request option.
|
|
284
285
|
* @throws {RequiredError}
|
|
285
286
|
*/
|
|
286
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
287
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
287
288
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
288
289
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
289
290
|
},
|
|
@@ -295,7 +296,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
295
296
|
* @param {*} [options] Override http request option.
|
|
296
297
|
* @throws {RequiredError}
|
|
297
298
|
*/
|
|
298
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
299
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
299
300
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
300
301
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
301
302
|
},
|
|
@@ -309,11 +310,12 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
309
310
|
* @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.
|
|
310
311
|
* @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.
|
|
311
312
|
* @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.
|
|
313
|
+
* @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.
|
|
312
314
|
* @param {*} [options] Override http request option.
|
|
313
315
|
* @throws {RequiredError}
|
|
314
316
|
*/
|
|
315
|
-
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
316
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
317
|
+
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
317
319
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
318
320
|
},
|
|
319
321
|
}
|
|
@@ -334,7 +336,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
334
336
|
* @param {*} [options] Override http request option.
|
|
335
337
|
* @throws {RequiredError}
|
|
336
338
|
*/
|
|
337
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
339
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
338
340
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
339
341
|
},
|
|
340
342
|
/**
|
|
@@ -346,7 +348,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
346
348
|
* @param {*} [options] Override http request option.
|
|
347
349
|
* @throws {RequiredError}
|
|
348
350
|
*/
|
|
349
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
351
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
350
352
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
351
353
|
},
|
|
352
354
|
/**
|
|
@@ -357,7 +359,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
357
359
|
* @param {*} [options] Override http request option.
|
|
358
360
|
* @throws {RequiredError}
|
|
359
361
|
*/
|
|
360
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
362
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
361
363
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
362
364
|
},
|
|
363
365
|
/**
|
|
@@ -370,11 +372,12 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
370
372
|
* @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.
|
|
371
373
|
* @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.
|
|
372
374
|
* @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.
|
|
375
|
+
* @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.
|
|
373
376
|
* @param {*} [options] Override http request option.
|
|
374
377
|
* @throws {RequiredError}
|
|
375
378
|
*/
|
|
376
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
377
|
-
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
379
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
380
|
+
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
378
381
|
},
|
|
379
382
|
};
|
|
380
383
|
};
|
|
@@ -503,6 +506,13 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
503
506
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
504
507
|
*/
|
|
505
508
|
readonly expand?: any
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* 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.
|
|
512
|
+
* @type {any}
|
|
513
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
514
|
+
*/
|
|
515
|
+
readonly filters?: any
|
|
506
516
|
}
|
|
507
517
|
|
|
508
518
|
/**
|
|
@@ -557,6 +567,6 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
557
567
|
* @memberof PaymentRemindersApi
|
|
558
568
|
*/
|
|
559
569
|
public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
|
|
560
|
-
return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
570
|
+
return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
561
571
|
}
|
|
562
572
|
}
|