@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
package/api/payment-setup-api.ts
CHANGED
|
@@ -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 { CompletePaymentSetupRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
31
23
|
/**
|
|
32
24
|
* PaymentSetupApi - axios parameter creator
|
|
33
25
|
* @export
|
|
@@ -37,14 +29,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
37
29
|
/**
|
|
38
30
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
39
31
|
* @summary Complete a payment setup
|
|
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
|
-
completePaymentSetup: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('completePaymentSetup', '
|
|
37
|
+
completePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'body' is not null or undefined
|
|
39
|
+
assertParamExists('completePaymentSetup', 'body', body)
|
|
48
40
|
const localVarPath = `/paymentservice/v1/payment-setup/complete`;
|
|
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 PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
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),
|
|
@@ -84,14 +76,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
84
76
|
/**
|
|
85
77
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
86
78
|
* @summary Initiate a payment setup
|
|
87
|
-
* @param {
|
|
79
|
+
* @param {object} body
|
|
88
80
|
* @param {string} [authorization] Bearer Token
|
|
89
81
|
* @param {*} [options] Override http request option.
|
|
90
82
|
* @throws {RequiredError}
|
|
91
83
|
*/
|
|
92
|
-
initiatePaymentSetup: async (
|
|
93
|
-
// verify required parameter '
|
|
94
|
-
assertParamExists('initiatePaymentSetup', '
|
|
84
|
+
initiatePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
85
|
+
// verify required parameter 'body' is not null or undefined
|
|
86
|
+
assertParamExists('initiatePaymentSetup', 'body', body)
|
|
95
87
|
const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
|
|
96
88
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
89
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -121,7 +113,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
121
113
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
114
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
115
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
124
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
116
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
125
117
|
|
|
126
118
|
return {
|
|
127
119
|
url: toPathString(localVarUrlObj),
|
|
@@ -141,25 +133,25 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
|
|
|
141
133
|
/**
|
|
142
134
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
143
135
|
* @summary Complete a payment setup
|
|
144
|
-
* @param {
|
|
136
|
+
* @param {object} body
|
|
145
137
|
* @param {string} [authorization] Bearer Token
|
|
146
138
|
* @param {*} [options] Override http request option.
|
|
147
139
|
* @throws {RequiredError}
|
|
148
140
|
*/
|
|
149
|
-
async completePaymentSetup(
|
|
150
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(
|
|
141
|
+
async completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(body, authorization, options);
|
|
151
143
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
152
144
|
},
|
|
153
145
|
/**
|
|
154
146
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
155
147
|
* @summary Initiate a payment setup
|
|
156
|
-
* @param {
|
|
148
|
+
* @param {object} body
|
|
157
149
|
* @param {string} [authorization] Bearer Token
|
|
158
150
|
* @param {*} [options] Override http request option.
|
|
159
151
|
* @throws {RequiredError}
|
|
160
152
|
*/
|
|
161
|
-
async initiatePaymentSetup(
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(
|
|
153
|
+
async initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options);
|
|
163
155
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
156
|
},
|
|
165
157
|
}
|
|
@@ -175,24 +167,24 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
175
167
|
/**
|
|
176
168
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
177
169
|
* @summary Complete a payment setup
|
|
178
|
-
* @param {
|
|
170
|
+
* @param {object} body
|
|
179
171
|
* @param {string} [authorization] Bearer Token
|
|
180
172
|
* @param {*} [options] Override http request option.
|
|
181
173
|
* @throws {RequiredError}
|
|
182
174
|
*/
|
|
183
|
-
completePaymentSetup(
|
|
184
|
-
return localVarFp.completePaymentSetup(
|
|
175
|
+
completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
176
|
+
return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
185
177
|
},
|
|
186
178
|
/**
|
|
187
179
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
188
180
|
* @summary Initiate a payment setup
|
|
189
|
-
* @param {
|
|
181
|
+
* @param {object} body
|
|
190
182
|
* @param {string} [authorization] Bearer Token
|
|
191
183
|
* @param {*} [options] Override http request option.
|
|
192
184
|
* @throws {RequiredError}
|
|
193
185
|
*/
|
|
194
|
-
initiatePaymentSetup(
|
|
195
|
-
return localVarFp.initiatePaymentSetup(
|
|
186
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
187
|
+
return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
196
188
|
},
|
|
197
189
|
};
|
|
198
190
|
};
|
|
@@ -205,10 +197,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
205
197
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
206
198
|
/**
|
|
207
199
|
*
|
|
208
|
-
* @type {
|
|
200
|
+
* @type {object}
|
|
209
201
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
210
202
|
*/
|
|
211
|
-
readonly
|
|
203
|
+
readonly body: object
|
|
212
204
|
|
|
213
205
|
/**
|
|
214
206
|
* Bearer Token
|
|
@@ -226,10 +218,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
226
218
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
227
219
|
/**
|
|
228
220
|
*
|
|
229
|
-
* @type {
|
|
221
|
+
* @type {object}
|
|
230
222
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
231
223
|
*/
|
|
232
|
-
readonly
|
|
224
|
+
readonly body: object
|
|
233
225
|
|
|
234
226
|
/**
|
|
235
227
|
* Bearer Token
|
|
@@ -255,7 +247,7 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
255
247
|
* @memberof PaymentSetupApi
|
|
256
248
|
*/
|
|
257
249
|
public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
258
|
-
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.
|
|
250
|
+
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
259
251
|
}
|
|
260
252
|
|
|
261
253
|
/**
|
|
@@ -267,6 +259,6 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
267
259
|
* @memberof PaymentSetupApi
|
|
268
260
|
*/
|
|
269
261
|
public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
270
|
-
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.
|
|
262
|
+
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
271
263
|
}
|
|
272
264
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePaymentResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentsResponseClass } from '../models';
|
|
31
25
|
/**
|
|
32
26
|
* PaymentsApi - axios parameter creator
|
|
33
27
|
* @export
|
|
@@ -142,17 +136,14 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
142
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.
|
|
143
137
|
* @summary List payments
|
|
144
138
|
* @param {string} [authorization] Bearer Token
|
|
145
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
146
|
-
* @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.
|
|
147
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>
|
|
148
|
-
* @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>
|
|
149
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>
|
|
150
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>
|
|
151
|
-
* @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>
|
|
152
143
|
* @param {*} [options] Override http request option.
|
|
153
144
|
* @throws {RequiredError}
|
|
154
145
|
*/
|
|
155
|
-
listPayments: async (authorization?: string,
|
|
146
|
+
listPayments: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
156
147
|
const localVarPath = `/paymentservice/v1/payments`;
|
|
157
148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -171,20 +162,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
171
162
|
// http bearer authentication required
|
|
172
163
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
173
164
|
|
|
174
|
-
if (pageSize !== undefined) {
|
|
175
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (pageToken !== undefined) {
|
|
179
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
165
|
if (filter !== undefined) {
|
|
183
166
|
localVarQueryParameter['filter'] = filter;
|
|
184
167
|
}
|
|
185
168
|
|
|
186
|
-
if (
|
|
187
|
-
localVarQueryParameter['
|
|
169
|
+
if (filters !== undefined) {
|
|
170
|
+
localVarQueryParameter['filters'] = filters;
|
|
188
171
|
}
|
|
189
172
|
|
|
190
173
|
if (order !== undefined) {
|
|
@@ -195,10 +178,6 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
195
178
|
localVarQueryParameter['expand'] = expand;
|
|
196
179
|
}
|
|
197
180
|
|
|
198
|
-
if (filters !== undefined) {
|
|
199
|
-
localVarQueryParameter['filters'] = filters;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
181
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
203
182
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
204
183
|
}
|
|
@@ -233,7 +212,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
233
212
|
* @param {*} [options] Override http request option.
|
|
234
213
|
* @throws {RequiredError}
|
|
235
214
|
*/
|
|
236
|
-
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
215
|
+
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
237
216
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
238
217
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
239
218
|
},
|
|
@@ -246,7 +225,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
246
225
|
* @param {*} [options] Override http request option.
|
|
247
226
|
* @throws {RequiredError}
|
|
248
227
|
*/
|
|
249
|
-
async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
228
|
+
async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
250
229
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, options);
|
|
251
230
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
252
231
|
},
|
|
@@ -254,18 +233,15 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
254
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.
|
|
255
234
|
* @summary List payments
|
|
256
235
|
* @param {string} [authorization] Bearer Token
|
|
257
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
258
|
-
* @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.
|
|
259
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>
|
|
260
|
-
* @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>
|
|
261
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>
|
|
262
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>
|
|
263
|
-
* @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>
|
|
264
240
|
* @param {*} [options] Override http request option.
|
|
265
241
|
* @throws {RequiredError}
|
|
266
242
|
*/
|
|
267
|
-
async listPayments(authorization?: string,
|
|
268
|
-
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);
|
|
269
245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
270
246
|
},
|
|
271
247
|
}
|
|
@@ -287,7 +263,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
287
263
|
* @param {*} [options] Override http request option.
|
|
288
264
|
* @throws {RequiredError}
|
|
289
265
|
*/
|
|
290
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
266
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
291
267
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
292
268
|
},
|
|
293
269
|
/**
|
|
@@ -299,25 +275,22 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
299
275
|
* @param {*} [options] Override http request option.
|
|
300
276
|
* @throws {RequiredError}
|
|
301
277
|
*/
|
|
302
|
-
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
278
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
303
279
|
return localVarFp.getPayment(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
304
280
|
},
|
|
305
281
|
/**
|
|
306
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.
|
|
307
283
|
* @summary List payments
|
|
308
284
|
* @param {string} [authorization] Bearer Token
|
|
309
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
|
-
* @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.
|
|
311
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>
|
|
312
|
-
* @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>
|
|
313
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>
|
|
314
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>
|
|
315
|
-
* @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>
|
|
316
289
|
* @param {*} [options] Override http request option.
|
|
317
290
|
* @throws {RequiredError}
|
|
318
291
|
*/
|
|
319
|
-
listPayments(authorization?: string,
|
|
320
|
-
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));
|
|
321
294
|
},
|
|
322
295
|
};
|
|
323
296
|
};
|
|
@@ -391,20 +364,6 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
391
364
|
*/
|
|
392
365
|
readonly authorization?: string
|
|
393
366
|
|
|
394
|
-
/**
|
|
395
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
396
|
-
* @type {any}
|
|
397
|
-
* @memberof PaymentsApiListPayments
|
|
398
|
-
*/
|
|
399
|
-
readonly pageSize?: any
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* 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.
|
|
403
|
-
* @type {any}
|
|
404
|
-
* @memberof PaymentsApiListPayments
|
|
405
|
-
*/
|
|
406
|
-
readonly pageToken?: any
|
|
407
|
-
|
|
408
367
|
/**
|
|
409
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>
|
|
410
369
|
* @type {string}
|
|
@@ -413,11 +372,11 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
413
372
|
readonly filter?: string
|
|
414
373
|
|
|
415
374
|
/**
|
|
416
|
-
*
|
|
417
|
-
* @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}
|
|
418
377
|
* @memberof PaymentsApiListPayments
|
|
419
378
|
*/
|
|
420
|
-
readonly
|
|
379
|
+
readonly filters?: string
|
|
421
380
|
|
|
422
381
|
/**
|
|
423
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>
|
|
@@ -432,13 +391,6 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
432
391
|
* @memberof PaymentsApiListPayments
|
|
433
392
|
*/
|
|
434
393
|
readonly expand?: string
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* 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>
|
|
438
|
-
* @type {string}
|
|
439
|
-
* @memberof PaymentsApiListPayments
|
|
440
|
-
*/
|
|
441
|
-
readonly filters?: string
|
|
442
394
|
}
|
|
443
395
|
|
|
444
396
|
/**
|
|
@@ -481,6 +433,6 @@ export class PaymentsApi extends BaseAPI {
|
|
|
481
433
|
* @memberof PaymentsApi
|
|
482
434
|
*/
|
|
483
435
|
public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
|
|
484
|
-
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));
|
|
485
437
|
}
|
|
486
438
|
}
|
package/api/refunds-api.ts
CHANGED
|
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateRefundRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreateRefundResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetRefundResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListRefundsResponseClass } from '../models';
|
|
31
25
|
/**
|
|
32
26
|
* RefundsApi - axios parameter creator
|
|
33
27
|
* @export
|
|
@@ -135,17 +129,15 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
135
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.
|
|
136
130
|
* @summary List refunds
|
|
137
131
|
* @param {string} [authorization] Bearer Token
|
|
138
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
139
|
-
* @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.
|
|
140
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>
|
|
141
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>
|
|
142
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>
|
|
143
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>
|
|
144
|
-
* @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>
|
|
145
137
|
* @param {*} [options] Override http request option.
|
|
146
138
|
* @throws {RequiredError}
|
|
147
139
|
*/
|
|
148
|
-
listRefunds: async (authorization?: string,
|
|
140
|
+
listRefunds: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
149
141
|
const localVarPath = `/paymentservice/v1/refunds`;
|
|
150
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -164,18 +156,14 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
164
156
|
// http bearer authentication required
|
|
165
157
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
158
|
|
|
167
|
-
if (pageSize !== undefined) {
|
|
168
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (pageToken !== undefined) {
|
|
172
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
159
|
if (filter !== undefined) {
|
|
176
160
|
localVarQueryParameter['filter'] = filter;
|
|
177
161
|
}
|
|
178
162
|
|
|
163
|
+
if (filters !== undefined) {
|
|
164
|
+
localVarQueryParameter['filters'] = filters;
|
|
165
|
+
}
|
|
166
|
+
|
|
179
167
|
if (search !== undefined) {
|
|
180
168
|
localVarQueryParameter['search'] = search;
|
|
181
169
|
}
|
|
@@ -188,10 +176,6 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
188
176
|
localVarQueryParameter['expand'] = expand;
|
|
189
177
|
}
|
|
190
178
|
|
|
191
|
-
if (filters !== undefined) {
|
|
192
|
-
localVarQueryParameter['filters'] = filters;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
179
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
196
180
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
197
181
|
}
|
|
@@ -225,7 +209,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
225
209
|
* @param {*} [options] Override http request option.
|
|
226
210
|
* @throws {RequiredError}
|
|
227
211
|
*/
|
|
228
|
-
async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
212
|
+
async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
229
213
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRefund(createRefundRequestDto, authorization, options);
|
|
230
214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
231
215
|
},
|
|
@@ -238,7 +222,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
238
222
|
* @param {*} [options] Override http request option.
|
|
239
223
|
* @throws {RequiredError}
|
|
240
224
|
*/
|
|
241
|
-
async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
225
|
+
async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
242
226
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, authorization, expand, options);
|
|
243
227
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
244
228
|
},
|
|
@@ -246,18 +230,16 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
246
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.
|
|
247
231
|
* @summary List refunds
|
|
248
232
|
* @param {string} [authorization] Bearer Token
|
|
249
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
250
|
-
* @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.
|
|
251
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>
|
|
252
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>
|
|
253
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>
|
|
254
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>
|
|
255
|
-
* @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>
|
|
256
238
|
* @param {*} [options] Override http request option.
|
|
257
239
|
* @throws {RequiredError}
|
|
258
240
|
*/
|
|
259
|
-
async listRefunds(authorization?: string,
|
|
260
|
-
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);
|
|
261
243
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
262
244
|
},
|
|
263
245
|
}
|
|
@@ -278,7 +260,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
278
260
|
* @param {*} [options] Override http request option.
|
|
279
261
|
* @throws {RequiredError}
|
|
280
262
|
*/
|
|
281
|
-
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
263
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
282
264
|
return localVarFp.createRefund(createRefundRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
283
265
|
},
|
|
284
266
|
/**
|
|
@@ -290,25 +272,23 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
290
272
|
* @param {*} [options] Override http request option.
|
|
291
273
|
* @throws {RequiredError}
|
|
292
274
|
*/
|
|
293
|
-
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
275
|
+
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
294
276
|
return localVarFp.getRefund(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
295
277
|
},
|
|
296
278
|
/**
|
|
297
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.
|
|
298
280
|
* @summary List refunds
|
|
299
281
|
* @param {string} [authorization] Bearer Token
|
|
300
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
301
|
-
* @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.
|
|
302
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>
|
|
303
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>
|
|
304
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>
|
|
305
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>
|
|
306
|
-
* @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>
|
|
307
287
|
* @param {*} [options] Override http request option.
|
|
308
288
|
* @throws {RequiredError}
|
|
309
289
|
*/
|
|
310
|
-
listRefunds(authorization?: string,
|
|
311
|
-
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));
|
|
312
292
|
},
|
|
313
293
|
};
|
|
314
294
|
};
|
|
@@ -376,25 +356,18 @@ export interface RefundsApiListRefundsRequest {
|
|
|
376
356
|
readonly authorization?: string
|
|
377
357
|
|
|
378
358
|
/**
|
|
379
|
-
*
|
|
380
|
-
* @type {
|
|
381
|
-
* @memberof RefundsApiListRefunds
|
|
382
|
-
*/
|
|
383
|
-
readonly pageSize?: any
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* 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.
|
|
387
|
-
* @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}
|
|
388
361
|
* @memberof RefundsApiListRefunds
|
|
389
362
|
*/
|
|
390
|
-
readonly
|
|
363
|
+
readonly filter?: string
|
|
391
364
|
|
|
392
365
|
/**
|
|
393
|
-
*
|
|
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>
|
|
394
367
|
* @type {string}
|
|
395
368
|
* @memberof RefundsApiListRefunds
|
|
396
369
|
*/
|
|
397
|
-
readonly
|
|
370
|
+
readonly filters?: string
|
|
398
371
|
|
|
399
372
|
/**
|
|
400
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>
|
|
@@ -416,13 +389,6 @@ export interface RefundsApiListRefundsRequest {
|
|
|
416
389
|
* @memberof RefundsApiListRefunds
|
|
417
390
|
*/
|
|
418
391
|
readonly expand?: string
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* 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>
|
|
422
|
-
* @type {string}
|
|
423
|
-
* @memberof RefundsApiListRefunds
|
|
424
|
-
*/
|
|
425
|
-
readonly filters?: string
|
|
426
392
|
}
|
|
427
393
|
|
|
428
394
|
/**
|
|
@@ -465,6 +431,6 @@ export class RefundsApi extends BaseAPI {
|
|
|
465
431
|
* @memberof RefundsApi
|
|
466
432
|
*/
|
|
467
433
|
public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
|
|
468
|
-
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));
|
|
469
435
|
}
|
|
470
436
|
}
|