@randock/nameshift-api-client 0.0.263 → 0.0.265

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.
@@ -25,6 +25,8 @@ src/apis/UsersApi.ts
25
25
  src/apis/UsersPublicApi.ts
26
26
  src/apis/index.ts
27
27
  src/index.ts
28
+ src/models/AccountAliasDto.ts
29
+ src/models/AccountAliasInput.ts
28
30
  src/models/AccountBankAccountDto.ts
29
31
  src/models/AccountBankAccountDtoDetails.ts
30
32
  src/models/AccountDto.ts
@@ -34,6 +36,7 @@ src/models/AccountNotificationReadStatusDto.ts
34
36
  src/models/AccountOnboardingDto.ts
35
37
  src/models/AccountOnboardingSessionDto.ts
36
38
  src/models/AccountPayoutDto.ts
39
+ src/models/AccountSettingsAliasDto.ts
37
40
  src/models/AccountSettingsDto.ts
38
41
  src/models/AccountSettingsInput.ts
39
42
  src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.263
1
+ ## @randock/nameshift-api-client@0.0.265
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.263 --save
39
+ npm install @randock/nameshift-api-client@0.0.265 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 8621240e957ba3ce8d32737942c7f1d0e328099555a926d22f120d7e5d3e56645f789263a0ab36f679e39c6f642d5e90
47
+ dfce2b247002105a45eefc59eb0073ca0c0533d187cb6dd05646c209877f941d866fefc8ca6a7a61007644e05d15cac3
@@ -107,6 +107,9 @@ export interface AdminApiUpdateAccountSettingsRequest {
107
107
  accountId: string;
108
108
  adminAccountSettingsInput: AdminAccountSettingsInput;
109
109
  }
110
+ export interface AdminApiVerifyAccountAliasRequest {
111
+ accountId: string;
112
+ }
110
113
  export interface AdminApiVerifyBankAccountRequest {
111
114
  bankAccountId: string;
112
115
  }
