@emilgroup/payment-sdk 1.3.1 → 1.4.1-beta.0
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 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +17 -21
- package/api/bank-transaction-api.ts +134 -42
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +38 -42
- package/api/payment-reminders-api.ts +9 -13
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +26 -28
- package/api/refunds-api.ts +16 -14
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +13 -15
- package/dist/api/bank-accounts-api.js +13 -13
- package/dist/api/bank-transaction-api.d.ts +86 -33
- package/dist/api/bank-transaction-api.js +122 -29
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +28 -32
- package/dist/api/payment-methods-api.js +29 -25
- package/dist/api/payment-reminders-api.d.ts +13 -15
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +22 -25
- package/dist/api/payments-api.js +17 -13
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +12 -10
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +0 -30
- package/dist/models/index.js +0 -30
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -30
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- 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/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/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/link-bank-transaction-request-dto.d.ts +0 -30
- package/dist/models/link-bank-transaction-request-dto.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/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/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/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/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/link-bank-transaction-request-dto.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/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: z
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -13,7 +13,6 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
16
|
-
import { LinkBankTransactionRequestDto } from '../models';
|
|
17
16
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
18
17
|
/**
|
|
19
18
|
* BankTransactionApi - axios parameter creator
|
|
@@ -21,7 +20,8 @@ import { ListBankTransactionsResponseClass } from '../models';
|
|
|
21
20
|
*/
|
|
22
21
|
export declare const BankTransactionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
23
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
24
|
+
* @summary Retrieve the Bank Transaction
|
|
25
25
|
* @param {string} code
|
|
26
26
|
* @param {string} [authorization] Bearer Token
|
|
27
27
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -31,7 +31,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
31
31
|
getBankTransaction: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
32
|
/**
|
|
33
33
|
* Import bank transactions from a swift MT940 file
|
|
34
|
-
* @summary Create the
|
|
34
|
+
* @summary Create the bank transactions
|
|
35
35
|
* @param {string} [authorization] Bearer Token
|
|
36
36
|
* @param {any} [file]
|
|
37
37
|
* @param {*} [options] Override http request option.
|
|
@@ -41,15 +41,15 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
41
41
|
/**
|
|
42
42
|
* Links a bank transaction with an invoice
|
|
43
43
|
* @summary Link Bank Transaction
|
|
44
|
-
* @param {string} code Code of the bank
|
|
45
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
44
|
+
* @param {string} code Code of the bank transaction to link
|
|
46
45
|
* @param {string} [authorization] Bearer Token
|
|
47
46
|
* @param {*} [options] Override http request option.
|
|
48
47
|
* @throws {RequiredError}
|
|
49
48
|
*/
|
|
50
|
-
linkBankTransaction: (code: string,
|
|
49
|
+
linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
50
|
/**
|
|
52
|
-
*
|
|
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.
|
|
52
|
+
* @summary List bank transactions
|
|
53
53
|
* @param {string} [authorization] Bearer Token
|
|
54
54
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
55
55
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -61,6 +61,15 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
*/
|
|
63
63
|
listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
|
+
/**
|
|
65
|
+
* Unlinks an already linked bank transaction
|
|
66
|
+
* @summary Unlink Bank Transaction
|
|
67
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
68
|
+
* @param {string} [authorization] Bearer Token
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
73
|
};
|
|
65
74
|
/**
|
|
66
75
|
* BankTransactionApi - functional programming interface
|
|
@@ -68,7 +77,8 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
68
77
|
*/
|
|
69
78
|
export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
70
79
|
/**
|
|
71
|
-
*
|
|
80
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
81
|
+
* @summary Retrieve the Bank Transaction
|
|
72
82
|
* @param {string} code
|
|
73
83
|
* @param {string} [authorization] Bearer Token
|
|
74
84
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -78,7 +88,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
78
88
|
getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
79
89
|
/**
|
|
80
90
|
* Import bank transactions from a swift MT940 file
|
|
81
|
-
* @summary Create the
|
|
91
|
+
* @summary Create the bank transactions
|
|
82
92
|
* @param {string} [authorization] Bearer Token
|
|
83
93
|
* @param {any} [file]
|
|
84
94
|
* @param {*} [options] Override http request option.
|
|
@@ -88,15 +98,15 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
88
98
|
/**
|
|
89
99
|
* Links a bank transaction with an invoice
|
|
90
100
|
* @summary Link Bank Transaction
|
|
91
|
-
* @param {string} code Code of the bank
|
|
92
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
101
|
+
* @param {string} code Code of the bank transaction to link
|
|
93
102
|
* @param {string} [authorization] Bearer Token
|
|
94
103
|
* @param {*} [options] Override http request option.
|
|
95
104
|
* @throws {RequiredError}
|
|
96
105
|
*/
|
|
97
|
-
linkBankTransaction(code: string,
|
|
106
|
+
linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
98
107
|
/**
|
|
99
|
-
*
|
|
108
|
+
* 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.
|
|
109
|
+
* @summary List bank transactions
|
|
100
110
|
* @param {string} [authorization] Bearer Token
|
|
101
111
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
102
112
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -107,7 +117,16 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
107
117
|
* @param {*} [options] Override http request option.
|
|
108
118
|
* @throws {RequiredError}
|
|
109
119
|
*/
|
|
110
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
120
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
121
|
+
/**
|
|
122
|
+
* Unlinks an already linked bank transaction
|
|
123
|
+
* @summary Unlink Bank Transaction
|
|
124
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
125
|
+
* @param {string} [authorization] Bearer Token
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
111
130
|
};
|
|
112
131
|
/**
|
|
113
132
|
* BankTransactionApi - factory interface
|
|
@@ -115,7 +134,8 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
115
134
|
*/
|
|
116
135
|
export declare const BankTransactionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
117
136
|
/**
|
|
118
|
-
*
|
|
137
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
138
|
+
* @summary Retrieve the Bank Transaction
|
|
119
139
|
* @param {string} code
|
|
120
140
|
* @param {string} [authorization] Bearer Token
|
|
121
141
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -125,7 +145,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
125
145
|
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
126
146
|
/**
|
|
127
147
|
* Import bank transactions from a swift MT940 file
|
|
128
|
-
* @summary Create the
|
|
148
|
+
* @summary Create the bank transactions
|
|
129
149
|
* @param {string} [authorization] Bearer Token
|
|
130
150
|
* @param {any} [file]
|
|
131
151
|
* @param {*} [options] Override http request option.
|
|
@@ -135,15 +155,15 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
135
155
|
/**
|
|
136
156
|
* Links a bank transaction with an invoice
|
|
137
157
|
* @summary Link Bank Transaction
|
|
138
|
-
* @param {string} code Code of the bank
|
|
139
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
158
|
+
* @param {string} code Code of the bank transaction to link
|
|
140
159
|
* @param {string} [authorization] Bearer Token
|
|
141
160
|
* @param {*} [options] Override http request option.
|
|
142
161
|
* @throws {RequiredError}
|
|
143
162
|
*/
|
|
144
|
-
linkBankTransaction(code: string,
|
|
163
|
+
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
145
164
|
/**
|
|
146
|
-
*
|
|
165
|
+
* 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.
|
|
166
|
+
* @summary List bank transactions
|
|
147
167
|
* @param {string} [authorization] Bearer Token
|
|
148
168
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
149
169
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -154,7 +174,16 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
154
174
|
* @param {*} [options] Override http request option.
|
|
155
175
|
* @throws {RequiredError}
|
|
156
176
|
*/
|
|
157
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<
|
|
177
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* Unlinks an already linked bank transaction
|
|
180
|
+
* @summary Unlink Bank Transaction
|
|
181
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
182
|
+
* @param {string} [authorization] Bearer Token
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
158
187
|
};
|
|
159
188
|
/**
|
|
160
189
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
@@ -207,17 +236,11 @@ export interface BankTransactionApiImportBankTransactionsRequest {
|
|
|
207
236
|
*/
|
|
208
237
|
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
209
238
|
/**
|
|
210
|
-
* Code of the bank
|
|
239
|
+
* Code of the bank transaction to link
|
|
211
240
|
* @type {string}
|
|
212
241
|
* @memberof BankTransactionApiLinkBankTransaction
|
|
213
242
|
*/
|
|
214
243
|
readonly code: string;
|
|
215
|
-
/**
|
|
216
|
-
*
|
|
217
|
-
* @type {LinkBankTransactionRequestDto}
|
|
218
|
-
* @memberof BankTransactionApiLinkBankTransaction
|
|
219
|
-
*/
|
|
220
|
-
readonly linkBankTransactionRequestDto: LinkBankTransactionRequestDto;
|
|
221
244
|
/**
|
|
222
245
|
* Bearer Token
|
|
223
246
|
* @type {string}
|
|
@@ -274,6 +297,25 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
274
297
|
*/
|
|
275
298
|
readonly expand?: string;
|
|
276
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
302
|
+
* @export
|
|
303
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
304
|
+
*/
|
|
305
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
306
|
+
/**
|
|
307
|
+
* Code of the bank transaction to unlink
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
310
|
+
*/
|
|
311
|
+
readonly code: string;
|
|
312
|
+
/**
|
|
313
|
+
* Bearer Token
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
316
|
+
*/
|
|
317
|
+
readonly authorization?: string;
|
|
318
|
+
}
|
|
277
319
|
/**
|
|
278
320
|
* BankTransactionApi - object-oriented interface
|
|
279
321
|
* @export
|
|
@@ -282,7 +324,8 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
282
324
|
*/
|
|
283
325
|
export declare class BankTransactionApi extends BaseAPI {
|
|
284
326
|
/**
|
|
285
|
-
*
|
|
327
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
328
|
+
* @summary Retrieve the Bank Transaction
|
|
286
329
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
287
330
|
* @param {*} [options] Override http request option.
|
|
288
331
|
* @throws {RequiredError}
|
|
@@ -291,7 +334,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
291
334
|
getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
292
335
|
/**
|
|
293
336
|
* Import bank transactions from a swift MT940 file
|
|
294
|
-
* @summary Create the
|
|
337
|
+
* @summary Create the bank transactions
|
|
295
338
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
296
339
|
* @param {*} [options] Override http request option.
|
|
297
340
|
* @throws {RequiredError}
|
|
@@ -308,11 +351,21 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
308
351
|
*/
|
|
309
352
|
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
310
353
|
/**
|
|
311
|
-
*
|
|
354
|
+
* 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.
|
|
355
|
+
* @summary List bank transactions
|
|
312
356
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
313
357
|
* @param {*} [options] Override http request option.
|
|
314
358
|
* @throws {RequiredError}
|
|
315
359
|
* @memberof BankTransactionApi
|
|
316
360
|
*/
|
|
317
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
361
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
362
|
+
/**
|
|
363
|
+
* Unlinks an already linked bank transaction
|
|
364
|
+
* @summary Unlink Bank Transaction
|
|
365
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
* @memberof BankTransactionApi
|
|
369
|
+
*/
|
|
370
|
+
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
318
371
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -93,7 +93,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
97
|
+
* @summary Retrieve the Bank Transaction
|
|
97
98
|
* @param {string} code
|
|
98
99
|
* @param {string} [authorization] Bearer Token
|
|
99
100
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -145,7 +146,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
145
146
|
},
|
|
146
147
|
/**
|
|
147
148
|
* Import bank transactions from a swift MT940 file
|
|
148
|
-
* @summary Create the
|
|
149
|
+
* @summary Create the bank transactions
|
|
149
150
|
* @param {string} [authorization] Bearer Token
|
|
150
151
|
* @param {any} [file]
|
|
151
152
|
* @param {*} [options] Override http request option.
|
|
@@ -197,13 +198,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
197
198
|
/**
|
|
198
199
|
* Links a bank transaction with an invoice
|
|
199
200
|
* @summary Link Bank Transaction
|
|
200
|
-
* @param {string} code Code of the bank
|
|
201
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
201
|
+
* @param {string} code Code of the bank transaction to link
|
|
202
202
|
* @param {string} [authorization] Bearer Token
|
|
203
203
|
* @param {*} [options] Override http request option.
|
|
204
204
|
* @throws {RequiredError}
|
|
205
205
|
*/
|
|
206
|
-
linkBankTransaction: function (code,
|
|
206
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
207
207
|
if (options === void 0) { options = {}; }
|
|
208
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
209
209
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -212,8 +212,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
212
212
|
case 0:
|
|
213
213
|
// verify required parameter 'code' is not null or undefined
|
|
214
214
|
(0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
|
|
215
|
-
// verify required parameter 'linkBankTransactionRequestDto' is not null or undefined
|
|
216
|
-
(0, common_1.assertParamExists)('linkBankTransaction', 'linkBankTransactionRequestDto', linkBankTransactionRequestDto);
|
|
217
215
|
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
|
|
218
216
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
219
217
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -234,11 +232,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
234
232
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
235
233
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
236
234
|
}
|
|
237
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
238
235
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
239
236
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
237
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
241
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionRequestDto, localVarRequestOptions, configuration);
|
|
242
238
|
return [2 /*return*/, {
|
|
243
239
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
244
240
|
options: localVarRequestOptions,
|
|
@@ -248,7 +244,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
248
244
|
});
|
|
249
245
|
},
|
|
250
246
|
/**
|
|
251
|
-
*
|
|
247
|
+
* 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.
|
|
248
|
+
* @summary List bank transactions
|
|
252
249
|
* @param {string} [authorization] Bearer Token
|
|
253
250
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
254
251
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -314,6 +311,54 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
314
311
|
});
|
|
315
312
|
});
|
|
316
313
|
},
|
|
314
|
+
/**
|
|
315
|
+
* Unlinks an already linked bank transaction
|
|
316
|
+
* @summary Unlink Bank Transaction
|
|
317
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
318
|
+
* @param {string} [authorization] Bearer Token
|
|
319
|
+
* @param {*} [options] Override http request option.
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
*/
|
|
322
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
323
|
+
if (options === void 0) { options = {}; }
|
|
324
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
325
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
326
|
+
return __generator(this, function (_a) {
|
|
327
|
+
switch (_a.label) {
|
|
328
|
+
case 0:
|
|
329
|
+
// verify required parameter 'code' is not null or undefined
|
|
330
|
+
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
331
|
+
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
|
|
332
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
333
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
334
|
+
if (configuration) {
|
|
335
|
+
baseOptions = configuration.baseOptions;
|
|
336
|
+
baseAccessToken = configuration.accessToken;
|
|
337
|
+
}
|
|
338
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
339
|
+
localVarHeaderParameter = {};
|
|
340
|
+
localVarQueryParameter = {};
|
|
341
|
+
// authentication bearer required
|
|
342
|
+
// http bearer authentication required
|
|
343
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
344
|
+
case 1:
|
|
345
|
+
// authentication bearer required
|
|
346
|
+
// http bearer authentication required
|
|
347
|
+
_a.sent();
|
|
348
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
349
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
350
|
+
}
|
|
351
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
352
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
353
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
354
|
+
return [2 /*return*/, {
|
|
355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
}];
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
});
|
|
361
|
+
},
|
|
317
362
|
};
|
|
318
363
|
};
|
|
319
364
|
exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
|
|
@@ -325,7 +370,8 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
325
370
|
var localVarAxiosParamCreator = (0, exports.BankTransactionApiAxiosParamCreator)(configuration);
|
|
326
371
|
return {
|
|
327
372
|
/**
|
|
328
|
-
*
|
|
373
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
374
|
+
* @summary Retrieve the Bank Transaction
|
|
329
375
|
* @param {string} code
|
|
330
376
|
* @param {string} [authorization] Bearer Token
|
|
331
377
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -347,7 +393,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
347
393
|
},
|
|
348
394
|
/**
|
|
349
395
|
* Import bank transactions from a swift MT940 file
|
|
350
|
-
* @summary Create the
|
|
396
|
+
* @summary Create the bank transactions
|
|
351
397
|
* @param {string} [authorization] Bearer Token
|
|
352
398
|
* @param {any} [file]
|
|
353
399
|
* @param {*} [options] Override http request option.
|
|
@@ -369,18 +415,17 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
369
415
|
/**
|
|
370
416
|
* Links a bank transaction with an invoice
|
|
371
417
|
* @summary Link Bank Transaction
|
|
372
|
-
* @param {string} code Code of the bank
|
|
373
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
418
|
+
* @param {string} code Code of the bank transaction to link
|
|
374
419
|
* @param {string} [authorization] Bearer Token
|
|
375
420
|
* @param {*} [options] Override http request option.
|
|
376
421
|
* @throws {RequiredError}
|
|
377
422
|
*/
|
|
378
|
-
linkBankTransaction: function (code,
|
|
423
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
379
424
|
return __awaiter(this, void 0, void 0, function () {
|
|
380
425
|
var localVarAxiosArgs;
|
|
381
426
|
return __generator(this, function (_a) {
|
|
382
427
|
switch (_a.label) {
|
|
383
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code,
|
|
428
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
|
|
384
429
|
case 1:
|
|
385
430
|
localVarAxiosArgs = _a.sent();
|
|
386
431
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -389,7 +434,8 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
389
434
|
});
|
|
390
435
|
},
|
|
391
436
|
/**
|
|
392
|
-
*
|
|
437
|
+
* 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.
|
|
438
|
+
* @summary List bank transactions
|
|
393
439
|
* @param {string} [authorization] Bearer Token
|
|
394
440
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
395
441
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -413,6 +459,27 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
413
459
|
});
|
|
414
460
|
});
|
|
415
461
|
},
|
|
462
|
+
/**
|
|
463
|
+
* Unlinks an already linked bank transaction
|
|
464
|
+
* @summary Unlink Bank Transaction
|
|
465
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
466
|
+
* @param {string} [authorization] Bearer Token
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
471
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
472
|
+
var localVarAxiosArgs;
|
|
473
|
+
return __generator(this, function (_a) {
|
|
474
|
+
switch (_a.label) {
|
|
475
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
|
|
476
|
+
case 1:
|
|
477
|
+
localVarAxiosArgs = _a.sent();
|
|
478
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
},
|
|
416
483
|
};
|
|
417
484
|
};
|
|
418
485
|
exports.BankTransactionApiFp = BankTransactionApiFp;
|
|
@@ -424,7 +491,8 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
424
491
|
var localVarFp = (0, exports.BankTransactionApiFp)(configuration);
|
|
425
492
|
return {
|
|
426
493
|
/**
|
|
427
|
-
*
|
|
494
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
495
|
+
* @summary Retrieve the Bank Transaction
|
|
428
496
|
* @param {string} code
|
|
429
497
|
* @param {string} [authorization] Bearer Token
|
|
430
498
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -436,7 +504,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
436
504
|
},
|
|
437
505
|
/**
|
|
438
506
|
* Import bank transactions from a swift MT940 file
|
|
439
|
-
* @summary Create the
|
|
507
|
+
* @summary Create the bank transactions
|
|
440
508
|
* @param {string} [authorization] Bearer Token
|
|
441
509
|
* @param {any} [file]
|
|
442
510
|
* @param {*} [options] Override http request option.
|
|
@@ -448,17 +516,17 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
448
516
|
/**
|
|
449
517
|
* Links a bank transaction with an invoice
|
|
450
518
|
* @summary Link Bank Transaction
|
|
451
|
-
* @param {string} code Code of the bank
|
|
452
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
519
|
+
* @param {string} code Code of the bank transaction to link
|
|
453
520
|
* @param {string} [authorization] Bearer Token
|
|
454
521
|
* @param {*} [options] Override http request option.
|
|
455
522
|
* @throws {RequiredError}
|
|
456
523
|
*/
|
|
457
|
-
linkBankTransaction: function (code,
|
|
458
|
-
return localVarFp.linkBankTransaction(code,
|
|
524
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
525
|
+
return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
459
526
|
},
|
|
460
527
|
/**
|
|
461
|
-
*
|
|
528
|
+
* 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.
|
|
529
|
+
* @summary List bank transactions
|
|
462
530
|
* @param {string} [authorization] Bearer Token
|
|
463
531
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
464
532
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -472,6 +540,17 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
472
540
|
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
473
541
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
474
542
|
},
|
|
543
|
+
/**
|
|
544
|
+
* Unlinks an already linked bank transaction
|
|
545
|
+
* @summary Unlink Bank Transaction
|
|
546
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
547
|
+
* @param {string} [authorization] Bearer Token
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
*/
|
|
551
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
552
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
553
|
+
},
|
|
475
554
|
};
|
|
476
555
|
};
|
|
477
556
|
exports.BankTransactionApiFactory = BankTransactionApiFactory;
|
|
@@ -487,7 +566,8 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
487
566
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
488
567
|
}
|
|
489
568
|
/**
|
|
490
|
-
*
|
|
569
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
570
|
+
* @summary Retrieve the Bank Transaction
|
|
491
571
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
492
572
|
* @param {*} [options] Override http request option.
|
|
493
573
|
* @throws {RequiredError}
|
|
@@ -499,7 +579,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
499
579
|
};
|
|
500
580
|
/**
|
|
501
581
|
* Import bank transactions from a swift MT940 file
|
|
502
|
-
* @summary Create the
|
|
582
|
+
* @summary Create the bank transactions
|
|
503
583
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
504
584
|
* @param {*} [options] Override http request option.
|
|
505
585
|
* @throws {RequiredError}
|
|
@@ -520,10 +600,11 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
520
600
|
*/
|
|
521
601
|
BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
|
|
522
602
|
var _this = this;
|
|
523
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.
|
|
603
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
524
604
|
};
|
|
525
605
|
/**
|
|
526
|
-
*
|
|
606
|
+
* 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.
|
|
607
|
+
* @summary List bank transactions
|
|
527
608
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
528
609
|
* @param {*} [options] Override http request option.
|
|
529
610
|
* @throws {RequiredError}
|
|
@@ -534,6 +615,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
534
615
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
535
616
|
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
536
617
|
};
|
|
618
|
+
/**
|
|
619
|
+
* Unlinks an already linked bank transaction
|
|
620
|
+
* @summary Unlink Bank Transaction
|
|
621
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
* @memberof BankTransactionApi
|
|
625
|
+
*/
|
|
626
|
+
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
627
|
+
var _this = this;
|
|
628
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
629
|
+
};
|
|
537
630
|
return BankTransactionApi;
|
|
538
631
|
}(base_1.BaseAPI));
|
|
539
632
|
exports.BankTransactionApi = BankTransactionApi;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: z
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/api/default-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|