@randock/nameshift-api-client 0.0.183 → 0.0.185
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +9 -1
- package/dist/apis/AccountsApi.js +50 -0
- package/dist/apis/AdminApi.d.ts +27 -1
- package/dist/apis/AdminApi.js +119 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- 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/TasksApi.d.ts +3 -3
- package/dist/apis/TasksApi.js +1 -1
- 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/ChangeSubscriptionStatusInput.d.ts +42 -0
- package/dist/models/ChangeSubscriptionStatusInput.js +61 -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/GetAllSubscriptions200Response.d.ts +47 -0
- package/dist/models/GetAllSubscriptions200Response.js +62 -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/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/List200Response2.d.ts +3 -3
- package/dist/models/List200Response2.js +3 -3
- 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/SubscriptionListItemDto.d.ts +102 -0
- package/dist/models/SubscriptionListItemDto.js +104 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -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 +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +37 -0
- package/src/apis/AdminApi.ts +118 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +5 -0
- package/src/apis/SubscriptionsPublicApi.ts +175 -0
- package/src/apis/TasksApi.ts +6 -6
- 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/ChangeSubscriptionStatusInput.ts +79 -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/GetAllSubscriptions200Response.ts +106 -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/List200Response1.ts +10 -10
- package/src/models/List200Response2.ts +10 -10
- 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/SubscriptionListItemDto.ts +189 -0
- package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
- package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -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 +19 -0
|
@@ -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
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { SubscriptionListItemDto } from './SubscriptionListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
SubscriptionListItemDtoFromJSON,
|
|
26
|
+
SubscriptionListItemDtoFromJSONTyped,
|
|
27
|
+
SubscriptionListItemDtoToJSON,
|
|
28
|
+
SubscriptionListItemDtoToJSONTyped,
|
|
29
|
+
} from './SubscriptionListItemDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetAllSubscriptions200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface GetAllSubscriptions200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<SubscriptionListItemDto>}
|
|
47
|
+
* @memberof GetAllSubscriptions200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<SubscriptionListItemDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetAllSubscriptions200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetAllSubscriptions200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetAllSubscriptions200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetAllSubscriptions200Response(value: object): value is GetAllSubscriptions200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetAllSubscriptions200ResponseFromJSON(json: any): GetAllSubscriptions200Response {
|
|
75
|
+
return GetAllSubscriptions200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetAllSubscriptions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllSubscriptions200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(SubscriptionListItemDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetAllSubscriptions200ResponseToJSON(json: any): GetAllSubscriptions200Response {
|
|
91
|
+
return GetAllSubscriptions200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetAllSubscriptions200ResponseToJSONTyped(value?: GetAllSubscriptions200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(SubscriptionListItemDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -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()),
|
|
@@ -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 IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
95
102
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
96
103
|
*/
|
|
97
104
|
buyNow: MoneyDto;
|
|
105
|
+
/**
|
|
106
|
+
* The lease to own configuration
|
|
107
|
+
* @type {LeaseToOwnConfigurationDto}
|
|
108
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
109
|
+
*/
|
|
110
|
+
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
98
111
|
/**
|
|
99
112
|
* The minimum offer
|
|
100
113
|
* @type {MoneyDto}
|
|
@@ -147,6 +160,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
147
160
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
148
161
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
149
162
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
163
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
150
164
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
151
165
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
152
166
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
@@ -176,6 +190,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
176
190
|
'displayName': json['displayName'],
|
|
177
191
|
'currencyCode': json['currencyCode'],
|
|
178
192
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
193
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
179
194
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
180
195
|
'createdAt': (new Date(json['createdAt'])),
|
|
181
196
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
@@ -206,6 +221,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
206
221
|
'displayName': value['displayName'],
|
|
207
222
|
'currencyCode': value['currencyCode'],
|
|
208
223
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
224
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
209
225
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
210
226
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
211
227
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
MoneyDtoToJSON,
|
|
35
35
|
MoneyDtoToJSONTyped,
|
|
36
36
|
} from './MoneyDto';
|
|
37
|
+
import type { DomainSalesInformationLeaseToOwnConfigurationDto } from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
38
|
+
import {
|
|
39
|
+
DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON,
|
|
40
|
+
DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped,
|
|
41
|
+
DomainSalesInformationLeaseToOwnConfigurationDtoToJSON,
|
|
42
|
+
DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped,
|
|
43
|
+
} from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -65,6 +72,12 @@ export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
|
|
|
65
72
|
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
66
73
|
*/
|
|
67
74
|
buyNowPrice: MoneyDto | null;
|
|
75
|
+
/**
|
|
76
|
+
* Lease to own configuration or null if it is not enabled
|
|
77
|
+
* @type {DomainSalesInformationLeaseToOwnConfigurationDto}
|
|
78
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
79
|
+
*/
|
|
80
|
+
leaseToOwn: DomainSalesInformationLeaseToOwnConfigurationDto | null;
|
|
68
81
|
/**
|
|
69
82
|
* min offer price or null if offers are not enabled
|
|
70
83
|
* @type {MoneyDto}
|
|
@@ -99,6 +112,7 @@ export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDt
|
|
|
99
112
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
100
113
|
if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
|
|
101
114
|
if (!('buyNowPrice' in value) || value['buyNowPrice'] === undefined) return false;
|
|
115
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
102
116
|
if (!('minOfferPrice' in value) || value['minOfferPrice'] === undefined) return false;
|
|
103
117
|
if (!('seller' in value) || value['seller'] === undefined) return false;
|
|
104
118
|
if (!('sold' in value) || value['sold'] === undefined) return false;
|
|
@@ -120,6 +134,7 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONT
|
|
|
120
134
|
'domain': json['domain'],
|
|
121
135
|
'domainDisplayName': json['domainDisplayName'],
|
|
122
136
|
'buyNowPrice': MoneyDtoFromJSON(json['buyNowPrice']),
|
|
137
|
+
'leaseToOwn': DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
123
138
|
'minOfferPrice': MoneyDtoFromJSON(json['minOfferPrice']),
|
|
124
139
|
'seller': DomainSellerDtoFromJSON(json['seller']),
|
|
125
140
|
'sold': json['sold'],
|
|
@@ -142,6 +157,7 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSONTyp
|
|
|
142
157
|
'domain': value['domain'],
|
|
143
158
|
'domainDisplayName': value['domainDisplayName'],
|
|
144
159
|
'buyNowPrice': MoneyDtoToJSON(value['buyNowPrice']),
|
|
160
|
+
'leaseToOwn': DomainSalesInformationLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
145
161
|
'minOfferPrice': MoneyDtoToJSON(value['minOfferPrice']),
|
|
146
162
|
'seller': DomainSellerDtoToJSON(value['seller']),
|
|
147
163
|
'sold': value['sold'],
|