@@ -290,6 +293,14 @@ export declare class AdminApi extends runtime.BaseAPI {
290
293
  *
291
294
  */
292
295
  updateAccountSettings(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
296
+ /**
297
+ *
298
+ */
299
+ verifyAccountAliasRaw(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
300
+ /**
301
+ *
302
+ */
303
+ verifyAccountAlias(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
293
304
  /**
294
305
  *
295
306
  */
@@ -1333,6 +1333,57 @@ var AdminApi = /** @class */ (function (_super) {
1333
1333
  });
1334
1334
  });
1335
1335
  };
1336
+ /**
1337
+ *
1338
+ */
1339
+ AdminApi.prototype.verifyAccountAliasRaw = function (requestParameters, initOverrides) {
1340
+ return __awaiter(this, void 0, void 0, function () {
1341
+ var queryParameters, headerParameters, token, tokenString, response;
1342
+ return __generator(this, function (_a) {
1343
+ switch (_a.label) {
1344
+ case 0:
1345
+ if (requestParameters['accountId'] == null) {
1346
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling verifyAccountAlias().');
1347
+ }
1348
+ queryParameters = {};
1349
+ headerParameters = {};
1350
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1351
+ token = this.configuration.accessToken;
1352
+ return [4 /*yield*/, token("bearer", [])];
1353
+ case 1:
1354
+ tokenString = _a.sent();
1355
+ if (tokenString) {
1356
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1357
+ }
1358
+ _a.label = 2;
1359
+ case 2: return [4 /*yield*/, this.request({
1360
+ path: "/admin/accounts/{accountId}/alias/verify".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
1361
+ method: 'POST',
1362
+ headers: headerParameters,
1363
+ query: queryParameters,
1364
+ }, initOverrides)];
1365
+ case 3:
1366
+ response = _a.sent();
1367
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1368
+ }
1369
+ });
1370
+ });
1371
+ };
1372
+ /**
1373
+ *
1374
+ */
1375
+ AdminApi.prototype.verifyAccountAlias = function (requestParameters, initOverrides) {
1376
+ return __awaiter(this, void 0, void 0, function () {
1377
+ return __generator(this, function (_a) {
1378
+ switch (_a.label) {
1379
+ case 0: return [4 /*yield*/, this.verifyAccountAliasRaw(requestParameters, initOverrides)];
1380
+ case 1:
1381
+ _a.sent();
1382
+ return [2 /*return*/];
1383
+ }
1384
+ });
1385
+ });
1386
+ };
1336
1387
  /**
1337
1388
  *
1338
1389
  */
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 AccountAliasDto
16
+ */
17
+ export interface AccountAliasDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AccountAliasDto
22
+ */
23
+ alias: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof AccountAliasDto
28
+ */
29
+ verified: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AccountAliasDto interface.
33
+ */
34
+ export declare function instanceOfAccountAliasDto(value: object): value is AccountAliasDto;
35
+ export declare function AccountAliasDtoFromJSON(json: any): AccountAliasDto;
36
+ export declare function AccountAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAliasDto;
37
+ export declare function AccountAliasDtoToJSON(json: any): AccountAliasDto;
38
+ export declare function AccountAliasDtoToJSONTyped(value?: AccountAliasDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
16
+ exports.instanceOfAccountAliasDto = instanceOfAccountAliasDto;
17
+ exports.AccountAliasDtoFromJSON = AccountAliasDtoFromJSON;
18
+ exports.AccountAliasDtoFromJSONTyped = AccountAliasDtoFromJSONTyped;
19
+ exports.AccountAliasDtoToJSON = AccountAliasDtoToJSON;
20
+ exports.AccountAliasDtoToJSONTyped = AccountAliasDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountAliasDto interface.
23
+ */
24
+ function instanceOfAccountAliasDto(value) {
25
+ if (!('alias' in value) || value['alias'] === undefined)
26
+ return false;
27
+ if (!('verified' in value) || value['verified'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AccountAliasDtoFromJSON(json) {
32
+ return AccountAliasDtoFromJSONTyped(json, false);
33
+ }
34
+ function AccountAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'alias': json['alias'],
40
+ 'verified': json['verified'],
41
+ };
42
+ }
43
+ function AccountAliasDtoToJSON(json) {
44
+ return AccountAliasDtoToJSONTyped(json, false);
45
+ }
46
+ function AccountAliasDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'alias': value['alias'],
53
+ 'verified': value['verified'],
54
+ };
55
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 AccountAliasInput
16
+ */
17
+ export interface AccountAliasInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AccountAliasInput
22
+ */
23
+ alias?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AccountAliasInput interface.
27
+ */
28
+ export declare function instanceOfAccountAliasInput(value: object): value is AccountAliasInput;
29
+ export declare function AccountAliasInputFromJSON(json: any): AccountAliasInput;
30
+ export declare function AccountAliasInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAliasInput;
31
+ export declare function AccountAliasInputToJSON(json: any): AccountAliasInput;
32
+ export declare function AccountAliasInputToJSONTyped(value?: AccountAliasInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
16
+ exports.instanceOfAccountAliasInput = instanceOfAccountAliasInput;
17
+ exports.AccountAliasInputFromJSON = AccountAliasInputFromJSON;
18
+ exports.AccountAliasInputFromJSONTyped = AccountAliasInputFromJSONTyped;
19
+ exports.AccountAliasInputToJSON = AccountAliasInputToJSON;
20
+ exports.AccountAliasInputToJSONTyped = AccountAliasInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountAliasInput interface.
23
+ */
24
+ function instanceOfAccountAliasInput(value) {
25
+ return true;
26
+ }
27
+ function AccountAliasInputFromJSON(json) {
28
+ return AccountAliasInputFromJSONTyped(json, false);
29
+ }
30
+ function AccountAliasInputFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'alias': json['alias'] == null ? undefined : json['alias'],
36
+ };
37
+ }
38
+ function AccountAliasInputToJSON(json) {
39
+ return AccountAliasInputToJSONTyped(json, false);
40
+ }
41
+ function AccountAliasInputToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'alias': value['alias'],
48
+ };
49
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 AccountSettingsAliasDto
16
+ */
17
+ export interface AccountSettingsAliasDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AccountSettingsAliasDto
22
+ */
23
+ alias: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof AccountSettingsAliasDto
28
+ */
29
+ verified: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AccountSettingsAliasDto interface.
33
+ */
34
+ export declare function instanceOfAccountSettingsAliasDto(value: object): value is AccountSettingsAliasDto;
35
+ export declare function AccountSettingsAliasDtoFromJSON(json: any): AccountSettingsAliasDto;
36
+ export declare function AccountSettingsAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAliasDto;
37
+ export declare function AccountSettingsAliasDtoToJSON(json: any): AccountSettingsAliasDto;
38
+ export declare function AccountSettingsAliasDtoToJSONTyped(value?: AccountSettingsAliasDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
16
+ exports.instanceOfAccountSettingsAliasDto = instanceOfAccountSettingsAliasDto;
17
+ exports.AccountSettingsAliasDtoFromJSON = AccountSettingsAliasDtoFromJSON;
18
+ exports.AccountSettingsAliasDtoFromJSONTyped = AccountSettingsAliasDtoFromJSONTyped;
19
+ exports.AccountSettingsAliasDtoToJSON = AccountSettingsAliasDtoToJSON;
20
+ exports.AccountSettingsAliasDtoToJSONTyped = AccountSettingsAliasDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountSettingsAliasDto interface.
23
+ */
24
+ function instanceOfAccountSettingsAliasDto(value) {
25
+ if (!('alias' in value) || value['alias'] === undefined)
26
+ return false;
27
+ if (!('verified' in value) || value['verified'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AccountSettingsAliasDtoFromJSON(json) {
32
+ return AccountSettingsAliasDtoFromJSONTyped(json, false);
33
+ }
34
+ function AccountSettingsAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'alias': json['alias'],
40
+ 'verified': json['verified'],
41
+ };
42
+ }
43
+ function AccountSettingsAliasDtoToJSON(json) {
44
+ return AccountSettingsAliasDtoToJSONTyped(json, false);
45
+ }
46
+ function AccountSettingsAliasDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'alias': value['alias'],
53
+ 'verified': value['verified'],
54
+ };
55
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
13
  import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
14
+ import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
14
15
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
15
16
  import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
16
17
  import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
@@ -74,6 +75,12 @@ export interface AccountSettingsDto {
74
75
  * @memberof AccountSettingsDto
75
76
  */
76
77
  avatar: string | null;
78
+ /**
79
+ *
80
+ * @type {AccountSettingsAliasDto}
81
+ * @memberof AccountSettingsDto
82
+ */
83
+ alias: AccountSettingsAliasDto;
77
84
  }
78
85
  /**
79
86
  * Check if a given object implements the AccountSettingsDto interface.
@@ -20,6 +20,7 @@ exports.AccountSettingsDtoToJSON = AccountSettingsDtoToJSON;
20
20
  exports.AccountSettingsDtoToJSONTyped = AccountSettingsDtoToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
22
  var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
23
+ var AccountSettingsAliasDto_1 = require("./AccountSettingsAliasDto");
23
24
  var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
24
25
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
25
26
  var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
@@ -45,6 +46,8 @@ function instanceOfAccountSettingsDto(value) {
45
46
  return false;
46
47
  if (!('avatar' in value) || value['avatar'] === undefined)
47
48
  return false;
49
+ if (!('alias' in value) || value['alias'] === undefined)
50
+ return false;
48
51
  return true;
49
52
  }
50
53
  function AccountSettingsDtoFromJSON(json) {
@@ -64,6 +67,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
64
67
  'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoFromJSON)(json['sidn']),
65
68
  'description': json['description'],
66
69
  'avatar': json['avatar'],
70
+ 'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoFromJSON)(json['alias']),
67
71
  };
68
72
  }
69
73
  function AccountSettingsDtoToJSON(json) {
@@ -84,5 +88,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
84
88
  'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoToJSON)(value['sidn']),
85
89
  'description': value['description'],
86
90
  'avatar': value['avatar'],
91
+ 'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoToJSON)(value['alias']),
87
92
  };
88
93
  }
@@ -14,6 +14,7 @@ import type { LandingPageInput } from './LandingPageInput';
14
14
  import type { TimeTableConfigurationInput } from './TimeTableConfigurationInput';
15
15
  import type { LeadPriceNegotiatorAiAgentConfigurationInput } from './LeadPriceNegotiatorAiAgentConfigurationInput';
16
16
  import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
17
+ import type { AccountAliasInput } from './AccountAliasInput';
17
18
  /**
18
19
  *
19
20
  * @export
@@ -82,10 +83,10 @@ export interface AccountSettingsInput {
82
83
  timezone?: string;
83
84
  /**
84
85
  *
85
- * @type {string}
86
+ * @type {AccountAliasInput}
86
87
  * @memberof AccountSettingsInput
87
88
  */
88
- alias?: string;
89
+ alias?: AccountAliasInput;
89
90
  }
