@emilgroup/customer-sdk-node 1.37.0 → 1.38.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.
@@ -23,6 +23,8 @@ models/account-class.ts
23
23
  models/account-policy-class.ts
24
24
  models/authentication-result-class.ts
25
25
  models/change-customer-email-request-dto.ts
26
+ models/change-password-request-dto.ts
27
+ models/change-password-response-class.ts
26
28
  models/claim-class.ts
27
29
  models/complete-braintree-payment-setup-request-dto.ts
28
30
  models/complete-payment-setup-psp-request.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/customer-sdk-node@1.37.0 --save
20
+ npm install @emilgroup/customer-sdk-node@1.38.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/customer-sdk-node@1.37.0
24
+ yarn add @emilgroup/customer-sdk-node@1.38.0
25
25
  ```
26
26
 
27
27
  And then you can import `CustomersApi`.
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { ChangePasswordRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { ChangePasswordResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { ForgotPasswordRequestDto } from '../models';
25
29
  // @ts-ignore
26
30
  import { InitiateAuthRequestDto } from '../models';
@@ -44,6 +48,53 @@ const FormData = require('form-data');
44
48
  */
45
49
  export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
46
50
  return {
51
+ /**
52
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
53
+ * @summary Change customer password
54
+ * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
55
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
56
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ changePassword: async (customerCode: string, changePasswordRequestDto: ChangePasswordRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
61
+ // verify required parameter 'customerCode' is not null or undefined
62
+ assertParamExists('changePassword', 'customerCode', customerCode)
63
+ // verify required parameter 'changePasswordRequestDto' is not null or undefined
64
+ assertParamExists('changePassword', 'changePasswordRequestDto', changePasswordRequestDto)
65
+ const localVarPath = `/v1/customers/{customerCode}/change-password`
66
+ .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
67
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
68
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
69
+ let baseOptions;
70
+ let baseAccessToken;
71
+ if (configuration) {
72
+ baseOptions = configuration.baseOptions;
73
+ baseAccessToken = configuration.accessToken;
74
+ }
75
+
76
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
77
+ const localVarHeaderParameter = {} as any;
78
+ const localVarQueryParameter = {} as any;
79
+
80
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
81
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
82
+ }
83
+
84
+
85
+
86
+ localVarHeaderParameter['Content-Type'] = 'application/json';
87
+
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
91
+ localVarRequestOptions.data = serializeDataIfNeeded(changePasswordRequestDto, localVarRequestOptions, configuration)
92
+
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ },
47
98
  /**
48
99
  * Send a customer a reset-password token via email.
49
100
  * @summary Forgot password by customer
@@ -288,6 +339,19 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
288
339
  export const AuthenticationApiFp = function(configuration?: Configuration) {
289
340
  const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
290
341
  return {
342
+ /**
343
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
344
+ * @summary Change customer password
345
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
346
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
347
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ async changePassword(customerCode: string, changePasswordRequestDto: ChangePasswordRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChangePasswordResponseClass>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(customerCode, changePasswordRequestDto, authorization, options);
353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
354
+ },
291
355
  /**
292
356
  * Send a customer a reset-password token via email.
293
357
  * @summary Forgot password by customer
@@ -365,6 +429,18 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
365
429
  export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
366
430
  const localVarFp = AuthenticationApiFp(configuration)
367
431
  return {
432
+ /**
433
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
434
+ * @summary Change customer password
435
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
436
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ changePassword(customerCode: string, changePasswordRequestDto: ChangePasswordRequestDto, authorization?: string, options?: any): AxiosPromise<ChangePasswordResponseClass> {
442
+ return localVarFp.changePassword(customerCode, changePasswordRequestDto, authorization, options).then((request) => request(axios, basePath));
443
+ },
368
444
  /**
369
445
  * Send a customer a reset-password token via email.
370
446
  * @summary Forgot password by customer
@@ -429,6 +505,34 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
429
505
  };
430
506
  };
431
507
 
508
+ /**
509
+ * Request parameters for changePassword operation in AuthenticationApi.
510
+ * @export
511
+ * @interface AuthenticationApiChangePasswordRequest
512
+ */
513
+ export interface AuthenticationApiChangePasswordRequest {
514
+ /**
515
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
516
+ * @type {string}
517
+ * @memberof AuthenticationApiChangePassword
518
+ */
519
+ readonly customerCode: string
520
+
521
+ /**
522
+ *
523
+ * @type {ChangePasswordRequestDto}
524
+ * @memberof AuthenticationApiChangePassword
525
+ */
526
+ readonly changePasswordRequestDto: ChangePasswordRequestDto
527
+
528
+ /**
529
+ * Bearer Token: provided by the login endpoint under the name accessToken.
530
+ * @type {string}
531
+ * @memberof AuthenticationApiChangePassword
532
+ */
533
+ readonly authorization?: string
534
+ }
535
+
432
536
  /**
433
537
  * Request parameters for forgotPassword operation in AuthenticationApi.
434
538
  * @export
@@ -527,6 +631,18 @@ export interface AuthenticationApiVerifyResetPasswordTokenRequest {
527
631
  * @extends {BaseAPI}
528
632
  */
529
633
  export class AuthenticationApi extends BaseAPI {
634
+ /**
635
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
636
+ * @summary Change customer password
637
+ * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof AuthenticationApi
641
+ */
642
+ public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
643
+ return AuthenticationApiFp(this.configuration).changePassword(requestParameters.customerCode, requestParameters.changePasswordRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
644
+ }
645
+
530
646
  /**
531
647
  * Send a customer a reset-password token via email.
532
648
  * @summary Forgot password by customer
@@ -12,6 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { ChangePasswordRequestDto } from '../models';
16
+ import { ChangePasswordResponseClass } from '../models';
15
17
  import { ForgotPasswordRequestDto } from '../models';
16
18
  import { InitiateAuthRequestDto } from '../models';
17
19
  import { InitiateAuthResponseClass } from '../models';
@@ -24,6 +26,16 @@ import { RespondToAuthChallengeRequestDto } from '../models';
24
26
  * @export
25
27
  */
26
28
  export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
29
+ /**
30
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
31
+ * @summary Change customer password
32
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
33
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
34
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ changePassword: (customerCode: string, changePasswordRequestDto: ChangePasswordRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
39
  /**
28
40
  * Send a customer a reset-password token via email.
29
41
  * @summary Forgot password by customer
@@ -79,6 +91,16 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
79
91
  * @export
80
92
  */
81
93
  export declare const AuthenticationApiFp: (configuration?: Configuration) => {
94
+ /**
95
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
96
+ * @summary Change customer password
97
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
98
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
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
+ changePassword(customerCode: string, changePasswordRequestDto: ChangePasswordRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChangePasswordResponseClass>>;
82
104
  /**
83
105
  * Send a customer a reset-password token via email.
84
106
  * @summary Forgot password by customer
@@ -134,6 +156,16 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
134
156
  * @export
135
157
  */
136
158
  export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
159
+ /**
160
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
161
+ * @summary Change customer password
162
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
163
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
164
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ changePassword(customerCode: string, changePasswordRequestDto: ChangePasswordRequestDto, authorization?: string, options?: any): AxiosPromise<ChangePasswordResponseClass>;
137
169
  /**
138
170
  * Send a customer a reset-password token via email.
139
171
  * @summary Forgot password by customer
@@ -184,6 +216,31 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
184
216
  */
185
217
  verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
186
218
  };
219
+ /**
220
+ * Request parameters for changePassword operation in AuthenticationApi.
221
+ * @export
222
+ * @interface AuthenticationApiChangePasswordRequest
223
+ */
224
+ export interface AuthenticationApiChangePasswordRequest {
225
+ /**
226
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
227
+ * @type {string}
228
+ * @memberof AuthenticationApiChangePassword
229
+ */
230
+ readonly customerCode: string;
231
+ /**
232
+ *
233
+ * @type {ChangePasswordRequestDto}
234
+ * @memberof AuthenticationApiChangePassword
235
+ */
236
+ readonly changePasswordRequestDto: ChangePasswordRequestDto;
237
+ /**
238
+ * Bearer Token: provided by the login endpoint under the name accessToken.
239
+ * @type {string}
240
+ * @memberof AuthenticationApiChangePassword
241
+ */
242
+ readonly authorization?: string;
243
+ }
187
244
  /**
188
245
  * Request parameters for forgotPassword operation in AuthenticationApi.
189
246
  * @export
@@ -275,6 +332,15 @@ export interface AuthenticationApiVerifyResetPasswordTokenRequest {
275
332
  * @extends {BaseAPI}
276
333
  */
277
334
  export declare class AuthenticationApi extends BaseAPI {
335
+ /**
336
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
337
+ * @summary Change customer password
338
+ * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ * @memberof AuthenticationApi
342
+ */
343
+ changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChangePasswordResponseClass, any>>;
278
344
  /**
279
345
  * Send a customer a reset-password token via email.
280
346
  * @summary Forgot password by customer
@@ -96,6 +96,49 @@ var FormData = require('form-data');
96
96
  var AuthenticationApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
101
+ * @summary Change customer password
102
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
103
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ changePassword: function (customerCode, changePasswordRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ // verify required parameter 'customerCode' is not null or undefined
114
+ (0, common_1.assertParamExists)('changePassword', 'customerCode', customerCode);
115
+ // verify required parameter 'changePasswordRequestDto' is not null or undefined
116
+ (0, common_1.assertParamExists)('changePassword', 'changePasswordRequestDto', changePasswordRequestDto);
117
+ localVarPath = "/v1/customers/{customerCode}/change-password"
118
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
119
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ baseAccessToken = configuration.accessToken;
123
+ }
124
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
125
+ localVarHeaderParameter = {};
126
+ localVarQueryParameter = {};
127
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
128
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
129
+ }
130
+ localVarHeaderParameter['Content-Type'] = 'application/json';
131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changePasswordRequestDto, localVarRequestOptions, configuration);
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ });
140
+ });
141
+ },
99
142
  /**
100
143
  * Send a customer a reset-password token via email.
101
144
  * @summary Forgot password by customer
@@ -321,6 +364,28 @@ exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
321
364
  var AuthenticationApiFp = function (configuration) {
322
365
  var localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
323
366
  return {
367
+ /**
368
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
369
+ * @summary Change customer password
370
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
371
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
372
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ changePassword: function (customerCode, changePasswordRequestDto, authorization, options) {
377
+ return __awaiter(this, void 0, void 0, function () {
378
+ var localVarAxiosArgs;
379
+ return __generator(this, function (_a) {
380
+ switch (_a.label) {
381
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.changePassword(customerCode, changePasswordRequestDto, authorization, options)];
382
+ case 1:
383
+ localVarAxiosArgs = _a.sent();
384
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
385
+ }
386
+ });
387
+ });
388
+ },
324
389
  /**
325
390
  * Send a customer a reset-password token via email.
326
391
  * @summary Forgot password by customer
@@ -452,6 +517,18 @@ exports.AuthenticationApiFp = AuthenticationApiFp;
452
517
  var AuthenticationApiFactory = function (configuration, basePath, axios) {
453
518
  var localVarFp = (0, exports.AuthenticationApiFp)(configuration);
454
519
  return {
520
+ /**
521
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
522
+ * @summary Change customer password
523
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
524
+ * @param {ChangePasswordRequestDto} changePasswordRequestDto
525
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ changePassword: function (customerCode, changePasswordRequestDto, authorization, options) {
530
+ return localVarFp.changePassword(customerCode, changePasswordRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
531
+ },
455
532
  /**
456
533
  * Send a customer a reset-password token via email.
457
534
  * @summary Forgot password by customer
@@ -527,6 +604,18 @@ var AuthenticationApi = /** @class */ (function (_super) {
527
604
  function AuthenticationApi() {
528
605
  return _super !== null && _super.apply(this, arguments) || this;
529
606
  }
607
+ /**
608
+ * Change the customer password. Please use forgot-password endpoint if current password is lost.
609
+ * @summary Change customer password
610
+ * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof AuthenticationApi
614
+ */
615
+ AuthenticationApi.prototype.changePassword = function (requestParameters, options) {
616
+ var _this = this;
617
+ return (0, exports.AuthenticationApiFp)(this.configuration).changePassword(requestParameters.customerCode, requestParameters.changePasswordRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
+ };
530
619
  /**
531
620
  * Send a customer a reset-password token via email.
532
621
  * @summary Forgot password by customer
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ChangePasswordRequestDto
16
+ */
17
+ export interface ChangePasswordRequestDto {
18
+ /**
19
+ * Current customer password.
20
+ * @type {string}
21
+ * @memberof ChangePasswordRequestDto
22
+ */
23
+ 'oldPassword': string;
24
+ /**
25
+ * New customer password. Must be at least 8 characters and contain one uppercase letter, one lowercase letter and one number
26
+ * @type {string}
27
+ * @memberof ChangePasswordRequestDto
28
+ */
29
+ 'newPassword': string;
30
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ChangePasswordResponseClass
16
+ */
17
+ export interface ChangePasswordResponseClass {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof ChangePasswordResponseClass
22
+ */
23
+ 'response': object;
24
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,8 @@ export * from './account-class';
2
2
  export * from './account-policy-class';
3
3
  export * from './authentication-result-class';
4
4
  export * from './change-customer-email-request-dto';
5
+ export * from './change-password-request-dto';
6
+ export * from './change-password-response-class';
5
7
  export * from './claim-class';
6
8
  export * from './complete-braintree-payment-setup-request-dto';
7
9
  export * from './complete-payment-setup-psp-request';
@@ -18,6 +18,8 @@ __exportStar(require("./account-class"), exports);
18
18
  __exportStar(require("./account-policy-class"), exports);
19
19
  __exportStar(require("./authentication-result-class"), exports);
20
20
  __exportStar(require("./change-customer-email-request-dto"), exports);
21
+ __exportStar(require("./change-password-request-dto"), exports);
22
+ __exportStar(require("./change-password-response-class"), exports);
21
23
  __exportStar(require("./claim-class"), exports);
22
24
  __exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
23
25
  __exportStar(require("./complete-payment-setup-psp-request"), exports);
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ChangePasswordRequestDto
21
+ */
22
+ export interface ChangePasswordRequestDto {
23
+ /**
24
+ * Current customer password.
25
+ * @type {string}
26
+ * @memberof ChangePasswordRequestDto
27
+ */
28
+ 'oldPassword': string;
29
+ /**
30
+ * New customer password. Must be at least 8 characters and contain one uppercase letter, one lowercase letter and one number
31
+ * @type {string}
32
+ * @memberof ChangePasswordRequestDto
33
+ */
34
+ 'newPassword': string;
35
+ }
36
+
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ChangePasswordResponseClass
21
+ */
22
+ export interface ChangePasswordResponseClass {
23
+ /**
24
+ *
25
+ * @type {object}
26
+ * @memberof ChangePasswordResponseClass
27
+ */
28
+ 'response': object;
29
+ }
30
+
package/models/index.ts CHANGED
@@ -2,6 +2,8 @@ export * from './account-class';
2
2
  export * from './account-policy-class';
3
3
  export * from './authentication-result-class';
4
4
  export * from './change-customer-email-request-dto';
5
+ export * from './change-password-request-dto';
6
+ export * from './change-password-response-class';
5
7
  export * from './claim-class';
6
8
  export * from './complete-braintree-payment-setup-request-dto';
7
9
  export * from './complete-payment-setup-psp-request';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/customer-sdk-node",
3
- "version": "1.37.0",
3
+ "version": "1.38.0",
4
4
  "description": "OpenAPI client for @emilgroup/customer-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [