@emilgroup/payment-sdk 1.13.1-beta.0 → 1.13.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +4 -4
- package/api/bank-transaction-api.ts +8 -8
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/bank-accounts-api.d.ts +4 -4
- package/dist/api/bank-accounts-api.js +4 -4
- package/dist/api/bank-transaction-api.d.ts +8 -8
- package/dist/api/bank-transaction-api.js +8 -8
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/package.json +1 -1
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.13.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.13.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.13.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.13.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -244,7 +244,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
244
244
|
};
|
|
245
245
|
},
|
|
246
246
|
/**
|
|
247
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
247
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
248
248
|
* @summary Set primary bank account
|
|
249
249
|
* @param {string} code Code of the bank account to set primary
|
|
250
250
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -408,7 +408,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
408
408
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
409
409
|
},
|
|
410
410
|
/**
|
|
411
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
411
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
412
412
|
* @summary Set primary bank account
|
|
413
413
|
* @param {string} code Code of the bank account to set primary
|
|
414
414
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -492,7 +492,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
492
492
|
return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
493
493
|
},
|
|
494
494
|
/**
|
|
495
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
495
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
496
496
|
* @summary Set primary bank account
|
|
497
497
|
* @param {string} code Code of the bank account to set primary
|
|
498
498
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -742,7 +742,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
/**
|
|
745
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
745
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
746
746
|
* @summary Set primary bank account
|
|
747
747
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
748
748
|
* @param {*} [options] Override http request option.
|
|
@@ -91,7 +91,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
91
91
|
};
|
|
92
92
|
},
|
|
93
93
|
/**
|
|
94
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
94
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
95
95
|
* @summary Create the bank transactions
|
|
96
96
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
97
97
|
* @param {string} [authorization] Bearer Token
|
|
@@ -260,7 +260,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
260
260
|
};
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
263
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
264
264
|
* @summary Unlink bank transaction
|
|
265
265
|
* @param {string} code Code of the bank transaction to unlink
|
|
266
266
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -334,7 +334,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
334
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
335
|
},
|
|
336
336
|
/**
|
|
337
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
337
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
338
338
|
* @summary Create the bank transactions
|
|
339
339
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
340
340
|
* @param {string} [authorization] Bearer Token
|
|
@@ -375,7 +375,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
375
375
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
378
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
378
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
379
379
|
* @summary Unlink bank transaction
|
|
380
380
|
* @param {string} code Code of the bank transaction to unlink
|
|
381
381
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -410,7 +410,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
410
410
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
411
411
|
},
|
|
412
412
|
/**
|
|
413
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
413
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
414
414
|
* @summary Create the bank transactions
|
|
415
415
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
416
416
|
* @param {string} [authorization] Bearer Token
|
|
@@ -448,7 +448,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
448
448
|
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
449
449
|
},
|
|
450
450
|
/**
|
|
451
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
451
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
452
452
|
* @summary Unlink bank transaction
|
|
453
453
|
* @param {string} code Code of the bank transaction to unlink
|
|
454
454
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -636,7 +636,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
/**
|
|
639
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
639
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
640
640
|
* @summary Create the bank transactions
|
|
641
641
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
642
642
|
* @param {*} [options] Override http request option.
|
|
@@ -672,7 +672,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
/**
|
|
675
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
675
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
676
676
|
* @summary Unlink bank transaction
|
|
677
677
|
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
678
678
|
* @param {*} [options] Override http request option.
|
package/common.ts
CHANGED
|
@@ -65,7 +65,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
65
65
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
66
66
|
? await configuration.accessToken()
|
|
67
67
|
: await configuration.accessToken;
|
|
68
|
-
object["Authorization"] =
|
|
68
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -78,7 +78,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
78
78
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
79
79
|
? await configuration.accessToken(name, scopes)
|
|
80
80
|
: await configuration.accessToken;
|
|
81
|
-
object["Authorization"] =
|
|
81
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
package/configuration.ts
CHANGED
|
@@ -98,4 +98,13 @@ export class Configuration {
|
|
|
98
98
|
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
99
99
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns "Bearer" token.
|
|
104
|
+
* @param token - access token.
|
|
105
|
+
* @return Bearer token.
|
|
106
|
+
*/
|
|
107
|
+
public getBearerToken(token?: string): string {
|
|
108
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
109
|
+
}
|
|
101
110
|
}
|
|
@@ -65,7 +65,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
65
65
|
*/
|
|
66
66
|
listBankAccounts: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
67
|
/**
|
|
68
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
68
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
69
69
|
* @summary Set primary bank account
|
|
70
70
|
* @param {string} code Code of the bank account to set primary
|
|
71
71
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -131,7 +131,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
131
131
|
*/
|
|
132
132
|
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
|
|
133
133
|
/**
|
|
134
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
134
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
135
135
|
* @summary Set primary bank account
|
|
136
136
|
* @param {string} code Code of the bank account to set primary
|
|
137
137
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -197,7 +197,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
197
197
|
*/
|
|
198
198
|
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
|
|
199
199
|
/**
|
|
200
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
200
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
201
201
|
* @summary Set primary bank account
|
|
202
202
|
* @param {string} code Code of the bank account to set primary
|
|
203
203
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -411,7 +411,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
411
411
|
*/
|
|
412
412
|
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
|
|
413
413
|
/**
|
|
414
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
414
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
415
415
|
* @summary Set primary bank account
|
|
416
416
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
417
417
|
* @param {*} [options] Override http request option.
|
|
@@ -302,7 +302,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
304
|
/**
|
|
305
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
305
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
306
306
|
* @summary Set primary bank account
|
|
307
307
|
* @param {string} code Code of the bank account to set primary
|
|
308
308
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -506,7 +506,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
506
506
|
});
|
|
507
507
|
},
|
|
508
508
|
/**
|
|
509
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
509
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
510
510
|
* @summary Set primary bank account
|
|
511
511
|
* @param {string} code Code of the bank account to set primary
|
|
512
512
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -608,7 +608,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
608
608
|
return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
609
609
|
},
|
|
610
610
|
/**
|
|
611
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
611
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
612
612
|
* @summary Set primary bank account
|
|
613
613
|
* @param {string} code Code of the bank account to set primary
|
|
614
614
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -695,7 +695,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
695
695
|
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
696
696
|
};
|
|
697
697
|
/**
|
|
698
|
-
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.
|
|
698
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
699
699
|
* @summary Set primary bank account
|
|
700
700
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
701
701
|
* @param {*} [options] Override http request option.
|
|
@@ -35,7 +35,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
35
35
|
*/
|
|
36
36
|
getBankTransaction: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
37
|
/**
|
|
38
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
38
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
39
39
|
* @summary Create the bank transactions
|
|
40
40
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
@@ -67,7 +67,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
67
67
|
*/
|
|
68
68
|
listBankTransactions: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
69
|
/**
|
|
70
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
70
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
71
71
|
* @summary Unlink bank transaction
|
|
72
72
|
* @param {string} code Code of the bank transaction to unlink
|
|
73
73
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -93,7 +93,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
93
93
|
*/
|
|
94
94
|
getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
95
95
|
/**
|
|
96
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
96
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
97
97
|
* @summary Create the bank transactions
|
|
98
98
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -125,7 +125,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
125
125
|
*/
|
|
126
126
|
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
127
127
|
/**
|
|
128
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
128
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
129
129
|
* @summary Unlink bank transaction
|
|
130
130
|
* @param {string} code Code of the bank transaction to unlink
|
|
131
131
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -151,7 +151,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
151
151
|
*/
|
|
152
152
|
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
153
153
|
/**
|
|
154
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
154
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
155
155
|
* @summary Create the bank transactions
|
|
156
156
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
157
157
|
* @param {string} [authorization] Bearer Token
|
|
@@ -183,7 +183,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
183
183
|
*/
|
|
184
184
|
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
185
185
|
/**
|
|
186
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
186
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
187
187
|
* @summary Unlink bank transaction
|
|
188
188
|
* @param {string} code Code of the bank transaction to unlink
|
|
189
189
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -347,7 +347,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
347
347
|
*/
|
|
348
348
|
getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
349
349
|
/**
|
|
350
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
350
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
351
351
|
* @summary Create the bank transactions
|
|
352
352
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
353
353
|
* @param {*} [options] Override http request option.
|
|
@@ -374,7 +374,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
374
374
|
*/
|
|
375
375
|
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
376
376
|
/**
|
|
377
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
377
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
378
378
|
* @summary Unlink bank transaction
|
|
379
379
|
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
380
380
|
* @param {*} [options] Override http request option.
|
|
@@ -145,7 +145,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
},
|
|
147
147
|
/**
|
|
148
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
148
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
149
149
|
* @summary Create the bank transactions
|
|
150
150
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
151
151
|
* @param {string} [authorization] Bearer Token
|
|
@@ -314,7 +314,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
316
|
/**
|
|
317
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
317
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
318
318
|
* @summary Unlink bank transaction
|
|
319
319
|
* @param {string} code Code of the bank transaction to unlink
|
|
320
320
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -399,7 +399,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
399
399
|
});
|
|
400
400
|
},
|
|
401
401
|
/**
|
|
402
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
402
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
403
403
|
* @summary Create the bank transactions
|
|
404
404
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
405
405
|
* @param {string} [authorization] Bearer Token
|
|
@@ -467,7 +467,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
467
467
|
});
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
470
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
471
471
|
* @summary Unlink bank transaction
|
|
472
472
|
* @param {string} code Code of the bank transaction to unlink
|
|
473
473
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -511,7 +511,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
511
511
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
512
512
|
},
|
|
513
513
|
/**
|
|
514
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
514
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
515
515
|
* @summary Create the bank transactions
|
|
516
516
|
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
517
517
|
* @param {string} [authorization] Bearer Token
|
|
@@ -549,7 +549,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
549
549
|
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
550
550
|
},
|
|
551
551
|
/**
|
|
552
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
552
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
553
553
|
* @summary Unlink bank transaction
|
|
554
554
|
* @param {string} code Code of the bank transaction to unlink
|
|
555
555
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
@@ -587,7 +587,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
587
587
|
return (0, exports.BankTransactionApiFp)(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
588
588
|
};
|
|
589
589
|
/**
|
|
590
|
-
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.
|
|
590
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
591
591
|
* @summary Create the bank transactions
|
|
592
592
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
593
593
|
* @param {*} [options] Override http request option.
|
|
@@ -624,7 +624,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
624
624
|
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
625
|
};
|
|
626
626
|
/**
|
|
627
|
-
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.
|
|
627
|
+
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
628
628
|
* @summary Unlink bank transaction
|
|
629
629
|
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
630
630
|
* @param {*} [options] Override http request option.
|
package/dist/common.js
CHANGED
|
@@ -140,7 +140,7 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
140
140
|
_b.label = 4;
|
|
141
141
|
case 4:
|
|
142
142
|
accessToken = _a;
|
|
143
|
-
object["Authorization"] =
|
|
143
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
144
144
|
_b.label = 5;
|
|
145
145
|
case 5: return [2 /*return*/];
|
|
146
146
|
}
|
|
@@ -170,7 +170,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
170
170
|
_b.label = 4;
|
|
171
171
|
case 4:
|
|
172
172
|
localVarAccessTokenValue = _a;
|
|
173
|
-
object["Authorization"] =
|
|
173
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
174
174
|
_b.label = 5;
|
|
175
175
|
case 5: return [2 /*return*/];
|
|
176
176
|
}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -80,4 +80,10 @@ export declare class Configuration {
|
|
|
80
80
|
* @return True if the given MIME is JSON, false otherwise.
|
|
81
81
|
*/
|
|
82
82
|
isJsonMime(mime: string): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Returns "Bearer" token.
|
|
85
|
+
* @param token - access token.
|
|
86
|
+
* @return Bearer token.
|
|
87
|
+
*/
|
|
88
|
+
getBearerToken(token?: string): string;
|
|
83
89
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -39,6 +39,14 @@ var Configuration = /** @class */ (function () {
|
|
|
39
39
|
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
40
40
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Returns "Bearer" token.
|
|
44
|
+
* @param token - access token.
|
|
45
|
+
* @return Bearer token.
|
|
46
|
+
*/
|
|
47
|
+
Configuration.prototype.getBearerToken = function (token) {
|
|
48
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
49
|
+
};
|
|
42
50
|
return Configuration;
|
|
43
51
|
}());
|
|
44
52
|
exports.Configuration = Configuration;
|