90
91
  /**
91
92
  * Check if a given object implements the AccountSettingsInput interface.
@@ -23,6 +23,7 @@ var LandingPageInput_1 = require("./LandingPageInput");
23
23
  var TimeTableConfigurationInput_1 = require("./TimeTableConfigurationInput");
24
24
  var LeadPriceNegotiatorAiAgentConfigurationInput_1 = require("./LeadPriceNegotiatorAiAgentConfigurationInput");
25
25
  var LeaseToOwnConfigurationInput_1 = require("./LeaseToOwnConfigurationInput");
26
+ var AccountAliasInput_1 = require("./AccountAliasInput");
26
27
  /**
27
28
  * Check if a given object implements the AccountSettingsInput interface.
28
29
  */
@@ -47,7 +48,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'timeTable': json['timeTable'] == null ? undefined : (0, TimeTableConfigurationInput_1.TimeTableConfigurationInputFromJSON)(json['timeTable']),
48
49
  'leadPriceNegotiatorAiAgent': json['leadPriceNegotiatorAiAgent'] == null ? undefined : (0, LeadPriceNegotiatorAiAgentConfigurationInput_1.LeadPriceNegotiatorAiAgentConfigurationInputFromJSON)(json['leadPriceNegotiatorAiAgent']),
49
50
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
50
- 'alias': json['alias'] == null ? undefined : json['alias'],
51
+ 'alias': json['alias'] == null ? undefined : (0, AccountAliasInput_1.AccountAliasInputFromJSON)(json['alias']),
51
52
  };
52
53
  }
53
54
  function AccountSettingsInputToJSON(json) {
@@ -69,6 +70,6 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
69
70
  'timeTable': (0, TimeTableConfigurationInput_1.TimeTableConfigurationInputToJSON)(value['timeTable']),
70
71
  'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationInput_1.LeadPriceNegotiatorAiAgentConfigurationInputToJSON)(value['leadPriceNegotiatorAiAgent']),
71
72
  'timezone': value['timezone'],
72
- 'alias': value['alias'],
73
+ 'alias': (0, AccountAliasInput_1.AccountAliasInputToJSON)(value['alias']),
73
74
  };
74
75
  }
