@emilgroup/settlement-sdk 0.3.1-beta.10
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 +26 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/health-api.ts +120 -0
- package/api/settlements-api.ts +693 -0
- package/api.ts +29 -0
- package/base.ts +282 -0
- package/common.ts +198 -0
- package/configuration.ts +110 -0
- package/dist/api/health-api.d.ts +66 -0
- package/dist/api/health-api.js +196 -0
- package/dist/api/settlements-api.d.ts +393 -0
- package/dist/api/settlements-api.js +644 -0
- package/dist/api.d.ts +13 -0
- package/dist/api.js +31 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +324 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +89 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- 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/add-settlement-entry-response-class.d.ts +25 -0
- package/dist/models/add-settlement-entry-response-class.js +15 -0
- package/dist/models/create-settlement-request-dto.d.ts +42 -0
- package/dist/models/create-settlement-request-dto.js +20 -0
- package/dist/models/create-settlement-response-class.d.ts +25 -0
- package/dist/models/create-settlement-response-class.js +15 -0
- package/dist/models/get-settlement-response-class.d.ts +25 -0
- package/dist/models/get-settlement-response-class.js +15 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +27 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-settlements-response-class.d.ts +43 -0
- package/dist/models/list-settlements-response-class.js +15 -0
- package/dist/models/settlement-class.d.ts +134 -0
- package/dist/models/settlement-class.js +38 -0
- package/dist/models/settlement-entry-class.d.ts +148 -0
- package/dist/models/settlement-entry-class.js +46 -0
- package/dist/models/settlement-entry-input-dto.d.ts +106 -0
- package/dist/models/settlement-entry-input-dto.js +46 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/add-settlement-entry-request-body-dto.ts +31 -0
- package/models/add-settlement-entry-response-class.ts +31 -0
- package/models/create-settlement-request-dto.ts +51 -0
- package/models/create-settlement-response-class.ts +31 -0
- package/models/get-settlement-response-class.ts +31 -0
- package/models/index.ts +11 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-settlements-response-class.ts +49 -0
- package/models/settlement-class.ts +145 -0
- package/models/settlement-entry-class.ts +160 -0
- package/models/settlement-entry-input-dto.ts +118 -0
- package/package.json +27 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL SettlementService
|
|
5
|
+
* The EMIL SettlementService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { AddSettlementEntryRequestBodyDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { AddSettlementEntryResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { CreateSettlementRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { CreateSettlementResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { GetSettlementResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ListSettlementsResponseClass } from '../models';
|
|
35
|
+
/**
|
|
36
|
+
* SettlementsApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const SettlementsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
43
|
+
* @summary Create the settlement entry
|
|
44
|
+
* @param {string} settlementCode
|
|
45
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
46
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
addSettlementEntry: async (settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51
|
+
// verify required parameter 'settlementCode' is not null or undefined
|
|
52
|
+
assertParamExists('addSettlementEntry', 'settlementCode', settlementCode)
|
|
53
|
+
// verify required parameter 'addSettlementEntryRequestBodyDto' is not null or undefined
|
|
54
|
+
assertParamExists('addSettlementEntry', 'addSettlementEntryRequestBodyDto', addSettlementEntryRequestBodyDto)
|
|
55
|
+
const localVarPath = `/settlementservice/v1/settlements/{settlementCode}/entries`
|
|
56
|
+
.replace(`{${"settlementCode"}}`, encodeURIComponent(String(settlementCode)));
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
let baseAccessToken;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
baseAccessToken = configuration.accessToken;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
// authentication bearer required
|
|
71
|
+
// http bearer authentication required
|
|
72
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
|
+
|
|
74
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
+
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addSettlementEntryRequestBodyDto, localVarRequestOptions, configuration)
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
94
|
+
* @summary Create the settlement
|
|
95
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
createSettlement: async (createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'createSettlementRequestDto' is not null or undefined
|
|
102
|
+
assertParamExists('createSettlement', 'createSettlementRequestDto', createSettlementRequestDto)
|
|
103
|
+
const localVarPath = `/settlementservice/v1/settlements`;
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication bearer required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
+
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
+
|
|
129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSettlementRequestDto, localVarRequestOptions, configuration)
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
141
|
+
* @summary Delete the settlement
|
|
142
|
+
* @param {string} code Unique identifier for the object.
|
|
143
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
deleteSettlement: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
|
+
// verify required parameter 'code' is not null or undefined
|
|
149
|
+
assertParamExists('deleteSettlement', 'code', code)
|
|
150
|
+
const localVarPath = `/settlementservice/v1/settlements/{code}`
|
|
151
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
let baseAccessToken;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
baseAccessToken = configuration.accessToken;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
162
|
+
const localVarHeaderParameter = {} as any;
|
|
163
|
+
const localVarQueryParameter = {} as any;
|
|
164
|
+
|
|
165
|
+
// authentication bearer required
|
|
166
|
+
// http bearer authentication required
|
|
167
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
168
|
+
|
|
169
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
178
|
+
|
|
179
|
+
return {
|
|
180
|
+
url: toPathString(localVarUrlObj),
|
|
181
|
+
options: localVarRequestOptions,
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
186
|
+
* @summary Retrieve the settlement
|
|
187
|
+
* @param {string} code
|
|
188
|
+
* @param {string} expand
|
|
189
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
*/
|
|
193
|
+
getSettlement: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
194
|
+
// verify required parameter 'code' is not null or undefined
|
|
195
|
+
assertParamExists('getSettlement', 'code', code)
|
|
196
|
+
// verify required parameter 'expand' is not null or undefined
|
|
197
|
+
assertParamExists('getSettlement', 'expand', expand)
|
|
198
|
+
const localVarPath = `/settlementservice/v1/settlements/{code}`
|
|
199
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
202
|
+
let baseOptions;
|
|
203
|
+
let baseAccessToken;
|
|
204
|
+
if (configuration) {
|
|
205
|
+
baseOptions = configuration.baseOptions;
|
|
206
|
+
baseAccessToken = configuration.accessToken;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
210
|
+
const localVarHeaderParameter = {} as any;
|
|
211
|
+
const localVarQueryParameter = {} as any;
|
|
212
|
+
|
|
213
|
+
// authentication bearer required
|
|
214
|
+
// http bearer authentication required
|
|
215
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
216
|
+
|
|
217
|
+
if (expand !== undefined) {
|
|
218
|
+
localVarQueryParameter['expand'] = expand;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
222
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
230
|
+
|
|
231
|
+
return {
|
|
232
|
+
url: toPathString(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
238
|
+
* @summary List settlements
|
|
239
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
240
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
241
|
+
* @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.
|
|
242
|
+
* @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>
|
|
243
|
+
* @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>
|
|
244
|
+
* @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>
|
|
245
|
+
* @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>
|
|
246
|
+
* @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>
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
listSettlements: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
251
|
+
const localVarPath = `/settlementservice/v1/settlements`;
|
|
252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
254
|
+
let baseOptions;
|
|
255
|
+
let baseAccessToken;
|
|
256
|
+
if (configuration) {
|
|
257
|
+
baseOptions = configuration.baseOptions;
|
|
258
|
+
baseAccessToken = configuration.accessToken;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
262
|
+
const localVarHeaderParameter = {} as any;
|
|
263
|
+
const localVarQueryParameter = {} as any;
|
|
264
|
+
|
|
265
|
+
// authentication bearer required
|
|
266
|
+
// http bearer authentication required
|
|
267
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
268
|
+
|
|
269
|
+
if (pageSize !== undefined) {
|
|
270
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if (pageToken !== undefined) {
|
|
274
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if (filter !== undefined) {
|
|
278
|
+
localVarQueryParameter['filter'] = filter;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
if (search !== undefined) {
|
|
282
|
+
localVarQueryParameter['search'] = search;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (order !== undefined) {
|
|
286
|
+
localVarQueryParameter['order'] = order;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (expand !== undefined) {
|
|
290
|
+
localVarQueryParameter['expand'] = expand;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (filters !== undefined) {
|
|
294
|
+
localVarQueryParameter['filters'] = filters;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
298
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
304
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
306
|
+
|
|
307
|
+
return {
|
|
308
|
+
url: toPathString(localVarUrlObj),
|
|
309
|
+
options: localVarRequestOptions,
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* SettlementsApi - functional programming interface
|
|
317
|
+
* @export
|
|
318
|
+
*/
|
|
319
|
+
export const SettlementsApiFp = function(configuration?: Configuration) {
|
|
320
|
+
const localVarAxiosParamCreator = SettlementsApiAxiosParamCreator(configuration)
|
|
321
|
+
return {
|
|
322
|
+
/**
|
|
323
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
324
|
+
* @summary Create the settlement entry
|
|
325
|
+
* @param {string} settlementCode
|
|
326
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
327
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
async addSettlementEntry(settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSettlementEntryResponseClass>> {
|
|
332
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addSettlementEntry(settlementCode, addSettlementEntryRequestBodyDto, authorization, options);
|
|
333
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
334
|
+
},
|
|
335
|
+
/**
|
|
336
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
337
|
+
* @summary Create the settlement
|
|
338
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
339
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
async createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>> {
|
|
344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSettlement(createSettlementRequestDto, authorization, options);
|
|
345
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
346
|
+
},
|
|
347
|
+
/**
|
|
348
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
349
|
+
* @summary Delete the settlement
|
|
350
|
+
* @param {string} code Unique identifier for the object.
|
|
351
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
async deleteSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettlement(code, authorization, options);
|
|
357
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
361
|
+
* @summary Retrieve the settlement
|
|
362
|
+
* @param {string} code
|
|
363
|
+
* @param {string} expand
|
|
364
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
async getSettlement(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>> {
|
|
369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettlement(code, expand, authorization, options);
|
|
370
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
371
|
+
},
|
|
372
|
+
/**
|
|
373
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
374
|
+
* @summary List settlements
|
|
375
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
376
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
377
|
+
* @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.
|
|
378
|
+
* @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>
|
|
379
|
+
* @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>
|
|
380
|
+
* @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>
|
|
381
|
+
* @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>
|
|
382
|
+
* @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>
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
*/
|
|
386
|
+
async listSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettlementsResponseClass>> {
|
|
387
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSettlements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
388
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
389
|
+
},
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* SettlementsApi - factory interface
|
|
395
|
+
* @export
|
|
396
|
+
*/
|
|
397
|
+
export const SettlementsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
398
|
+
const localVarFp = SettlementsApiFp(configuration)
|
|
399
|
+
return {
|
|
400
|
+
/**
|
|
401
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
402
|
+
* @summary Create the settlement entry
|
|
403
|
+
* @param {string} settlementCode
|
|
404
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
405
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
addSettlementEntry(settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: any): AxiosPromise<AddSettlementEntryResponseClass> {
|
|
410
|
+
return localVarFp.addSettlementEntry(settlementCode, addSettlementEntryRequestBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
411
|
+
},
|
|
412
|
+
/**
|
|
413
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
414
|
+
* @summary Create the settlement
|
|
415
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
416
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettlementResponseClass> {
|
|
421
|
+
return localVarFp.createSettlement(createSettlementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
422
|
+
},
|
|
423
|
+
/**
|
|
424
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
425
|
+
* @summary Delete the settlement
|
|
426
|
+
* @param {string} code Unique identifier for the object.
|
|
427
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
deleteSettlement(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
432
|
+
return localVarFp.deleteSettlement(code, authorization, options).then((request) => request(axios, basePath));
|
|
433
|
+
},
|
|
434
|
+
/**
|
|
435
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
436
|
+
* @summary Retrieve the settlement
|
|
437
|
+
* @param {string} code
|
|
438
|
+
* @param {string} expand
|
|
439
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
getSettlement(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetSettlementResponseClass> {
|
|
444
|
+
return localVarFp.getSettlement(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
445
|
+
},
|
|
446
|
+
/**
|
|
447
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
448
|
+
* @summary List settlements
|
|
449
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
450
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
451
|
+
* @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.
|
|
452
|
+
* @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>
|
|
453
|
+
* @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>
|
|
454
|
+
* @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>
|
|
455
|
+
* @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>
|
|
456
|
+
* @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>
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
listSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettlementsResponseClass> {
|
|
461
|
+
return localVarFp.listSettlements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Request parameters for addSettlementEntry operation in SettlementsApi.
|
|
468
|
+
* @export
|
|
469
|
+
* @interface SettlementsApiAddSettlementEntryRequest
|
|
470
|
+
*/
|
|
471
|
+
export interface SettlementsApiAddSettlementEntryRequest {
|
|
472
|
+
/**
|
|
473
|
+
*
|
|
474
|
+
* @type {string}
|
|
475
|
+
* @memberof SettlementsApiAddSettlementEntry
|
|
476
|
+
*/
|
|
477
|
+
readonly settlementCode: string
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {AddSettlementEntryRequestBodyDto}
|
|
482
|
+
* @memberof SettlementsApiAddSettlementEntry
|
|
483
|
+
*/
|
|
484
|
+
readonly addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof SettlementsApiAddSettlementEntry
|
|
490
|
+
*/
|
|
491
|
+
readonly authorization?: string
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Request parameters for createSettlement operation in SettlementsApi.
|
|
496
|
+
* @export
|
|
497
|
+
* @interface SettlementsApiCreateSettlementRequest
|
|
498
|
+
*/
|
|
499
|
+
export interface SettlementsApiCreateSettlementRequest {
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @type {CreateSettlementRequestDto}
|
|
503
|
+
* @memberof SettlementsApiCreateSettlement
|
|
504
|
+
*/
|
|
505
|
+
readonly createSettlementRequestDto: CreateSettlementRequestDto
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof SettlementsApiCreateSettlement
|
|
511
|
+
*/
|
|
512
|
+
readonly authorization?: string
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Request parameters for deleteSettlement operation in SettlementsApi.
|
|
517
|
+
* @export
|
|
518
|
+
* @interface SettlementsApiDeleteSettlementRequest
|
|
519
|
+
*/
|
|
520
|
+
export interface SettlementsApiDeleteSettlementRequest {
|
|
521
|
+
/**
|
|
522
|
+
* Unique identifier for the object.
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof SettlementsApiDeleteSettlement
|
|
525
|
+
*/
|
|
526
|
+
readonly code: string
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
530
|
+
* @type {string}
|
|
531
|
+
* @memberof SettlementsApiDeleteSettlement
|
|
532
|
+
*/
|
|
533
|
+
readonly authorization?: string
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Request parameters for getSettlement operation in SettlementsApi.
|
|
538
|
+
* @export
|
|
539
|
+
* @interface SettlementsApiGetSettlementRequest
|
|
540
|
+
*/
|
|
541
|
+
export interface SettlementsApiGetSettlementRequest {
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @type {string}
|
|
545
|
+
* @memberof SettlementsApiGetSettlement
|
|
546
|
+
*/
|
|
547
|
+
readonly code: string
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @type {string}
|
|
552
|
+
* @memberof SettlementsApiGetSettlement
|
|
553
|
+
*/
|
|
554
|
+
readonly expand: string
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof SettlementsApiGetSettlement
|
|
560
|
+
*/
|
|
561
|
+
readonly authorization?: string
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Request parameters for listSettlements operation in SettlementsApi.
|
|
566
|
+
* @export
|
|
567
|
+
* @interface SettlementsApiListSettlementsRequest
|
|
568
|
+
*/
|
|
569
|
+
export interface SettlementsApiListSettlementsRequest {
|
|
570
|
+
/**
|
|
571
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
572
|
+
* @type {string}
|
|
573
|
+
* @memberof SettlementsApiListSettlements
|
|
574
|
+
*/
|
|
575
|
+
readonly authorization?: string
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
579
|
+
* @type {number}
|
|
580
|
+
* @memberof SettlementsApiListSettlements
|
|
581
|
+
*/
|
|
582
|
+
readonly pageSize?: number
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* 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.
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof SettlementsApiListSettlements
|
|
588
|
+
*/
|
|
589
|
+
readonly pageToken?: string
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* 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>
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof SettlementsApiListSettlements
|
|
595
|
+
*/
|
|
596
|
+
readonly filter?: string
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* 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>
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof SettlementsApiListSettlements
|
|
602
|
+
*/
|
|
603
|
+
readonly search?: string
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* 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>
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof SettlementsApiListSettlements
|
|
609
|
+
*/
|
|
610
|
+
readonly order?: string
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* 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>
|
|
614
|
+
* @type {string}
|
|
615
|
+
* @memberof SettlementsApiListSettlements
|
|
616
|
+
*/
|
|
617
|
+
readonly expand?: string
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* 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>
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof SettlementsApiListSettlements
|
|
623
|
+
*/
|
|
624
|
+
readonly filters?: string
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* SettlementsApi - object-oriented interface
|
|
629
|
+
* @export
|
|
630
|
+
* @class SettlementsApi
|
|
631
|
+
* @extends {BaseAPI}
|
|
632
|
+
*/
|
|
633
|
+
export class SettlementsApi extends BaseAPI {
|
|
634
|
+
/**
|
|
635
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
636
|
+
* @summary Create the settlement entry
|
|
637
|
+
* @param {SettlementsApiAddSettlementEntryRequest} requestParameters Request parameters.
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof SettlementsApi
|
|
641
|
+
*/
|
|
642
|
+
public addSettlementEntry(requestParameters: SettlementsApiAddSettlementEntryRequest, options?: AxiosRequestConfig) {
|
|
643
|
+
return SettlementsApiFp(this.configuration).addSettlementEntry(requestParameters.settlementCode, requestParameters.addSettlementEntryRequestBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
648
|
+
* @summary Create the settlement
|
|
649
|
+
* @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
|
|
650
|
+
* @param {*} [options] Override http request option.
|
|
651
|
+
* @throws {RequiredError}
|
|
652
|
+
* @memberof SettlementsApi
|
|
653
|
+
*/
|
|
654
|
+
public createSettlement(requestParameters: SettlementsApiCreateSettlementRequest, options?: AxiosRequestConfig) {
|
|
655
|
+
return SettlementsApiFp(this.configuration).createSettlement(requestParameters.createSettlementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
660
|
+
* @summary Delete the settlement
|
|
661
|
+
* @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
* @memberof SettlementsApi
|
|
665
|
+
*/
|
|
666
|
+
public deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return SettlementsApiFp(this.configuration).deleteSettlement(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
672
|
+
* @summary Retrieve the settlement
|
|
673
|
+
* @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
* @memberof SettlementsApi
|
|
677
|
+
*/
|
|
678
|
+
public getSettlement(requestParameters: SettlementsApiGetSettlementRequest, options?: AxiosRequestConfig) {
|
|
679
|
+
return SettlementsApiFp(this.configuration).getSettlement(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
684
|
+
* @summary List settlements
|
|
685
|
+
* @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
* @memberof SettlementsApi
|
|
689
|
+
*/
|
|
690
|
+
public listSettlements(requestParameters: SettlementsApiListSettlementsRequest = {}, options?: AxiosRequestConfig) {
|
|
691
|
+
return SettlementsApiFp(this.configuration).listSettlements(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
692
|
+
}
|
|
693
|
+
}
|