@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.5
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 -35
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +16 -20
- package/api/bank-transaction-api.ts +2 -204
- package/api/payment-methods-api.ts +37 -41
- package/api/payment-reminders-api.ts +8 -12
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +25 -27
- package/api.ts +0 -2
- package/dist/api/bank-accounts-api.d.ts +12 -14
- package/dist/api/bank-accounts-api.js +12 -12
- package/dist/api/bank-transaction-api.d.ts +3 -113
- package/dist/api/bank-transaction-api.js +0 -184
- package/dist/api/payment-methods-api.d.ts +27 -31
- package/dist/api/payment-methods-api.js +28 -24
- package/dist/api/payment-reminders-api.d.ts +12 -14
- 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 +21 -24
- package/dist/api/payments-api.js +16 -12
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/bank-transaction-response-class.d.ts +6 -0
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +0 -34
- package/dist/models/index.js +0 -34
- 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-response-class.ts +6 -0
- package/models/create-payment-request-dto.ts +3 -3
- package/models/get-request-dto.ts +1 -1
- package/models/index.ts +0 -34
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/api/refunds-api.ts +0 -474
- package/dist/api/refunds-api.d.ts +0 -269
- package/dist/api/refunds-api.js +0 -447
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-request-dto.d.ts +0 -24
- package/dist/models/create-refund-request-dto.js +0 -15
- 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/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/refund-class.d.ts +0 -104
- package/dist/models/refund-class.js +0 -28
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -36
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-request-dto.ts +0 -30
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/refund-class.ts +0 -114
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
package/.openapi-generator/FILES
CHANGED
|
@@ -10,7 +10,6 @@ api/payment-methods-api.ts
|
|
|
10
10
|
api/payment-reminders-api.ts
|
|
11
11
|
api/payment-setup-api.ts
|
|
12
12
|
api/payments-api.ts
|
|
13
|
-
api/refunds-api.ts
|
|
14
13
|
api/tenant-bank-account-api.ts
|
|
15
14
|
api/webhooks-api.ts
|
|
16
15
|
base.ts
|
|
@@ -18,52 +17,18 @@ common.ts
|
|
|
18
17
|
configuration.ts
|
|
19
18
|
git_push.sh
|
|
20
19
|
index.ts
|
|
21
|
-
models/bank-account-class.ts
|
|
22
20
|
models/bank-transaction-response-class.ts
|
|
23
|
-
models/billing-profile-dto.ts
|
|
24
|
-
models/billing-profile-limited-response-dto.ts
|
|
25
|
-
models/complete-braintree-payment-setup-request-dto.ts
|
|
26
|
-
models/complete-payment-setup-request-dto.ts
|
|
27
|
-
models/complete-payment-setup-response-class.ts
|
|
28
|
-
models/complete-stripe-payment-setup-request-dto.ts
|
|
29
|
-
models/create-bank-account-request-dto.ts
|
|
30
|
-
models/create-payment-method-response-class.ts
|
|
31
21
|
models/create-payment-reminder-request-dto.ts
|
|
32
22
|
models/create-payment-request-dto.ts
|
|
33
|
-
models/create-payment-response-class.ts
|
|
34
|
-
models/create-psp-payment-method-request-dto.ts
|
|
35
|
-
models/create-refund-request-dto.ts
|
|
36
|
-
models/create-refund-response-class.ts
|
|
37
23
|
models/create-tenant-bank-account-request-dto.ts
|
|
38
24
|
models/deactivate-payment-reminder-request-dto.ts
|
|
39
|
-
models/deactivate-payment-reminder-response-class.ts
|
|
40
25
|
models/get-bank-transactions-response-class.ts
|
|
41
|
-
models/get-payment-method-response-class.ts
|
|
42
|
-
models/get-payment-response-class.ts
|
|
43
|
-
models/get-refund-response-class.ts
|
|
44
26
|
models/get-request-dto.ts
|
|
45
27
|
models/get-tenant-bank-account-response-class.ts
|
|
46
28
|
models/index.ts
|
|
47
|
-
models/initiate-braintree-payment-setup-request-dto.ts
|
|
48
|
-
models/initiate-braintree-payment-setup-response-class.ts
|
|
49
|
-
models/initiate-payment-setup-request-dto.ts
|
|
50
|
-
models/initiate-payment-setup-response-class.ts
|
|
51
|
-
models/initiate-stripe-payment-setup-request-dto.ts
|
|
52
|
-
models/initiate-stripe-payment-setup-response-class.ts
|
|
53
29
|
models/inline-response200.ts
|
|
54
30
|
models/inline-response503.ts
|
|
55
|
-
models/list-bank-accounts-response-class.ts
|
|
56
31
|
models/list-bank-transactions-response-class.ts
|
|
57
|
-
models/list-payment-methods-response-class.ts
|
|
58
|
-
models/list-payment-reminders-response-class.ts
|
|
59
|
-
models/list-payments-response-class.ts
|
|
60
|
-
models/list-refunds-response-class.ts
|
|
61
|
-
models/payment-class.ts
|
|
62
|
-
models/payment-method-class.ts
|
|
63
|
-
models/payment-reminder-class.ts
|
|
64
|
-
models/refund-class.ts
|
|
65
|
-
models/sepa-direct-dto.ts
|
|
66
|
-
models/symphony-profile-limited-response-dto.ts
|
|
67
32
|
models/tenant-bank-account-response-class.ts
|
|
68
33
|
models/transaction-class.ts
|
|
69
34
|
models/update-tenant-bank-account-rest-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.4.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.5 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.4.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.4.1-beta.5
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -20,10 +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 { CreateBankAccountRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { ListBankAccountsResponseClass } from '../models';
|
|
27
23
|
/**
|
|
28
24
|
* BankAccountsApi - axios parameter creator
|
|
29
25
|
* @export
|
|
@@ -33,14 +29,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
33
29
|
/**
|
|
34
30
|
* Creates a bank account for a specified account.
|
|
35
31
|
* @summary Create a bank account
|
|
36
|
-
* @param {
|
|
32
|
+
* @param {object} body
|
|
37
33
|
* @param {string} [authorization] Bearer Token
|
|
38
34
|
* @param {*} [options] Override http request option.
|
|
39
35
|
* @throws {RequiredError}
|
|
40
36
|
*/
|
|
41
|
-
createBankAccount: async (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('createBankAccount', '
|
|
37
|
+
createBankAccount: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'body' is not null or undefined
|
|
39
|
+
assertParamExists('createBankAccount', 'body', body)
|
|
44
40
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
45
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -70,7 +66,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
70
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
68
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
74
70
|
|
|
75
71
|
return {
|
|
76
72
|
url: toPathString(localVarUrlObj),
|
|
@@ -166,13 +162,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
166
162
|
/**
|
|
167
163
|
* Creates a bank account for a specified account.
|
|
168
164
|
* @summary Create a bank account
|
|
169
|
-
* @param {
|
|
165
|
+
* @param {object} body
|
|
170
166
|
* @param {string} [authorization] Bearer Token
|
|
171
167
|
* @param {*} [options] Override http request option.
|
|
172
168
|
* @throws {RequiredError}
|
|
173
169
|
*/
|
|
174
|
-
async createBankAccount(
|
|
175
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(
|
|
170
|
+
async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
171
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
|
|
176
172
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
177
173
|
},
|
|
178
174
|
/**
|
|
@@ -189,7 +185,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
189
185
|
* @param {*} [options] Override http request option.
|
|
190
186
|
* @throws {RequiredError}
|
|
191
187
|
*/
|
|
192
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
188
|
+
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
193
189
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
194
190
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
195
191
|
},
|
|
@@ -206,13 +202,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
206
202
|
/**
|
|
207
203
|
* Creates a bank account for a specified account.
|
|
208
204
|
* @summary Create a bank account
|
|
209
|
-
* @param {
|
|
205
|
+
* @param {object} body
|
|
210
206
|
* @param {string} [authorization] Bearer Token
|
|
211
207
|
* @param {*} [options] Override http request option.
|
|
212
208
|
* @throws {RequiredError}
|
|
213
209
|
*/
|
|
214
|
-
createBankAccount(
|
|
215
|
-
return localVarFp.createBankAccount(
|
|
210
|
+
createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
211
|
+
return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
|
|
216
212
|
},
|
|
217
213
|
/**
|
|
218
214
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -228,7 +224,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
228
224
|
* @param {*} [options] Override http request option.
|
|
229
225
|
* @throws {RequiredError}
|
|
230
226
|
*/
|
|
231
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
227
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
232
228
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
233
229
|
},
|
|
234
230
|
};
|
|
@@ -242,10 +238,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
242
238
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
243
239
|
/**
|
|
244
240
|
*
|
|
245
|
-
* @type {
|
|
241
|
+
* @type {object}
|
|
246
242
|
* @memberof BankAccountsApiCreateBankAccount
|
|
247
243
|
*/
|
|
248
|
-
readonly
|
|
244
|
+
readonly body: object
|
|
249
245
|
|
|
250
246
|
/**
|
|
251
247
|
* Bearer Token
|
|
@@ -334,7 +330,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
334
330
|
* @memberof BankAccountsApi
|
|
335
331
|
*/
|
|
336
332
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
337
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
333
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
338
334
|
}
|
|
339
335
|
|
|
340
336
|
/**
|
|
@@ -130,51 +130,6 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
130
130
|
options: localVarRequestOptions,
|
|
131
131
|
};
|
|
132
132
|
},
|
|
133
|
-
/**
|
|
134
|
-
* Links a bank transaction with an invoice
|
|
135
|
-
* @summary Link Bank Transaction
|
|
136
|
-
* @param {string} code Code of the bank transaction to link
|
|
137
|
-
* @param {string} [authorization] Bearer Token
|
|
138
|
-
* @param {*} [options] Override http request option.
|
|
139
|
-
* @throws {RequiredError}
|
|
140
|
-
*/
|
|
141
|
-
linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
|
-
// verify required parameter 'code' is not null or undefined
|
|
143
|
-
assertParamExists('linkBankTransaction', 'code', code)
|
|
144
|
-
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
145
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
146
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
148
|
-
let baseOptions;
|
|
149
|
-
let baseAccessToken;
|
|
150
|
-
if (configuration) {
|
|
151
|
-
baseOptions = configuration.baseOptions;
|
|
152
|
-
baseAccessToken = configuration.accessToken;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
156
|
-
const localVarHeaderParameter = {} as any;
|
|
157
|
-
const localVarQueryParameter = {} as any;
|
|
158
|
-
|
|
159
|
-
// authentication bearer required
|
|
160
|
-
// http bearer authentication required
|
|
161
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
162
|
-
|
|
163
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
164
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
172
|
-
|
|
173
|
-
return {
|
|
174
|
-
url: toPathString(localVarUrlObj),
|
|
175
|
-
options: localVarRequestOptions,
|
|
176
|
-
};
|
|
177
|
-
},
|
|
178
133
|
/**
|
|
179
134
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
180
135
|
* @summary List bank transactions
|
|
@@ -242,51 +197,6 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
242
197
|
|
|
243
198
|
|
|
244
199
|
|
|
245
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
248
|
-
|
|
249
|
-
return {
|
|
250
|
-
url: toPathString(localVarUrlObj),
|
|
251
|
-
options: localVarRequestOptions,
|
|
252
|
-
};
|
|
253
|
-
},
|
|
254
|
-
/**
|
|
255
|
-
* Unlinks an already linked bank transaction
|
|
256
|
-
* @summary Unlink Bank Transaction
|
|
257
|
-
* @param {string} code Code of the bank transaction to unlink
|
|
258
|
-
* @param {string} [authorization] Bearer Token
|
|
259
|
-
* @param {*} [options] Override http request option.
|
|
260
|
-
* @throws {RequiredError}
|
|
261
|
-
*/
|
|
262
|
-
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
-
// verify required parameter 'code' is not null or undefined
|
|
264
|
-
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
265
|
-
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
266
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
269
|
-
let baseOptions;
|
|
270
|
-
let baseAccessToken;
|
|
271
|
-
if (configuration) {
|
|
272
|
-
baseOptions = configuration.baseOptions;
|
|
273
|
-
baseAccessToken = configuration.accessToken;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
277
|
-
const localVarHeaderParameter = {} as any;
|
|
278
|
-
const localVarQueryParameter = {} as any;
|
|
279
|
-
|
|
280
|
-
// authentication bearer required
|
|
281
|
-
// http bearer authentication required
|
|
282
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
283
|
-
|
|
284
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
285
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
200
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
291
201
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
202
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -331,18 +241,6 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
331
241
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(authorization, file, options);
|
|
332
242
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
243
|
},
|
|
334
|
-
/**
|
|
335
|
-
* Links a bank transaction with an invoice
|
|
336
|
-
* @summary Link Bank Transaction
|
|
337
|
-
* @param {string} code Code of the bank transaction to link
|
|
338
|
-
* @param {string} [authorization] Bearer Token
|
|
339
|
-
* @param {*} [options] Override http request option.
|
|
340
|
-
* @throws {RequiredError}
|
|
341
|
-
*/
|
|
342
|
-
async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
343
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
|
|
344
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
|
-
},
|
|
346
244
|
/**
|
|
347
245
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
348
246
|
* @summary List bank transactions
|
|
@@ -357,22 +255,10 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
357
255
|
* @param {*} [options] Override http request option.
|
|
358
256
|
* @throws {RequiredError}
|
|
359
257
|
*/
|
|
360
|
-
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
258
|
+
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
361
259
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
362
260
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
261
|
},
|
|
364
|
-
/**
|
|
365
|
-
* Unlinks an already linked bank transaction
|
|
366
|
-
* @summary Unlink Bank Transaction
|
|
367
|
-
* @param {string} code Code of the bank transaction to unlink
|
|
368
|
-
* @param {string} [authorization] Bearer Token
|
|
369
|
-
* @param {*} [options] Override http request option.
|
|
370
|
-
* @throws {RequiredError}
|
|
371
|
-
*/
|
|
372
|
-
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
373
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
374
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
|
-
},
|
|
376
262
|
}
|
|
377
263
|
};
|
|
378
264
|
|
|
@@ -406,17 +292,6 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
406
292
|
importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
407
293
|
return localVarFp.importBankTransactions(authorization, file, options).then((request) => request(axios, basePath));
|
|
408
294
|
},
|
|
409
|
-
/**
|
|
410
|
-
* Links a bank transaction with an invoice
|
|
411
|
-
* @summary Link Bank Transaction
|
|
412
|
-
* @param {string} code Code of the bank transaction to link
|
|
413
|
-
* @param {string} [authorization] Bearer Token
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @throws {RequiredError}
|
|
416
|
-
*/
|
|
417
|
-
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
418
|
-
return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
419
|
-
},
|
|
420
295
|
/**
|
|
421
296
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
422
297
|
* @summary List bank transactions
|
|
@@ -431,20 +306,9 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
431
306
|
* @param {*} [options] Override http request option.
|
|
432
307
|
* @throws {RequiredError}
|
|
433
308
|
*/
|
|
434
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<
|
|
309
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
|
|
435
310
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
436
311
|
},
|
|
437
|
-
/**
|
|
438
|
-
* Unlinks an already linked bank transaction
|
|
439
|
-
* @summary Unlink Bank Transaction
|
|
440
|
-
* @param {string} code Code of the bank transaction to unlink
|
|
441
|
-
* @param {string} [authorization] Bearer Token
|
|
442
|
-
* @param {*} [options] Override http request option.
|
|
443
|
-
* @throws {RequiredError}
|
|
444
|
-
*/
|
|
445
|
-
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
446
|
-
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
447
|
-
},
|
|
448
312
|
};
|
|
449
313
|
};
|
|
450
314
|
|
|
@@ -497,27 +361,6 @@ export interface BankTransactionApiImportBankTransactionsRequest {
|
|
|
497
361
|
readonly file?: any
|
|
498
362
|
}
|
|
499
363
|
|
|
500
|
-
/**
|
|
501
|
-
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
502
|
-
* @export
|
|
503
|
-
* @interface BankTransactionApiLinkBankTransactionRequest
|
|
504
|
-
*/
|
|
505
|
-
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
506
|
-
/**
|
|
507
|
-
* Code of the bank transaction to link
|
|
508
|
-
* @type {string}
|
|
509
|
-
* @memberof BankTransactionApiLinkBankTransaction
|
|
510
|
-
*/
|
|
511
|
-
readonly code: string
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Bearer Token
|
|
515
|
-
* @type {string}
|
|
516
|
-
* @memberof BankTransactionApiLinkBankTransaction
|
|
517
|
-
*/
|
|
518
|
-
readonly authorization?: string
|
|
519
|
-
}
|
|
520
|
-
|
|
521
364
|
/**
|
|
522
365
|
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
523
366
|
* @export
|
|
@@ -581,27 +424,6 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
581
424
|
readonly filters?: any
|
|
582
425
|
}
|
|
583
426
|
|
|
584
|
-
/**
|
|
585
|
-
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
586
|
-
* @export
|
|
587
|
-
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
588
|
-
*/
|
|
589
|
-
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
590
|
-
/**
|
|
591
|
-
* Code of the bank transaction to unlink
|
|
592
|
-
* @type {string}
|
|
593
|
-
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
594
|
-
*/
|
|
595
|
-
readonly code: string
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* Bearer Token
|
|
599
|
-
* @type {string}
|
|
600
|
-
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
601
|
-
*/
|
|
602
|
-
readonly authorization?: string
|
|
603
|
-
}
|
|
604
|
-
|
|
605
427
|
/**
|
|
606
428
|
* BankTransactionApi - object-oriented interface
|
|
607
429
|
* @export
|
|
@@ -633,18 +455,6 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
633
455
|
return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
634
456
|
}
|
|
635
457
|
|
|
636
|
-
/**
|
|
637
|
-
* Links a bank transaction with an invoice
|
|
638
|
-
* @summary Link Bank Transaction
|
|
639
|
-
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
640
|
-
* @param {*} [options] Override http request option.
|
|
641
|
-
* @throws {RequiredError}
|
|
642
|
-
* @memberof BankTransactionApi
|
|
643
|
-
*/
|
|
644
|
-
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
645
|
-
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
646
|
-
}
|
|
647
|
-
|
|
648
458
|
/**
|
|
649
459
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
650
460
|
* @summary List bank transactions
|
|
@@ -656,16 +466,4 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
656
466
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
657
467
|
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
658
468
|
}
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* Unlinks an already linked bank transaction
|
|
662
|
-
* @summary Unlink Bank Transaction
|
|
663
|
-
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
664
|
-
* @param {*} [options] Override http request option.
|
|
665
|
-
* @throws {RequiredError}
|
|
666
|
-
* @memberof BankTransactionApi
|
|
667
|
-
*/
|
|
668
|
-
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
669
|
-
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
670
|
-
}
|
|
671
469
|
}
|