@emilgroup/settlement-sdk 0.3.1-beta.6 → 0.3.1-beta.8
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 +1 -0
- package/README.md +2 -2
- package/api/settlements-api.ts +63 -46
- package/dist/api/settlements-api.d.ts +53 -43
- package/dist/api/settlements-api.js +48 -41
- package/dist/models/add-settlement-entry-request-body-dto.d.ts +25 -0
- package/dist/models/add-settlement-entry-request-body-dto.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/settlement-entry-class.d.ts +30 -3
- package/dist/models/settlement-entry-class.js +25 -1
- package/dist/models/settlement-entry-input-dto.d.ts +1 -0
- package/dist/models/settlement-entry-input-dto.js +1 -0
- package/models/add-settlement-entry-request-body-dto.ts +31 -0
- package/models/index.ts +1 -0
- package/models/settlement-entry-class.ts +33 -3
- package/models/settlement-entry-input-dto.ts +1 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { AddSettlementEntryRequestBodyDto } from '../models';
|
|
15
16
|
import { AddSettlementEntryResponseClass } from '../models';
|
|
16
17
|
import { CreateSettlementRequestDto } from '../models';
|
|
17
18
|
import { CreateSettlementResponseClass } from '../models';
|
|
@@ -23,16 +24,17 @@ import { ListSettlementsResponseClass } from '../models';
|
|
|
23
24
|
*/
|
|
24
25
|
export declare const SettlementsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
26
|
/**
|
|
26
|
-
* This will add settlement entry. **Required Permissions**
|
|
27
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
27
28
|
* @summary Create the settlement entry
|
|
28
29
|
* @param {string} settlementCode
|
|
30
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
29
31
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
30
32
|
* @param {*} [options] Override http request option.
|
|
31
33
|
* @throws {RequiredError}
|
|
32
34
|
*/
|
|
33
|
-
addSettlementEntry: (settlementCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
addSettlementEntry: (settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
36
|
/**
|
|
35
|
-
* This will create settlement. **Required Permissions**
|
|
37
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
36
38
|
* @summary Create the settlement
|
|
37
39
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
38
40
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -41,7 +43,7 @@ export declare const SettlementsApiAxiosParamCreator: (configuration?: Configura
|
|
|
41
43
|
*/
|
|
42
44
|
createSettlement: (createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
45
|
/**
|
|
44
|
-
* This will delete settlement. **Required Permissions**
|
|
46
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
45
47
|
* @summary Delete the settlement
|
|
46
48
|
* @param {string} code Unique identifier for the object.
|
|
47
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -50,7 +52,7 @@ export declare const SettlementsApiAxiosParamCreator: (configuration?: Configura
|
|
|
50
52
|
*/
|
|
51
53
|
deleteSettlement: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
54
|
/**
|
|
53
|
-
* This will get settlement. **Required Permissions**
|
|
55
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
54
56
|
* @summary Retrieve the settlement
|
|
55
57
|
* @param {string} code
|
|
56
58
|
* @param {string} expand
|
|
@@ -60,16 +62,16 @@ export declare const SettlementsApiAxiosParamCreator: (configuration?: Configura
|
|
|
60
62
|
*/
|
|
61
63
|
getSettlement: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
64
|
/**
|
|
63
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
65
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
64
66
|
* @summary List settlements
|
|
65
67
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
66
68
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
67
69
|
* @param {string} [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.
|
|
68
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values:
|
|
69
|
-
* @param {string} [search]
|
|
70
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
71
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
72
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values:
|
|
70
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
71
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, settlementNumber, domainEntityCode, domainEntityNumber, partnerCode</i>
|
|
72
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: status, balance, createdAt</i>
|
|
73
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: settlementEntries<i>
|
|
74
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
73
75
|
* @param {*} [options] Override http request option.
|
|
74
76
|
* @throws {RequiredError}
|
|
75
77
|
*/
|
|
@@ -81,16 +83,17 @@ export declare const SettlementsApiAxiosParamCreator: (configuration?: Configura
|
|
|
81
83
|
*/
|
|
82
84
|
export declare const SettlementsApiFp: (configuration?: Configuration) => {
|
|
83
85
|
/**
|
|
84
|
-
* This will add settlement entry. **Required Permissions**
|
|
86
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
85
87
|
* @summary Create the settlement entry
|
|
86
88
|
* @param {string} settlementCode
|
|
89
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
87
90
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
88
91
|
* @param {*} [options] Override http request option.
|
|
89
92
|
* @throws {RequiredError}
|
|
90
93
|
*/
|
|
91
|
-
addSettlementEntry(settlementCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSettlementEntryResponseClass>>;
|
|
94
|
+
addSettlementEntry(settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSettlementEntryResponseClass>>;
|
|
92
95
|
/**
|
|
93
|
-
* This will create settlement. **Required Permissions**
|
|
96
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
94
97
|
* @summary Create the settlement
|
|
95
98
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
96
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -99,7 +102,7 @@ export declare const SettlementsApiFp: (configuration?: Configuration) => {
|
|
|
99
102
|
*/
|
|
100
103
|
createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>>;
|
|
101
104
|
/**
|
|
102
|
-
* This will delete settlement. **Required Permissions**
|
|
105
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
103
106
|
* @summary Delete the settlement
|
|
104
107
|
* @param {string} code Unique identifier for the object.
|
|
105
108
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -108,7 +111,7 @@ export declare const SettlementsApiFp: (configuration?: Configuration) => {
|
|
|
108
111
|
*/
|
|
109
112
|
deleteSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
110
113
|
/**
|
|
111
|
-
* This will get settlement. **Required Permissions**
|
|
114
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
112
115
|
* @summary Retrieve the settlement
|
|
113
116
|
* @param {string} code
|
|
114
117
|
* @param {string} expand
|
|
@@ -118,16 +121,16 @@ export declare const SettlementsApiFp: (configuration?: Configuration) => {
|
|
|
118
121
|
*/
|
|
119
122
|
getSettlement(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>>;
|
|
120
123
|
/**
|
|
121
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
124
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
122
125
|
* @summary List settlements
|
|
123
126
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
124
127
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
125
128
|
* @param {string} [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.
|
|
126
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values:
|
|
127
|
-
* @param {string} [search]
|
|
128
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
129
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
130
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values:
|
|
129
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
130
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, settlementNumber, domainEntityCode, domainEntityNumber, partnerCode</i>
|
|
131
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: status, balance, createdAt</i>
|
|
132
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: settlementEntries<i>
|
|
133
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
131
134
|
* @param {*} [options] Override http request option.
|
|
132
135
|
* @throws {RequiredError}
|
|
133
136
|
*/
|
|
@@ -139,16 +142,17 @@ export declare const SettlementsApiFp: (configuration?: Configuration) => {
|
|
|
139
142
|
*/
|
|
140
143
|
export declare const SettlementsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
141
144
|
/**
|
|
142
|
-
* This will add settlement entry. **Required Permissions**
|
|
145
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
143
146
|
* @summary Create the settlement entry
|
|
144
147
|
* @param {string} settlementCode
|
|
148
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
145
149
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
146
150
|
* @param {*} [options] Override http request option.
|
|
147
151
|
* @throws {RequiredError}
|
|
148
152
|
*/
|
|
149
|
-
addSettlementEntry(settlementCode: string, authorization?: string, options?: any): AxiosPromise<AddSettlementEntryResponseClass>;
|
|
153
|
+
addSettlementEntry(settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: any): AxiosPromise<AddSettlementEntryResponseClass>;
|
|
150
154
|
/**
|
|
151
|
-
* This will create settlement. **Required Permissions**
|
|
155
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
152
156
|
* @summary Create the settlement
|
|
153
157
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
154
158
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -157,7 +161,7 @@ export declare const SettlementsApiFactory: (configuration?: Configuration, base
|
|
|
157
161
|
*/
|
|
158
162
|
createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettlementResponseClass>;
|
|
159
163
|
/**
|
|
160
|
-
* This will delete settlement. **Required Permissions**
|
|
164
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
161
165
|
* @summary Delete the settlement
|
|
162
166
|
* @param {string} code Unique identifier for the object.
|
|
163
167
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -166,7 +170,7 @@ export declare const SettlementsApiFactory: (configuration?: Configuration, base
|
|
|
166
170
|
*/
|
|
167
171
|
deleteSettlement(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
168
172
|
/**
|
|
169
|
-
* This will get settlement. **Required Permissions**
|
|
173
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
170
174
|
* @summary Retrieve the settlement
|
|
171
175
|
* @param {string} code
|
|
172
176
|
* @param {string} expand
|
|
@@ -176,16 +180,16 @@ export declare const SettlementsApiFactory: (configuration?: Configuration, base
|
|
|
176
180
|
*/
|
|
177
181
|
getSettlement(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetSettlementResponseClass>;
|
|
178
182
|
/**
|
|
179
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
183
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
180
184
|
* @summary List settlements
|
|
181
185
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
186
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
183
187
|
* @param {string} [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.
|
|
184
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values:
|
|
185
|
-
* @param {string} [search]
|
|
186
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
187
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
188
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values:
|
|
188
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
189
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, settlementNumber, domainEntityCode, domainEntityNumber, partnerCode</i>
|
|
190
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: status, balance, createdAt</i>
|
|
191
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: settlementEntries<i>
|
|
192
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
189
193
|
* @param {*} [options] Override http request option.
|
|
190
194
|
* @throws {RequiredError}
|
|
191
195
|
*/
|
|
@@ -203,6 +207,12 @@ export interface SettlementsApiAddSettlementEntryRequest {
|
|
|
203
207
|
* @memberof SettlementsApiAddSettlementEntry
|
|
204
208
|
*/
|
|
205
209
|
readonly settlementCode: string;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {AddSettlementEntryRequestBodyDto}
|
|
213
|
+
* @memberof SettlementsApiAddSettlementEntry
|
|
214
|
+
*/
|
|
215
|
+
readonly addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto;
|
|
206
216
|
/**
|
|
207
217
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
208
218
|
* @type {string}
|
|
@@ -298,31 +308,31 @@ export interface SettlementsApiListSettlementsRequest {
|
|
|
298
308
|
*/
|
|
299
309
|
readonly pageToken?: string;
|
|
300
310
|
/**
|
|
301
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values:
|
|
311
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
302
312
|
* @type {string}
|
|
303
313
|
* @memberof SettlementsApiListSettlements
|
|
304
314
|
*/
|
|
305
315
|
readonly filter?: string;
|
|
306
316
|
/**
|
|
307
|
-
*
|
|
317
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, settlementNumber, domainEntityCode, domainEntityNumber, partnerCode</i>
|
|
308
318
|
* @type {string}
|
|
309
319
|
* @memberof SettlementsApiListSettlements
|
|
310
320
|
*/
|
|
311
321
|
readonly search?: string;
|
|
312
322
|
/**
|
|
313
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
323
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: status, balance, createdAt</i>
|
|
314
324
|
* @type {string}
|
|
315
325
|
* @memberof SettlementsApiListSettlements
|
|
316
326
|
*/
|
|
317
327
|
readonly order?: string;
|
|
318
328
|
/**
|
|
319
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
329
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: settlementEntries<i>
|
|
320
330
|
* @type {string}
|
|
321
331
|
* @memberof SettlementsApiListSettlements
|
|
322
332
|
*/
|
|
323
333
|
readonly expand?: string;
|
|
324
334
|
/**
|
|
325
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values:
|
|
335
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
326
336
|
* @type {string}
|
|
327
337
|
* @memberof SettlementsApiListSettlements
|
|
328
338
|
*/
|
|
@@ -336,7 +346,7 @@ export interface SettlementsApiListSettlementsRequest {
|
|
|
336
346
|
*/
|
|
337
347
|
export declare class SettlementsApi extends BaseAPI {
|
|
338
348
|
/**
|
|
339
|
-
* This will add settlement entry. **Required Permissions**
|
|
349
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
340
350
|
* @summary Create the settlement entry
|
|
341
351
|
* @param {SettlementsApiAddSettlementEntryRequest} requestParameters Request parameters.
|
|
342
352
|
* @param {*} [options] Override http request option.
|
|
@@ -345,7 +355,7 @@ export declare class SettlementsApi extends BaseAPI {
|
|
|
345
355
|
*/
|
|
346
356
|
addSettlementEntry(requestParameters: SettlementsApiAddSettlementEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AddSettlementEntryResponseClass, any, {}>>;
|
|
347
357
|
/**
|
|
348
|
-
* This will create settlement. **Required Permissions**
|
|
358
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
349
359
|
* @summary Create the settlement
|
|
350
360
|
* @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
|
|
351
361
|
* @param {*} [options] Override http request option.
|
|
@@ -354,7 +364,7 @@ export declare class SettlementsApi extends BaseAPI {
|
|
|
354
364
|
*/
|
|
355
365
|
createSettlement(requestParameters: SettlementsApiCreateSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSettlementResponseClass, any, {}>>;
|
|
356
366
|
/**
|
|
357
|
-
* This will delete settlement. **Required Permissions**
|
|
367
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
358
368
|
* @summary Delete the settlement
|
|
359
369
|
* @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
|
|
360
370
|
* @param {*} [options] Override http request option.
|
|
@@ -363,7 +373,7 @@ export declare class SettlementsApi extends BaseAPI {
|
|
|
363
373
|
*/
|
|
364
374
|
deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
365
375
|
/**
|
|
366
|
-
* This will get settlement. **Required Permissions**
|
|
376
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
367
377
|
* @summary Retrieve the settlement
|
|
368
378
|
* @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
|
|
369
379
|
* @param {*} [options] Override http request option.
|
|
@@ -372,7 +382,7 @@ export declare class SettlementsApi extends BaseAPI {
|
|
|
372
382
|
*/
|
|
373
383
|
getSettlement(requestParameters: SettlementsApiGetSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettlementResponseClass, any, {}>>;
|
|
374
384
|
/**
|
|
375
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
385
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
376
386
|
* @summary List settlements
|
|
377
387
|
* @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
|
|
378
388
|
* @param {*} [options] Override http request option.
|
|
@@ -93,14 +93,15 @@ var SettlementsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will add settlement entry. **Required Permissions**
|
|
96
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
97
97
|
* @summary Create the settlement entry
|
|
98
98
|
* @param {string} settlementCode
|
|
99
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
99
100
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
101
|
* @param {*} [options] Override http request option.
|
|
101
102
|
* @throws {RequiredError}
|
|
102
103
|
*/
|
|
103
|
-
addSettlementEntry: function (settlementCode, authorization, options) {
|
|
104
|
+
addSettlementEntry: function (settlementCode, addSettlementEntryRequestBodyDto, authorization, options) {
|
|
104
105
|
if (options === void 0) { options = {}; }
|
|
105
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
107
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -109,6 +110,8 @@ var SettlementsApiAxiosParamCreator = function (configuration) {
|
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'settlementCode' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('addSettlementEntry', 'settlementCode', settlementCode);
|
|
113
|
+
// verify required parameter 'addSettlementEntryRequestBodyDto' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('addSettlementEntry', 'addSettlementEntryRequestBodyDto', addSettlementEntryRequestBodyDto);
|
|
112
115
|
localVarPath = "/settlementservice/v1/settlements/{settlementCode}/entries"
|
|
113
116
|
.replace("{".concat("settlementCode", "}"), encodeURIComponent(String(settlementCode)));
|
|
114
117
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -129,9 +132,11 @@ var SettlementsApiAxiosParamCreator = function (configuration) {
|
|
|
129
132
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
133
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
134
|
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addSettlementEntryRequestBodyDto, localVarRequestOptions, configuration);
|
|
135
140
|
return [2 /*return*/, {
|
|
136
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
142
|
options: localVarRequestOptions,
|
|
@@ -141,7 +146,7 @@ var SettlementsApiAxiosParamCreator = function (configuration) {
|
|
|
141
146
|
});
|
|
142
147
|
},
|
|
143
148
|
/**
|
|
144
|
-
* This will create settlement. **Required Permissions**
|
|
149
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
145
150
|
* @summary Create the settlement
|
|
146
151
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
147
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -190,7 +195,7 @@ var SettlementsApiAxiosParamCreator = function (configuration) {
|
|
|
190
195
|
});
|
|
191
196
|
},
|
|
192
197
|
/**
|
|
193
|
-
* This will delete settlement. **Required Permissions**
|
|
198
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
194
199
|
* @summary Delete the settlement
|
|
195
200
|
* @param {string} code Unique identifier for the object.
|
|
196
201
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -238,7 +243,7 @@ var SettlementsApiAxiosParamCreator = function (configuration) {
|
|
|
238
243
|
});
|
|
239
244
|
},
|
|
240
245
|
/**
|
|
241
|
-
* This will get settlement. **Required Permissions**
|
|
246
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
242
247
|
* @summary Retrieve the settlement
|
|
243
248
|
* @param {string} code
|
|
244
249
|
* @param {string} expand
|
|
@@ -292,16 +297,16 @@ var SettlementsApiAxiosParamCreator = function (configuration) {
|
|
|
292
297
|
});
|
|
293
298
|
},
|
|
294
299
|
/**
|
|
295
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
300
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
296
301
|
* @summary List settlements
|
|
297
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
298
303
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
299
304
|
* @param {string} [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.
|
|
300
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values:
|
|
301
|
-
* @param {string} [search]
|
|
302
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
303
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
304
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values:
|
|
305
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
306
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, settlementNumber, domainEntityCode, domainEntityNumber, partnerCode</i>
|
|
307
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: status, balance, createdAt</i>
|
|
308
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: settlementEntries<i>
|
|
309
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
305
310
|
* @param {*} [options] Override http request option.
|
|
306
311
|
* @throws {RequiredError}
|
|
307
312
|
*/
|
|
@@ -374,19 +379,20 @@ var SettlementsApiFp = function (configuration) {
|
|
|
374
379
|
var localVarAxiosParamCreator = (0, exports.SettlementsApiAxiosParamCreator)(configuration);
|
|
375
380
|
return {
|
|
376
381
|
/**
|
|
377
|
-
* This will add settlement entry. **Required Permissions**
|
|
382
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
378
383
|
* @summary Create the settlement entry
|
|
379
384
|
* @param {string} settlementCode
|
|
385
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
380
386
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
381
387
|
* @param {*} [options] Override http request option.
|
|
382
388
|
* @throws {RequiredError}
|
|
383
389
|
*/
|
|
384
|
-
addSettlementEntry: function (settlementCode, authorization, options) {
|
|
390
|
+
addSettlementEntry: function (settlementCode, addSettlementEntryRequestBodyDto, authorization, options) {
|
|
385
391
|
return __awaiter(this, void 0, void 0, function () {
|
|
386
392
|
var localVarAxiosArgs;
|
|
387
393
|
return __generator(this, function (_a) {
|
|
388
394
|
switch (_a.label) {
|
|
389
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSettlementEntry(settlementCode, authorization, options)];
|
|
395
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSettlementEntry(settlementCode, addSettlementEntryRequestBodyDto, authorization, options)];
|
|
390
396
|
case 1:
|
|
391
397
|
localVarAxiosArgs = _a.sent();
|
|
392
398
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -395,7 +401,7 @@ var SettlementsApiFp = function (configuration) {
|
|
|
395
401
|
});
|
|
396
402
|
},
|
|
397
403
|
/**
|
|
398
|
-
* This will create settlement. **Required Permissions**
|
|
404
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
399
405
|
* @summary Create the settlement
|
|
400
406
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
401
407
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -416,7 +422,7 @@ var SettlementsApiFp = function (configuration) {
|
|
|
416
422
|
});
|
|
417
423
|
},
|
|
418
424
|
/**
|
|
419
|
-
* This will delete settlement. **Required Permissions**
|
|
425
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
420
426
|
* @summary Delete the settlement
|
|
421
427
|
* @param {string} code Unique identifier for the object.
|
|
422
428
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -437,7 +443,7 @@ var SettlementsApiFp = function (configuration) {
|
|
|
437
443
|
});
|
|
438
444
|
},
|
|
439
445
|
/**
|
|
440
|
-
* This will get settlement. **Required Permissions**
|
|
446
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
441
447
|
* @summary Retrieve the settlement
|
|
442
448
|
* @param {string} code
|
|
443
449
|
* @param {string} expand
|
|
@@ -459,16 +465,16 @@ var SettlementsApiFp = function (configuration) {
|
|
|
459
465
|
});
|
|
460
466
|
},
|
|
461
467
|
/**
|
|
462
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
468
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
463
469
|
* @summary List settlements
|
|
464
470
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
471
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
466
472
|
* @param {string} [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.
|
|
467
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values:
|
|
468
|
-
* @param {string} [search]
|
|
469
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
470
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
471
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values:
|
|
473
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
474
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, settlementNumber, domainEntityCode, domainEntityNumber, partnerCode</i>
|
|
475
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: status, balance, createdAt</i>
|
|
476
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: settlementEntries<i>
|
|
477
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
472
478
|
* @param {*} [options] Override http request option.
|
|
473
479
|
* @throws {RequiredError}
|
|
474
480
|
*/
|
|
@@ -496,18 +502,19 @@ var SettlementsApiFactory = function (configuration, basePath, axios) {
|
|
|
496
502
|
var localVarFp = (0, exports.SettlementsApiFp)(configuration);
|
|
497
503
|
return {
|
|
498
504
|
/**
|
|
499
|
-
* This will add settlement entry. **Required Permissions**
|
|
505
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
500
506
|
* @summary Create the settlement entry
|
|
501
507
|
* @param {string} settlementCode
|
|
508
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
502
509
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
503
510
|
* @param {*} [options] Override http request option.
|
|
504
511
|
* @throws {RequiredError}
|
|
505
512
|
*/
|
|
506
|
-
addSettlementEntry: function (settlementCode, authorization, options) {
|
|
507
|
-
return localVarFp.addSettlementEntry(settlementCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
513
|
+
addSettlementEntry: function (settlementCode, addSettlementEntryRequestBodyDto, authorization, options) {
|
|
514
|
+
return localVarFp.addSettlementEntry(settlementCode, addSettlementEntryRequestBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
508
515
|
},
|
|
509
516
|
/**
|
|
510
|
-
* This will create settlement. **Required Permissions**
|
|
517
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
511
518
|
* @summary Create the settlement
|
|
512
519
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
513
520
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -518,7 +525,7 @@ var SettlementsApiFactory = function (configuration, basePath, axios) {
|
|
|
518
525
|
return localVarFp.createSettlement(createSettlementRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
519
526
|
},
|
|
520
527
|
/**
|
|
521
|
-
* This will delete settlement. **Required Permissions**
|
|
528
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
522
529
|
* @summary Delete the settlement
|
|
523
530
|
* @param {string} code Unique identifier for the object.
|
|
524
531
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -529,7 +536,7 @@ var SettlementsApiFactory = function (configuration, basePath, axios) {
|
|
|
529
536
|
return localVarFp.deleteSettlement(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
530
537
|
},
|
|
531
538
|
/**
|
|
532
|
-
* This will get settlement. **Required Permissions**
|
|
539
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
533
540
|
* @summary Retrieve the settlement
|
|
534
541
|
* @param {string} code
|
|
535
542
|
* @param {string} expand
|
|
@@ -541,16 +548,16 @@ var SettlementsApiFactory = function (configuration, basePath, axios) {
|
|
|
541
548
|
return localVarFp.getSettlement(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
542
549
|
},
|
|
543
550
|
/**
|
|
544
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
551
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
545
552
|
* @summary List settlements
|
|
546
553
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
547
554
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
548
555
|
* @param {string} [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.
|
|
549
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values:
|
|
550
|
-
* @param {string} [search]
|
|
551
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
552
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
553
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values:
|
|
556
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
557
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, settlementNumber, domainEntityCode, domainEntityNumber, partnerCode</i>
|
|
558
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: status, balance, createdAt</i>
|
|
559
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: settlementEntries<i>
|
|
560
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, settlementNumber, domainEntityCode, domainEntityType, domainEntityNumber, partnerCode, status, currency, createdAt</i>
|
|
554
561
|
* @param {*} [options] Override http request option.
|
|
555
562
|
* @throws {RequiredError}
|
|
556
563
|
*/
|
|
@@ -572,7 +579,7 @@ var SettlementsApi = /** @class */ (function (_super) {
|
|
|
572
579
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
573
580
|
}
|
|
574
581
|
/**
|
|
575
|
-
* This will add settlement entry. **Required Permissions**
|
|
582
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
576
583
|
* @summary Create the settlement entry
|
|
577
584
|
* @param {SettlementsApiAddSettlementEntryRequest} requestParameters Request parameters.
|
|
578
585
|
* @param {*} [options] Override http request option.
|
|
@@ -581,10 +588,10 @@ var SettlementsApi = /** @class */ (function (_super) {
|
|
|
581
588
|
*/
|
|
582
589
|
SettlementsApi.prototype.addSettlementEntry = function (requestParameters, options) {
|
|
583
590
|
var _this = this;
|
|
584
|
-
return (0, exports.SettlementsApiFp)(this.configuration).addSettlementEntry(requestParameters.settlementCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
591
|
+
return (0, exports.SettlementsApiFp)(this.configuration).addSettlementEntry(requestParameters.settlementCode, requestParameters.addSettlementEntryRequestBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
585
592
|
};
|
|
586
593
|
/**
|
|
587
|
-
* This will create settlement. **Required Permissions**
|
|
594
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
588
595
|
* @summary Create the settlement
|
|
589
596
|
* @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
|
|
590
597
|
* @param {*} [options] Override http request option.
|
|
@@ -596,7 +603,7 @@ var SettlementsApi = /** @class */ (function (_super) {
|
|
|
596
603
|
return (0, exports.SettlementsApiFp)(this.configuration).createSettlement(requestParameters.createSettlementRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
597
604
|
};
|
|
598
605
|
/**
|
|
599
|
-
* This will delete settlement. **Required Permissions**
|
|
606
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
600
607
|
* @summary Delete the settlement
|
|
601
608
|
* @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
|
|
602
609
|
* @param {*} [options] Override http request option.
|
|
@@ -608,7 +615,7 @@ var SettlementsApi = /** @class */ (function (_super) {
|
|
|
608
615
|
return (0, exports.SettlementsApiFp)(this.configuration).deleteSettlement(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
609
616
|
};
|
|
610
617
|
/**
|
|
611
|
-
* This will get settlement. **Required Permissions**
|
|
618
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
612
619
|
* @summary Retrieve the settlement
|
|
613
620
|
* @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
|
|
614
621
|
* @param {*} [options] Override http request option.
|
|
@@ -620,7 +627,7 @@ var SettlementsApi = /** @class */ (function (_super) {
|
|
|
620
627
|
return (0, exports.SettlementsApiFp)(this.configuration).getSettlement(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
628
|
};
|
|
622
629
|
/**
|
|
623
|
-
* Retrieves a list of settlements. **Required Permissions**
|
|
630
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
624
631
|
* @summary List settlements
|
|
625
632
|
* @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
|
|
626
633
|
* @param {*} [options] Override http request option.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL SettlementService
|
|
3
|
+
* The EMIL SettlementService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { SettlementEntryInputDto } from './settlement-entry-input-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddSettlementEntryRequestBodyDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AddSettlementEntryRequestBodyDto {
|
|
19
|
+
/**
|
|
20
|
+
* Entry of the settlement
|
|
21
|
+
* @type {SettlementEntryInputDto}
|
|
22
|
+
* @memberof AddSettlementEntryRequestBodyDto
|
|
23
|
+
*/
|
|
24
|
+
'entry'?: SettlementEntryInputDto;
|
|
25
|
+
}
|