@emilgroup/settlement-sdk 0.3.1-beta.6

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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +25 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/health-api.ts +120 -0
  6. package/api/settlements-api.ts +676 -0
  7. package/api.ts +29 -0
  8. package/base.ts +282 -0
  9. package/common.ts +198 -0
  10. package/configuration.ts +110 -0
  11. package/dist/api/health-api.d.ts +66 -0
  12. package/dist/api/health-api.js +196 -0
  13. package/dist/api/settlements-api.d.ts +383 -0
  14. package/dist/api/settlements-api.js +637 -0
  15. package/dist/api.d.ts +13 -0
  16. package/dist/api.js +31 -0
  17. package/dist/base.d.ts +77 -0
  18. package/dist/base.js +324 -0
  19. package/dist/common.d.ts +91 -0
  20. package/dist/common.js +276 -0
  21. package/dist/configuration.d.ts +89 -0
  22. package/dist/configuration.js +52 -0
  23. package/dist/index.d.ts +15 -0
  24. package/dist/index.js +36 -0
  25. package/dist/models/add-settlement-entry-response-class.d.ts +25 -0
  26. package/dist/models/add-settlement-entry-response-class.js +15 -0
  27. package/dist/models/create-settlement-request-dto.d.ts +42 -0
  28. package/dist/models/create-settlement-request-dto.js +20 -0
  29. package/dist/models/create-settlement-response-class.d.ts +25 -0
  30. package/dist/models/create-settlement-response-class.js +15 -0
  31. package/dist/models/get-settlement-response-class.d.ts +25 -0
  32. package/dist/models/get-settlement-response-class.js +15 -0
  33. package/dist/models/index.d.ts +10 -0
  34. package/dist/models/index.js +26 -0
  35. package/dist/models/inline-response200.d.ts +54 -0
  36. package/dist/models/inline-response200.js +15 -0
  37. package/dist/models/inline-response503.d.ts +54 -0
  38. package/dist/models/inline-response503.js +15 -0
  39. package/dist/models/list-settlements-response-class.d.ts +43 -0
  40. package/dist/models/list-settlements-response-class.js +15 -0
  41. package/dist/models/settlement-class.d.ts +134 -0
  42. package/dist/models/settlement-class.js +38 -0
  43. package/dist/models/settlement-entry-class.d.ts +119 -0
  44. package/dist/models/settlement-entry-class.js +20 -0
  45. package/dist/models/settlement-entry-input-dto.d.ts +103 -0
  46. package/dist/models/settlement-entry-input-dto.js +43 -0
  47. package/git_push.sh +57 -0
  48. package/index.ts +19 -0
  49. package/models/add-settlement-entry-response-class.ts +31 -0
  50. package/models/create-settlement-request-dto.ts +51 -0
  51. package/models/create-settlement-response-class.ts +31 -0
  52. package/models/get-settlement-response-class.ts +31 -0
  53. package/models/index.ts +10 -0
  54. package/models/inline-response200.ts +48 -0
  55. package/models/inline-response503.ts +48 -0
  56. package/models/list-settlements-response-class.ts +49 -0
  57. package/models/settlement-class.ts +145 -0
  58. package/models/settlement-entry-class.ts +128 -0
  59. package/models/settlement-entry-input-dto.ts +115 -0
  60. package/package.json +27 -0
  61. package/tsconfig.json +23 -0
