@randock/nameshift-api-client 0.0.182 → 0.0.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +9 -1
- package/dist/apis/AccountsApi.js +50 -0
- package/dist/apis/DomainsPublicApi.d.ts +1 -0
- package/dist/apis/DomainsPublicApi.js +3 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
- package/dist/apis/SubscriptionsPublicApi.js +217 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +21 -0
- package/dist/models/AccountSettingsDto.js +15 -0
- package/dist/models/AccountSettingsInput.d.ts +7 -0
- package/dist/models/AccountSettingsInput.js +3 -0
- package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
- package/dist/models/AccountSettingsLandingDto.js +55 -0
- package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
- package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
- package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
- package/dist/models/AccountSettingsSidnDto.js +51 -0
- package/dist/models/CreateSubscriptionInput.d.ts +132 -0
- package/dist/models/CreateSubscriptionInput.js +102 -0
- package/dist/models/DomainDto.d.ts +7 -0
- package/dist/models/DomainDto.js +5 -0
- package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
- package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
- package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
- package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
- package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
- package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
- package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
- package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
- package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
- package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
- package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
- package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
- package/dist/models/SubscriptionDomainDto.d.ts +38 -0
- package/dist/models/SubscriptionDomainDto.js +55 -0
- package/dist/models/SubscriptionDto.d.ts +165 -0
- package/dist/models/SubscriptionDto.js +148 -0
- package/dist/models/UpdateDomainInput.d.ts +7 -0
- package/dist/models/UpdateDomainInput.js +3 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
- package/dist/models/UpdateSubscriptionInput.js +81 -0
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +37 -0
- package/src/apis/DomainsApi.ts +3 -0
- package/src/apis/DomainsPublicApi.ts +5 -0
- package/src/apis/SubscriptionsPublicApi.ts +175 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountSettingsDto.ts +48 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AccountSettingsLandingDto.ts +75 -0
- package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
- package/src/models/AccountSettingsSidnDto.ts +66 -0
- package/src/models/CreateSubscriptionInput.ts +209 -0
- package/src/models/DomainDto.ts +16 -0
- package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
- package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
- package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
- package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
- package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
- package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
- package/src/models/SubscriptionDomainDto.ts +75 -0
- package/src/models/SubscriptionDto.ts +292 -0
- package/src/models/UpdateDomainInput.ts +15 -0
- package/src/models/UpdateSubscriptionInput.ts +179 -0
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +13 -0
|
@@ -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 AccountSettingsLandingDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountSettingsLandingDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AccountSettingsLandingDto
|
|
26
|
+
*/
|
|
27
|
+
anonymous: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof AccountSettingsLandingDto
|
|
32
|
+
*/
|
|
33
|
+
showRelatedDomains: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AccountSettingsLandingDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAccountSettingsLandingDto(value: object): value is AccountSettingsLandingDto {
|
|
40
|
+
if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
|
|
41
|
+
if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AccountSettingsLandingDtoFromJSON(json: any): AccountSettingsLandingDto {
|
|
46
|
+
return AccountSettingsLandingDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AccountSettingsLandingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsLandingDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'anonymous': json['anonymous'],
|
|
56
|
+
'showRelatedDomains': json['showRelatedDomains'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountSettingsLandingDtoToJSON(json: any): AccountSettingsLandingDto {
|
|
61
|
+
return AccountSettingsLandingDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AccountSettingsLandingDtoToJSONTyped(value?: AccountSettingsLandingDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'anonymous': value['anonymous'],
|
|
72
|
+
'showRelatedDomains': value['showRelatedDomains'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import type { LeaseToOwnConfigurationPresetsDto } from './LeaseToOwnConfigurationPresetsDto';
|
|
17
|
+
import {
|
|
18
|
+
LeaseToOwnConfigurationPresetsDtoFromJSON,
|
|
19
|
+
LeaseToOwnConfigurationPresetsDtoFromJSONTyped,
|
|
20
|
+
LeaseToOwnConfigurationPresetsDtoToJSON,
|
|
21
|
+
LeaseToOwnConfigurationPresetsDtoToJSONTyped,
|
|
22
|
+
} from './LeaseToOwnConfigurationPresetsDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AccountSettingsLeaseToOwnConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AccountSettingsLeaseToOwnConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AccountSettingsLeaseToOwnConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
minMonths: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AccountSettingsLeaseToOwnConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
maxMonths: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof AccountSettingsLeaseToOwnConfigurationDto
|
|
46
|
+
*/
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {LeaseToOwnConfigurationPresetsDto}
|
|
51
|
+
* @memberof AccountSettingsLeaseToOwnConfigurationDto
|
|
52
|
+
*/
|
|
53
|
+
presets: LeaseToOwnConfigurationPresetsDto;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AccountSettingsLeaseToOwnConfigurationDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAccountSettingsLeaseToOwnConfigurationDto(value: object): value is AccountSettingsLeaseToOwnConfigurationDto {
|
|
60
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
|
|
61
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
|
|
62
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
63
|
+
if (!('presets' in value) || value['presets'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json: any): AccountSettingsLeaseToOwnConfigurationDto {
|
|
68
|
+
return AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsLeaseToOwnConfigurationDto {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'minMonths': json['minMonths'],
|
|
78
|
+
'maxMonths': json['maxMonths'],
|
|
79
|
+
'enabled': json['enabled'],
|
|
80
|
+
'presets': LeaseToOwnConfigurationPresetsDtoFromJSON(json['presets']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AccountSettingsLeaseToOwnConfigurationDtoToJSON(json: any): AccountSettingsLeaseToOwnConfigurationDto {
|
|
85
|
+
return AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped(value?: AccountSettingsLeaseToOwnConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'minMonths': value['minMonths'],
|
|
96
|
+
'maxMonths': value['maxMonths'],
|
|
97
|
+
'enabled': value['enabled'],
|
|
98
|
+
'presets': LeaseToOwnConfigurationPresetsDtoToJSON(value['presets']),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 AccountSettingsSidnDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountSettingsSidnDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountSettingsSidnDto
|
|
26
|
+
*/
|
|
27
|
+
idCode: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AccountSettingsSidnDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAccountSettingsSidnDto(value: object): value is AccountSettingsSidnDto {
|
|
34
|
+
if (!('idCode' in value) || value['idCode'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AccountSettingsSidnDtoFromJSON(json: any): AccountSettingsSidnDto {
|
|
39
|
+
return AccountSettingsSidnDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AccountSettingsSidnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsSidnDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'idCode': json['idCode'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AccountSettingsSidnDtoToJSON(json: any): AccountSettingsSidnDto {
|
|
53
|
+
return AccountSettingsSidnDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AccountSettingsSidnDtoToJSONTyped(value?: AccountSettingsSidnDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'idCode': value['idCode'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,209 @@
|
|
|
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
|
+
import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionCompanyInfoDtoFromJSON,
|
|
19
|
+
SubscriptionCompanyInfoDtoFromJSONTyped,
|
|
20
|
+
SubscriptionCompanyInfoDtoToJSON,
|
|
21
|
+
SubscriptionCompanyInfoDtoToJSONTyped,
|
|
22
|
+
} from './SubscriptionCompanyInfoDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateSubscriptionInput
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateSubscriptionInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateSubscriptionInput
|
|
34
|
+
*/
|
|
35
|
+
locale: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CreateSubscriptionInput
|
|
40
|
+
*/
|
|
41
|
+
periodicity: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateSubscriptionInput
|
|
46
|
+
*/
|
|
47
|
+
periodicityUnit: CreateSubscriptionInputPeriodicityUnitEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateSubscriptionInput
|
|
52
|
+
*/
|
|
53
|
+
domainName: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateSubscriptionInput
|
|
58
|
+
*/
|
|
59
|
+
subscriptionType: CreateSubscriptionInputSubscriptionTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CreateSubscriptionInput
|
|
64
|
+
*/
|
|
65
|
+
email?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CreateSubscriptionInput
|
|
70
|
+
*/
|
|
71
|
+
firstName?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CreateSubscriptionInput
|
|
76
|
+
*/
|
|
77
|
+
lastName?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CreateSubscriptionInput
|
|
82
|
+
*/
|
|
83
|
+
addressCountryCode?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CreateSubscriptionInput
|
|
88
|
+
*/
|
|
89
|
+
addressStateCode?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof CreateSubscriptionInput
|
|
94
|
+
*/
|
|
95
|
+
addressLine1?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof CreateSubscriptionInput
|
|
100
|
+
*/
|
|
101
|
+
addressLine2?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof CreateSubscriptionInput
|
|
106
|
+
*/
|
|
107
|
+
addressPostalCode?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof CreateSubscriptionInput
|
|
112
|
+
*/
|
|
113
|
+
addressCity?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {SubscriptionCompanyInfoDto}
|
|
117
|
+
* @memberof CreateSubscriptionInput
|
|
118
|
+
*/
|
|
119
|
+
companyInfo?: SubscriptionCompanyInfoDto | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export const CreateSubscriptionInputPeriodicityUnitEnum = {
|
|
127
|
+
MONTH: 'month'
|
|
128
|
+
} as const;
|
|
129
|
+
export type CreateSubscriptionInputPeriodicityUnitEnum = typeof CreateSubscriptionInputPeriodicityUnitEnum[keyof typeof CreateSubscriptionInputPeriodicityUnitEnum];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export const CreateSubscriptionInputSubscriptionTypeEnum = {
|
|
135
|
+
RENT: 'rent',
|
|
136
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
137
|
+
} as const;
|
|
138
|
+
export type CreateSubscriptionInputSubscriptionTypeEnum = typeof CreateSubscriptionInputSubscriptionTypeEnum[keyof typeof CreateSubscriptionInputSubscriptionTypeEnum];
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Check if a given object implements the CreateSubscriptionInput interface.
|
|
143
|
+
*/
|
|
144
|
+
export function instanceOfCreateSubscriptionInput(value: object): value is CreateSubscriptionInput {
|
|
145
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
146
|
+
if (!('periodicity' in value) || value['periodicity'] === undefined) return false;
|
|
147
|
+
if (!('periodicityUnit' in value) || value['periodicityUnit'] === undefined) return false;
|
|
148
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
149
|
+
if (!('subscriptionType' in value) || value['subscriptionType'] === undefined) return false;
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function CreateSubscriptionInputFromJSON(json: any): CreateSubscriptionInput {
|
|
154
|
+
return CreateSubscriptionInputFromJSONTyped(json, false);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionInput {
|
|
158
|
+
if (json == null) {
|
|
159
|
+
return json;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
|
|
163
|
+
'locale': json['locale'],
|
|
164
|
+
'periodicity': json['periodicity'],
|
|
165
|
+
'periodicityUnit': json['periodicityUnit'],
|
|
166
|
+
'domainName': json['domainName'],
|
|
167
|
+
'subscriptionType': json['subscriptionType'],
|
|
168
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
169
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
170
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
171
|
+
'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
|
|
172
|
+
'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
|
|
173
|
+
'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
|
|
174
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
175
|
+
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
176
|
+
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
177
|
+
'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function CreateSubscriptionInputToJSON(json: any): CreateSubscriptionInput {
|
|
182
|
+
return CreateSubscriptionInputToJSONTyped(json, false);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
186
|
+
if (value == null) {
|
|
187
|
+
return value;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
|
|
192
|
+
'locale': value['locale'],
|
|
193
|
+
'periodicity': value['periodicity'],
|
|
194
|
+
'periodicityUnit': value['periodicityUnit'],
|
|
195
|
+
'domainName': value['domainName'],
|
|
196
|
+
'subscriptionType': value['subscriptionType'],
|
|
197
|
+
'email': value['email'],
|
|
198
|
+
'firstName': value['firstName'],
|
|
199
|
+
'lastName': value['lastName'],
|
|
200
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
201
|
+
'addressStateCode': value['addressStateCode'],
|
|
202
|
+
'addressLine1': value['addressLine1'],
|
|
203
|
+
'addressLine2': value['addressLine2'],
|
|
204
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
205
|
+
'addressCity': value['addressCity'],
|
|
206
|
+
'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
package/src/models/DomainDto.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
|
|
24
|
+
import {
|
|
25
|
+
LeaseToOwnConfigurationDtoFromJSON,
|
|
26
|
+
LeaseToOwnConfigurationDtoFromJSONTyped,
|
|
27
|
+
LeaseToOwnConfigurationDtoToJSON,
|
|
28
|
+
LeaseToOwnConfigurationDtoToJSONTyped,
|
|
29
|
+
} from './LeaseToOwnConfigurationDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -88,6 +95,12 @@ export interface DomainDto {
|
|
|
88
95
|
* @memberof DomainDto
|
|
89
96
|
*/
|
|
90
97
|
buyNow: MoneyDto;
|
|
98
|
+
/**
|
|
99
|
+
* The lease to own configuration
|
|
100
|
+
* @type {LeaseToOwnConfigurationDto}
|
|
101
|
+
* @memberof DomainDto
|
|
102
|
+
*/
|
|
103
|
+
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
91
104
|
/**
|
|
92
105
|
* The minimum offer
|
|
93
106
|
* @type {MoneyDto}
|
|
@@ -128,6 +141,7 @@ export function instanceOfDomainDto(value: object): value is DomainDto {
|
|
|
128
141
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
129
142
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
130
143
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
144
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
131
145
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
132
146
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
133
147
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
@@ -155,6 +169,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
155
169
|
'displayName': json['displayName'],
|
|
156
170
|
'currencyCode': json['currencyCode'],
|
|
157
171
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
172
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
158
173
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
159
174
|
'createdAt': (new Date(json['createdAt'])),
|
|
160
175
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
@@ -183,6 +198,7 @@ export function DomainDtoToJSONTyped(value?: DomainDto | null, ignoreDiscriminat
|
|
|
183
198
|
'displayName': value['displayName'],
|
|
184
199
|
'currencyCode': value['currencyCode'],
|
|
185
200
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
201
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
186
202
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
187
203
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
188
204
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DomainSalesInformationLeaseToOwnConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface DomainSalesInformationLeaseToOwnConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
* Enabled status of lease to own
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DomainSalesInformationLeaseToOwnConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Minimum months option
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DomainSalesInformationLeaseToOwnConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
minMonths: number;
|
|
42
|
+
/**
|
|
43
|
+
* Maximum months option
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof DomainSalesInformationLeaseToOwnConfigurationDto
|
|
46
|
+
*/
|
|
47
|
+
maxMonths: number;
|
|
48
|
+
/**
|
|
49
|
+
* Total lease to own total subscription price
|
|
50
|
+
* @type {MoneyDto}
|
|
51
|
+
* @memberof DomainSalesInformationLeaseToOwnConfigurationDto
|
|
52
|
+
*/
|
|
53
|
+
basePrice: MoneyDto;
|
|
54
|
+
/**
|
|
55
|
+
* Total lease to own recurring price
|
|
56
|
+
* @type {MoneyDto}
|
|
57
|
+
* @memberof DomainSalesInformationLeaseToOwnConfigurationDto
|
|
58
|
+
*/
|
|
59
|
+
recurringPrice: MoneyDto;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the DomainSalesInformationLeaseToOwnConfigurationDto interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfDomainSalesInformationLeaseToOwnConfigurationDto(value: object): value is DomainSalesInformationLeaseToOwnConfigurationDto {
|
|
66
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
67
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
|
|
68
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
|
|
69
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
70
|
+
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON(json: any): DomainSalesInformationLeaseToOwnConfigurationDto {
|
|
75
|
+
return DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationLeaseToOwnConfigurationDto {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'enabled': json['enabled'],
|
|
85
|
+
'minMonths': json['minMonths'],
|
|
86
|
+
'maxMonths': json['maxMonths'],
|
|
87
|
+
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
88
|
+
'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function DomainSalesInformationLeaseToOwnConfigurationDtoToJSON(json: any): DomainSalesInformationLeaseToOwnConfigurationDto {
|
|
93
|
+
return DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped(value?: DomainSalesInformationLeaseToOwnConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'enabled': value['enabled'],
|
|
104
|
+
'minMonths': value['minMonths'],
|
|
105
|
+
'maxMonths': value['maxMonths'],
|
|
106
|
+
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
107
|
+
'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
|
|
24
|
+
import {
|
|
25
|
+
LeaseToOwnConfigurationDtoFromJSON,
|
|
26
|
+
LeaseToOwnConfigurationDtoFromJSONTyped,
|
|
27
|
+
LeaseToOwnConfigurationDtoToJSON,
|
|
28
|
+
LeaseToOwnConfigurationDtoToJSONTyped,
|
|
29
|
+
} from './LeaseToOwnConfigurationDto';
|
|
23
30
|
import type { AccountDto } from './AccountDto';
|
|
24
31
|
import {
|
|
25
32
|
AccountDtoFromJSON,
|
|
@@ -95,6 +102,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
95
102
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
96
103
|
*/
|
|
97
104
|
buyNow: MoneyDto;
|
|
105
|
+
/**
|
|
106
|
+
* The lease to own configuration
|
|
107
|
+
* @type {LeaseToOwnConfigurationDto}
|
|
108
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
109
|
+
*/
|
|
110
|
+
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
98
111
|
/**
|
|
99
112
|
* The minimum offer
|
|
100
113
|
* @type {MoneyDto}
|
|
@@ -141,6 +154,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
141
154
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
142
155
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
143
156
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
157
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
144
158
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
145
159
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
146
160
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
@@ -169,6 +183,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
169
183
|
'displayName': json['displayName'],
|
|
170
184
|
'currencyCode': json['currencyCode'],
|
|
171
185
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
186
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
172
187
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
173
188
|
'createdAt': (new Date(json['createdAt'])),
|
|
174
189
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
@@ -198,6 +213,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
198
213
|
'displayName': value['displayName'],
|
|
199
214
|
'currencyCode': value['currencyCode'],
|
|
200
215
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
216
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
201
217
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
202
218
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
203
219
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|