@@ -23,6 +23,36 @@ export interface ListAccountDto {
23
23
  * @memberof ListAccountDto
24
24
  */
25
25
  id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ListAccountDto
30
+ */
31
+ alias: string | null;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof ListAccountDto
36
+ */
37
+ aliasVerified: boolean;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ListAccountDto
42
+ */
43
+ onboardingProvider: ListAccountDtoOnboardingProviderEnum;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ListAccountDto
48
+ */
49
+ onboardingStatus: ListAccountDtoOnboardingStatusEnum;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof ListAccountDto
54
+ */
55
+ payoutProvider: ListAccountDtoPayoutProviderEnum;
26
56
  /**
27
57
  *
28
58
  * @type {string}
@@ -66,6 +96,31 @@ export interface ListAccountDto {
66
96
  */
67
97
  users: Array<ListAccountUserDto>;
68
98
  }
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const ListAccountDtoOnboardingProviderEnum: {
103
+ readonly STRIPE: "stripe";
104
+ readonly SUMSUB: "sumsub";
105
+ };
106
+ export type ListAccountDtoOnboardingProviderEnum = typeof ListAccountDtoOnboardingProviderEnum[keyof typeof ListAccountDtoOnboardingProviderEnum];
107
+ /**
108
+ * @export
109
+ */
110
+ export declare const ListAccountDtoOnboardingStatusEnum: {
111
+ readonly PENDING: "pending";
112
+ readonly ACTIVE: "active";
113
+ readonly REJECTED: "rejected";
114
+ };
115
+ export type ListAccountDtoOnboardingStatusEnum = typeof ListAccountDtoOnboardingStatusEnum[keyof typeof ListAccountDtoOnboardingStatusEnum];
116
+ /**
117
+ * @export
118
+ */
119
+ export declare const ListAccountDtoPayoutProviderEnum: {
120
+ readonly STRIPE: "stripe";
121
+ readonly BANK_ACCOUNT: "bank_account";
122
+ };
123
+ export type ListAccountDtoPayoutProviderEnum = typeof ListAccountDtoPayoutProviderEnum[keyof typeof ListAccountDtoPayoutProviderEnum];
69
124
  /**
70
125
  * Check if a given object implements the ListAccountDto interface.
71
126
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListAccountDtoPayoutProviderEnum = exports.ListAccountDtoOnboardingStatusEnum = exports.ListAccountDtoOnboardingProviderEnum = void 0;
16
17
  exports.instanceOfListAccountDto = instanceOfListAccountDto;
17
18
  exports.ListAccountDtoFromJSON = ListAccountDtoFromJSON;
18
19
  exports.ListAccountDtoFromJSONTyped = ListAccountDtoFromJSONTyped;
@@ -20,12 +21,44 @@ exports.ListAccountDtoToJSON = ListAccountDtoToJSON;
20
21
  exports.ListAccountDtoToJSONTyped = ListAccountDtoToJSONTyped;
21
22
  var ListAccountMetricsDto_1 = require("./ListAccountMetricsDto");
22
23
  var ListAccountUserDto_1 = require("./ListAccountUserDto");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ListAccountDtoOnboardingProviderEnum = {
28
+ STRIPE: 'stripe',
29
+ SUMSUB: 'sumsub'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.ListAccountDtoOnboardingStatusEnum = {
35
+ PENDING: 'pending',
36
+ ACTIVE: 'active',
37
+ REJECTED: 'rejected'
38
+ };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.ListAccountDtoPayoutProviderEnum = {
43
+ STRIPE: 'stripe',
44
+ BANK_ACCOUNT: 'bank_account'
45
+ };
23
46
  /**
24
47
  * Check if a given object implements the ListAccountDto interface.
25
48
  */
26
49
  function instanceOfListAccountDto(value) {
27
50
  if (!('id' in value) || value['id'] === undefined)
28
51
  return false;
52
+ if (!('alias' in value) || value['alias'] === undefined)
53
+ return false;
54
+ if (!('aliasVerified' in value) || value['aliasVerified'] === undefined)
55
+ return false;
56
+ if (!('onboardingProvider' in value) || value['onboardingProvider'] === undefined)
57
+ return false;
58
+ if (!('onboardingStatus' in value) || value['onboardingStatus'] === undefined)
59
+ return false;
60
+ if (!('payoutProvider' in value) || value['payoutProvider'] === undefined)
61
+ return false;
29
62
  if (!('identifier' in value) || value['identifier'] === undefined)
30
63
  return false;
31
64
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -51,6 +84,11 @@ function ListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
51
84
  }
52
85
  return {
53
86
  'id': json['id'],
87
+ 'alias': json['alias'],
88
+ 'aliasVerified': json['aliasVerified'],
89
+ 'onboardingProvider': json['onboardingProvider'],
90
+ 'onboardingStatus': json['onboardingStatus'],
91
+ 'payoutProvider': json['payoutProvider'],
54
92
  'identifier': json['identifier'],
55
93
  'createdAt': (new Date(json['createdAt'])),
56
94
  'name': json['name'],
@@ -70,6 +108,11 @@ function ListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
70
108
  }