@@ -0,0 +1,196 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL SettlementService
6
+ * The EMIL SettlementService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * HealthApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var HealthApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ check: function (options) {
101
+ if (options === void 0) { options = {}; }
102
+ return __awaiter(_this, void 0, void 0, function () {
103
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
104
+ return __generator(this, function (_a) {
105
+ localVarPath = "/settlementservice/health";
106
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ if (configuration) {
108
+ baseOptions = configuration.baseOptions;
109
+ baseAccessToken = configuration.accessToken;
110
+ }
111
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
112
+ localVarHeaderParameter = {};
113
+ localVarQueryParameter = {};
114
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
115
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
117
+ return [2 /*return*/, {
118
+ url: (0, common_1.toPathString)(localVarUrlObj),
119
+ options: localVarRequestOptions,
120
+ }];
121
+ });
122
+ });
123
+ },
124
+ };
125
+ };
126
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
127
+ /**
128
+ * HealthApi - functional programming interface
129
+ * @export
130
+ */
131
+ var HealthApiFp = function (configuration) {
132
+ var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
133
+ return {
134
+ /**
135
+ *
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ check: function (options) {
140
+ return __awaiter(this, void 0, void 0, function () {
141
+ var localVarAxiosArgs;
142
+ return __generator(this, function (_a) {
143
+ switch (_a.label) {
144
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
145
+ case 1:
146
+ localVarAxiosArgs = _a.sent();
147
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ };
153
+ };
154
+ exports.HealthApiFp = HealthApiFp;
155
+ /**
156
+ * HealthApi - factory interface
157
+ * @export
158
+ */
159
+ var HealthApiFactory = function (configuration, basePath, axios) {
160
+ var localVarFp = (0, exports.HealthApiFp)(configuration);
161
+ return {
162
+ /**
163
+ *
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ check: function (options) {
168
+ return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
169
+ },
170
+ };
171
+ };
172
+ exports.HealthApiFactory = HealthApiFactory;
173
+ /**
174
+ * HealthApi - object-oriented interface
175
+ * @export
176
+ * @class HealthApi
177
+ * @extends {BaseAPI}
178
+ */
179
+ var HealthApi = /** @class */ (function (_super) {
180
+ __extends(HealthApi, _super);
181
+ function HealthApi() {
182
+ return _super !== null && _super.apply(this, arguments) || this;
183
+ }
184
+ /**
185
+ *
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ * @memberof HealthApi
189
+ */
190
+ HealthApi.prototype.check = function (options) {
191
+ var _this = this;
192
+ return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
+ };
194
+ return HealthApi;
195
+ }(base_1.BaseAPI));
196
+ exports.HealthApi = HealthApi;
@@ -0,0 +1,383 @@
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { AddSettlementEntryResponseClass } from '../models';
16
+ import { CreateSettlementRequestDto } from '../models';
17
+ import { CreateSettlementResponseClass } from '../models';
18
+ import { GetSettlementResponseClass } from '../models';
19
+ import { ListSettlementsResponseClass } from '../models';
20
+ /**
21
+ * SettlementsApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export declare const SettlementsApiAxiosParamCreator: (configuration?: Configuration) => {
25
+ /**
26
+ * This will add settlement entry. **Required Permissions** none
27
+ * @summary Create the settlement entry
28
+ * @param {string} settlementCode
29
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ addSettlementEntry: (settlementCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ /**
35
+ * This will create settlement. **Required Permissions** none
36
+ * @summary Create the settlement
37
+ * @param {CreateSettlementRequestDto} createSettlementRequestDto
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ createSettlement: (createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ /**
44
+ * This will delete settlement. **Required Permissions** none
45
+ * @summary Delete the settlement
46
+ * @param {string} code Unique identifier for the object.
47
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ deleteSettlement: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ /**
53
+ * This will get settlement. **Required Permissions** none
54
+ * @summary Retrieve the settlement
55
+ * @param {string} code
56
+ * @param {string} expand
57
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ getSettlement: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
62
+ /**
63
+ * Retrieves a list of settlements. **Required Permissions** none
64
+ * @summary List settlements
65
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
66
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
67
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
69
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
72
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ listSettlements: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ };
78
+ /**
79
+ * SettlementsApi - functional programming interface
80
+ * @export
81
+ */
82
+ export declare const SettlementsApiFp: (configuration?: Configuration) => {
83
+ /**
84
+ * This will add settlement entry. **Required Permissions** none
85
+ * @summary Create the settlement entry
86
+ * @param {string} settlementCode
87
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ addSettlementEntry(settlementCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSettlementEntryResponseClass>>;
92
+ /**
93
+ * This will create settlement. **Required Permissions** none
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(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>>;
101
+ /**
102
+ * This will delete settlement. **Required Permissions** none
103
+ * @summary Delete the settlement
104
+ * @param {string} code Unique identifier for the object.
105
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ deleteSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
110
+ /**
111
+ * This will get settlement. **Required Permissions** none
112
+ * @summary Retrieve the settlement
113
+ * @param {string} code
114
+ * @param {string} expand
115
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ getSettlement(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>>;
120
+ /**
121
+ * Retrieves a list of settlements. **Required Permissions** none
122
+ * @summary List settlements
123
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
124
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
125
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
127
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
130
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ 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>>;
135
+ };
136
+ /**
137
+ * SettlementsApi - factory interface
138
+ * @export
139
+ */
140
+ export declare const SettlementsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
141
+ /**
142
+ * This will add settlement entry. **Required Permissions** none
143
+ * @summary Create the settlement entry
144
+ * @param {string} settlementCode
145
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ addSettlementEntry(settlementCode: string, authorization?: string, options?: any): AxiosPromise<AddSettlementEntryResponseClass>;
150
+ /**
151
+ * This will create settlement. **Required Permissions** none
152
+ * @summary Create the settlement
153
+ * @param {CreateSettlementRequestDto} createSettlementRequestDto
154
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettlementResponseClass>;
159
+ /**
160
+ * This will delete settlement. **Required Permissions** none
161
+ * @summary Delete the settlement
162
+ * @param {string} code Unique identifier for the object.
163
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ deleteSettlement(code: string, authorization?: string, options?: any): AxiosPromise<void>;
168
+ /**
169
+ * This will get settlement. **Required Permissions** none
170
+ * @summary Retrieve the settlement
171
+ * @param {string} code
172
+ * @param {string} expand
173
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ getSettlement(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetSettlementResponseClass>;
178
+ /**
179
+ * Retrieves a list of settlements. **Required Permissions** none
180
+ * @summary List settlements
181
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
183
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
185
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
188
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ listSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettlementsResponseClass>;
193
+ };
194
+ /**
195
+ * Request parameters for addSettlementEntry operation in SettlementsApi.
196
+ * @export
197
+ * @interface SettlementsApiAddSettlementEntryRequest
198
+ */
199
+ export interface SettlementsApiAddSettlementEntryRequest {
200
+ /**
201
+ *
202
+ * @type {string}
203
+ * @memberof SettlementsApiAddSettlementEntry
204
+ */
205
+ readonly settlementCode: string;
206
+ /**
207
+ * Bearer Token: provided by the login endpoint under the name accessToken.
208
+ * @type {string}
209
+ * @memberof SettlementsApiAddSettlementEntry
210
+ */
211
+ readonly authorization?: string;
212
+ }
213
+ /**
214
+ * Request parameters for createSettlement operation in SettlementsApi.
215
+ * @export
216
+ * @interface SettlementsApiCreateSettlementRequest
217
+ */
218
+ export interface SettlementsApiCreateSettlementRequest {
219
+ /**
220
+ *
221
+ * @type {CreateSettlementRequestDto}
222
+ * @memberof SettlementsApiCreateSettlement
223
+ */
224
+ readonly createSettlementRequestDto: CreateSettlementRequestDto;
225
+ /**
226
+ * Bearer Token: provided by the login endpoint under the name accessToken.
227
+ * @type {string}
228
+ * @memberof SettlementsApiCreateSettlement
229
+ */
230
+ readonly authorization?: string;
231
+ }
232
+ /**
233
+ * Request parameters for deleteSettlement operation in SettlementsApi.
234
+ * @export
235
+ * @interface SettlementsApiDeleteSettlementRequest
236
+ */
237
+ export interface SettlementsApiDeleteSettlementRequest {
238
+ /**
239
+ * Unique identifier for the object.
240
+ * @type {string}
241
+ * @memberof SettlementsApiDeleteSettlement
242
+ */
243
+ readonly code: string;
244
+ /**
245
+ * Bearer Token: provided by the login endpoint under the name accessToken.
246
+ * @type {string}
247
+ * @memberof SettlementsApiDeleteSettlement
248
+ */
249
+ readonly authorization?: string;
250
+ }
251
+ /**
252
+ * Request parameters for getSettlement operation in SettlementsApi.
253
+ * @export
254
+ * @interface SettlementsApiGetSettlementRequest
255
+ */
256
+ export interface SettlementsApiGetSettlementRequest {
257
+ /**
258
+ *
259
+ * @type {string}
260
+ * @memberof SettlementsApiGetSettlement
261
+ */
262
+ readonly code: string;
263
+ /**
264
+ *
265
+ * @type {string}
266
+ * @memberof SettlementsApiGetSettlement
267
+ */
268
+ readonly expand: string;
269
+ /**
270
+ * Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @type {string}
272
+ * @memberof SettlementsApiGetSettlement
273
+ */
274
+ readonly authorization?: string;
275
+ }
276
+ /**
277
+ * Request parameters for listSettlements operation in SettlementsApi.
278
+ * @export
279
+ * @interface SettlementsApiListSettlementsRequest
280
+ */
281
+ export interface SettlementsApiListSettlementsRequest {
282
+ /**
283
+ * Bearer Token: provided by the login endpoint under the name accessToken.
284
+ * @type {string}
285
+ * @memberof SettlementsApiListSettlements
286
+ */
287
+ readonly authorization?: string;
288
+ /**
289
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
290
+ * @type {number}
291
+ * @memberof SettlementsApiListSettlements
292
+ */
293
+ readonly pageSize?: number;
294
+ /**
295
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
296
+ * @type {string}
297
+ * @memberof SettlementsApiListSettlements
298
+ */
299
+ readonly pageToken?: string;
300
+ /**
301
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
302
+ * @type {string}
303
+ * @memberof SettlementsApiListSettlements
304
+ */
305
+ readonly filter?: string;
306
+ /**
307
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
308
+ * @type {string}
309
+ * @memberof SettlementsApiListSettlements
310
+ */
311
+ readonly search?: string;
312
+ /**
313
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
314
+ * @type {string}
315
+ * @memberof SettlementsApiListSettlements
316
+ */
317
+ readonly order?: string;
318
+ /**
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.&lt;br/&gt; &lt;br/&gt;
320
+ * @type {string}
321
+ * @memberof SettlementsApiListSettlements
322
+ */
323
+ readonly expand?: string;
324
+ /**
325
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
326
+ * @type {string}
327
+ * @memberof SettlementsApiListSettlements
328
+ */
329
+ readonly filters?: string;
330
+ }
331
+ /**
332
+ * SettlementsApi - object-oriented interface
333
+ * @export
334
+ * @class SettlementsApi
335
+ * @extends {BaseAPI}
336
+ */
337
+ export declare class SettlementsApi extends BaseAPI {
338
+ /**
339
+ * This will add settlement entry. **Required Permissions** none
340
+ * @summary Create the settlement entry
341
+ * @param {SettlementsApiAddSettlementEntryRequest} requestParameters Request parameters.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ * @memberof SettlementsApi
345
+ */
346
+ addSettlementEntry(requestParameters: SettlementsApiAddSettlementEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AddSettlementEntryResponseClass, any, {}>>;
347
+ /**
348
+ * This will create settlement. **Required Permissions** none
349
+ * @summary Create the settlement
350
+ * @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ * @memberof SettlementsApi
354
+ */
355
+ createSettlement(requestParameters: SettlementsApiCreateSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSettlementResponseClass, any, {}>>;
356
+ /**
357
+ * This will delete settlement. **Required Permissions** none
358
+ * @summary Delete the settlement
359
+ * @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ * @memberof SettlementsApi
363
+ */
364
+ deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
365
+ /**
366
+ * This will get settlement. **Required Permissions** none
367
+ * @summary Retrieve the settlement
368
+ * @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ * @memberof SettlementsApi
372
+ */
373
+ getSettlement(requestParameters: SettlementsApiGetSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettlementResponseClass, any, {}>>;
374
+ /**
375
+ * Retrieves a list of settlements. **Required Permissions** none
376
+ * @summary List settlements
377
+ * @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ * @memberof SettlementsApi
381
+ */
382
+ listSettlements(requestParameters?: SettlementsApiListSettlementsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSettlementsResponseClass, any, {}>>;
383
+ }