@emilgroup/customer-sdk-node 1.9.0 → 1.10.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.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/authentication-api.ts +601 -0
  4. package/api/claims-api.ts +16 -16
  5. package/api/customers-api.ts +72 -1770
  6. package/api/documents-api.ts +442 -0
  7. package/api/invites-api.ts +443 -0
  8. package/api/invoices-api.ts +245 -0
  9. package/api/payments-api.ts +277 -0
  10. package/api/policies-api.ts +16 -16
  11. package/api/products-api.ts +19 -19
  12. package/api.ts +10 -0
  13. package/dist/api/authentication-api.d.ts +332 -0
  14. package/dist/api/authentication-api.js +604 -0
  15. package/dist/api/claims-api.d.ts +16 -16
  16. package/dist/api/claims-api.js +12 -12
  17. package/dist/api/customers-api.d.ts +0 -954
  18. package/dist/api/customers-api.js +20 -1381
  19. package/dist/api/documents-api.d.ts +262 -0
  20. package/dist/api/documents-api.js +417 -0
  21. package/dist/api/invites-api.d.ts +248 -0
  22. package/dist/api/invites-api.js +456 -0
  23. package/dist/api/invoices-api.d.ts +150 -0
  24. package/dist/api/invoices-api.js +253 -0
  25. package/dist/api/payments-api.d.ts +162 -0
  26. package/dist/api/payments-api.js +306 -0
  27. package/dist/api/policies-api.d.ts +16 -16
  28. package/dist/api/policies-api.js +12 -12
  29. package/dist/api/products-api.d.ts +20 -20
  30. package/dist/api/products-api.js +12 -12
  31. package/dist/api.d.ts +5 -0
  32. package/dist/api.js +5 -0
  33. package/dist/models/account-class.d.ts +26 -1
  34. package/dist/models/account-class.js +7 -0
  35. package/dist/models/create-account-request-dto.d.ts +39 -9
  36. package/dist/models/create-account-request-dto.js +11 -1
  37. package/dist/models/index.d.ts +1 -0
  38. package/dist/models/index.js +1 -0
  39. package/dist/models/list-policies-response-class.d.ts +4 -4
  40. package/dist/models/list-products-response-class.d.ts +31 -0
  41. package/dist/models/list-products-response-class.js +15 -0
  42. package/models/account-class.ts +29 -1
  43. package/models/create-account-request-dto.ts +41 -9
  44. package/models/index.ts +1 -0
  45. package/models/list-policies-response-class.ts +4 -4
  46. package/models/list-products-response-class.ts +37 -0
  47. package/package.json +2 -2
@@ -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 \&quot;me\&quot; 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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 \&quot;me\&quot; 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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 \&quot;me\&quot; 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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,162 @@
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 \&quot;me\&quot; 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 {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ * Request to initiate a payment change by customer.
35
+ * @summary Request payment setup initiation by customer
36
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
37
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ };
43
+ /**
44
+ * PaymentsApi - functional programming interface
45
+ * @export
46
+ */
47
+ export declare const PaymentsApiFp: (configuration?: Configuration) => {
48
+ /**
49
+ * Request to complete a payment change by customer.
50
+ * @summary Request payment setup complete by customer
51
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
52
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
58
+ /**
59
+ * Request to initiate a payment change by customer.
60
+ * @summary Request payment setup initiation by customer
61
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
62
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
67
+ };
68
+ /**
69
+ * PaymentsApi - factory interface
70
+ * @export
71
+ */
72
+ export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
73
+ /**
74
+ * Request to complete a payment change by customer.
75
+ * @summary Request payment setup complete by customer
76
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
77
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
78
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
83
+ /**
84
+ * Request to initiate a payment change by customer.
85
+ * @summary Request payment setup initiation by customer
86
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
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
+ initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
92
+ };
93
+ /**
94
+ * Request parameters for completePaymentSetup operation in PaymentsApi.
95
+ * @export
96
+ * @interface PaymentsApiCompletePaymentSetupRequest
97
+ */
98
+ export interface PaymentsApiCompletePaymentSetupRequest {
99
+ /**
100
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
101
+ * @type {string}
102
+ * @memberof PaymentsApiCompletePaymentSetup
103
+ */
104
+ readonly customerCode: string;
105
+ /**
106
+ *
107
+ * @type {CompletePaymentSetupPspRequest}
108
+ * @memberof PaymentsApiCompletePaymentSetup
109
+ */
110
+ readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest;
111
+ /**
112
+ * Bearer Token: provided by the login endpoint under the name accessToken.
113
+ * @type {string}
114
+ * @memberof PaymentsApiCompletePaymentSetup
115
+ */
116
+ readonly authorization?: string;
117
+ }
118
+ /**
119
+ * Request parameters for initiatePaymentSetup operation in PaymentsApi.
120
+ * @export
121
+ * @interface PaymentsApiInitiatePaymentSetupRequest
122
+ */
123
+ export interface PaymentsApiInitiatePaymentSetupRequest {
124
+ /**
125
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
126
+ * @type {string}
127
+ * @memberof PaymentsApiInitiatePaymentSetup
128
+ */
129
+ readonly customerCode: string;
130
+ /**
131
+ * Bearer Token: provided by the login endpoint under the name accessToken.
132
+ * @type {string}
133
+ * @memberof PaymentsApiInitiatePaymentSetup
134
+ */
135
+ readonly authorization?: string;
136
+ }
137
+ /**
138
+ * PaymentsApi - object-oriented interface
139
+ * @export
140
+ * @class PaymentsApi
141
+ * @extends {BaseAPI}
142
+ */
143
+ export declare class PaymentsApi extends BaseAPI {
144
+ /**
145
+ * Request to complete a payment change by customer.
146
+ * @summary Request payment setup complete by customer
147
+ * @param {PaymentsApiCompletePaymentSetupRequest} requestParameters Request parameters.
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ * @memberof PaymentsApi
151
+ */
152
+ completePaymentSetup(requestParameters: PaymentsApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
153
+ /**
154
+ * Request to initiate a payment change by customer.
155
+ * @summary Request payment setup initiation by customer
156
+ * @param {PaymentsApiInitiatePaymentSetupRequest} requestParameters Request parameters.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ * @memberof PaymentsApi
160
+ */
161
+ initiatePaymentSetup(requestParameters: PaymentsApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
162
+ }