@emilgroup/payment-sdk 1.4.1-beta.37 → 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/README.md +2 -2
- package/api/bank-accounts-api.ts +14 -56
- package/api/bank-transaction-api.ts +18 -46
- package/api/payment-methods-api.ts +14 -56
- package/api/payment-reminders-api.ts +14 -56
- package/api/payments-api.ts +14 -56
- package/api/refunds-api.ts +18 -46
- package/api/tenant-bank-account-api.ts +18 -46
- package/dist/api/bank-accounts-api.d.ts +9 -36
- package/dist/api/bank-accounts-api.js +11 -29
- package/dist/api/bank-transaction-api.d.ts +11 -29
- package/dist/api/bank-transaction-api.js +12 -24
- package/dist/api/payment-methods-api.d.ts +9 -36
- package/dist/api/payment-methods-api.js +11 -29
- package/dist/api/payment-reminders-api.d.ts +9 -36
- package/dist/api/payment-reminders-api.js +11 -29
- package/dist/api/payments-api.d.ts +9 -36
- package/dist/api/payments-api.js +11 -29
- package/dist/api/refunds-api.d.ts +11 -29
- 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/package.json +1 -1
|
@@ -177,17 +177,14 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
177
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.
|
|
178
178
|
* @summary List payment reminders
|
|
179
179
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
180
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
181
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
182
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>
|
|
183
|
-
* @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>
|
|
184
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>
|
|
185
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>
|
|
186
|
-
* @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>
|
|
187
184
|
* @param {*} [options] Override http request option.
|
|
188
185
|
* @throws {RequiredError}
|
|
189
186
|
*/
|
|
190
|
-
listPaymentReminders: async (authorization?: string,
|
|
187
|
+
listPaymentReminders: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
191
188
|
const localVarPath = `/paymentservice/v1/payment-reminders`;
|
|
192
189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
193
190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -206,20 +203,12 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
206
203
|
// http bearer authentication required
|
|
207
204
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
208
205
|
|
|
209
|
-
if (pageSize !== undefined) {
|
|
210
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
if (pageToken !== undefined) {
|
|
214
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
206
|
if (filter !== undefined) {
|
|
218
207
|
localVarQueryParameter['filter'] = filter;
|
|
219
208
|
}
|
|
220
209
|
|
|
221
|
-
if (
|
|
222
|
-
localVarQueryParameter['
|
|
210
|
+
if (filters !== undefined) {
|
|
211
|
+
localVarQueryParameter['filters'] = filters;
|
|
223
212
|
}
|
|
224
213
|
|
|
225
214
|
if (order !== undefined) {
|
|
@@ -230,10 +219,6 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
230
219
|
localVarQueryParameter['expand'] = expand;
|
|
231
220
|
}
|
|
232
221
|
|
|
233
|
-
if (filters !== undefined) {
|
|
234
|
-
localVarQueryParameter['filters'] = filters;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
222
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
238
223
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
239
224
|
}
|
|
@@ -300,18 +285,15 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
300
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.
|
|
301
286
|
* @summary List payment reminders
|
|
302
287
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
304
|
-
* @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.
|
|
305
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>
|
|
306
|
-
* @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>
|
|
307
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>
|
|
308
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>
|
|
309
|
-
* @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>
|
|
310
292
|
* @param {*} [options] Override http request option.
|
|
311
293
|
* @throws {RequiredError}
|
|
312
294
|
*/
|
|
313
|
-
async listPaymentReminders(authorization?: string,
|
|
314
|
-
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);
|
|
315
297
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
316
298
|
},
|
|
317
299
|
}
|
|
@@ -362,18 +344,15 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
362
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.
|
|
363
345
|
* @summary List payment reminders
|
|
364
346
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
365
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
366
|
-
* @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.
|
|
367
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>
|
|
368
|
-
* @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>
|
|
369
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>
|
|
370
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>
|
|
371
|
-
* @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>
|
|
372
351
|
* @param {*} [options] Override http request option.
|
|
373
352
|
* @throws {RequiredError}
|
|
374
353
|
*/
|
|
375
|
-
listPaymentReminders(authorization?: string,
|
|
376
|
-
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));
|
|
377
356
|
},
|
|
378
357
|
};
|
|
379
358
|
};
|
|
@@ -461,20 +440,6 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
461
440
|
*/
|
|
462
441
|
readonly authorization?: string
|
|
463
442
|
|
|
464
|
-
/**
|
|
465
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
466
|
-
* @type {any}
|
|
467
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
468
|
-
*/
|
|
469
|
-
readonly pageSize?: any
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* 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.
|
|
473
|
-
* @type {any}
|
|
474
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
475
|
-
*/
|
|
476
|
-
readonly pageToken?: any
|
|
477
|
-
|
|
478
443
|
/**
|
|
479
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>
|
|
480
445
|
* @type {string}
|
|
@@ -483,11 +448,11 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
483
448
|
readonly filter?: string
|
|
484
449
|
|
|
485
450
|
/**
|
|
486
|
-
*
|
|
487
|
-
* @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}
|
|
488
453
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
489
454
|
*/
|
|
490
|
-
readonly
|
|
455
|
+
readonly filters?: string
|
|
491
456
|
|
|
492
457
|
/**
|
|
493
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>
|
|
@@ -502,13 +467,6 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
502
467
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
503
468
|
*/
|
|
504
469
|
readonly expand?: string
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* 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>
|
|
508
|
-
* @type {string}
|
|
509
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
510
|
-
*/
|
|
511
|
-
readonly filters?: string
|
|
512
470
|
}
|
|
513
471
|
|
|
514
472
|
/**
|
|
@@ -563,6 +521,6 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
563
521
|
* @memberof PaymentRemindersApi
|
|
564
522
|
*/
|
|
565
523
|
public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
|
|
566
|
-
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));
|
|
567
525
|
}
|
|
568
526
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -136,17 +136,14 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
136
136
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
137
137
|
* @summary List payments
|
|
138
138
|
* @param {string} [authorization] Bearer Token
|
|
139
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
140
|
-
* @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.
|
|
141
139
|
* @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, amount, receivedDate, referenceNumber</i>
|
|
142
|
-
* @param {
|
|
140
|
+
* @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, amount, receivedDate, referenceNumber</i>
|
|
143
141
|
* @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, code, amount</i>
|
|
144
142
|
* @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: transactions<i>
|
|
145
|
-
* @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, amount, receivedDate, referenceNumber</i>
|
|
146
143
|
* @param {*} [options] Override http request option.
|
|
147
144
|
* @throws {RequiredError}
|
|
148
145
|
*/
|
|
149
|
-
listPayments: async (authorization?: string,
|
|
146
|
+
listPayments: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
150
147
|
const localVarPath = `/paymentservice/v1/payments`;
|
|
151
148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -165,20 +162,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
165
162
|
// http bearer authentication required
|
|
166
163
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
167
164
|
|
|
168
|
-
if (pageSize !== undefined) {
|
|
169
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (pageToken !== undefined) {
|
|
173
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
165
|
if (filter !== undefined) {
|
|
177
166
|
localVarQueryParameter['filter'] = filter;
|
|
178
167
|
}
|
|
179
168
|
|
|
180
|
-
if (
|
|
181
|
-
localVarQueryParameter['
|
|
169
|
+
if (filters !== undefined) {
|
|
170
|
+
localVarQueryParameter['filters'] = filters;
|
|
182
171
|
}
|
|
183
172
|
|
|
184
173
|
if (order !== undefined) {
|
|
@@ -189,10 +178,6 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
189
178
|
localVarQueryParameter['expand'] = expand;
|
|
190
179
|
}
|
|
191
180
|
|
|
192
|
-
if (filters !== undefined) {
|
|
193
|
-
localVarQueryParameter['filters'] = filters;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
181
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
197
182
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
198
183
|
}
|
|
@@ -248,18 +233,15 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
248
233
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
249
234
|
* @summary List payments
|
|
250
235
|
* @param {string} [authorization] Bearer Token
|
|
251
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
252
|
-
* @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.
|
|
253
236
|
* @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, amount, receivedDate, referenceNumber</i>
|
|
254
|
-
* @param {
|
|
237
|
+
* @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, amount, receivedDate, referenceNumber</i>
|
|
255
238
|
* @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, code, amount</i>
|
|
256
239
|
* @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: transactions<i>
|
|
257
|
-
* @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, amount, receivedDate, referenceNumber</i>
|
|
258
240
|
* @param {*} [options] Override http request option.
|
|
259
241
|
* @throws {RequiredError}
|
|
260
242
|
*/
|
|
261
|
-
async listPayments(authorization?: string,
|
|
262
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization,
|
|
243
|
+
async listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options);
|
|
263
245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
264
246
|
},
|
|
265
247
|
}
|
|
@@ -300,18 +282,15 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
300
282
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
301
283
|
* @summary List payments
|
|
302
284
|
* @param {string} [authorization] Bearer Token
|
|
303
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
304
|
-
* @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.
|
|
305
285
|
* @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, amount, receivedDate, referenceNumber</i>
|
|
306
|
-
* @param {
|
|
286
|
+
* @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, amount, receivedDate, referenceNumber</i>
|
|
307
287
|
* @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, code, amount</i>
|
|
308
288
|
* @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: transactions<i>
|
|
309
|
-
* @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, amount, receivedDate, referenceNumber</i>
|
|
310
289
|
* @param {*} [options] Override http request option.
|
|
311
290
|
* @throws {RequiredError}
|
|
312
291
|
*/
|
|
313
|
-
listPayments(authorization?: string,
|
|
314
|
-
return localVarFp.listPayments(authorization,
|
|
292
|
+
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
293
|
+
return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
315
294
|
},
|
|
316
295
|
};
|
|
317
296
|
};
|
|
@@ -385,20 +364,6 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
385
364
|
*/
|
|
386
365
|
readonly authorization?: string
|
|
387
366
|
|
|
388
|
-
/**
|
|
389
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
390
|
-
* @type {any}
|
|
391
|
-
* @memberof PaymentsApiListPayments
|
|
392
|
-
*/
|
|
393
|
-
readonly pageSize?: any
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* 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.
|
|
397
|
-
* @type {any}
|
|
398
|
-
* @memberof PaymentsApiListPayments
|
|
399
|
-
*/
|
|
400
|
-
readonly pageToken?: any
|
|
401
|
-
|
|
402
367
|
/**
|
|
403
368
|
* 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, amount, receivedDate, referenceNumber</i>
|
|
404
369
|
* @type {string}
|
|
@@ -407,11 +372,11 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
407
372
|
readonly filter?: string
|
|
408
373
|
|
|
409
374
|
/**
|
|
410
|
-
*
|
|
411
|
-
* @type {
|
|
375
|
+
* 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, amount, receivedDate, referenceNumber</i>
|
|
376
|
+
* @type {string}
|
|
412
377
|
* @memberof PaymentsApiListPayments
|
|
413
378
|
*/
|
|
414
|
-
readonly
|
|
379
|
+
readonly filters?: string
|
|
415
380
|
|
|
416
381
|
/**
|
|
417
382
|
* 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, code, amount</i>
|
|
@@ -426,13 +391,6 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
426
391
|
* @memberof PaymentsApiListPayments
|
|
427
392
|
*/
|
|
428
393
|
readonly expand?: string
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* 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, amount, receivedDate, referenceNumber</i>
|
|
432
|
-
* @type {string}
|
|
433
|
-
* @memberof PaymentsApiListPayments
|
|
434
|
-
*/
|
|
435
|
-
readonly filters?: string
|
|
436
394
|
}
|
|
437
395
|
|
|
438
396
|
/**
|
|
@@ -475,6 +433,6 @@ export class PaymentsApi extends BaseAPI {
|
|
|
475
433
|
* @memberof PaymentsApi
|
|
476
434
|
*/
|
|
477
435
|
public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
|
|
478
|
-
return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.
|
|
436
|
+
return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
479
437
|
}
|
|
480
438
|
}
|
package/api/refunds-api.ts
CHANGED
|
@@ -129,17 +129,15 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
129
129
|
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
130
130
|
* @summary List refunds
|
|
131
131
|
* @param {string} [authorization] Bearer Token
|
|
132
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
133
|
-
* @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.
|
|
134
132
|
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
133
|
+
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
135
134
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
136
135
|
* @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, amount</i>
|
|
137
136
|
* @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: refundItems<i>
|
|
138
|
-
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
139
137
|
* @param {*} [options] Override http request option.
|
|
140
138
|
* @throws {RequiredError}
|
|
141
139
|
*/
|
|
142
|
-
listRefunds: async (authorization?: string,
|
|
140
|
+
listRefunds: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
141
|
const localVarPath = `/paymentservice/v1/refunds`;
|
|
144
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -158,18 +156,14 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
158
156
|
// http bearer authentication required
|
|
159
157
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
160
158
|
|
|
161
|
-
if (pageSize !== undefined) {
|
|
162
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (pageToken !== undefined) {
|
|
166
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
159
|
if (filter !== undefined) {
|
|
170
160
|
localVarQueryParameter['filter'] = filter;
|
|
171
161
|
}
|
|
172
162
|
|
|
163
|
+
if (filters !== undefined) {
|
|
164
|
+
localVarQueryParameter['filters'] = filters;
|
|
165
|
+
}
|
|
166
|
+
|
|
173
167
|
if (search !== undefined) {
|
|
174
168
|
localVarQueryParameter['search'] = search;
|
|
175
169
|
}
|
|
@@ -182,10 +176,6 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
182
176
|
localVarQueryParameter['expand'] = expand;
|
|
183
177
|
}
|
|
184
178
|
|
|
185
|
-
if (filters !== undefined) {
|
|
186
|
-
localVarQueryParameter['filters'] = filters;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
179
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
190
180
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
191
181
|
}
|
|
@@ -240,18 +230,16 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
240
230
|
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
241
231
|
* @summary List refunds
|
|
242
232
|
* @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
233
|
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
234
|
+
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
246
235
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
247
236
|
* @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, amount</i>
|
|
248
237
|
* @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: refundItems<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, status, reason, psp, accountCode, invoiceCode</i>
|
|
250
238
|
* @param {*} [options] Override http request option.
|
|
251
239
|
* @throws {RequiredError}
|
|
252
240
|
*/
|
|
253
|
-
async listRefunds(authorization?: string,
|
|
254
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization,
|
|
241
|
+
async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
242
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options);
|
|
255
243
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
256
244
|
},
|
|
257
245
|
}
|
|
@@ -291,18 +279,16 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
291
279
|
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
292
280
|
* @summary List refunds
|
|
293
281
|
* @param {string} [authorization] Bearer Token
|
|
294
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
295
|
-
* @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.
|
|
296
282
|
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
283
|
+
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
297
284
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
298
285
|
* @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, amount</i>
|
|
299
286
|
* @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: refundItems<i>
|
|
300
|
-
* @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, status, reason, psp, accountCode, invoiceCode</i>
|
|
301
287
|
* @param {*} [options] Override http request option.
|
|
302
288
|
* @throws {RequiredError}
|
|
303
289
|
*/
|
|
304
|
-
listRefunds(authorization?: string,
|
|
305
|
-
return localVarFp.listRefunds(authorization,
|
|
290
|
+
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
291
|
+
return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
306
292
|
},
|
|
307
293
|
};
|
|
308
294
|
};
|
|
@@ -370,25 +356,18 @@ export interface RefundsApiListRefundsRequest {
|
|
|
370
356
|
readonly authorization?: string
|
|
371
357
|
|
|
372
358
|
/**
|
|
373
|
-
*
|
|
374
|
-
* @type {
|
|
375
|
-
* @memberof RefundsApiListRefunds
|
|
376
|
-
*/
|
|
377
|
-
readonly pageSize?: any
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* 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.
|
|
381
|
-
* @type {any}
|
|
359
|
+
* 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, status, reason, psp, accountCode, invoiceCode</i>
|
|
360
|
+
* @type {string}
|
|
382
361
|
* @memberof RefundsApiListRefunds
|
|
383
362
|
*/
|
|
384
|
-
readonly
|
|
363
|
+
readonly filter?: string
|
|
385
364
|
|
|
386
365
|
/**
|
|
387
|
-
*
|
|
366
|
+
* 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, status, reason, psp, accountCode, invoiceCode</i>
|
|
388
367
|
* @type {string}
|
|
389
368
|
* @memberof RefundsApiListRefunds
|
|
390
369
|
*/
|
|
391
|
-
readonly
|
|
370
|
+
readonly filters?: string
|
|
392
371
|
|
|
393
372
|
/**
|
|
394
373
|
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
@@ -410,13 +389,6 @@ export interface RefundsApiListRefundsRequest {
|
|
|
410
389
|
* @memberof RefundsApiListRefunds
|
|
411
390
|
*/
|
|
412
391
|
readonly expand?: string
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* 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, status, reason, psp, accountCode, invoiceCode</i>
|
|
416
|
-
* @type {string}
|
|
417
|
-
* @memberof RefundsApiListRefunds
|
|
418
|
-
*/
|
|
419
|
-
readonly filters?: string
|
|
420
392
|
}
|
|
421
393
|
|
|
422
394
|
/**
|
|
@@ -459,6 +431,6 @@ export class RefundsApi extends BaseAPI {
|
|
|
459
431
|
* @memberof RefundsApi
|
|
460
432
|
*/
|
|
461
433
|
public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
|
|
462
|
-
return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.
|
|
434
|
+
return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
463
435
|
}
|
|
464
436
|
}
|