@emilgroup/customer-sdk-node 1.9.1 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -0
- package/README.md +58 -2
- package/api/authentication-api.ts +601 -0
- package/api/claims-api.ts +158 -40
- package/api/customers-api.ts +72 -1770
- package/api/documents-api.ts +442 -0
- package/api/invites-api.ts +443 -0
- package/api/invoices-api.ts +245 -0
- package/api/payments-api.ts +291 -0
- package/api/policies-api.ts +16 -16
- package/api/products-api.ts +16 -16
- package/api.ts +11 -0
- package/dist/api/authentication-api.d.ts +332 -0
- package/dist/api/authentication-api.js +604 -0
- package/dist/api/claims-api.d.ts +106 -31
- package/dist/api/claims-api.js +84 -36
- package/dist/api/customers-api.d.ts +0 -954
- package/dist/api/customers-api.js +20 -1381
- package/dist/api/documents-api.d.ts +262 -0
- package/dist/api/documents-api.js +417 -0
- package/dist/api/invites-api.d.ts +248 -0
- package/dist/api/invites-api.js +456 -0
- package/dist/api/invoices-api.d.ts +150 -0
- package/dist/api/invoices-api.js +253 -0
- package/dist/api/payments-api.d.ts +171 -0
- package/dist/api/payments-api.js +312 -0
- package/dist/api/policies-api.d.ts +16 -16
- package/dist/api/policies-api.js +12 -12
- package/dist/api/products-api.d.ts +16 -16
- package/dist/api/products-api.js +12 -12
- package/dist/api.d.ts +7 -1
- package/dist/api.js +6 -0
- package/dist/models/account-class.d.ts +31 -1
- package/dist/models/account-class.js +11 -0
- package/dist/models/claim-class.d.ts +132 -0
- package/dist/models/claim-class.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +39 -9
- package/dist/models/create-account-request-dto.js +11 -1
- package/dist/models/create-customer-claim-response-class.d.ts +25 -0
- package/dist/models/create-customer-claim-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-customer-claims-response-class.d.ts +31 -0
- package/dist/models/list-customer-claims-response-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +17 -0
- package/dist/models/update-account-request-dto.js +5 -1
- package/dist/models/update-customer-claim-response-class.d.ts +25 -0
- package/dist/models/update-customer-claim-response-class.js +15 -0
- package/models/account-class.ts +35 -1
- package/models/claim-class.ts +138 -0
- package/models/create-account-request-dto.ts +41 -9
- package/models/create-customer-claim-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/list-customer-claims-response-class.ts +37 -0
- package/models/update-account-request-dto.ts +18 -0
- package/models/update-customer-claim-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService 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.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = 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
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* InvoicesApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* List all the invoices of a customer.
|
|
101
|
+
* @summary List invoices of a customer
|
|
102
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
104
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
105
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
106
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
107
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
108
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
109
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
114
|
+
if (options === void 0) { options = {}; }
|
|
115
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
116
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
119
|
+
(0, common_1.assertParamExists)('listInvoices', 'customerCode', customerCode);
|
|
120
|
+
localVarPath = "/v1/customers/{customerCode}/invoices"
|
|
121
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
122
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
baseAccessToken = configuration.accessToken;
|
|
126
|
+
}
|
|
127
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
128
|
+
localVarHeaderParameter = {};
|
|
129
|
+
localVarQueryParameter = {};
|
|
130
|
+
if (pageSize !== undefined) {
|
|
131
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
132
|
+
}
|
|
133
|
+
if (pageToken !== undefined) {
|
|
134
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
135
|
+
}
|
|
136
|
+
if (filter !== undefined) {
|
|
137
|
+
localVarQueryParameter['filter'] = filter;
|
|
138
|
+
}
|
|
139
|
+
if (search !== undefined) {
|
|
140
|
+
localVarQueryParameter['search'] = search;
|
|
141
|
+
}
|
|
142
|
+
if (order !== undefined) {
|
|
143
|
+
localVarQueryParameter['order'] = order;
|
|
144
|
+
}
|
|
145
|
+
if (expand !== undefined) {
|
|
146
|
+
localVarQueryParameter['expand'] = expand;
|
|
147
|
+
}
|
|
148
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
149
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
150
|
+
}
|
|
151
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
+
return [2 /*return*/, {
|
|
155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
}];
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
},
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
|
|
164
|
+
/**
|
|
165
|
+
* InvoicesApi - functional programming interface
|
|
166
|
+
* @export
|
|
167
|
+
*/
|
|
168
|
+
var InvoicesApiFp = function (configuration) {
|
|
169
|
+
var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
|
|
170
|
+
return {
|
|
171
|
+
/**
|
|
172
|
+
* List all the invoices of a customer.
|
|
173
|
+
* @summary List invoices of a customer
|
|
174
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
175
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
176
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
177
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
178
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
179
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
180
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
181
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
187
|
+
var localVarAxiosArgs;
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
switch (_a.label) {
|
|
190
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options)];
|
|
191
|
+
case 1:
|
|
192
|
+
localVarAxiosArgs = _a.sent();
|
|
193
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
exports.InvoicesApiFp = InvoicesApiFp;
|
|
201
|
+
/**
|
|
202
|
+
* InvoicesApi - factory interface
|
|
203
|
+
* @export
|
|
204
|
+
*/
|
|
205
|
+
var InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
206
|
+
var localVarFp = (0, exports.InvoicesApiFp)(configuration);
|
|
207
|
+
return {
|
|
208
|
+
/**
|
|
209
|
+
* List all the invoices of a customer.
|
|
210
|
+
* @summary List invoices of a customer
|
|
211
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
212
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
213
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
214
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
215
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
216
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
217
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
218
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
223
|
+
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
224
|
+
},
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
exports.InvoicesApiFactory = InvoicesApiFactory;
|
|
228
|
+
/**
|
|
229
|
+
* InvoicesApi - object-oriented interface
|
|
230
|
+
* @export
|
|
231
|
+
* @class InvoicesApi
|
|
232
|
+
* @extends {BaseAPI}
|
|
233
|
+
*/
|
|
234
|
+
var InvoicesApi = /** @class */ (function (_super) {
|
|
235
|
+
__extends(InvoicesApi, _super);
|
|
236
|
+
function InvoicesApi() {
|
|
237
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* List all the invoices of a customer.
|
|
241
|
+
* @summary List invoices of a customer
|
|
242
|
+
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
* @memberof InvoicesApi
|
|
246
|
+
*/
|
|
247
|
+
InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
|
|
248
|
+
var _this = this;
|
|
249
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
250
|
+
};
|
|
251
|
+
return InvoicesApi;
|
|
252
|
+
}(base_1.BaseAPI));
|
|
253
|
+
exports.InvoicesApi = InvoicesApi;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService 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 { CompletePaymentSetupPspRequest } from '../models';
|
|
16
|
+
import { CompletePaymentSetupResponseClass } from '../models';
|
|
17
|
+
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* PaymentsApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* Request to complete a payment change by customer.
|
|
25
|
+
* @summary Request payment setup complete by customer
|
|
26
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
27
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
28
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
29
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* Request to initiate a payment change by customer.
|
|
36
|
+
* @summary Request payment setup initiation by customer
|
|
37
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
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
|
+
initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* PaymentsApi - functional programming interface
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
49
|
+
/**
|
|
50
|
+
* Request to complete a payment change by customer.
|
|
51
|
+
* @summary Request payment setup complete by customer
|
|
52
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
53
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
54
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
|
|
60
|
+
/**
|
|
61
|
+
* Request to initiate a payment change by customer.
|
|
62
|
+
* @summary Request payment setup initiation by customer
|
|
63
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
64
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* PaymentsApi - factory interface
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
75
|
+
/**
|
|
76
|
+
* Request to complete a payment change by customer.
|
|
77
|
+
* @summary Request payment setup complete by customer
|
|
78
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
79
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
80
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
81
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
|
|
86
|
+
/**
|
|
87
|
+
* Request to initiate a payment change by customer.
|
|
88
|
+
* @summary Request payment setup initiation by customer
|
|
89
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
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
|
+
initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Request parameters for completePaymentSetup operation in PaymentsApi.
|
|
98
|
+
* @export
|
|
99
|
+
* @interface PaymentsApiCompletePaymentSetupRequest
|
|
100
|
+
*/
|
|
101
|
+
export interface PaymentsApiCompletePaymentSetupRequest {
|
|
102
|
+
/**
|
|
103
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof PaymentsApiCompletePaymentSetup
|
|
106
|
+
*/
|
|
107
|
+
readonly customerCode: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {CompletePaymentSetupPspRequest}
|
|
111
|
+
* @memberof PaymentsApiCompletePaymentSetup
|
|
112
|
+
*/
|
|
113
|
+
readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest;
|
|
114
|
+
/**
|
|
115
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof PaymentsApiCompletePaymentSetup
|
|
118
|
+
*/
|
|
119
|
+
readonly authorization?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PaymentsApiCompletePaymentSetup
|
|
124
|
+
*/
|
|
125
|
+
readonly idempotencyKey?: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Request parameters for initiatePaymentSetup operation in PaymentsApi.
|
|
129
|
+
* @export
|
|
130
|
+
* @interface PaymentsApiInitiatePaymentSetupRequest
|
|
131
|
+
*/
|
|
132
|
+
export interface PaymentsApiInitiatePaymentSetupRequest {
|
|
133
|
+
/**
|
|
134
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof PaymentsApiInitiatePaymentSetup
|
|
137
|
+
*/
|
|
138
|
+
readonly customerCode: string;
|
|
139
|
+
/**
|
|
140
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof PaymentsApiInitiatePaymentSetup
|
|
143
|
+
*/
|
|
144
|
+
readonly authorization?: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* PaymentsApi - object-oriented interface
|
|
148
|
+
* @export
|
|
149
|
+
* @class PaymentsApi
|
|
150
|
+
* @extends {BaseAPI}
|
|
151
|
+
*/
|
|
152
|
+
export declare class PaymentsApi extends BaseAPI {
|
|
153
|
+
/**
|
|
154
|
+
* Request to complete a payment change by customer.
|
|
155
|
+
* @summary Request payment setup complete by customer
|
|
156
|
+
* @param {PaymentsApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
* @memberof PaymentsApi
|
|
160
|
+
*/
|
|
161
|
+
completePaymentSetup(requestParameters: PaymentsApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
|
|
162
|
+
/**
|
|
163
|
+
* Request to initiate a payment change by customer.
|
|
164
|
+
* @summary Request payment setup initiation by customer
|
|
165
|
+
* @param {PaymentsApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
* @memberof PaymentsApi
|
|
169
|
+
*/
|
|
170
|
+
initiatePaymentSetup(requestParameters: PaymentsApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
|
|
171
|
+
}
|