@randock/nameshift-api-client 0.0.63 → 0.0.65
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 +7 -2
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +12 -1
- package/dist/apis/BuyersApi.js +53 -0
- package/dist/apis/DomainsPublicApi.d.ts +1 -13
- package/dist/apis/DomainsPublicApi.js +0 -49
- package/dist/apis/LeadsApi.d.ts +2 -2
- package/dist/apis/LeadsApi.js +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +13 -1
- package/dist/apis/LeadsPublicApi.js +47 -0
- package/dist/apis/OrdersPublicApi.d.ts +52 -0
- package/dist/apis/OrdersPublicApi.js +217 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BuyerDomainTransferAuthCodeDto.d.ts +31 -0
- package/dist/models/BuyerDomainTransferAuthCodeDto.js +47 -0
- package/dist/models/CreateLeadInput.d.ts +6 -6
- package/dist/models/CreateLeadInput.js +4 -4
- package/dist/models/{BuyDomainInput.d.ts → CreateOrderInput.d.ts} +30 -24
- package/dist/models/{BuyDomainInput.js → CreateOrderInput.js} +19 -15
- package/dist/models/OrderDto.d.ts +118 -0
- package/dist/models/OrderDto.js +107 -0
- package/dist/models/PublicLeadDto.d.ts +6 -0
- package/dist/models/PublicLeadDto.js +4 -0
- package/dist/models/PutLeadOfferInput.d.ts +32 -0
- package/dist/models/{PutLeadInput.js → PutLeadOfferInput.js} +11 -11
- package/dist/models/UpdateLeadInput.d.ts +77 -0
- package/dist/models/UpdateLeadInput.js +80 -0
- package/dist/models/UpdateOrderInput.d.ts +85 -0
- package/dist/models/UpdateOrderInput.js +83 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +51 -0
- package/src/apis/DomainsPublicApi.ts +0 -54
- package/src/apis/LeadsApi.ts +8 -8
- package/src/apis/LeadsPublicApi.ts +50 -0
- package/src/apis/OrdersPublicApi.ts +172 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BuyerDomainTransferAuthCodeDto.ts +61 -0
- package/src/models/CreateLeadInput.ts +9 -9
- package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
- package/src/models/OrderDto.ts +196 -0
- package/src/models/PublicLeadDto.ts +9 -0
- package/src/models/{PutLeadInput.ts → PutLeadOfferInput.ts} +9 -9
- package/src/models/UpdateLeadInput.ts +134 -0
- package/src/models/UpdateOrderInput.ts +142 -0
- package/src/models/index.ts +6 -2
- package/dist/models/PutLeadInput.d.ts +0 -32
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
ObjectId,
|
|
22
22
|
PublicLeadDto,
|
|
23
23
|
ThrottlerException,
|
|
24
|
+
UpdateLeadInput,
|
|
24
25
|
ValidationException,
|
|
25
26
|
VerifyLeadInput,
|
|
26
27
|
} from '../models/index';
|
|
@@ -37,6 +38,8 @@ import {
|
|
|
37
38
|
PublicLeadDtoToJSON,
|
|
38
39
|
ThrottlerExceptionFromJSON,
|
|
39
40
|
ThrottlerExceptionToJSON,
|
|
41
|
+
UpdateLeadInputFromJSON,
|
|
42
|
+
UpdateLeadInputToJSON,
|
|
40
43
|
ValidationExceptionFromJSON,
|
|
41
44
|
ValidationExceptionToJSON,
|
|
42
45
|
VerifyLeadInputFromJSON,
|
|
@@ -55,6 +58,11 @@ export interface LeadsPublicApiGetLeadStatusRequest {
|
|
|
55
58
|
leadId: string;
|
|
56
59
|
}
|
|
57
60
|
|
|
61
|
+
export interface LeadsPublicApiUpdateLeadRequest {
|
|
62
|
+
leadId: string;
|
|
63
|
+
updateLeadInput: UpdateLeadInput;
|
|
64
|
+
}
|
|
65
|
+
|
|
58
66
|
export interface LeadsPublicApiVerifyLeadRequest {
|
|
59
67
|
leadId: string;
|
|
60
68
|
verifyLeadInput: VerifyLeadInput;
|
|
@@ -167,6 +175,48 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
167
175
|
return await response.value();
|
|
168
176
|
}
|
|
169
177
|
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
182
|
+
if (requestParameters['leadId'] == null) {
|
|
183
|
+
throw new runtime.RequiredError(
|
|
184
|
+
'leadId',
|
|
185
|
+
'Required parameter "leadId" was null or undefined when calling updateLead().'
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (requestParameters['updateLeadInput'] == null) {
|
|
190
|
+
throw new runtime.RequiredError(
|
|
191
|
+
'updateLeadInput',
|
|
192
|
+
'Required parameter "updateLeadInput" was null or undefined when calling updateLead().'
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const queryParameters: any = {};
|
|
197
|
+
|
|
198
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
199
|
+
|
|
200
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
201
|
+
|
|
202
|
+
const response = await this.request({
|
|
203
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
204
|
+
method: 'PUT',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
body: UpdateLeadInputToJSON(requestParameters['updateLeadInput']),
|
|
208
|
+
}, initOverrides);
|
|
209
|
+
|
|
210
|
+
return new runtime.VoidApiResponse(response);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
217
|
+
await this.updateLeadRaw(requestParameters, initOverrides);
|
|
218
|
+
}
|
|
219
|
+
|
|
170
220
|
/**
|
|
171
221
|
*
|
|
172
222
|
*/
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreateOrderInput,
|
|
19
|
+
NotFoundException,
|
|
20
|
+
ObjectId,
|
|
21
|
+
OrderDto,
|
|
22
|
+
ThrottlerException,
|
|
23
|
+
UpdateOrderInput,
|
|
24
|
+
ValidationException,
|
|
25
|
+
} from '../models/index';
|
|
26
|
+
import {
|
|
27
|
+
CreateOrderInputFromJSON,
|
|
28
|
+
CreateOrderInputToJSON,
|
|
29
|
+
NotFoundExceptionFromJSON,
|
|
30
|
+
NotFoundExceptionToJSON,
|
|
31
|
+
ObjectIdFromJSON,
|
|
32
|
+
ObjectIdToJSON,
|
|
33
|
+
OrderDtoFromJSON,
|
|
34
|
+
OrderDtoToJSON,
|
|
35
|
+
ThrottlerExceptionFromJSON,
|
|
36
|
+
ThrottlerExceptionToJSON,
|
|
37
|
+
UpdateOrderInputFromJSON,
|
|
38
|
+
UpdateOrderInputToJSON,
|
|
39
|
+
ValidationExceptionFromJSON,
|
|
40
|
+
ValidationExceptionToJSON,
|
|
41
|
+
} from '../models/index';
|
|
42
|
+
|
|
43
|
+
export interface OrdersPublicApiCreateOrderRequest {
|
|
44
|
+
createOrderInput: CreateOrderInput;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface OrdersPublicApiGetOrderRequest {
|
|
48
|
+
orderId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface OrdersPublicApiUpdateOrderRequest {
|
|
52
|
+
orderId: string;
|
|
53
|
+
updateOrderInput: UpdateOrderInput;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export class OrdersPublicApi extends runtime.BaseAPI {
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
async createOrderRaw(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
65
|
+
if (requestParameters['createOrderInput'] == null) {
|
|
66
|
+
throw new runtime.RequiredError(
|
|
67
|
+
'createOrderInput',
|
|
68
|
+
'Required parameter "createOrderInput" was null or undefined when calling createOrder().'
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const queryParameters: any = {};
|
|
73
|
+
|
|
74
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
75
|
+
|
|
76
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
const response = await this.request({
|
|
79
|
+
path: `/orders`,
|
|
80
|
+
method: 'POST',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
body: CreateOrderInputToJSON(requestParameters['createOrderInput']),
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
async createOrder(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
|
|
93
|
+
const response = await this.createOrderRaw(requestParameters, initOverrides);
|
|
94
|
+
return await response.value();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
async getOrderRaw(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderDto>> {
|
|
101
|
+
if (requestParameters['orderId'] == null) {
|
|
102
|
+
throw new runtime.RequiredError(
|
|
103
|
+
'orderId',
|
|
104
|
+
'Required parameter "orderId" was null or undefined when calling getOrder().'
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const queryParameters: any = {};
|
|
109
|
+
|
|
110
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
|
+
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
114
|
+
method: 'GET',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrderDtoFromJSON(jsonValue));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
async getOrder(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderDto> {
|
|
126
|
+
const response = await this.getOrderRaw(requestParameters, initOverrides);
|
|
127
|
+
return await response.value();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
async updateOrderRaw(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
134
|
+
if (requestParameters['orderId'] == null) {
|
|
135
|
+
throw new runtime.RequiredError(
|
|
136
|
+
'orderId',
|
|
137
|
+
'Required parameter "orderId" was null or undefined when calling updateOrder().'
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (requestParameters['updateOrderInput'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'updateOrderInput',
|
|
144
|
+
'Required parameter "updateOrderInput" was null or undefined when calling updateOrder().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
const response = await this.request({
|
|
155
|
+
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
156
|
+
method: 'PUT',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
body: UpdateOrderInputToJSON(requestParameters['updateOrderInput']),
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.VoidApiResponse(response);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
async updateOrder(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
169
|
+
await this.updateOrderRaw(requestParameters, initOverrides);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
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 BuyerDomainTransferAuthCodeDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerDomainTransferAuthCodeDto {
|
|
22
|
+
/**
|
|
23
|
+
* Transfer auth code
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerDomainTransferAuthCodeDto
|
|
26
|
+
*/
|
|
27
|
+
authCode: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BuyerDomainTransferAuthCodeDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBuyerDomainTransferAuthCodeDto(value: object): value is BuyerDomainTransferAuthCodeDto {
|
|
34
|
+
if (!('authCode' in value) || value['authCode'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BuyerDomainTransferAuthCodeDtoFromJSON(json: any): BuyerDomainTransferAuthCodeDto {
|
|
39
|
+
return BuyerDomainTransferAuthCodeDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BuyerDomainTransferAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainTransferAuthCodeDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'authCode': json['authCode'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerDomainTransferAuthCodeDtoToJSON(value?: BuyerDomainTransferAuthCodeDto | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'authCode': value['authCode'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -32,6 +32,12 @@ export interface CreateLeadInput {
|
|
|
32
32
|
* @memberof CreateLeadInput
|
|
33
33
|
*/
|
|
34
34
|
domainName: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateLeadInput
|
|
39
|
+
*/
|
|
40
|
+
locale: string;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {string}
|
|
@@ -74,12 +80,6 @@ export interface CreateLeadInput {
|
|
|
74
80
|
* @memberof CreateLeadInput
|
|
75
81
|
*/
|
|
76
82
|
offeredBy: CreateLeadInputOfferedByEnum;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof CreateLeadInput
|
|
81
|
-
*/
|
|
82
|
-
locale: string;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
|
|
@@ -99,6 +99,7 @@ export type CreateLeadInputOfferedByEnum = typeof CreateLeadInputOfferedByEnum[k
|
|
|
99
99
|
*/
|
|
100
100
|
export function instanceOfCreateLeadInput(value: object): value is CreateLeadInput {
|
|
101
101
|
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
102
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
102
103
|
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
103
104
|
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
104
105
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
@@ -106,7 +107,6 @@ export function instanceOfCreateLeadInput(value: object): value is CreateLeadInp
|
|
|
106
107
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
107
108
|
if (!('offer' in value) || value['offer'] === undefined) return false;
|
|
108
109
|
if (!('offeredBy' in value) || value['offeredBy'] === undefined) return false;
|
|
109
|
-
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
110
110
|
return true;
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -121,6 +121,7 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
121
121
|
return {
|
|
122
122
|
|
|
123
123
|
'domainName': json['domainName'],
|
|
124
|
+
'locale': json['locale'],
|
|
124
125
|
'firstname': json['firstname'],
|
|
125
126
|
'lastname': json['lastname'],
|
|
126
127
|
'email': json['email'],
|
|
@@ -128,7 +129,6 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
128
129
|
'companyName': json['companyName'],
|
|
129
130
|
'offer': MoneyDtoFromJSON(json['offer']),
|
|
130
131
|
'offeredBy': json['offeredBy'],
|
|
131
|
-
'locale': json['locale'],
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -139,6 +139,7 @@ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
|
|
|
139
139
|
return {
|
|
140
140
|
|
|
141
141
|
'domainName': value['domainName'],
|
|
142
|
+
'locale': value['locale'],
|
|
142
143
|
'firstname': value['firstname'],
|
|
143
144
|
'lastname': value['lastname'],
|
|
144
145
|
'email': value['email'],
|
|
@@ -146,7 +147,6 @@ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
|
|
|
146
147
|
'companyName': value['companyName'],
|
|
147
148
|
'offer': MoneyDtoToJSON(value['offer']),
|
|
148
149
|
'offeredBy': value['offeredBy'],
|
|
149
|
-
'locale': value['locale'],
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -16,90 +16,98 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface CreateOrderInput
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface CreateOrderInput {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof CreateOrderInput
|
|
26
26
|
*/
|
|
27
27
|
companyName: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof CreateOrderInput
|
|
32
32
|
*/
|
|
33
33
|
companyVatNumber: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof CreateOrderInput
|
|
38
38
|
*/
|
|
39
39
|
leadId: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof CreateOrderInput
|
|
44
|
+
*/
|
|
45
|
+
locale: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateOrderInput
|
|
50
|
+
*/
|
|
51
|
+
domainName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateOrderInput
|
|
44
56
|
*/
|
|
45
57
|
firstname: string;
|
|
46
58
|
/**
|
|
47
59
|
*
|
|
48
60
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
61
|
+
* @memberof CreateOrderInput
|
|
50
62
|
*/
|
|
51
63
|
lastname: string;
|
|
52
64
|
/**
|
|
53
65
|
*
|
|
54
66
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
67
|
+
* @memberof CreateOrderInput
|
|
56
68
|
*/
|
|
57
69
|
email: string;
|
|
58
70
|
/**
|
|
59
71
|
*
|
|
60
72
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
73
|
+
* @memberof CreateOrderInput
|
|
62
74
|
*/
|
|
63
75
|
phone: string;
|
|
64
76
|
/**
|
|
65
77
|
*
|
|
66
78
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
79
|
+
* @memberof CreateOrderInput
|
|
68
80
|
*/
|
|
69
81
|
country: string;
|
|
70
82
|
/**
|
|
71
83
|
*
|
|
72
84
|
* @type {string}
|
|
73
|
-
* @memberof
|
|
85
|
+
* @memberof CreateOrderInput
|
|
74
86
|
*/
|
|
75
87
|
city: string;
|
|
76
88
|
/**
|
|
77
89
|
*
|
|
78
90
|
* @type {string}
|
|
79
|
-
* @memberof
|
|
91
|
+
* @memberof CreateOrderInput
|
|
80
92
|
*/
|
|
81
93
|
postalCode: string;
|
|
82
94
|
/**
|
|
83
95
|
*
|
|
84
96
|
* @type {string}
|
|
85
|
-
* @memberof
|
|
97
|
+
* @memberof CreateOrderInput
|
|
86
98
|
*/
|
|
87
99
|
address: string;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof BuyDomainInput
|
|
92
|
-
*/
|
|
93
|
-
locale: string;
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
/**
|
|
97
|
-
* Check if a given object implements the
|
|
103
|
+
* Check if a given object implements the CreateOrderInput interface.
|
|
98
104
|
*/
|
|
99
|
-
export function
|
|
105
|
+
export function instanceOfCreateOrderInput(value: object): value is CreateOrderInput {
|
|
100
106
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
101
107
|
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
|
|
102
108
|
if (!('leadId' in value) || value['leadId'] === undefined) return false;
|
|
109
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
110
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
103
111
|
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
104
112
|
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
105
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
@@ -108,15 +116,14 @@ export function instanceOfBuyDomainInput(value: object): value is BuyDomainInput
|
|
|
108
116
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
109
117
|
if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
|
|
110
118
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
111
|
-
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
112
119
|
return true;
|
|
113
120
|
}
|
|
114
121
|
|
|
115
|
-
export function
|
|
116
|
-
return
|
|
122
|
+
export function CreateOrderInputFromJSON(json: any): CreateOrderInput {
|
|
123
|
+
return CreateOrderInputFromJSONTyped(json, false);
|
|
117
124
|
}
|
|
118
125
|
|
|
119
|
-
export function
|
|
126
|
+
export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderInput {
|
|
120
127
|
if (json == null) {
|
|
121
128
|
return json;
|
|
122
129
|
}
|
|
@@ -125,6 +132,8 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
125
132
|
'companyName': json['companyName'],
|
|
126
133
|
'companyVatNumber': json['companyVatNumber'],
|
|
127
134
|
'leadId': json['leadId'],
|
|
135
|
+
'locale': json['locale'],
|
|
136
|
+
'domainName': json['domainName'],
|
|
128
137
|
'firstname': json['firstname'],
|
|
129
138
|
'lastname': json['lastname'],
|
|
130
139
|
'email': json['email'],
|
|
@@ -133,11 +142,10 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
133
142
|
'city': json['city'],
|
|
134
143
|
'postalCode': json['postalCode'],
|
|
135
144
|
'address': json['address'],
|
|
136
|
-
'locale': json['locale'],
|
|
137
145
|
};
|
|
138
146
|
}
|
|
139
147
|
|
|
140
|
-
export function
|
|
148
|
+
export function CreateOrderInputToJSON(value?: CreateOrderInput | null): any {
|
|
141
149
|
if (value == null) {
|
|
142
150
|
return value;
|
|
143
151
|
}
|
|
@@ -146,6 +154,8 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
|
|
|
146
154
|
'companyName': value['companyName'],
|
|
147
155
|
'companyVatNumber': value['companyVatNumber'],
|
|
148
156
|
'leadId': value['leadId'],
|
|
157
|
+
'locale': value['locale'],
|
|
158
|
+
'domainName': value['domainName'],
|
|
149
159
|
'firstname': value['firstname'],
|
|
150
160
|
'lastname': value['lastname'],
|
|
151
161
|
'email': value['email'],
|
|
@@ -154,7 +164,6 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
|
|
|
154
164
|
'city': value['city'],
|
|
155
165
|
'postalCode': value['postalCode'],
|
|
156
166
|
'address': value['address'],
|
|
157
|
-
'locale': value['locale'],
|
|
158
167
|
};
|
|
159
168
|
}
|
|
160
169
|
|