@emilgroup/payment-sdk 1.4.1-beta.30 → 1.4.1-beta.31
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 +5 -15
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +34 -38
- package/api/bank-transaction-api.ts +73 -77
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/payment-methods-api.ts +52 -70
- package/api/payment-reminders-api.ts +63 -49
- package/api/payments-api.ts +52 -70
- package/api/refunds-api.ts +76 -88
- package/api/tenant-bank-account-api.ts +79 -63
- package/api/webhooks-api.ts +16 -12
- package/api.ts +2 -2
- package/dist/api/bank-accounts-api.d.ts +37 -39
- package/dist/api/bank-accounts-api.js +18 -18
- package/dist/api/bank-transaction-api.d.ts +77 -79
- package/dist/api/bank-transaction-api.js +45 -45
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/payment-methods-api.d.ts +49 -58
- package/dist/api/payment-methods-api.js +32 -42
- package/dist/api/payment-reminders-api.d.ts +55 -46
- package/dist/api/payment-reminders-api.js +40 -34
- package/dist/api/payments-api.d.ts +49 -58
- package/dist/api/payments-api.js +32 -42
- package/dist/api/refunds-api.d.ts +76 -76
- package/dist/api/refunds-api.js +51 -49
- package/dist/api/tenant-bank-account-api.d.ts +71 -61
- package/dist/api/tenant-bank-account-api.js +51 -45
- package/dist/api/webhooks-api.d.ts +16 -12
- package/dist/api/webhooks-api.js +14 -10
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +20 -34
- package/dist/models/create-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/get-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/index.d.ts +4 -14
- package/dist/models/index.js +4 -14
- package/dist/models/list-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +10 -10
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/{get-bank-account-response-class.d.ts → update-tenant-bank-account-response-class.d.ts} +7 -7
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +20 -34
- package/models/create-tenant-bank-account-response-class.ts +4 -4
- package/models/get-tenant-bank-account-response-class.ts +4 -4
- package/models/index.ts +4 -14
- package/models/list-tenant-bank-account-response-class.ts +5 -5
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +10 -10
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/{create-refund-response-class.ts → update-tenant-bank-account-response-class.ts} +7 -7
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -73
- package/dist/models/create-refund-response-class.d.ts +0 -25
- 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-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.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-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-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.d.ts +0 -105
- package/dist/models/refund-class.js +0 -29
- package/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-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.ts +0 -79
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class.ts +0 -115
- package/models/transaction-class.ts +0 -60
- package/models/update-bank-account-response-class.ts +0 -31
- /package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +0 -0
- /package/dist/models/{bank-transaction-response-class.js → tenant-bank-account-class-without-expand-properties.js} +0 -0
- /package/dist/models/{create-refund-response-class.js → tenant-bank-account-class.js} +0 -0
- /package/dist/models/{get-bank-account-response-class.js → update-tenant-bank-account-response-class.js} +0 -0
package/api/payments-api.ts
CHANGED
|
@@ -29,7 +29,7 @@ import { CreatePaymentRequestDto } from '../models';
|
|
|
29
29
|
export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
30
|
return {
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* This will create a payment for a specified account. This function is idempotent.
|
|
33
33
|
* @summary Create the payment
|
|
34
34
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
35
35
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
@@ -85,20 +85,15 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
85
85
|
/**
|
|
86
86
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
87
87
|
* @summary Retrieve the payment
|
|
88
|
-
* @param {string} code
|
|
89
|
-
* @param {string} code2 Unique identifier for the object.
|
|
90
|
-
* @param {string} expand Fields to expand response by
|
|
88
|
+
* @param {string} code Unique identifier for the object.
|
|
91
89
|
* @param {string} [authorization] Bearer Token
|
|
90
|
+
* @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>
|
|
92
91
|
* @param {*} [options] Override http request option.
|
|
93
92
|
* @throws {RequiredError}
|
|
94
93
|
*/
|
|
95
|
-
getPayment: async (code: string,
|
|
94
|
+
getPayment: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
95
|
// verify required parameter 'code' is not null or undefined
|
|
97
96
|
assertParamExists('getPayment', 'code', code)
|
|
98
|
-
// verify required parameter 'code2' is not null or undefined
|
|
99
|
-
assertParamExists('getPayment', 'code2', code2)
|
|
100
|
-
// verify required parameter 'expand' is not null or undefined
|
|
101
|
-
assertParamExists('getPayment', 'expand', expand)
|
|
102
97
|
const localVarPath = `/paymentservice/v1/payments/{code}`
|
|
103
98
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
104
99
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -118,10 +113,6 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
118
113
|
// http bearer authentication required
|
|
119
114
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
115
|
|
|
121
|
-
if (code2 !== undefined) {
|
|
122
|
-
localVarQueryParameter['code'] = code2;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
116
|
if (expand !== undefined) {
|
|
126
117
|
localVarQueryParameter['expand'] = expand;
|
|
127
118
|
}
|
|
@@ -142,20 +133,20 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
142
133
|
};
|
|
143
134
|
},
|
|
144
135
|
/**
|
|
145
|
-
* Returns a list of payments you have previously created.
|
|
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.
|
|
146
137
|
* @summary List payments
|
|
147
138
|
* @param {string} [authorization] Bearer Token
|
|
148
139
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
149
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.
|
|
150
|
-
* @param {
|
|
141
|
+
* @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>
|
|
151
142
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {
|
|
154
|
-
* @param {
|
|
143
|
+
* @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
|
+
* @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>
|
|
155
146
|
* @param {*} [options] Override http request option.
|
|
156
147
|
* @throws {RequiredError}
|
|
157
148
|
*/
|
|
158
|
-
listPayments: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
149
|
+
listPayments: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
150
|
const localVarPath = `/paymentservice/v1/payments`;
|
|
160
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -228,7 +219,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
228
219
|
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
|
|
229
220
|
return {
|
|
230
221
|
/**
|
|
231
|
-
*
|
|
222
|
+
* This will create a payment for a specified account. This function is idempotent.
|
|
232
223
|
* @summary Create the payment
|
|
233
224
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
234
225
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
@@ -243,32 +234,31 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
243
234
|
/**
|
|
244
235
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
245
236
|
* @summary Retrieve the payment
|
|
246
|
-
* @param {string} code
|
|
247
|
-
* @param {string} code2 Unique identifier for the object.
|
|
248
|
-
* @param {string} expand Fields to expand response by
|
|
237
|
+
* @param {string} code Unique identifier for the object.
|
|
249
238
|
* @param {string} [authorization] Bearer Token
|
|
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>
|
|
250
240
|
* @param {*} [options] Override http request option.
|
|
251
241
|
* @throws {RequiredError}
|
|
252
242
|
*/
|
|
253
|
-
async getPayment(code: string,
|
|
254
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code,
|
|
243
|
+
async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, options);
|
|
255
245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
256
246
|
},
|
|
257
247
|
/**
|
|
258
|
-
* Returns a list of payments you have previously created.
|
|
248
|
+
* 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.
|
|
259
249
|
* @summary List payments
|
|
260
250
|
* @param {string} [authorization] Bearer Token
|
|
261
251
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
262
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.
|
|
263
|
-
* @param {
|
|
253
|
+
* @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>
|
|
264
254
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
265
|
-
* @param {
|
|
266
|
-
* @param {
|
|
267
|
-
* @param {
|
|
255
|
+
* @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
|
+
* @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>
|
|
268
258
|
* @param {*} [options] Override http request option.
|
|
269
259
|
* @throws {RequiredError}
|
|
270
260
|
*/
|
|
271
|
-
async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
261
|
+
async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
272
262
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
273
263
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
274
264
|
},
|
|
@@ -283,7 +273,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
283
273
|
const localVarFp = PaymentsApiFp(configuration)
|
|
284
274
|
return {
|
|
285
275
|
/**
|
|
286
|
-
*
|
|
276
|
+
* This will create a payment for a specified account. This function is idempotent.
|
|
287
277
|
* @summary Create the payment
|
|
288
278
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
289
279
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
@@ -297,31 +287,30 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
297
287
|
/**
|
|
298
288
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
299
289
|
* @summary Retrieve the payment
|
|
300
|
-
* @param {string} code
|
|
301
|
-
* @param {string} code2 Unique identifier for the object.
|
|
302
|
-
* @param {string} expand Fields to expand response by
|
|
290
|
+
* @param {string} code Unique identifier for the object.
|
|
303
291
|
* @param {string} [authorization] Bearer Token
|
|
292
|
+
* @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>
|
|
304
293
|
* @param {*} [options] Override http request option.
|
|
305
294
|
* @throws {RequiredError}
|
|
306
295
|
*/
|
|
307
|
-
getPayment(code: string,
|
|
308
|
-
return localVarFp.getPayment(code,
|
|
296
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
297
|
+
return localVarFp.getPayment(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
309
298
|
},
|
|
310
299
|
/**
|
|
311
|
-
* Returns a list of payments you have previously created.
|
|
300
|
+
* 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.
|
|
312
301
|
* @summary List payments
|
|
313
302
|
* @param {string} [authorization] Bearer Token
|
|
314
303
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
315
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.
|
|
316
|
-
* @param {
|
|
305
|
+
* @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>
|
|
317
306
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
318
|
-
* @param {
|
|
319
|
-
* @param {
|
|
320
|
-
* @param {
|
|
307
|
+
* @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
|
+
* @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>
|
|
321
310
|
* @param {*} [options] Override http request option.
|
|
322
311
|
* @throws {RequiredError}
|
|
323
312
|
*/
|
|
324
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
313
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
325
314
|
return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
326
315
|
},
|
|
327
316
|
};
|
|
@@ -361,33 +350,26 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
361
350
|
* @interface PaymentsApiGetPaymentRequest
|
|
362
351
|
*/
|
|
363
352
|
export interface PaymentsApiGetPaymentRequest {
|
|
364
|
-
/**
|
|
365
|
-
*
|
|
366
|
-
* @type {string}
|
|
367
|
-
* @memberof PaymentsApiGetPayment
|
|
368
|
-
*/
|
|
369
|
-
readonly code: string
|
|
370
|
-
|
|
371
353
|
/**
|
|
372
354
|
* Unique identifier for the object.
|
|
373
355
|
* @type {string}
|
|
374
356
|
* @memberof PaymentsApiGetPayment
|
|
375
357
|
*/
|
|
376
|
-
readonly
|
|
358
|
+
readonly code: string
|
|
377
359
|
|
|
378
360
|
/**
|
|
379
|
-
*
|
|
361
|
+
* Bearer Token
|
|
380
362
|
* @type {string}
|
|
381
363
|
* @memberof PaymentsApiGetPayment
|
|
382
364
|
*/
|
|
383
|
-
readonly
|
|
365
|
+
readonly authorization?: string
|
|
384
366
|
|
|
385
367
|
/**
|
|
386
|
-
*
|
|
368
|
+
* 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>
|
|
387
369
|
* @type {string}
|
|
388
370
|
* @memberof PaymentsApiGetPayment
|
|
389
371
|
*/
|
|
390
|
-
readonly
|
|
372
|
+
readonly expand?: string
|
|
391
373
|
}
|
|
392
374
|
|
|
393
375
|
/**
|
|
@@ -418,11 +400,11 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
418
400
|
readonly pageToken?: any
|
|
419
401
|
|
|
420
402
|
/**
|
|
421
|
-
* Filter the response by one or multiple fields.
|
|
422
|
-
* @type {
|
|
403
|
+
* 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
|
+
* @type {string}
|
|
423
405
|
* @memberof PaymentsApiListPayments
|
|
424
406
|
*/
|
|
425
|
-
readonly filter?:
|
|
407
|
+
readonly filter?: string
|
|
426
408
|
|
|
427
409
|
/**
|
|
428
410
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
@@ -432,25 +414,25 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
432
414
|
readonly search?: any
|
|
433
415
|
|
|
434
416
|
/**
|
|
435
|
-
*
|
|
436
|
-
* @type {
|
|
417
|
+
* 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>
|
|
418
|
+
* @type {string}
|
|
437
419
|
* @memberof PaymentsApiListPayments
|
|
438
420
|
*/
|
|
439
|
-
readonly order?:
|
|
421
|
+
readonly order?: string
|
|
440
422
|
|
|
441
423
|
/**
|
|
442
|
-
*
|
|
443
|
-
* @type {
|
|
424
|
+
* 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>
|
|
425
|
+
* @type {string}
|
|
444
426
|
* @memberof PaymentsApiListPayments
|
|
445
427
|
*/
|
|
446
|
-
readonly expand?:
|
|
428
|
+
readonly expand?: string
|
|
447
429
|
|
|
448
430
|
/**
|
|
449
|
-
* Filters the response by one or multiple fields.
|
|
450
|
-
* @type {
|
|
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}
|
|
451
433
|
* @memberof PaymentsApiListPayments
|
|
452
434
|
*/
|
|
453
|
-
readonly filters?:
|
|
435
|
+
readonly filters?: string
|
|
454
436
|
}
|
|
455
437
|
|
|
456
438
|
/**
|
|
@@ -461,7 +443,7 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
461
443
|
*/
|
|
462
444
|
export class PaymentsApi extends BaseAPI {
|
|
463
445
|
/**
|
|
464
|
-
*
|
|
446
|
+
* This will create a payment for a specified account. This function is idempotent.
|
|
465
447
|
* @summary Create the payment
|
|
466
448
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
467
449
|
* @param {*} [options] Override http request option.
|
|
@@ -481,11 +463,11 @@ export class PaymentsApi extends BaseAPI {
|
|
|
481
463
|
* @memberof PaymentsApi
|
|
482
464
|
*/
|
|
483
465
|
public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
|
|
484
|
-
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
466
|
+
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
485
467
|
}
|
|
486
468
|
|
|
487
469
|
/**
|
|
488
|
-
* Returns a list of payments you have previously created.
|
|
470
|
+
* 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.
|
|
489
471
|
* @summary List payments
|
|
490
472
|
* @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
|
|
491
473
|
* @param {*} [options] Override http request option.
|