@emilgroup/payment-sdk 1.4.1-beta.38 → 1.4.1-beta.39
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 -51
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +24 -74
- package/api/bank-transaction-api.ts +26 -64
- package/api/payment-methods-api.ts +30 -80
- package/api/payment-reminders-api.ts +20 -70
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +18 -66
- package/api/refunds-api.ts +22 -56
- package/api/tenant-bank-account-api.ts +18 -46
- package/dist/api/bank-accounts-api.d.ts +25 -56
- package/dist/api/bank-accounts-api.js +11 -29
- package/dist/api/bank-transaction-api.d.ts +24 -47
- package/dist/api/bank-transaction-api.js +12 -24
- package/dist/api/payment-methods-api.d.ts +22 -53
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-reminders-api.d.ts +19 -50
- package/dist/api/payment-reminders-api.js +11 -29
- package/dist/api/payment-setup-api.d.ts +18 -22
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +16 -46
- package/dist/api/payments-api.js +11 -29
- package/dist/api/refunds-api.d.ts +18 -39
- package/dist/api/refunds-api.js +12 -24
- package/dist/api/tenant-bank-account-api.d.ts +11 -29
- package/dist/api/tenant-bank-account-api.js +12 -24
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +12 -0
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/index.d.ts +0 -51
- package/dist/models/index.js +0 -51
- package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +12 -0
- package/dist/models/tenant-bank-account-class.d.ts +12 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
- package/dist/models/validate-pspconfig-request-dto.js +0 -7
- package/models/bank-transaction-class-without-expand-properties.ts +12 -0
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +3 -3
- package/models/index.ts +0 -51
- package/models/tenant-bank-account-class-without-expand-properties.ts +12 -0
- package/models/tenant-bank-account-class.ts +12 -0
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -72
- package/dist/models/bank-account-class-without-expand-properties.js +0 -15
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/bank-transaction-class.d.ts +0 -128
- package/dist/models/bank-transaction-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-response-class.d.ts +0 -25
- package/dist/models/create-bank-account-response-class.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-reminder-response-class.d.ts +0 -25
- package/dist/models/create-payment-reminder-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/deactivated-payment-reminder-class.d.ts +0 -90
- package/dist/models/deactivated-payment-reminder-class.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-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-reminder-response-class.d.ts +0 -25
- package/dist/models/get-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/import-bank-transactions-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 -50
- 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-transactions-response-class.d.ts +0 -25
- package/dist/models/link-bank-transactions-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class-without-expand-properties.d.ts +0 -102
- package/dist/models/payment-class-without-expand-properties.js +0 -15
- package/dist/models/payment-class.d.ts +0 -109
- 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 -90
- package/dist/models/payment-reminder-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class-without-expand-properties.d.ts +0 -99
- package/dist/models/refund-class-without-expand-properties.js +0 -29
- package/dist/models/refund-class.d.ts +0 -106
- package/dist/models/refund-class.js +0 -29
- package/dist/models/refund-item-class.d.ts +0 -102
- package/dist/models/refund-item-class.js +0 -15
- 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/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/unlink-bank-transactions-response-class.js +0 -15
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -96
- package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
- package/dist/models/update-bank-account-response-class.d.ts +0 -25
- package/dist/models/update-bank-account-response-class.js +0 -15
- package/models/bank-account-class-without-expand-properties.ts +0 -78
- package/models/bank-account-class.ts +0 -85
- package/models/bank-transaction-class.ts +0 -134
- 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-response-class.ts +0 -31
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-reminder-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/deactivated-payment-reminder-class.ts +0 -96
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/import-bank-transactions-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 -56
- 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-transactions-response-class.ts +0 -31
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class-without-expand-properties.ts +0 -108
- package/models/payment-class.ts +0 -115
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -96
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class-without-expand-properties.ts +0 -109
- package/models/refund-class.ts +0 -116
- package/models/refund-item-class.ts +0 -108
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/transaction-class.ts +0 -60
- package/models/unlink-bank-transactions-response-class.ts +0 -31
- package/models/unlinked-bank-transaction-response-class.ts +0 -102
- package/models/update-bank-account-response-class.ts +0 -31
|
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CreatePaymentMethodResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentMethodResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentMethodsResponseClass } from '../models';
|
|
31
23
|
/**
|
|
32
24
|
* PaymentMethodsApi - axios parameter creator
|
|
33
25
|
* @export
|
|
@@ -37,14 +29,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
37
29
|
/**
|
|
38
30
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
39
31
|
* @summary Create the payment method
|
|
40
|
-
* @param {
|
|
32
|
+
* @param {object} body
|
|
41
33
|
* @param {string} [authorization] Bearer Token
|
|
42
34
|
* @param {*} [options] Override http request option.
|
|
43
35
|
* @throws {RequiredError}
|
|
44
36
|
*/
|
|
45
|
-
createPaymentMethod: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('createPaymentMethod', '
|
|
37
|
+
createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'body' is not null or undefined
|
|
39
|
+
assertParamExists('createPaymentMethod', 'body', body)
|
|
48
40
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
49
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,7 +66,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
74
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
68
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
78
70
|
|
|
79
71
|
return {
|
|
80
72
|
url: toPathString(localVarUrlObj),
|
|
@@ -130,17 +122,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
130
122
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
131
123
|
* @summary List payment methods
|
|
132
124
|
* @param {string} [authorization] Bearer Token
|
|
133
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
134
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
135
125
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
136
|
-
* @param {
|
|
126
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
137
127
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
138
128
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
139
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
140
129
|
* @param {*} [options] Override http request option.
|
|
141
130
|
* @throws {RequiredError}
|
|
142
131
|
*/
|
|
143
|
-
listPaymentMethods: async (authorization?: string,
|
|
132
|
+
listPaymentMethods: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
133
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
145
134
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
135
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -159,20 +148,12 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
159
148
|
// http bearer authentication required
|
|
160
149
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
161
150
|
|
|
162
|
-
if (pageSize !== undefined) {
|
|
163
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
if (pageToken !== undefined) {
|
|
167
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
151
|
if (filter !== undefined) {
|
|
171
152
|
localVarQueryParameter['filter'] = filter;
|
|
172
153
|
}
|
|
173
154
|
|
|
174
|
-
if (
|
|
175
|
-
localVarQueryParameter['
|
|
155
|
+
if (filters !== undefined) {
|
|
156
|
+
localVarQueryParameter['filters'] = filters;
|
|
176
157
|
}
|
|
177
158
|
|
|
178
159
|
if (order !== undefined) {
|
|
@@ -183,10 +164,6 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
183
164
|
localVarQueryParameter['expand'] = expand;
|
|
184
165
|
}
|
|
185
166
|
|
|
186
|
-
if (filters !== undefined) {
|
|
187
|
-
localVarQueryParameter['filters'] = filters;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
167
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
168
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
192
169
|
}
|
|
@@ -215,13 +192,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
215
192
|
/**
|
|
216
193
|
* 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.
|
|
217
194
|
* @summary Create the payment method
|
|
218
|
-
* @param {
|
|
195
|
+
* @param {object} body
|
|
219
196
|
* @param {string} [authorization] Bearer Token
|
|
220
197
|
* @param {*} [options] Override http request option.
|
|
221
198
|
* @throws {RequiredError}
|
|
222
199
|
*/
|
|
223
|
-
async createPaymentMethod(
|
|
224
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
200
|
+
async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
201
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
225
202
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
226
203
|
},
|
|
227
204
|
/**
|
|
@@ -232,7 +209,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
232
209
|
* @param {*} [options] Override http request option.
|
|
233
210
|
* @throws {RequiredError}
|
|
234
211
|
*/
|
|
235
|
-
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
212
|
+
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
236
213
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, options);
|
|
237
214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
238
215
|
},
|
|
@@ -240,18 +217,15 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
240
217
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
241
218
|
* @summary List payment methods
|
|
242
219
|
* @param {string} [authorization] Bearer Token
|
|
243
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
244
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
245
220
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
246
|
-
* @param {
|
|
221
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
247
222
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
248
223
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
249
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
250
224
|
* @param {*} [options] Override http request option.
|
|
251
225
|
* @throws {RequiredError}
|
|
252
226
|
*/
|
|
253
|
-
async listPaymentMethods(authorization?: string,
|
|
254
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization,
|
|
227
|
+
async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
228
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, filter, filters, order, expand, options);
|
|
255
229
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
256
230
|
},
|
|
257
231
|
}
|
|
@@ -267,13 +241,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
267
241
|
/**
|
|
268
242
|
* 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.
|
|
269
243
|
* @summary Create the payment method
|
|
270
|
-
* @param {
|
|
244
|
+
* @param {object} body
|
|
271
245
|
* @param {string} [authorization] Bearer Token
|
|
272
246
|
* @param {*} [options] Override http request option.
|
|
273
247
|
* @throws {RequiredError}
|
|
274
248
|
*/
|
|
275
|
-
createPaymentMethod(
|
|
276
|
-
return localVarFp.createPaymentMethod(
|
|
249
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
250
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
277
251
|
},
|
|
278
252
|
/**
|
|
279
253
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
@@ -283,25 +257,22 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
283
257
|
* @param {*} [options] Override http request option.
|
|
284
258
|
* @throws {RequiredError}
|
|
285
259
|
*/
|
|
286
|
-
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
260
|
+
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
287
261
|
return localVarFp.getPaymentMethod(code, authorization, options).then((request) => request(axios, basePath));
|
|
288
262
|
},
|
|
289
263
|
/**
|
|
290
264
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
291
265
|
* @summary List payment methods
|
|
292
266
|
* @param {string} [authorization] Bearer Token
|
|
293
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
294
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
295
267
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
296
|
-
* @param {
|
|
268
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
297
269
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
298
270
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
299
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
300
271
|
* @param {*} [options] Override http request option.
|
|
301
272
|
* @throws {RequiredError}
|
|
302
273
|
*/
|
|
303
|
-
listPaymentMethods(authorization?: string,
|
|
304
|
-
return localVarFp.listPaymentMethods(authorization,
|
|
274
|
+
listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
275
|
+
return localVarFp.listPaymentMethods(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
305
276
|
},
|
|
306
277
|
};
|
|
307
278
|
};
|
|
@@ -314,10 +285,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
314
285
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
315
286
|
/**
|
|
316
287
|
*
|
|
317
|
-
* @type {
|
|
288
|
+
* @type {object}
|
|
318
289
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
319
290
|
*/
|
|
320
|
-
readonly
|
|
291
|
+
readonly body: object
|
|
321
292
|
|
|
322
293
|
/**
|
|
323
294
|
* Bearer Token
|
|
@@ -361,20 +332,6 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
361
332
|
*/
|
|
362
333
|
readonly authorization?: string
|
|
363
334
|
|
|
364
|
-
/**
|
|
365
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
366
|
-
* @type {any}
|
|
367
|
-
* @memberof PaymentMethodsApiListPaymentMethods
|
|
368
|
-
*/
|
|
369
|
-
readonly pageSize?: any
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
373
|
-
* @type {any}
|
|
374
|
-
* @memberof PaymentMethodsApiListPaymentMethods
|
|
375
|
-
*/
|
|
376
|
-
readonly pageToken?: any
|
|
377
|
-
|
|
378
335
|
/**
|
|
379
336
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
380
337
|
* @type {string}
|
|
@@ -383,11 +340,11 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
383
340
|
readonly filter?: string
|
|
384
341
|
|
|
385
342
|
/**
|
|
386
|
-
*
|
|
387
|
-
* @type {
|
|
343
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
344
|
+
* @type {string}
|
|
388
345
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
389
346
|
*/
|
|
390
|
-
readonly
|
|
347
|
+
readonly filters?: string
|
|
391
348
|
|
|
392
349
|
/**
|
|
393
350
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
@@ -402,13 +359,6 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
402
359
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
403
360
|
*/
|
|
404
361
|
readonly expand?: string
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
408
|
-
* @type {string}
|
|
409
|
-
* @memberof PaymentMethodsApiListPaymentMethods
|
|
410
|
-
*/
|
|
411
|
-
readonly filters?: string
|
|
412
362
|
}
|
|
413
363
|
|
|
414
364
|
/**
|
|
@@ -427,7 +377,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
427
377
|
* @memberof PaymentMethodsApi
|
|
428
378
|
*/
|
|
429
379
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
430
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
380
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
431
381
|
}
|
|
432
382
|
|
|
433
383
|
/**
|
|
@@ -451,6 +401,6 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
451
401
|
* @memberof PaymentMethodsApi
|
|
452
402
|
*/
|
|
453
403
|
public listPaymentMethods(requestParameters: PaymentMethodsApiListPaymentMethodsRequest = {}, options?: AxiosRequestConfig) {
|
|
454
|
-
return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.
|
|
404
|
+
return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
455
405
|
}
|
|
456
406
|
}
|
|
@@ -23,15 +23,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { CreatePaymentReminderResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
26
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { GetPaymentReminderResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { ListPaymentRemindersResponseClass } from '../models';
|
|
35
27
|
/**
|
|
36
28
|
* PaymentRemindersApi - axios parameter creator
|
|
37
29
|
* @export
|
|
@@ -185,17 +177,14 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
185
177
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
186
178
|
* @summary List payment reminders
|
|
187
179
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
188
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
189
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
190
180
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
191
|
-
* @param {
|
|
181
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
192
182
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
193
183
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
194
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
195
184
|
* @param {*} [options] Override http request option.
|
|
196
185
|
* @throws {RequiredError}
|
|
197
186
|
*/
|
|
198
|
-
listPaymentReminders: async (authorization?: string,
|
|
187
|
+
listPaymentReminders: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
188
|
const localVarPath = `/paymentservice/v1/payment-reminders`;
|
|
200
189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
201
190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -214,20 +203,12 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
214
203
|
// http bearer authentication required
|
|
215
204
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
216
205
|
|
|
217
|
-
if (pageSize !== undefined) {
|
|
218
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
if (pageToken !== undefined) {
|
|
222
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
206
|
if (filter !== undefined) {
|
|
226
207
|
localVarQueryParameter['filter'] = filter;
|
|
227
208
|
}
|
|
228
209
|
|
|
229
|
-
if (
|
|
230
|
-
localVarQueryParameter['
|
|
210
|
+
if (filters !== undefined) {
|
|
211
|
+
localVarQueryParameter['filters'] = filters;
|
|
231
212
|
}
|
|
232
213
|
|
|
233
214
|
if (order !== undefined) {
|
|
@@ -238,10 +219,6 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
238
219
|
localVarQueryParameter['expand'] = expand;
|
|
239
220
|
}
|
|
240
221
|
|
|
241
|
-
if (filters !== undefined) {
|
|
242
|
-
localVarQueryParameter['filters'] = filters;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
222
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
246
223
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
247
224
|
}
|
|
@@ -275,7 +252,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
275
252
|
* @param {*} [options] Override http request option.
|
|
276
253
|
* @throws {RequiredError}
|
|
277
254
|
*/
|
|
278
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
255
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
279
256
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
280
257
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
281
258
|
},
|
|
@@ -288,7 +265,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
288
265
|
* @param {*} [options] Override http request option.
|
|
289
266
|
* @throws {RequiredError}
|
|
290
267
|
*/
|
|
291
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
268
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
292
269
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
293
270
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
294
271
|
},
|
|
@@ -300,7 +277,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
300
277
|
* @param {*} [options] Override http request option.
|
|
301
278
|
* @throws {RequiredError}
|
|
302
279
|
*/
|
|
303
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
280
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
304
281
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
305
282
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
306
283
|
},
|
|
@@ -308,18 +285,15 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
308
285
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
309
286
|
* @summary List payment reminders
|
|
310
287
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
311
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
312
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
313
288
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
314
|
-
* @param {
|
|
289
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
315
290
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
316
291
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
317
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
318
292
|
* @param {*} [options] Override http request option.
|
|
319
293
|
* @throws {RequiredError}
|
|
320
294
|
*/
|
|
321
|
-
async listPaymentReminders(authorization?: string,
|
|
322
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization,
|
|
295
|
+
async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, filter, filters, order, expand, options);
|
|
323
297
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
324
298
|
},
|
|
325
299
|
}
|
|
@@ -340,7 +314,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
340
314
|
* @param {*} [options] Override http request option.
|
|
341
315
|
* @throws {RequiredError}
|
|
342
316
|
*/
|
|
343
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
317
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
344
318
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
345
319
|
},
|
|
346
320
|
/**
|
|
@@ -352,7 +326,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
352
326
|
* @param {*} [options] Override http request option.
|
|
353
327
|
* @throws {RequiredError}
|
|
354
328
|
*/
|
|
355
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
329
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
356
330
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
357
331
|
},
|
|
358
332
|
/**
|
|
@@ -363,25 +337,22 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
363
337
|
* @param {*} [options] Override http request option.
|
|
364
338
|
* @throws {RequiredError}
|
|
365
339
|
*/
|
|
366
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
340
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
367
341
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
368
342
|
},
|
|
369
343
|
/**
|
|
370
344
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
371
345
|
* @summary List payment reminders
|
|
372
346
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
373
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
374
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
375
347
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
376
|
-
* @param {
|
|
348
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
377
349
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
378
350
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
379
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
380
351
|
* @param {*} [options] Override http request option.
|
|
381
352
|
* @throws {RequiredError}
|
|
382
353
|
*/
|
|
383
|
-
listPaymentReminders(authorization?: string,
|
|
384
|
-
return localVarFp.listPaymentReminders(authorization,
|
|
354
|
+
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
355
|
+
return localVarFp.listPaymentReminders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
385
356
|
},
|
|
386
357
|
};
|
|
387
358
|
};
|
|
@@ -469,20 +440,6 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
469
440
|
*/
|
|
470
441
|
readonly authorization?: string
|
|
471
442
|
|
|
472
|
-
/**
|
|
473
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
474
|
-
* @type {any}
|
|
475
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
476
|
-
*/
|
|
477
|
-
readonly pageSize?: any
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
481
|
-
* @type {any}
|
|
482
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
483
|
-
*/
|
|
484
|
-
readonly pageToken?: any
|
|
485
|
-
|
|
486
443
|
/**
|
|
487
444
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
488
445
|
* @type {string}
|
|
@@ -491,11 +448,11 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
491
448
|
readonly filter?: string
|
|
492
449
|
|
|
493
450
|
/**
|
|
494
|
-
*
|
|
495
|
-
* @type {
|
|
451
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
452
|
+
* @type {string}
|
|
496
453
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
497
454
|
*/
|
|
498
|
-
readonly
|
|
455
|
+
readonly filters?: string
|
|
499
456
|
|
|
500
457
|
/**
|
|
501
458
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
@@ -510,13 +467,6 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
510
467
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
511
468
|
*/
|
|
512
469
|
readonly expand?: string
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
516
|
-
* @type {string}
|
|
517
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
518
|
-
*/
|
|
519
|
-
readonly filters?: string
|
|
520
470
|
}
|
|
521
471
|
|
|
522
472
|
/**
|
|
@@ -571,6 +521,6 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
571
521
|
* @memberof PaymentRemindersApi
|
|
572
522
|
*/
|
|
573
523
|
public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
|
|
574
|
-
return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.
|
|
524
|
+
return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
575
525
|
}
|
|
576
526
|
}
|