@randock/nameshift-api-client 0.0.69 → 0.0.70

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 (44) hide show
  1. package/README.md +3 -3
  2. package/dist/apis/AccountsApi.d.ts +40 -2
  3. package/dist/apis/AccountsApi.js +56 -4
  4. package/dist/apis/AccountsPublicApi.d.ts +9 -0
  5. package/dist/apis/AccountsPublicApi.js +14 -1
  6. package/dist/apis/AdminApi.d.ts +39 -3
  7. package/dist/apis/AdminApi.js +59 -10
  8. package/dist/apis/BuyersApi.d.ts +53 -6
  9. package/dist/apis/BuyersApi.js +75 -11
  10. package/dist/apis/BuyersPublicApi.d.ts +18 -0
  11. package/dist/apis/BuyersPublicApi.js +27 -1
  12. package/dist/apis/DashboardApi.d.ts +13 -2
  13. package/dist/apis/DashboardApi.js +17 -4
  14. package/dist/apis/DomainsApi.d.ts +98 -9
  15. package/dist/apis/DomainsApi.js +156 -34
  16. package/dist/apis/DomainsPublicApi.d.ts +9 -1
  17. package/dist/apis/DomainsPublicApi.js +13 -6
  18. package/dist/apis/LeadsApi.d.ts +61 -5
  19. package/dist/apis/LeadsApi.js +86 -8
  20. package/dist/apis/LeadsPublicApi.d.ts +51 -6
  21. package/dist/apis/LeadsPublicApi.js +78 -13
  22. package/dist/apis/OrdersPublicApi.d.ts +27 -0
  23. package/dist/apis/OrdersPublicApi.js +40 -1
  24. package/dist/apis/UsersApi.d.ts +12 -3
  25. package/dist/apis/UsersApi.js +18 -5
  26. package/dist/apis/UsersPublicApi.d.ts +36 -0
  27. package/dist/apis/UsersPublicApi.js +53 -1
  28. package/dist/models/DomainSellerDto.d.ts +15 -3
  29. package/dist/models/DomainSellerDto.js +11 -3
  30. package/package.json +1 -1
  31. package/src/apis/AccountsApi.ts +87 -3
  32. package/src/apis/AccountsPublicApi.ts +21 -0
  33. package/src/apis/AdminApi.ts +84 -3
  34. package/src/apis/BuyersApi.ts +113 -9
  35. package/src/apis/BuyersPublicApi.ts +41 -0
  36. package/src/apis/DashboardApi.ts +27 -3
  37. package/src/apis/DomainsApi.ts +228 -39
  38. package/src/apis/DomainsPublicApi.ts +17 -8
  39. package/src/apis/LeadsApi.ts +132 -8
  40. package/src/apis/LeadsPublicApi.ts +115 -14
  41. package/src/apis/OrdersPublicApi.ts +61 -0
  42. package/src/apis/UsersApi.ts +26 -5
  43. package/src/apis/UsersPublicApi.ts +81 -0
  44. package/src/models/DomainSellerDto.ts +24 -6
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.UsersApi = void 0;
67
+ exports.SetUserLocaleXLocaleEnum = exports.UsersApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
@@ -78,18 +78,24 @@ var UsersApi = /** @class */ (function (_super) {
78
78
  /**
79
79
  *
80
80
  */
81
- UsersApi.prototype.setLocaleRaw = function (requestParameters, initOverrides) {
81
+ UsersApi.prototype.setUserLocaleRaw = function (requestParameters, initOverrides) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
83
  var queryParameters, headerParameters, token, tokenString, response;
84
84
  return __generator(this, function (_a) {
85
85
  switch (_a.label) {
86
86
  case 0:
87
+ if (requestParameters['xLocale'] == null) {
88
+ throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling setUserLocale().');
89
+ }
87
90
  if (requestParameters['storeUserLocaleInput'] == null) {
88
- throw new runtime.RequiredError('storeUserLocaleInput', 'Required parameter "storeUserLocaleInput" was null or undefined when calling setLocale().');
91
+ throw new runtime.RequiredError('storeUserLocaleInput', 'Required parameter "storeUserLocaleInput" was null or undefined when calling setUserLocale().');
89
92
  }
90
93
  queryParameters = {};
91
94
  headerParameters = {};
92
95
  headerParameters['Content-Type'] = 'application/json';
96
+ if (requestParameters['xLocale'] != null) {
97
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
98
+ }
93
99
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
94
100
  token = this.configuration.accessToken;
95
101
  return [4 /*yield*/, token("bearer", [])];
@@ -116,11 +122,11 @@ var UsersApi = /** @class */ (function (_super) {
116
122
  /**
117
123
  *
118
124
  */
119
- UsersApi.prototype.setLocale = function (requestParameters, initOverrides) {
125
+ UsersApi.prototype.setUserLocale = function (requestParameters, initOverrides) {
120
126
  return __awaiter(this, void 0, void 0, function () {
121
127
  return __generator(this, function (_a) {
122
128
  switch (_a.label) {
123
- case 0: return [4 /*yield*/, this.setLocaleRaw(requestParameters, initOverrides)];
129
+ case 0: return [4 /*yield*/, this.setUserLocaleRaw(requestParameters, initOverrides)];
124
130
  case 1:
125
131
  _a.sent();
126
132
  return [2 /*return*/];
@@ -131,3 +137,10 @@ var UsersApi = /** @class */ (function (_super) {
131
137
  return UsersApi;
132
138
  }(runtime.BaseAPI));
133
139
  exports.UsersApi = UsersApi;
140
+ /**
141
+ * @export
142
+ */
143
+ exports.SetUserLocaleXLocaleEnum = {
144
+ NL_NL: 'nl-nl',
145
+ EN_GB: 'en-gb'
146
+ };
@@ -12,16 +12,20 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { ForgotPasswordRequestInput, LoginDto, LoginInput, SetNewPasswordInput, UserPasswordResetDto } from '../models/index';
14
14
  export interface UsersPublicApiForgotPasswordRequestRequest {
15
+ xLocale: ForgotPasswordRequestXLocaleEnum;
15
16
  forgotPasswordRequestInput: ForgotPasswordRequestInput;
16
17
  }
17
18
  export interface UsersPublicApiGetForgotPasswordRequestRequest {
18
19
  passwordRequestId: string;
20
+ xLocale: GetForgotPasswordRequestXLocaleEnum;
19
21
  }
20
22
  export interface UsersPublicApiLoginRequest {
23
+ xLocale: LoginXLocaleEnum;
21
24
  loginInput: LoginInput;
22
25
  }
23
26
  export interface UsersPublicApiPostNewPasswordRequest {
24
27
  passwordRequestId: string;
28
+ xLocale: PostNewPasswordXLocaleEnum;
25
29
  setNewPasswordInput: SetNewPasswordInput;
26
30
  }
27
31
  /**
@@ -61,3 +65,35 @@ export declare class UsersPublicApi extends runtime.BaseAPI {
61
65
  */
62
66
  postNewPassword(requestParameters: UsersPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
63
67
  }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const ForgotPasswordRequestXLocaleEnum: {
72
+ readonly NL_NL: "nl-nl";
73
+ readonly EN_GB: "en-gb";
74
+ };
75
+ export type ForgotPasswordRequestXLocaleEnum = typeof ForgotPasswordRequestXLocaleEnum[keyof typeof ForgotPasswordRequestXLocaleEnum];
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const GetForgotPasswordRequestXLocaleEnum: {
80
+ readonly NL_NL: "nl-nl";
81
+ readonly EN_GB: "en-gb";
82
+ };
83
+ export type GetForgotPasswordRequestXLocaleEnum = typeof GetForgotPasswordRequestXLocaleEnum[keyof typeof GetForgotPasswordRequestXLocaleEnum];
84
+ /**
85
+ * @export
86
+ */
87
+ export declare const LoginXLocaleEnum: {
88
+ readonly NL_NL: "nl-nl";
89
+ readonly EN_GB: "en-gb";
90
+ };
91
+ export type LoginXLocaleEnum = typeof LoginXLocaleEnum[keyof typeof LoginXLocaleEnum];
92
+ /**
93
+ * @export
94
+ */
95
+ export declare const PostNewPasswordXLocaleEnum: {
96
+ readonly NL_NL: "nl-nl";
97
+ readonly EN_GB: "en-gb";
98
+ };
99
+ export type PostNewPasswordXLocaleEnum = typeof PostNewPasswordXLocaleEnum[keyof typeof PostNewPasswordXLocaleEnum];
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.UsersPublicApi = void 0;
67
+ exports.PostNewPasswordXLocaleEnum = exports.LoginXLocaleEnum = exports.GetForgotPasswordRequestXLocaleEnum = exports.ForgotPasswordRequestXLocaleEnum = exports.UsersPublicApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
@@ -84,12 +84,18 @@ var UsersPublicApi = /** @class */ (function (_super) {
84
84
  return __generator(this, function (_a) {
85
85
  switch (_a.label) {
86
86
  case 0:
87
+ if (requestParameters['xLocale'] == null) {
88
+ throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling forgotPasswordRequest().');
89
+ }
87
90
  if (requestParameters['forgotPasswordRequestInput'] == null) {
88
91
  throw new runtime.RequiredError('forgotPasswordRequestInput', 'Required parameter "forgotPasswordRequestInput" was null or undefined when calling forgotPasswordRequest().');
89
92
  }
90
93
  queryParameters = {};
91
94
  headerParameters = {};
92
95
  headerParameters['Content-Type'] = 'application/json';
96
+ if (requestParameters['xLocale'] != null) {
97
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
98
+ }
93
99
  return [4 /*yield*/, this.request({
94
100
  path: "/users/forgot-password-request",
95
101
  method: 'POST',
@@ -131,8 +137,14 @@ var UsersPublicApi = /** @class */ (function (_super) {
131
137
  if (requestParameters['passwordRequestId'] == null) {
132
138
  throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling getForgotPasswordRequest().');
133
139
  }
140
+ if (requestParameters['xLocale'] == null) {
141
+ throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getForgotPasswordRequest().');
142
+ }
134
143
  queryParameters = {};
135
144
  headerParameters = {};
145
+ if (requestParameters['xLocale'] != null) {
146
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
147
+ }
136
148
  return [4 /*yield*/, this.request({
137
149
  path: "/users/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
138
150
  method: 'GET',
@@ -172,12 +184,18 @@ var UsersPublicApi = /** @class */ (function (_super) {
172
184
  return __generator(this, function (_a) {
173
185
  switch (_a.label) {
174
186
  case 0:
187
+ if (requestParameters['xLocale'] == null) {
188
+ throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling login().');
189
+ }
175
190
  if (requestParameters['loginInput'] == null) {
176
191
  throw new runtime.RequiredError('loginInput', 'Required parameter "loginInput" was null or undefined when calling login().');
177
192
  }
178
193
  queryParameters = {};
179
194
  headerParameters = {};
180
195
  headerParameters['Content-Type'] = 'application/json';
196
+ if (requestParameters['xLocale'] != null) {
197
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
198
+ }
181
199
  return [4 /*yield*/, this.request({
182
200
  path: "/users/login",
183
201
  method: 'POST',
@@ -221,12 +239,18 @@ var UsersPublicApi = /** @class */ (function (_super) {
221
239
  if (requestParameters['passwordRequestId'] == null) {
222
240
  throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling postNewPassword().');
223
241
  }
242
+ if (requestParameters['xLocale'] == null) {
243
+ throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling postNewPassword().');
244
+ }
224
245
  if (requestParameters['setNewPasswordInput'] == null) {
225
246
  throw new runtime.RequiredError('setNewPasswordInput', 'Required parameter "setNewPasswordInput" was null or undefined when calling postNewPassword().');
226
247
  }
227
248
  queryParameters = {};
228
249
  headerParameters = {};
229
250
  headerParameters['Content-Type'] = 'application/json';
251
+ if (requestParameters['xLocale'] != null) {
252
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
253
+ }
230
254
  return [4 /*yield*/, this.request({
231
255
  path: "/users/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
232
256
  method: 'POST',
@@ -259,3 +283,31 @@ var UsersPublicApi = /** @class */ (function (_super) {
259
283
  return UsersPublicApi;
260
284
  }(runtime.BaseAPI));
261
285
  exports.UsersPublicApi = UsersPublicApi;
286
+ /**
287
+ * @export
288
+ */
289
+ exports.ForgotPasswordRequestXLocaleEnum = {
290
+ NL_NL: 'nl-nl',
291
+ EN_GB: 'en-gb'
292
+ };
293
+ /**
294
+ * @export
295
+ */
296
+ exports.GetForgotPasswordRequestXLocaleEnum = {
297
+ NL_NL: 'nl-nl',
298
+ EN_GB: 'en-gb'
299
+ };
300
+ /**
301
+ * @export
302
+ */
303
+ exports.LoginXLocaleEnum = {
304
+ NL_NL: 'nl-nl',
305
+ EN_GB: 'en-gb'
306
+ };
307
+ /**
308
+ * @export
309
+ */
310
+ exports.PostNewPasswordXLocaleEnum = {
311
+ NL_NL: 'nl-nl',
312
+ EN_GB: 'en-gb'
313
+ };
@@ -16,6 +16,12 @@ import type { RelatedSellerDomain } from './RelatedSellerDomain';
16
16
  * @interface DomainSellerDto
17
17
  */
18
18
  export interface DomainSellerDto {
19
+ /**
20
+ * The domain seller account creation date
21
+ * @type {Date}
22
+ * @memberof DomainSellerDto
23
+ */
24
+ createdAt: Date;
19
25
  /**
20
26
  * The domain seller account verified status
21
27
  * @type {boolean}
@@ -23,11 +29,17 @@ export interface DomainSellerDto {
23
29
  */
24
30
  verified: boolean;
25
31
  /**
26
- * The domain seller account creation date
27
- * @type {Date}
32
+ * Last online, formatted
33
+ * @type {string}
28
34
  * @memberof DomainSellerDto
29
35
  */
30
- createdAt: Date;
36
+ lastOnline: string;
37
+ /**
38
+ * Delivers in, formatted
39
+ * @type {string}
40
+ * @memberof DomainSellerDto
41
+ */
42
+ deliversIn: string;
31
43
  /**
32
44
  * The domain seller related domains
33
45
  * @type {Array<RelatedSellerDomain>}
@@ -19,9 +19,13 @@ var RelatedSellerDomain_1 = require("./RelatedSellerDomain");
19
19
  * Check if a given object implements the DomainSellerDto interface.
20
20
  */
21
21
  function instanceOfDomainSellerDto(value) {
22
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
23
+ return false;
22
24
  if (!('verified' in value) || value['verified'] === undefined)
23
25
  return false;
24
- if (!('createdAt' in value) || value['createdAt'] === undefined)
26
+ if (!('lastOnline' in value) || value['lastOnline'] === undefined)
27
+ return false;
28
+ if (!('deliversIn' in value) || value['deliversIn'] === undefined)
25
29
  return false;
26
30
  if (!('relatedDomains' in value) || value['relatedDomains'] === undefined)
27
31
  return false;
@@ -37,8 +41,10 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
37
41
  return json;
38
42
  }
39
43
  return {
40
- 'verified': json['verified'],
41
44
  'createdAt': (new Date(json['createdAt'])),
45
+ 'verified': json['verified'],
46
+ 'lastOnline': json['lastOnline'],
47
+ 'deliversIn': json['deliversIn'],
42
48
  'relatedDomains': (json['relatedDomains'] == null ? null : json['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
43
49
  };
44
50
  }
@@ -48,8 +54,10 @@ function DomainSellerDtoToJSON(value) {
48
54
  return value;
49
55
  }
50
56
  return {
51
- 'verified': value['verified'],
52
57
  'createdAt': ((value['createdAt']).toISOString()),
58
+ 'verified': value['verified'],
59
+ 'lastOnline': value['lastOnline'],
60
+ 'deliversIn': value['deliversIn'],
53
61
  'relatedDomains': (value['relatedDomains'] == null ? null : value['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
54
62
  };
55
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -37,18 +37,25 @@ import {
37
37
  ValidationExceptionToJSON,
38
38
  } from '../models/index';
39
39
 
40
+ export interface AccountsApiMeRequest {
41
+ xLocale: MeXLocaleEnum;
42
+ }
43
+
40
44
  export interface AccountsApiUpdateAddressRequest {
41
45
  accountId: string;
46
+ xLocale: UpdateAddressXLocaleEnum;
42
47
  accountAddressInput: AccountAddressInput;
43
48
  }
44
49
 
45
50
  export interface AccountsApiUpdateFinancialRequest {
46
51
  accountId: string;
52
+ xLocale: UpdateFinancialXLocaleEnum;
47
53
  accountFinancialInput: AccountFinancialInput;
48
54
  }
49
55
 
50
56
  export interface AccountsApiUpdateSettingsRequest {
51
57
  accountId: string;
58
+ xLocale: UpdateSettingsXLocaleEnum;
52
59
  accountSettingsInput: AccountSettingsInput;
53
60
  }
54
61
 
@@ -60,11 +67,22 @@ export class AccountsApi extends runtime.BaseAPI {
60
67
  /**
61
68
  *
62
69
  */
63
- async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>> {
70
+ async meRaw(requestParameters: AccountsApiMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>> {
71
+ if (requestParameters['xLocale'] == null) {
72
+ throw new runtime.RequiredError(
73
+ 'xLocale',
74
+ 'Required parameter "xLocale" was null or undefined when calling me().'
75
+ );
76
+ }
77
+
64
78
  const queryParameters: any = {};
65
79
 
66
80
  const headerParameters: runtime.HTTPHeaders = {};
67
81
 
82
+ if (requestParameters['xLocale'] != null) {
83
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
84
+ }
85
+
68
86
  if (this.configuration && this.configuration.accessToken) {
69
87
  const token = this.configuration.accessToken;
70
88
  const tokenString = await token("bearer", []);
@@ -86,8 +104,8 @@ export class AccountsApi extends runtime.BaseAPI {
86
104
  /**
87
105
  *
88
106
  */
89
- async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto> {
90
- const response = await this.meRaw(initOverrides);
107
+ async me(requestParameters: AccountsApiMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto> {
108
+ const response = await this.meRaw(requestParameters, initOverrides);
91
109
  return await response.value();
92
110
  }
93
111
 
@@ -102,6 +120,13 @@ export class AccountsApi extends runtime.BaseAPI {
102
120
  );
103
121
  }
104
122
 
123
+ if (requestParameters['xLocale'] == null) {
124
+ throw new runtime.RequiredError(
125
+ 'xLocale',
126
+ 'Required parameter "xLocale" was null or undefined when calling updateAddress().'
127
+ );
128
+ }
129
+
105
130
  if (requestParameters['accountAddressInput'] == null) {
106
131
  throw new runtime.RequiredError(
107
132
  'accountAddressInput',
@@ -115,6 +140,10 @@ export class AccountsApi extends runtime.BaseAPI {
115
140
 
116
141
  headerParameters['Content-Type'] = 'application/json';
117
142
 
143
+ if (requestParameters['xLocale'] != null) {
144
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
145
+ }
146
+
118
147
  if (this.configuration && this.configuration.accessToken) {
119
148
  const token = this.configuration.accessToken;
120
149
  const tokenString = await token("bearer", []);
@@ -152,6 +181,13 @@ export class AccountsApi extends runtime.BaseAPI {
152
181
  );
153
182
  }
154
183
 
184
+ if (requestParameters['xLocale'] == null) {
185
+ throw new runtime.RequiredError(
186
+ 'xLocale',
187
+ 'Required parameter "xLocale" was null or undefined when calling updateFinancial().'
188
+ );
189
+ }
190
+
155
191
  if (requestParameters['accountFinancialInput'] == null) {
156
192
  throw new runtime.RequiredError(
157
193
  'accountFinancialInput',
@@ -165,6 +201,10 @@ export class AccountsApi extends runtime.BaseAPI {
165
201
 
166
202
  headerParameters['Content-Type'] = 'application/json';
167
203
 
204
+ if (requestParameters['xLocale'] != null) {
205
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
206
+ }
207
+
168
208
  if (this.configuration && this.configuration.accessToken) {
169
209
  const token = this.configuration.accessToken;
170
210
  const tokenString = await token("bearer", []);
@@ -202,6 +242,13 @@ export class AccountsApi extends runtime.BaseAPI {
202
242
  );
203
243
  }
204
244
 
245
+ if (requestParameters['xLocale'] == null) {
246
+ throw new runtime.RequiredError(
247
+ 'xLocale',
248
+ 'Required parameter "xLocale" was null or undefined when calling updateSettings().'
249
+ );
250
+ }
251
+
205
252
  if (requestParameters['accountSettingsInput'] == null) {
206
253
  throw new runtime.RequiredError(
207
254
  'accountSettingsInput',
@@ -215,6 +262,10 @@ export class AccountsApi extends runtime.BaseAPI {
215
262
 
216
263
  headerParameters['Content-Type'] = 'application/json';
217
264
 
265
+ if (requestParameters['xLocale'] != null) {
266
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
267
+ }
268
+
218
269
  if (this.configuration && this.configuration.accessToken) {
219
270
  const token = this.configuration.accessToken;
220
271
  const tokenString = await token("bearer", []);
@@ -242,3 +293,36 @@ export class AccountsApi extends runtime.BaseAPI {
242
293
  }
243
294
 
244
295
  }
296
+
297
+ /**
298
+ * @export
299
+ */
300
+ export const MeXLocaleEnum = {
301
+ NL_NL: 'nl-nl',
302
+ EN_GB: 'en-gb'
303
+ } as const;
304
+ export type MeXLocaleEnum = typeof MeXLocaleEnum[keyof typeof MeXLocaleEnum];
305
+ /**
306
+ * @export
307
+ */
308
+ export const UpdateAddressXLocaleEnum = {
309
+ NL_NL: 'nl-nl',
310
+ EN_GB: 'en-gb'
311
+ } as const;
312
+ export type UpdateAddressXLocaleEnum = typeof UpdateAddressXLocaleEnum[keyof typeof UpdateAddressXLocaleEnum];
313
+ /**
314
+ * @export
315
+ */
316
+ export const UpdateFinancialXLocaleEnum = {
317
+ NL_NL: 'nl-nl',
318
+ EN_GB: 'en-gb'
319
+ } as const;
320
+ export type UpdateFinancialXLocaleEnum = typeof UpdateFinancialXLocaleEnum[keyof typeof UpdateFinancialXLocaleEnum];
321
+ /**
322
+ * @export
323
+ */
324
+ export const UpdateSettingsXLocaleEnum = {
325
+ NL_NL: 'nl-nl',
326
+ EN_GB: 'en-gb'
327
+ } as const;
328
+ export type UpdateSettingsXLocaleEnum = typeof UpdateSettingsXLocaleEnum[keyof typeof UpdateSettingsXLocaleEnum];
@@ -32,6 +32,7 @@ import {
32
32
  } from '../models/index';
33
33
 
34
34
  export interface AccountsPublicApiRegisterRequest {
35
+ xLocale: RegisterXLocaleEnum;
35
36
  registerAccountInput: RegisterAccountInput;
36
37
  }
37
38
 
@@ -44,6 +45,13 @@ export class AccountsPublicApi extends runtime.BaseAPI {
44
45
  *
45
46
  */
46
47
  async registerRaw(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
48
+ if (requestParameters['xLocale'] == null) {
49
+ throw new runtime.RequiredError(
50
+ 'xLocale',
51
+ 'Required parameter "xLocale" was null or undefined when calling register().'
52
+ );
53
+ }
54
+
47
55
  if (requestParameters['registerAccountInput'] == null) {
48
56
  throw new runtime.RequiredError(
49
57
  'registerAccountInput',
@@ -57,6 +65,10 @@ export class AccountsPublicApi extends runtime.BaseAPI {
57
65
 
58
66
  headerParameters['Content-Type'] = 'application/json';
59
67
 
68
+ if (requestParameters['xLocale'] != null) {
69
+ headerParameters['x-locale'] = String(requestParameters['xLocale']);
70
+ }
71
+
60
72
  const response = await this.request({
61
73
  path: `/accounts/register`,
62
74
  method: 'POST',
@@ -76,3 +88,12 @@ export class AccountsPublicApi extends runtime.BaseAPI {
76
88
  }
77
89
 
78
90
  }
91
+
92
+ /**
93
+ * @export
94
+ */
95
+ export const RegisterXLocaleEnum = {
96
+ NL_NL: 'nl-nl',
97
+ EN_GB: 'en-gb'
98
+ } as const;
99
+ export type RegisterXLocaleEnum = typeof RegisterXLocaleEnum[keyof typeof RegisterXLocaleEnum];