71
109
  return {
72
110
  'id': value['id'],
111
+ 'alias': value['alias'],
112
+ 'aliasVerified': value['aliasVerified'],
113
+ 'onboardingProvider': value['onboardingProvider'],
114
+ 'onboardingStatus': value['onboardingStatus'],
115
+ 'payoutProvider': value['payoutProvider'],
73
116
  'identifier': value['identifier'],
74
117
  'createdAt': ((value['createdAt']).toISOString()),
75
118
  'name': value['name'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { LeadPriceNegotiatorAiAgentConfigurationDto } from './LeadPriceNegotiatorAiAgentConfigurationDto';
13
13
  import type { MoneyDto } from './MoneyDto';
14
+ import type { AccountAliasDto } from './AccountAliasDto';
14
15
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
15
16
  import type { TimeTableConfigurationDto } from './TimeTableConfigurationDto';
16
17
  import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
@@ -94,10 +95,10 @@ export interface WithSettingsInner {
94
95
  timezone: string;
95
96
  /**
96
97
  *
97
- * @type {string}
98
+ * @type {AccountAliasDto}
98
99
  * @memberof WithSettingsInner
99
100
  */
100
- alias: string | null;
101
+ alias: AccountAliasDto;
101
102
  /**
102
103
  *
103
104
  * @type {LeadPriceNegotiatorAiAgentConfigurationDto}
@@ -20,6 +20,7 @@ exports.WithSettingsInnerToJSON = WithSettingsInnerToJSON;
20
20
  exports.WithSettingsInnerToJSONTyped = WithSettingsInnerToJSONTyped;
21
21
  var LeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./LeadPriceNegotiatorAiAgentConfigurationDto");
22
22
  var MoneyDto_1 = require("./MoneyDto");
23
+ var AccountAliasDto_1 = require("./AccountAliasDto");
23
24
  var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
24
25
  var TimeTableConfigurationDto_1 = require("./TimeTableConfigurationDto");
25
26
  var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
@@ -77,7 +78,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
77
78
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
78
79
  'timeTable': (0, TimeTableConfigurationDto_1.TimeTableConfigurationDtoFromJSON)(json['timeTable']),
79
80
  'timezone': json['timezone'],
80
- 'alias': json['alias'],
81
+ 'alias': (0, AccountAliasDto_1.AccountAliasDtoFromJSON)(json['alias']),
81
82
  'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationDto_1.LeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiatorAiAgent']),
82
83
  };
83
84
  }
@@ -102,7 +103,7 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
102
103
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
103
104
  'timeTable': (0, TimeTableConfigurationDto_1.TimeTableConfigurationDtoToJSON)(value['timeTable']),
104
105
  'timezone': value['timezone'],
105
- 'alias': value['alias'],
106
+ 'alias': (0, AccountAliasDto_1.AccountAliasDtoToJSON)(value['alias']),
106
107
  'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationDto_1.LeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiatorAiAgent']),
107
108
  };
108
109
  }
@@ -1,3 +1,5 @@
1
+ export * from './AccountAliasDto';
2
+ export * from './AccountAliasInput';
1
3
  export * from './AccountBankAccountDto';
2
4
  export * from './AccountBankAccountDtoDetails';
3
5
  export * from './AccountDto';
@@ -7,6 +9,7 @@ export * from './AccountNotificationReadStatusDto';
7
9
  export * from './AccountOnboardingDto';
8
10
  export * from './AccountOnboardingSessionDto';
9
11
  export * from './AccountPayoutDto';
12
+ export * from './AccountSettingsAliasDto';
10
13
  export * from './AccountSettingsDto';
11
14
  export * from './AccountSettingsInput';
12
15
  export * from './AccountSettingsLeaseToOwnConfigurationDto';
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AccountAliasDto"), exports);
20
+ __exportStar(require("./AccountAliasInput"), exports);
19
21
  __exportStar(require("./AccountBankAccountDto"), exports);
20
22
  __exportStar(require("./AccountBankAccountDtoDetails"), exports);
21
23
  __exportStar(require("./AccountDto"), exports);
@@ -25,6 +27,7 @@ __exportStar(require("./AccountNotificationReadStatusDto"), exports);
25
27
  __exportStar(require("./AccountOnboardingDto"), exports);
26
28
  __exportStar(require("./AccountOnboardingSessionDto"), exports);
27
29
  __exportStar(require("./AccountPayoutDto"), exports);
30
+ __exportStar(require("./AccountSettingsAliasDto"), exports);
28
31
  __exportStar(require("./AccountSettingsDto"), exports);
29
32
  __exportStar(require("./AccountSettingsInput"), exports);
30
33
  __exportStar(require("./AccountSettingsLeaseToOwnConfigurationDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.263",
3
+ "version": "0.0.265",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -203,6 +203,10 @@ export interface AdminApiUpdateAccountSettingsRequest {
203
203
  adminAccountSettingsInput: AdminAccountSettingsInput;
204
204
  }
205
205
 
206
+ export interface AdminApiVerifyAccountAliasRequest {
207
+ accountId: string;
208
+ }
209
+
206
210
  export interface AdminApiVerifyBankAccountRequest {
207
211
  bankAccountId: string;
208
212
  }
@@ -1233,6 +1237,46 @@ export class AdminApi extends runtime.BaseAPI {
1233
1237
  await this.updateAccountSettingsRaw(requestParameters, initOverrides);
1234
1238
  }
1235
1239
 
1240
+ /**
1241
+ *
1242
+ */
1243
+ async verifyAccountAliasRaw(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1244
+ if (requestParameters['accountId'] == null) {
1245
+ throw new runtime.RequiredError(
1246
+ 'accountId',
1247
+ 'Required parameter "accountId" was null or undefined when calling verifyAccountAlias().'
1248
+ );
1249
+ }
1250
+
1251
+ const queryParameters: any = {};
1252
+
1253
+ const headerParameters: runtime.HTTPHeaders = {};
1254
+
1255
+ if (this.configuration && this.configuration.accessToken) {
1256
+ const token = this.configuration.accessToken;
1257
+ const tokenString = await token("bearer", []);
1258
+
1259
+ if (tokenString) {
1260
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1261
+ }
1262
+ }
1263
+ const response = await this.request({
1264
+ path: `/admin/accounts/{accountId}/alias/verify`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
1265
+ method: 'POST',
1266
+ headers: headerParameters,
1267
+ query: queryParameters,
1268
+ }, initOverrides);
1269
+
1270
+ return new runtime.VoidApiResponse(response);
1271
+ }
1272
+
1273
+ /**
1274
+ *
1275
+ */
1276
+ async verifyAccountAlias(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1277
+ await this.verifyAccountAliasRaw(requestParameters, initOverrides);
1278
+ }
1279
+
1236
1280
  /**
1237
1281
  *
1238
1282
  */
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountAliasDto
20
+ */
21
+ export interface AccountAliasDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountAliasDto
26
+ */
27
+ alias: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof AccountAliasDto
32
+ */
33
+ verified: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AccountAliasDto interface.
38
+ */
39
+ export function instanceOfAccountAliasDto(value: object): value is AccountAliasDto {
40
+ if (!('alias' in value) || value['alias'] === undefined) return false;
41
+ if (!('verified' in value) || value['verified'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AccountAliasDtoFromJSON(json: any): AccountAliasDto {
46
+ return AccountAliasDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AccountAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAliasDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'alias': json['alias'],
56
+ 'verified': json['verified'],
57
+ };
58
+ }
59
+
60
+ export function AccountAliasDtoToJSON(json: any): AccountAliasDto {
61
+ return AccountAliasDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AccountAliasDtoToJSONTyped(value?: AccountAliasDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'alias': value['alias'],
72
+ 'verified': value['verified'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountAliasInput
20
+ */
21
+ export interface AccountAliasInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountAliasInput
26
+ */
27
+ alias?: string | null;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AccountAliasInput interface.
32
+ */
33
+ export function instanceOfAccountAliasInput(value: object): value is AccountAliasInput {
34
+ return true;
35
+ }
36
+
37
+ export function AccountAliasInputFromJSON(json: any): AccountAliasInput {
38
+ return AccountAliasInputFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function AccountAliasInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAliasInput {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'alias': json['alias'] == null ? undefined : json['alias'],
48
+ };
49
+ }
50
+
51
+ export function AccountAliasInputToJSON(json: any): AccountAliasInput {
52
+ return AccountAliasInputToJSONTyped(json, false);
53
+ }
54
+
55
+ export function AccountAliasInputToJSONTyped(value?: AccountAliasInput | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'alias': value['alias'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountSettingsAliasDto
20
+ */
21
+ export interface AccountSettingsAliasDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountSettingsAliasDto
26
+ */
27
+ alias: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof AccountSettingsAliasDto
32
+ */
33
+ verified: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AccountSettingsAliasDto interface.
38
+ */
39
+ export function instanceOfAccountSettingsAliasDto(value: object): value is AccountSettingsAliasDto {
40
+ if (!('alias' in value) || value['alias'] === undefined) return false;
41
+ if (!('verified' in value) || value['verified'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AccountSettingsAliasDtoFromJSON(json: any): AccountSettingsAliasDto {
46
+ return AccountSettingsAliasDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AccountSettingsAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAliasDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'alias': json['alias'],
56
+ 'verified': json['verified'],
57
+ };
58
+ }
59
+
60
+ export function AccountSettingsAliasDtoToJSON(json: any): AccountSettingsAliasDto {
61
+ return AccountSettingsAliasDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AccountSettingsAliasDtoToJSONTyped(value?: AccountSettingsAliasDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'alias': value['alias'],
72
+ 'verified': value['verified'],
73
+ };
74
+ }
75
+
@@ -27,6 +27,13 @@ import {
27
27
  AccountSettingsSidnDtoToJSON,
28
28
  AccountSettingsSidnDtoToJSONTyped,
29
29
  } from './AccountSettingsSidnDto';
30
+ import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
31
+ import {
32
+ AccountSettingsAliasDtoFromJSON,
33
+ AccountSettingsAliasDtoFromJSONTyped,
34
+ AccountSettingsAliasDtoToJSON,
35
+ AccountSettingsAliasDtoToJSONTyped,
36
+ } from './AccountSettingsAliasDto';
30
37
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
31
38
  import {
32
39
  AccountSettingsLeaseToOwnConfigurationDtoFromJSON,
@@ -109,6 +116,12 @@ export interface AccountSettingsDto {
109
116
  * @memberof AccountSettingsDto
110
117
  */
111
118
  avatar: string | null;
119
+ /**
120
+ *
121
+ * @type {AccountSettingsAliasDto}
122
+ * @memberof AccountSettingsDto
123
+ */
124
+ alias: AccountSettingsAliasDto;
112
125
  }
113
126
 
114
127
  /**
@@ -124,6 +137,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
124
137
  if (!('sidn' in value) || value['sidn'] === undefined) return false;
125
138
  if (!('description' in value) || value['description'] === undefined) return false;
126
139
  if (!('avatar' in value) || value['avatar'] === undefined) return false;
140
+ if (!('alias' in value) || value['alias'] === undefined) return false;
127
141
  return true;
128
142
  }
129
143
 
@@ -146,6 +160,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
146
160
  'sidn': AccountSettingsSidnDtoFromJSON(json['sidn']),
147
161
  'description': json['description'],
148
162
  'avatar': json['avatar'],
163
+ 'alias': AccountSettingsAliasDtoFromJSON(json['alias']),
149
164
  };
150
165
  }
151
166
 
@@ -169,6 +184,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
169
184
  'sidn': AccountSettingsSidnDtoToJSON(value['sidn']),
170
185
  'description': value['description'],
171
186
  'avatar': value['avatar'],
187
+ 'alias': AccountSettingsAliasDtoToJSON(value['alias']),
172
188
  };
173
189
  }
174
190
 
@@ -48,6 +48,13 @@ import {
48
48
  LeaseToOwnConfigurationInputToJSON,
49
49
  LeaseToOwnConfigurationInputToJSONTyped,
50
50
  } from './LeaseToOwnConfigurationInput';
51
+ import type { AccountAliasInput } from './AccountAliasInput';
52
+ import {
53
+ AccountAliasInputFromJSON,
54
+ AccountAliasInputFromJSONTyped,
55
+ AccountAliasInputToJSON,
56
+ AccountAliasInputToJSONTyped,
57
+ } from './AccountAliasInput';
51
58
 
52
59
  /**
53
60
  *
@@ -117,10 +124,10 @@ export interface AccountSettingsInput {
117
124
  timezone?: string;
118
125
  /**
119
126
  *
120
- * @type {string}
127
+ * @type {AccountAliasInput}
121
128
  * @memberof AccountSettingsInput
122
129
  */
123
- alias?: string;
130
+ alias?: AccountAliasInput;
124
131
  }
125
132
 
126
133
  /**
@@ -150,7 +157,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
150
157
  'timeTable': json['timeTable'] == null ? undefined : TimeTableConfigurationInputFromJSON(json['timeTable']),
151
158
  'leadPriceNegotiatorAiAgent': json['leadPriceNegotiatorAiAgent'] == null ? undefined : LeadPriceNegotiatorAiAgentConfigurationInputFromJSON(json['leadPriceNegotiatorAiAgent']),
152
159
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
153
- 'alias': json['alias'] == null ? undefined : json['alias'],
160
+ 'alias': json['alias'] == null ? undefined : AccountAliasInputFromJSON(json['alias']),
154
161
  };
155
162
  }
156
163
 
@@ -175,7 +182,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
175
182
  'timeTable': TimeTableConfigurationInputToJSON(value['timeTable']),
176
183
  'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationInputToJSON(value['leadPriceNegotiatorAiAgent']),
177
184
  'timezone': value['timezone'],
178
- 'alias': value['alias'],
185
+ 'alias': AccountAliasInputToJSON(value['alias']),
179
186
  };
180
187
  }
181
188
 
@@ -40,6 +40,36 @@ export interface ListAccountDto {
40
40
  * @memberof ListAccountDto
41
41
  */
42
42
  id: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ListAccountDto
47
+ */
48
+ alias: string | null;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof ListAccountDto
53
+ */
54
+ aliasVerified: boolean;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ListAccountDto
59
+ */
60
+ onboardingProvider: ListAccountDtoOnboardingProviderEnum;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ListAccountDto
65
+ */
66
+ onboardingStatus: ListAccountDtoOnboardingStatusEnum;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof ListAccountDto
71
+ */
72
+ payoutProvider: ListAccountDtoPayoutProviderEnum;
43
73
  /**
44
74
  *
45
75
  * @type {string}
@@ -84,11 +114,46 @@ export interface ListAccountDto {
84
114
  users: Array<ListAccountUserDto>;
85
115
  }
86
116
 
117
+
118
+ /**
119
+ * @export
120
+ */
121
+ export const ListAccountDtoOnboardingProviderEnum = {
122
+ STRIPE: 'stripe',
123
+ SUMSUB: 'sumsub'
124
+ } as const;
125
+ export type ListAccountDtoOnboardingProviderEnum = typeof ListAccountDtoOnboardingProviderEnum[keyof typeof ListAccountDtoOnboardingProviderEnum];
126
+
127
+ /**
128
+ * @export
129
+ */
130
+ export const ListAccountDtoOnboardingStatusEnum = {
131
+ PENDING: 'pending',
132
+ ACTIVE: 'active',
133
+ REJECTED: 'rejected'
134
+ } as const;
135
+ export type ListAccountDtoOnboardingStatusEnum = typeof ListAccountDtoOnboardingStatusEnum[keyof typeof ListAccountDtoOnboardingStatusEnum];
136
+
137
+ /**
138
+ * @export
139
+ */
140
+ export const ListAccountDtoPayoutProviderEnum = {
141
+ STRIPE: 'stripe',
142
+ BANK_ACCOUNT: 'bank_account'
143
+ } as const;
144
+ export type ListAccountDtoPayoutProviderEnum = typeof ListAccountDtoPayoutProviderEnum[keyof typeof ListAccountDtoPayoutProviderEnum];
145
+
146
+
87
147
  /**
88
148
  * Check if a given object implements the ListAccountDto interface.
89
149
  */
90
150
  export function instanceOfListAccountDto(value: object): value is ListAccountDto {
91
151
  if (!('id' in value) || value['id'] === undefined) return false;
152
+ if (!('alias' in value) || value['alias'] === undefined) return false;
153
+ if (!('aliasVerified' in value) || value['aliasVerified'] === undefined) return false;
154
+ if (!('onboardingProvider' in value) || value['onboardingProvider'] === undefined) return false;
155
+ if (!('onboardingStatus' in value) || value['onboardingStatus'] === undefined) return false;
156
+ if (!('payoutProvider' in value) || value['payoutProvider'] === undefined) return false;
92
157
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
93
158
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
94
159
  if (!('name' in value) || value['name'] === undefined) return false;
@@ -110,6 +175,11 @@ export function ListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
110
175
  return {
111
176
 
112
177
  'id': json['id'],
178
+ 'alias': json['alias'],
179
+ 'aliasVerified': json['aliasVerified'],
180
+ 'onboardingProvider': json['onboardingProvider'],
181
+ 'onboardingStatus': json['onboardingStatus'],
182
+ 'payoutProvider': json['payoutProvider'],
113
183
  'identifier': json['identifier'],
114
184
  'createdAt': (new Date(json['createdAt'])),
115
185
  'name': json['name'],
@@ -132,6 +202,11 @@ export function ListAccountDtoToJSONTyped(value?: ListAccountDto | null, ignoreD
132
202
  return {
133
203
 
134
204
  'id': value['id'],
205
+ 'alias': value['alias'],
206
+ 'aliasVerified': value['aliasVerified'],
207
+ 'onboardingProvider': value['onboardingProvider'],
208
+ 'onboardingStatus': value['onboardingStatus'],
209
+ 'payoutProvider': value['payoutProvider'],
135
210
  'identifier': value['identifier'],
136
211
  'createdAt': ((value['createdAt']).toISOString()),
137
212
  'name': value['name'],
@@ -27,6 +27,13 @@ import {
27
27
  MoneyDtoToJSON,
28
28
  MoneyDtoToJSONTyped,
29
29
  } from './MoneyDto';
30
+ import type { AccountAliasDto } from './AccountAliasDto';
31
+ import {
32
+ AccountAliasDtoFromJSON,
33
+ AccountAliasDtoFromJSONTyped,
34
+ AccountAliasDtoToJSON,
35
+ AccountAliasDtoToJSONTyped,
36
+ } from './AccountAliasDto';
30
37
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
31
38
  import {
32
39
  AccountSettingsLeaseToOwnConfigurationDtoFromJSON,
@@ -129,10 +136,10 @@ export interface WithSettingsInner {
129
136
  timezone: string;
130
137
  /**
131
138
  *
132
- * @type {string}
139
+ * @type {AccountAliasDto}
133
140
  * @memberof WithSettingsInner
134
141
  */
135
- alias: string | null;
142
+ alias: AccountAliasDto;
136
143
  /**
137
144
  *
138
145
  * @type {LeadPriceNegotiatorAiAgentConfigurationDto}
@@ -184,7 +191,7 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
184
191
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
185
192
  'timeTable': TimeTableConfigurationDtoFromJSON(json['timeTable']),
186
193
  'timezone': json['timezone'],
187
- 'alias': json['alias'],
194
+ 'alias': AccountAliasDtoFromJSON(json['alias']),
188
195
  'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiatorAiAgent']),
189
196
  };
190
197
  }
@@ -212,7 +219,7 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
212
219
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
213
220
  'timeTable': TimeTableConfigurationDtoToJSON(value['timeTable']),
214
221
  'timezone': value['timezone'],
215
- 'alias': value['alias'],
222
+ 'alias': AccountAliasDtoToJSON(value['alias']),
216
223
  'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiatorAiAgent']),
217
224
  };
218
225
  }
@@ -1,5 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AccountAliasDto';
4
+ export * from './AccountAliasInput';
3
5
  export * from './AccountBankAccountDto';
4
6
  export * from './AccountBankAccountDtoDetails';
5
7
  export * from './AccountDto';
@@ -9,6 +11,7 @@ export * from './AccountNotificationReadStatusDto';
9
11
  export * from './AccountOnboardingDto';
10
12
  export * from './AccountOnboardingSessionDto';
11
13
  export * from './AccountPayoutDto';
14
+ export * from './AccountSettingsAliasDto';
12
15
  export * from './AccountSettingsDto';
13
16
  export * from './AccountSettingsInput';
14
17
  export * from './AccountSettingsLeaseToOwnConfigurationDto';