@emilgroup/payment-sdk 1.4.1-beta.5 → 1.4.1-beta.7
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 +35 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +20 -16
- package/api/bank-transaction-api.ts +204 -2
- package/api/payment-methods-api.ts +41 -37
- package/api/payment-reminders-api.ts +12 -8
- package/api/payment-setup-api.ts +36 -28
- package/api/payments-api.ts +27 -25
- package/api/refunds-api.ts +474 -0
- package/api.ts +2 -0
- package/dist/api/bank-accounts-api.d.ts +14 -12
- package/dist/api/bank-accounts-api.js +12 -12
- package/dist/api/bank-transaction-api.d.ts +113 -3
- package/dist/api/bank-transaction-api.js +184 -0
- package/dist/api/payment-methods-api.d.ts +31 -27
- package/dist/api/payment-methods-api.js +24 -28
- package/dist/api/payment-reminders-api.d.ts +14 -12
- package/dist/api/payment-setup-api.d.ts +22 -18
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +24 -21
- package/dist/api/payments-api.js +12 -16
- package/dist/api/refunds-api.d.ts +269 -0
- package/dist/api/refunds-api.js +447 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/billing-profile-dto.d.ts +38 -0
- package/dist/models/billing-profile-dto.js +15 -0
- package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
- package/dist/models/billing-profile-limited-response-dto.js +15 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-request-dto.d.ts +24 -0
- package/dist/models/create-refund-request-dto.js +15 -0
- package/dist/models/create-refund-response-class.d.ts +25 -0
- package/dist/models/create-refund-response-class.js +15 -0
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-refund-response-class.d.ts +25 -0
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +34 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/list-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +31 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +103 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +66 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/payment-reminder-class.d.ts +112 -0
- package/dist/models/payment-reminder-class.js +36 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
- package/dist/models/symphony-profile-limited-response-dto.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
- package/dist/models/validate-pspconfig-request-dto.js +7 -0
- package/models/bank-account-class.ts +60 -0
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-request-dto.ts +3 -3
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +70 -0
- package/models/create-refund-request-dto.ts +30 -0
- package/models/create-refund-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +31 -0
- package/models/get-request-dto.ts +1 -1
- package/models/index.ts +34 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +50 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-payment-methods-response-class.ts +37 -0
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +37 -0
- package/models/payment-class.ts +109 -0
- package/models/payment-method-class.ts +72 -0
- package/models/payment-reminder-class.ts +122 -0
- package/models/refund-class.ts +114 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/validate-pspconfig-request-dto.ts +11 -1
- package/package.json +1 -1
|
@@ -95,20 +95,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* Creates a bank account for a specified account.
|
|
97
97
|
* @summary Create a bank account
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
createBankAccount: function (
|
|
103
|
+
createBankAccount: function (createBankAccountRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('createBankAccount', '
|
|
110
|
+
// verify required parameter 'createBankAccountRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
|
|
112
112
|
localVarPath = "/paymentservice/v1/bank-accounts";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankAccountRequestDto, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -226,17 +226,17 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
226
226
|
/**
|
|
227
227
|
* Creates a bank account for a specified account.
|
|
228
228
|
* @summary Create a bank account
|
|
229
|
-
* @param {
|
|
229
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
230
230
|
* @param {string} [authorization] Bearer Token
|
|
231
231
|
* @param {*} [options] Override http request option.
|
|
232
232
|
* @throws {RequiredError}
|
|
233
233
|
*/
|
|
234
|
-
createBankAccount: function (
|
|
234
|
+
createBankAccount: function (createBankAccountRequestDto, authorization, options) {
|
|
235
235
|
return __awaiter(this, void 0, void 0, function () {
|
|
236
236
|
var localVarAxiosArgs;
|
|
237
237
|
return __generator(this, function (_a) {
|
|
238
238
|
switch (_a.label) {
|
|
239
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(
|
|
239
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
|
|
240
240
|
case 1:
|
|
241
241
|
localVarAxiosArgs = _a.sent();
|
|
242
242
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -284,13 +284,13 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
284
284
|
/**
|
|
285
285
|
* Creates a bank account for a specified account.
|
|
286
286
|
* @summary Create a bank account
|
|
287
|
-
* @param {
|
|
287
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
288
288
|
* @param {string} [authorization] Bearer Token
|
|
289
289
|
* @param {*} [options] Override http request option.
|
|
290
290
|
* @throws {RequiredError}
|
|
291
291
|
*/
|
|
292
|
-
createBankAccount: function (
|
|
293
|
-
return localVarFp.createBankAccount(
|
|
292
|
+
createBankAccount: function (createBankAccountRequestDto, authorization, options) {
|
|
293
|
+
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
294
294
|
},
|
|
295
295
|
/**
|
|
296
296
|
* 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.
|
|
@@ -333,7 +333,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
333
333
|
*/
|
|
334
334
|
BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
|
|
335
335
|
var _this = this;
|
|
336
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.
|
|
336
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
337
337
|
};
|
|
338
338
|
/**
|
|
339
339
|
* 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.
|
|
@@ -38,6 +38,15 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
38
38
|
* @throws {RequiredError}
|
|
39
39
|
*/
|
|
40
40
|
importBankTransactions: (authorization?: string, file?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
/**
|
|
42
|
+
* Links a bank transaction with an invoice
|
|
43
|
+
* @summary Link Bank Transaction
|
|
44
|
+
* @param {string} code Code of the bank transaction to link
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
50
|
/**
|
|
42
51
|
* 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.
|
|
43
52
|
* @summary List bank transactions
|
|
@@ -53,6 +62,15 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
53
62
|
* @throws {RequiredError}
|
|
54
63
|
*/
|
|
55
64
|
listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
/**
|
|
66
|
+
* Unlinks an already linked bank transaction
|
|
67
|
+
* @summary Unlink Bank Transaction
|
|
68
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
69
|
+
* @param {string} [authorization] Bearer Token
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
74
|
};
|
|
57
75
|
/**
|
|
58
76
|
* BankTransactionApi - functional programming interface
|
|
@@ -78,6 +96,15 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
78
96
|
* @throws {RequiredError}
|
|
79
97
|
*/
|
|
80
98
|
importBankTransactions(authorization?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
99
|
+
/**
|
|
100
|
+
* Links a bank transaction with an invoice
|
|
101
|
+
* @summary Link Bank Transaction
|
|
102
|
+
* @param {string} code Code of the bank transaction to link
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
81
108
|
/**
|
|
82
109
|
* 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.
|
|
83
110
|
* @summary List bank transactions
|
|
@@ -92,7 +119,16 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
92
119
|
* @param {*} [options] Override http request option.
|
|
93
120
|
* @throws {RequiredError}
|
|
94
121
|
*/
|
|
95
|
-
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<
|
|
122
|
+
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<ListBankTransactionsResponseClass>>;
|
|
123
|
+
/**
|
|
124
|
+
* Unlinks an already linked bank transaction
|
|
125
|
+
* @summary Unlink Bank Transaction
|
|
126
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
127
|
+
* @param {string} [authorization] Bearer Token
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
96
132
|
};
|
|
97
133
|
/**
|
|
98
134
|
* BankTransactionApi - factory interface
|
|
@@ -118,6 +154,15 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
118
154
|
* @throws {RequiredError}
|
|
119
155
|
*/
|
|
120
156
|
importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
157
|
+
/**
|
|
158
|
+
* Links a bank transaction with an invoice
|
|
159
|
+
* @summary Link Bank Transaction
|
|
160
|
+
* @param {string} code Code of the bank transaction to link
|
|
161
|
+
* @param {string} [authorization] Bearer Token
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
121
166
|
/**
|
|
122
167
|
* 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.
|
|
123
168
|
* @summary List bank transactions
|
|
@@ -132,7 +177,16 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
132
177
|
* @param {*} [options] Override http request option.
|
|
133
178
|
* @throws {RequiredError}
|
|
134
179
|
*/
|
|
135
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<
|
|
180
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
181
|
+
/**
|
|
182
|
+
* Unlinks an already linked bank transaction
|
|
183
|
+
* @summary Unlink Bank Transaction
|
|
184
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
185
|
+
* @param {string} [authorization] Bearer Token
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
136
190
|
};
|
|
137
191
|
/**
|
|
138
192
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
@@ -178,6 +232,25 @@ export interface BankTransactionApiImportBankTransactionsRequest {
|
|
|
178
232
|
*/
|
|
179
233
|
readonly file?: any;
|
|
180
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
237
|
+
* @export
|
|
238
|
+
* @interface BankTransactionApiLinkBankTransactionRequest
|
|
239
|
+
*/
|
|
240
|
+
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
241
|
+
/**
|
|
242
|
+
* Code of the bank transaction to link
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
245
|
+
*/
|
|
246
|
+
readonly code: string;
|
|
247
|
+
/**
|
|
248
|
+
* Bearer Token
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
251
|
+
*/
|
|
252
|
+
readonly authorization?: string;
|
|
253
|
+
}
|
|
181
254
|
/**
|
|
182
255
|
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
183
256
|
* @export
|
|
@@ -233,6 +306,25 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
233
306
|
*/
|
|
234
307
|
readonly filters?: any;
|
|
235
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
311
|
+
* @export
|
|
312
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
313
|
+
*/
|
|
314
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
315
|
+
/**
|
|
316
|
+
* Code of the bank transaction to unlink
|
|
317
|
+
* @type {string}
|
|
318
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
319
|
+
*/
|
|
320
|
+
readonly code: string;
|
|
321
|
+
/**
|
|
322
|
+
* Bearer Token
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
325
|
+
*/
|
|
326
|
+
readonly authorization?: string;
|
|
327
|
+
}
|
|
236
328
|
/**
|
|
237
329
|
* BankTransactionApi - object-oriented interface
|
|
238
330
|
* @export
|
|
@@ -258,6 +350,15 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
258
350
|
* @memberof BankTransactionApi
|
|
259
351
|
*/
|
|
260
352
|
importBankTransactions(requestParameters?: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
353
|
+
/**
|
|
354
|
+
* Links a bank transaction with an invoice
|
|
355
|
+
* @summary Link Bank Transaction
|
|
356
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
* @memberof BankTransactionApi
|
|
360
|
+
*/
|
|
361
|
+
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
261
362
|
/**
|
|
262
363
|
* 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.
|
|
263
364
|
* @summary List bank transactions
|
|
@@ -266,5 +367,14 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
266
367
|
* @throws {RequiredError}
|
|
267
368
|
* @memberof BankTransactionApi
|
|
268
369
|
*/
|
|
269
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
370
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
371
|
+
/**
|
|
372
|
+
* Unlinks an already linked bank transaction
|
|
373
|
+
* @summary Unlink Bank Transaction
|
|
374
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
* @memberof BankTransactionApi
|
|
378
|
+
*/
|
|
379
|
+
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
270
380
|
}
|
|
@@ -194,6 +194,54 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
|
+
/**
|
|
198
|
+
* Links a bank transaction with an invoice
|
|
199
|
+
* @summary Link Bank Transaction
|
|
200
|
+
* @param {string} code Code of the bank transaction to link
|
|
201
|
+
* @param {string} [authorization] Bearer Token
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0:
|
|
212
|
+
// verify required parameter 'code' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
|
|
214
|
+
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
|
|
215
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
216
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
+
if (configuration) {
|
|
218
|
+
baseOptions = configuration.baseOptions;
|
|
219
|
+
baseAccessToken = configuration.accessToken;
|
|
220
|
+
}
|
|
221
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
222
|
+
localVarHeaderParameter = {};
|
|
223
|
+
localVarQueryParameter = {};
|
|
224
|
+
// authentication bearer required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
227
|
+
case 1:
|
|
228
|
+
// authentication bearer required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
_a.sent();
|
|
231
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
|
+
}
|
|
234
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
237
|
+
return [2 /*return*/, {
|
|
238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
}];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
},
|
|
197
245
|
/**
|
|
198
246
|
* 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.
|
|
199
247
|
* @summary List bank transactions
|
|
@@ -266,6 +314,54 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
266
314
|
});
|
|
267
315
|
});
|
|
268
316
|
},
|
|
317
|
+
/**
|
|
318
|
+
* Unlinks an already linked bank transaction
|
|
319
|
+
* @summary Unlink Bank Transaction
|
|
320
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
321
|
+
* @param {string} [authorization] Bearer Token
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
326
|
+
if (options === void 0) { options = {}; }
|
|
327
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
switch (_a.label) {
|
|
331
|
+
case 0:
|
|
332
|
+
// verify required parameter 'code' is not null or undefined
|
|
333
|
+
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
334
|
+
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
|
|
335
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
|
+
if (configuration) {
|
|
338
|
+
baseOptions = configuration.baseOptions;
|
|
339
|
+
baseAccessToken = configuration.accessToken;
|
|
340
|
+
}
|
|
341
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
342
|
+
localVarHeaderParameter = {};
|
|
343
|
+
localVarQueryParameter = {};
|
|
344
|
+
// authentication bearer required
|
|
345
|
+
// http bearer authentication required
|
|
346
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
347
|
+
case 1:
|
|
348
|
+
// authentication bearer required
|
|
349
|
+
// http bearer authentication required
|
|
350
|
+
_a.sent();
|
|
351
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
352
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
353
|
+
}
|
|
354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
+
return [2 /*return*/, {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
}];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
},
|
|
269
365
|
};
|
|
270
366
|
};
|
|
271
367
|
exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
|
|
@@ -319,6 +415,27 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
319
415
|
});
|
|
320
416
|
});
|
|
321
417
|
},
|
|
418
|
+
/**
|
|
419
|
+
* Links a bank transaction with an invoice
|
|
420
|
+
* @summary Link Bank Transaction
|
|
421
|
+
* @param {string} code Code of the bank transaction to link
|
|
422
|
+
* @param {string} [authorization] Bearer Token
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
428
|
+
var localVarAxiosArgs;
|
|
429
|
+
return __generator(this, function (_a) {
|
|
430
|
+
switch (_a.label) {
|
|
431
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
|
|
432
|
+
case 1:
|
|
433
|
+
localVarAxiosArgs = _a.sent();
|
|
434
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
},
|
|
322
439
|
/**
|
|
323
440
|
* 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.
|
|
324
441
|
* @summary List bank transactions
|
|
@@ -346,6 +463,27 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
346
463
|
});
|
|
347
464
|
});
|
|
348
465
|
},
|
|
466
|
+
/**
|
|
467
|
+
* Unlinks an already linked bank transaction
|
|
468
|
+
* @summary Unlink Bank Transaction
|
|
469
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
470
|
+
* @param {string} [authorization] Bearer Token
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
476
|
+
var localVarAxiosArgs;
|
|
477
|
+
return __generator(this, function (_a) {
|
|
478
|
+
switch (_a.label) {
|
|
479
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
|
|
480
|
+
case 1:
|
|
481
|
+
localVarAxiosArgs = _a.sent();
|
|
482
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
},
|
|
349
487
|
};
|
|
350
488
|
};
|
|
351
489
|
exports.BankTransactionApiFp = BankTransactionApiFp;
|
|
@@ -379,6 +517,17 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
379
517
|
importBankTransactions: function (authorization, file, options) {
|
|
380
518
|
return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
|
|
381
519
|
},
|
|
520
|
+
/**
|
|
521
|
+
* Links a bank transaction with an invoice
|
|
522
|
+
* @summary Link Bank Transaction
|
|
523
|
+
* @param {string} code Code of the bank transaction to link
|
|
524
|
+
* @param {string} [authorization] Bearer Token
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
529
|
+
return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
530
|
+
},
|
|
382
531
|
/**
|
|
383
532
|
* 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.
|
|
384
533
|
* @summary List bank transactions
|
|
@@ -396,6 +545,17 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
396
545
|
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
397
546
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
398
547
|
},
|
|
548
|
+
/**
|
|
549
|
+
* Unlinks an already linked bank transaction
|
|
550
|
+
* @summary Unlink Bank Transaction
|
|
551
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
552
|
+
* @param {string} [authorization] Bearer Token
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
*/
|
|
556
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
557
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
|
+
},
|
|
399
559
|
};
|
|
400
560
|
};
|
|
401
561
|
exports.BankTransactionApiFactory = BankTransactionApiFactory;
|
|
@@ -435,6 +595,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
435
595
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
436
596
|
return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
437
597
|
};
|
|
598
|
+
/**
|
|
599
|
+
* Links a bank transaction with an invoice
|
|
600
|
+
* @summary Link Bank Transaction
|
|
601
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
* @memberof BankTransactionApi
|
|
605
|
+
*/
|
|
606
|
+
BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
|
|
607
|
+
var _this = this;
|
|
608
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
609
|
+
};
|
|
438
610
|
/**
|
|
439
611
|
* 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.
|
|
440
612
|
* @summary List bank transactions
|
|
@@ -448,6 +620,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
448
620
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
449
621
|
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
450
622
|
};
|
|
623
|
+
/**
|
|
624
|
+
* Unlinks an already linked bank transaction
|
|
625
|
+
* @summary Unlink Bank Transaction
|
|
626
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
* @memberof BankTransactionApi
|
|
630
|
+
*/
|
|
631
|
+
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
632
|
+
var _this = this;
|
|
633
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
634
|
+
};
|
|
451
635
|
return BankTransactionApi;
|
|
452
636
|
}(base_1.BaseAPI));
|
|
453
637
|
exports.BankTransactionApi = BankTransactionApi;
|