@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,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,393 @@
|
|
|
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 { AddSettlementEntryRequestBodyDto } from '../models';
|
|
16
|
+
import { AddSettlementEntryResponseClass } from '../models';
|
|
17
|
+
import { CreateSettlementRequestDto } from '../models';
|
|
18
|
+
import { CreateSettlementResponseClass } from '../models';
|
|
19
|
+
import { GetSettlementResponseClass } from '../models';
|
|
20
|
+
import { ListSettlementsResponseClass } from '../models';
|
|
21
|
+
/**
|
|
22
|
+
* SettlementsApi - axios parameter creator
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const SettlementsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
|
+
/**
|
|
27
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
28
|
+
* @summary Create the settlement entry
|
|
29
|
+
* @param {string} settlementCode
|
|
30
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
31
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
addSettlementEntry: (settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
38
|
+
* @summary Create the settlement
|
|
39
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
createSettlement: (createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
47
|
+
* @summary Delete the settlement
|
|
48
|
+
* @param {string} code Unique identifier for the object.
|
|
49
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
deleteSettlement: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
/**
|
|
55
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
56
|
+
* @summary Retrieve the settlement
|
|
57
|
+
* @param {string} code
|
|
58
|
+
* @param {string} expand
|
|
59
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
getSettlement: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
66
|
+
* @summary List settlements
|
|
67
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
68
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
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>
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
listSettlements: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* SettlementsApi - functional programming interface
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const SettlementsApiFp: (configuration?: Configuration) => {
|
|
85
|
+
/**
|
|
86
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
87
|
+
* @summary Create the settlement entry
|
|
88
|
+
* @param {string} settlementCode
|
|
89
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
90
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
addSettlementEntry(settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSettlementEntryResponseClass>>;
|
|
95
|
+
/**
|
|
96
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
97
|
+
* @summary Create the settlement
|
|
98
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>>;
|
|
104
|
+
/**
|
|
105
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
106
|
+
* @summary Delete the settlement
|
|
107
|
+
* @param {string} code Unique identifier for the object.
|
|
108
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
deleteSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
113
|
+
/**
|
|
114
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
115
|
+
* @summary Retrieve the settlement
|
|
116
|
+
* @param {string} code
|
|
117
|
+
* @param {string} expand
|
|
118
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
getSettlement(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>>;
|
|
123
|
+
/**
|
|
124
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
125
|
+
* @summary List settlements
|
|
126
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
127
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
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>
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
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>>;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* SettlementsApi - factory interface
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export declare const SettlementsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
144
|
+
/**
|
|
145
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
146
|
+
* @summary Create the settlement entry
|
|
147
|
+
* @param {string} settlementCode
|
|
148
|
+
* @param {AddSettlementEntryRequestBodyDto} addSettlementEntryRequestBodyDto
|
|
149
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
addSettlementEntry(settlementCode: string, addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto, authorization?: string, options?: any): AxiosPromise<AddSettlementEntryResponseClass>;
|
|
154
|
+
/**
|
|
155
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
156
|
+
* @summary Create the settlement
|
|
157
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
158
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettlementResponseClass>;
|
|
163
|
+
/**
|
|
164
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
165
|
+
* @summary Delete the settlement
|
|
166
|
+
* @param {string} code Unique identifier for the object.
|
|
167
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
deleteSettlement(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
172
|
+
/**
|
|
173
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
174
|
+
* @summary Retrieve the settlement
|
|
175
|
+
* @param {string} code
|
|
176
|
+
* @param {string} expand
|
|
177
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
getSettlement(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetSettlementResponseClass>;
|
|
182
|
+
/**
|
|
183
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
184
|
+
* @summary List settlements
|
|
185
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
186
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
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>
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
listSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettlementsResponseClass>;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Request parameters for addSettlementEntry operation in SettlementsApi.
|
|
200
|
+
* @export
|
|
201
|
+
* @interface SettlementsApiAddSettlementEntryRequest
|
|
202
|
+
*/
|
|
203
|
+
export interface SettlementsApiAddSettlementEntryRequest {
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof SettlementsApiAddSettlementEntry
|
|
208
|
+
*/
|
|
209
|
+
readonly settlementCode: string;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {AddSettlementEntryRequestBodyDto}
|
|
213
|
+
* @memberof SettlementsApiAddSettlementEntry
|
|
214
|
+
*/
|
|
215
|
+
readonly addSettlementEntryRequestBodyDto: AddSettlementEntryRequestBodyDto;
|
|
216
|
+
/**
|
|
217
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof SettlementsApiAddSettlementEntry
|
|
220
|
+
*/
|
|
221
|
+
readonly authorization?: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Request parameters for createSettlement operation in SettlementsApi.
|
|
225
|
+
* @export
|
|
226
|
+
* @interface SettlementsApiCreateSettlementRequest
|
|
227
|
+
*/
|
|
228
|
+
export interface SettlementsApiCreateSettlementRequest {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {CreateSettlementRequestDto}
|
|
232
|
+
* @memberof SettlementsApiCreateSettlement
|
|
233
|
+
*/
|
|
234
|
+
readonly createSettlementRequestDto: CreateSettlementRequestDto;
|
|
235
|
+
/**
|
|
236
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof SettlementsApiCreateSettlement
|
|
239
|
+
*/
|
|
240
|
+
readonly authorization?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Request parameters for deleteSettlement operation in SettlementsApi.
|
|
244
|
+
* @export
|
|
245
|
+
* @interface SettlementsApiDeleteSettlementRequest
|
|
246
|
+
*/
|
|
247
|
+
export interface SettlementsApiDeleteSettlementRequest {
|
|
248
|
+
/**
|
|
249
|
+
* Unique identifier for the object.
|
|
250
|
+
* @type {string}
|
|
251
|
+
* @memberof SettlementsApiDeleteSettlement
|
|
252
|
+
*/
|
|
253
|
+
readonly code: string;
|
|
254
|
+
/**
|
|
255
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
256
|
+
* @type {string}
|
|
257
|
+
* @memberof SettlementsApiDeleteSettlement
|
|
258
|
+
*/
|
|
259
|
+
readonly authorization?: string;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Request parameters for getSettlement operation in SettlementsApi.
|
|
263
|
+
* @export
|
|
264
|
+
* @interface SettlementsApiGetSettlementRequest
|
|
265
|
+
*/
|
|
266
|
+
export interface SettlementsApiGetSettlementRequest {
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @type {string}
|
|
270
|
+
* @memberof SettlementsApiGetSettlement
|
|
271
|
+
*/
|
|
272
|
+
readonly code: string;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @type {string}
|
|
276
|
+
* @memberof SettlementsApiGetSettlement
|
|
277
|
+
*/
|
|
278
|
+
readonly expand: string;
|
|
279
|
+
/**
|
|
280
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof SettlementsApiGetSettlement
|
|
283
|
+
*/
|
|
284
|
+
readonly authorization?: string;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Request parameters for listSettlements operation in SettlementsApi.
|
|
288
|
+
* @export
|
|
289
|
+
* @interface SettlementsApiListSettlementsRequest
|
|
290
|
+
*/
|
|
291
|
+
export interface SettlementsApiListSettlementsRequest {
|
|
292
|
+
/**
|
|
293
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
294
|
+
* @type {string}
|
|
295
|
+
* @memberof SettlementsApiListSettlements
|
|
296
|
+
*/
|
|
297
|
+
readonly authorization?: string;
|
|
298
|
+
/**
|
|
299
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
300
|
+
* @type {number}
|
|
301
|
+
* @memberof SettlementsApiListSettlements
|
|
302
|
+
*/
|
|
303
|
+
readonly pageSize?: number;
|
|
304
|
+
/**
|
|
305
|
+
* 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.
|
|
306
|
+
* @type {string}
|
|
307
|
+
* @memberof SettlementsApiListSettlements
|
|
308
|
+
*/
|
|
309
|
+
readonly pageToken?: string;
|
|
310
|
+
/**
|
|
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>
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof SettlementsApiListSettlements
|
|
314
|
+
*/
|
|
315
|
+
readonly filter?: string;
|
|
316
|
+
/**
|
|
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>
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @memberof SettlementsApiListSettlements
|
|
320
|
+
*/
|
|
321
|
+
readonly search?: string;
|
|
322
|
+
/**
|
|
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>
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof SettlementsApiListSettlements
|
|
326
|
+
*/
|
|
327
|
+
readonly order?: string;
|
|
328
|
+
/**
|
|
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>
|
|
330
|
+
* @type {string}
|
|
331
|
+
* @memberof SettlementsApiListSettlements
|
|
332
|
+
*/
|
|
333
|
+
readonly expand?: string;
|
|
334
|
+
/**
|
|
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>
|
|
336
|
+
* @type {string}
|
|
337
|
+
* @memberof SettlementsApiListSettlements
|
|
338
|
+
*/
|
|
339
|
+
readonly filters?: string;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* SettlementsApi - object-oriented interface
|
|
343
|
+
* @export
|
|
344
|
+
* @class SettlementsApi
|
|
345
|
+
* @extends {BaseAPI}
|
|
346
|
+
*/
|
|
347
|
+
export declare class SettlementsApi extends BaseAPI {
|
|
348
|
+
/**
|
|
349
|
+
* This will add settlement entry. **Required Permissions** \"payment-management.settlements.create\"
|
|
350
|
+
* @summary Create the settlement entry
|
|
351
|
+
* @param {SettlementsApiAddSettlementEntryRequest} requestParameters Request parameters.
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
* @memberof SettlementsApi
|
|
355
|
+
*/
|
|
356
|
+
addSettlementEntry(requestParameters: SettlementsApiAddSettlementEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AddSettlementEntryResponseClass, any, {}>>;
|
|
357
|
+
/**
|
|
358
|
+
* This will create settlement. **Required Permissions** \"payment-management.settlements.create\"
|
|
359
|
+
* @summary Create the settlement
|
|
360
|
+
* @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
* @memberof SettlementsApi
|
|
364
|
+
*/
|
|
365
|
+
createSettlement(requestParameters: SettlementsApiCreateSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSettlementResponseClass, any, {}>>;
|
|
366
|
+
/**
|
|
367
|
+
* This will delete settlement. **Required Permissions** \"payment-management.settlements.delete\"
|
|
368
|
+
* @summary Delete the settlement
|
|
369
|
+
* @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
* @memberof SettlementsApi
|
|
373
|
+
*/
|
|
374
|
+
deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
375
|
+
/**
|
|
376
|
+
* This will get settlement. **Required Permissions** \"payment-management.settlements.view\"
|
|
377
|
+
* @summary Retrieve the settlement
|
|
378
|
+
* @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
* @memberof SettlementsApi
|
|
382
|
+
*/
|
|
383
|
+
getSettlement(requestParameters: SettlementsApiGetSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettlementResponseClass, any, {}>>;
|
|
384
|
+
/**
|
|
385
|
+
* Retrieves a list of settlements. **Required Permissions** \"payment-management.settlements.view\"
|
|
386
|
+
* @summary List settlements
|
|
387
|
+
* @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
* @memberof SettlementsApi
|
|
391
|
+
*/
|
|
392
|
+
listSettlements(requestParameters?: SettlementsApiListSettlementsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSettlementsResponseClass, any, {}>>;
|
|
393
|
+
}
|