@randock/nameshift-api-client 0.0.64 → 0.0.66
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 +13 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -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/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/GetAllOrders200Response.d.ts +46 -0
- package/dist/models/GetAllOrders200Response.js +58 -0
- package/dist/models/NotFoundException.d.ts +43 -0
- package/dist/models/NotFoundException.js +55 -0
- package/dist/models/OrderDto.d.ts +118 -0
- package/dist/models/OrderDto.js +107 -0
- package/dist/models/OrderListItemDto.d.ts +79 -0
- package/dist/models/OrderListItemDto.js +82 -0
- package/dist/models/OrderListItemDtoBasePrice.d.ts +37 -0
- package/dist/models/OrderListItemDtoBasePrice.js +51 -0
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +85 -0
- package/dist/models/OrderListItemDtoBuyerInformation.js +83 -0
- package/dist/models/OrderListItemDtoDomainInformation.d.ts +37 -0
- package/dist/models/OrderListItemDtoDomainInformation.js +51 -0
- package/dist/models/OrderListItemDtoSellerAccount.d.ts +37 -0
- package/dist/models/OrderListItemDtoSellerAccount.js +51 -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 +12 -2
- package/dist/models/index.js +12 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +63 -0
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/DomainsApi.ts +3 -0
- package/src/apis/DomainsPublicApi.ts +3 -54
- package/src/apis/LeadsApi.ts +8 -8
- package/src/apis/LeadsPublicApi.ts +53 -0
- package/src/apis/OrdersPublicApi.ts +172 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateLeadInput.ts +9 -9
- package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
- package/src/models/GetAllOrders200Response.ts +98 -0
- package/src/models/NotFoundException.ts +79 -0
- package/src/models/OrderDto.ts +196 -0
- package/src/models/OrderListItemDto.ts +151 -0
- package/src/models/OrderListItemDtoBasePrice.ts +70 -0
- package/src/models/OrderListItemDtoBuyerInformation.ts +142 -0
- package/src/models/OrderListItemDtoDomainInformation.ts +70 -0
- package/src/models/OrderListItemDtoSellerAccount.ts +70 -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 +12 -2
- package/dist/models/PutLeadInput.d.ts +0 -32
|
@@ -0,0 +1,196 @@
|
|
|
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
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface OrderDto
|
|
27
|
+
*/
|
|
28
|
+
export interface OrderDto {
|
|
29
|
+
/**
|
|
30
|
+
* The uuid for this order.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof OrderDto
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof OrderDto
|
|
39
|
+
*/
|
|
40
|
+
status: OrderDtoStatusEnum;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {MoneyDto}
|
|
44
|
+
* @memberof OrderDto
|
|
45
|
+
*/
|
|
46
|
+
basePrice: MoneyDto;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof OrderDto
|
|
51
|
+
*/
|
|
52
|
+
firstname: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof OrderDto
|
|
57
|
+
*/
|
|
58
|
+
lastname: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof OrderDto
|
|
63
|
+
*/
|
|
64
|
+
email: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof OrderDto
|
|
69
|
+
*/
|
|
70
|
+
phone: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof OrderDto
|
|
75
|
+
*/
|
|
76
|
+
country: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof OrderDto
|
|
81
|
+
*/
|
|
82
|
+
city: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof OrderDto
|
|
87
|
+
*/
|
|
88
|
+
postalCode: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof OrderDto
|
|
93
|
+
*/
|
|
94
|
+
address: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof OrderDto
|
|
99
|
+
*/
|
|
100
|
+
locale: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof OrderDto
|
|
105
|
+
*/
|
|
106
|
+
companyName: string | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof OrderDto
|
|
111
|
+
*/
|
|
112
|
+
companyVatNumber: string | null;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export const OrderDtoStatusEnum = {
|
|
120
|
+
OPEN: 'open',
|
|
121
|
+
PAID: 'paid'
|
|
122
|
+
} as const;
|
|
123
|
+
export type OrderDtoStatusEnum = typeof OrderDtoStatusEnum[keyof typeof OrderDtoStatusEnum];
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Check if a given object implements the OrderDto interface.
|
|
128
|
+
*/
|
|
129
|
+
export function instanceOfOrderDto(value: object): value is OrderDto {
|
|
130
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
131
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
132
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
133
|
+
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
134
|
+
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
135
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
136
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
137
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
138
|
+
if (!('city' in value) || value['city'] === undefined) return false;
|
|
139
|
+
if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
|
|
140
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
141
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
142
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
143
|
+
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function OrderDtoFromJSON(json: any): OrderDto {
|
|
148
|
+
return OrderDtoFromJSONTyped(json, false);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDto {
|
|
152
|
+
if (json == null) {
|
|
153
|
+
return json;
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
|
|
157
|
+
'id': json['id'],
|
|
158
|
+
'status': json['status'],
|
|
159
|
+
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
160
|
+
'firstname': json['firstname'],
|
|
161
|
+
'lastname': json['lastname'],
|
|
162
|
+
'email': json['email'],
|
|
163
|
+
'phone': json['phone'],
|
|
164
|
+
'country': json['country'],
|
|
165
|
+
'city': json['city'],
|
|
166
|
+
'postalCode': json['postalCode'],
|
|
167
|
+
'address': json['address'],
|
|
168
|
+
'locale': json['locale'],
|
|
169
|
+
'companyName': json['companyName'],
|
|
170
|
+
'companyVatNumber': json['companyVatNumber'],
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function OrderDtoToJSON(value?: OrderDto | null): any {
|
|
175
|
+
if (value == null) {
|
|
176
|
+
return value;
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
|
|
180
|
+
'id': value['id'],
|
|
181
|
+
'status': value['status'],
|
|
182
|
+
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
183
|
+
'firstname': value['firstname'],
|
|
184
|
+
'lastname': value['lastname'],
|
|
185
|
+
'email': value['email'],
|
|
186
|
+
'phone': value['phone'],
|
|
187
|
+
'country': value['country'],
|
|
188
|
+
'city': value['city'],
|
|
189
|
+
'postalCode': value['postalCode'],
|
|
190
|
+
'address': value['address'],
|
|
191
|
+
'locale': value['locale'],
|
|
192
|
+
'companyName': value['companyName'],
|
|
193
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
|
|
@@ -0,0 +1,151 @@
|
|
|
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 { OrderListItemDtoBasePrice } from './OrderListItemDtoBasePrice';
|
|
17
|
+
import {
|
|
18
|
+
OrderListItemDtoBasePriceFromJSON,
|
|
19
|
+
OrderListItemDtoBasePriceFromJSONTyped,
|
|
20
|
+
OrderListItemDtoBasePriceToJSON,
|
|
21
|
+
} from './OrderListItemDtoBasePrice';
|
|
22
|
+
import type { OrderListItemDtoDomainInformation } from './OrderListItemDtoDomainInformation';
|
|
23
|
+
import {
|
|
24
|
+
OrderListItemDtoDomainInformationFromJSON,
|
|
25
|
+
OrderListItemDtoDomainInformationFromJSONTyped,
|
|
26
|
+
OrderListItemDtoDomainInformationToJSON,
|
|
27
|
+
} from './OrderListItemDtoDomainInformation';
|
|
28
|
+
import type { OrderListItemDtoBuyerInformation } from './OrderListItemDtoBuyerInformation';
|
|
29
|
+
import {
|
|
30
|
+
OrderListItemDtoBuyerInformationFromJSON,
|
|
31
|
+
OrderListItemDtoBuyerInformationFromJSONTyped,
|
|
32
|
+
OrderListItemDtoBuyerInformationToJSON,
|
|
33
|
+
} from './OrderListItemDtoBuyerInformation';
|
|
34
|
+
import type { OrderListItemDtoSellerAccount } from './OrderListItemDtoSellerAccount';
|
|
35
|
+
import {
|
|
36
|
+
OrderListItemDtoSellerAccountFromJSON,
|
|
37
|
+
OrderListItemDtoSellerAccountFromJSONTyped,
|
|
38
|
+
OrderListItemDtoSellerAccountToJSON,
|
|
39
|
+
} from './OrderListItemDtoSellerAccount';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface OrderListItemDto
|
|
45
|
+
*/
|
|
46
|
+
export interface OrderListItemDto {
|
|
47
|
+
/**
|
|
48
|
+
* The order ID
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof OrderListItemDto
|
|
51
|
+
*/
|
|
52
|
+
id: object;
|
|
53
|
+
/**
|
|
54
|
+
* The order status
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof OrderListItemDto
|
|
57
|
+
*/
|
|
58
|
+
status: OrderListItemDtoStatusEnum;
|
|
59
|
+
/**
|
|
60
|
+
* The order creation date
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof OrderListItemDto
|
|
63
|
+
*/
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
/**
|
|
66
|
+
* The order domain information
|
|
67
|
+
* @type {OrderListItemDtoDomainInformation}
|
|
68
|
+
* @memberof OrderListItemDto
|
|
69
|
+
*/
|
|
70
|
+
domain: OrderListItemDtoDomainInformation;
|
|
71
|
+
/**
|
|
72
|
+
* The order seller information
|
|
73
|
+
* @type {OrderListItemDtoSellerAccount}
|
|
74
|
+
* @memberof OrderListItemDto
|
|
75
|
+
*/
|
|
76
|
+
sellerAccount: OrderListItemDtoSellerAccount;
|
|
77
|
+
/**
|
|
78
|
+
* The order buyer information
|
|
79
|
+
* @type {OrderListItemDtoBuyerInformation}
|
|
80
|
+
* @memberof OrderListItemDto
|
|
81
|
+
*/
|
|
82
|
+
buyerInformation: OrderListItemDtoBuyerInformation;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {OrderListItemDtoBasePrice}
|
|
86
|
+
* @memberof OrderListItemDto
|
|
87
|
+
*/
|
|
88
|
+
basePrice: OrderListItemDtoBasePrice | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export const OrderListItemDtoStatusEnum = {
|
|
96
|
+
OPEN: 'open',
|
|
97
|
+
PAID: 'paid'
|
|
98
|
+
} as const;
|
|
99
|
+
export type OrderListItemDtoStatusEnum = typeof OrderListItemDtoStatusEnum[keyof typeof OrderListItemDtoStatusEnum];
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the OrderListItemDto interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfOrderListItemDto(value: object): value is OrderListItemDto {
|
|
106
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
107
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
108
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
109
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
110
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
111
|
+
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
|
|
112
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function OrderListItemDtoFromJSON(json: any): OrderListItemDto {
|
|
117
|
+
return OrderListItemDtoFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDto {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': json['id'],
|
|
127
|
+
'status': json['status'],
|
|
128
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
129
|
+
'domain': OrderListItemDtoDomainInformationFromJSON(json['domain']),
|
|
130
|
+
'sellerAccount': OrderListItemDtoSellerAccountFromJSON(json['sellerAccount']),
|
|
131
|
+
'buyerInformation': OrderListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
|
|
132
|
+
'basePrice': OrderListItemDtoBasePriceFromJSON(json['basePrice']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function OrderListItemDtoToJSON(value?: OrderListItemDto | null): any {
|
|
137
|
+
if (value == null) {
|
|
138
|
+
return value;
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'id': value['id'],
|
|
143
|
+
'status': value['status'],
|
|
144
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
145
|
+
'domain': OrderListItemDtoDomainInformationToJSON(value['domain']),
|
|
146
|
+
'sellerAccount': OrderListItemDtoSellerAccountToJSON(value['sellerAccount']),
|
|
147
|
+
'buyerInformation': OrderListItemDtoBuyerInformationToJSON(value['buyerInformation']),
|
|
148
|
+
'basePrice': OrderListItemDtoBasePriceToJSON(value['basePrice']),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* The order base price
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrderListItemDtoBasePrice
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderListItemDtoBasePrice {
|
|
22
|
+
/**
|
|
23
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof OrderListItemDtoBasePrice
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Three letter ISO currency code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderListItemDtoBasePrice
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the OrderListItemDtoBasePrice interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfOrderListItemDtoBasePrice(value: object): value is OrderListItemDtoBasePrice {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function OrderListItemDtoBasePriceFromJSON(json: any): OrderListItemDtoBasePrice {
|
|
46
|
+
return OrderListItemDtoBasePriceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function OrderListItemDtoBasePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoBasePrice {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currencyCode': json['currencyCode'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function OrderListItemDtoBasePriceToJSON(value?: OrderListItemDtoBasePrice | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'amount': value['amount'],
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
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 OrderListItemDtoBuyerInformation
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderListItemDtoBuyerInformation {
|
|
22
|
+
/**
|
|
23
|
+
* The order buyer first name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
26
|
+
*/
|
|
27
|
+
firstname: string;
|
|
28
|
+
/**
|
|
29
|
+
* The order buyer last name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
32
|
+
*/
|
|
33
|
+
lastname: string;
|
|
34
|
+
/**
|
|
35
|
+
* The order buyer email
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
* The order buyer phone
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
44
|
+
*/
|
|
45
|
+
phone: string;
|
|
46
|
+
/**
|
|
47
|
+
* The order buyer country
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
50
|
+
*/
|
|
51
|
+
country: string;
|
|
52
|
+
/**
|
|
53
|
+
* The order buyer city
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
56
|
+
*/
|
|
57
|
+
city: string;
|
|
58
|
+
/**
|
|
59
|
+
* The order buyer postal code
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
62
|
+
*/
|
|
63
|
+
postalCode: string;
|
|
64
|
+
/**
|
|
65
|
+
* The order buyer address
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
68
|
+
*/
|
|
69
|
+
address: string;
|
|
70
|
+
/**
|
|
71
|
+
* The order buyer company name
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
74
|
+
*/
|
|
75
|
+
companyName: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* The order buyer company VAT number
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
80
|
+
*/
|
|
81
|
+
companyVatNumber: string | null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the OrderListItemDtoBuyerInformation interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfOrderListItemDtoBuyerInformation(value: object): value is OrderListItemDtoBuyerInformation {
|
|
88
|
+
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
89
|
+
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
90
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
91
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
92
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
93
|
+
if (!('city' in value) || value['city'] === undefined) return false;
|
|
94
|
+
if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
|
|
95
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
96
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
97
|
+
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function OrderListItemDtoBuyerInformationFromJSON(json: any): OrderListItemDtoBuyerInformation {
|
|
102
|
+
return OrderListItemDtoBuyerInformationFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function OrderListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoBuyerInformation {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'firstname': json['firstname'],
|
|
112
|
+
'lastname': json['lastname'],
|
|
113
|
+
'email': json['email'],
|
|
114
|
+
'phone': json['phone'],
|
|
115
|
+
'country': json['country'],
|
|
116
|
+
'city': json['city'],
|
|
117
|
+
'postalCode': json['postalCode'],
|
|
118
|
+
'address': json['address'],
|
|
119
|
+
'companyName': json['companyName'],
|
|
120
|
+
'companyVatNumber': json['companyVatNumber'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function OrderListItemDtoBuyerInformationToJSON(value?: OrderListItemDtoBuyerInformation | null): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'firstname': value['firstname'],
|
|
131
|
+
'lastname': value['lastname'],
|
|
132
|
+
'email': value['email'],
|
|
133
|
+
'phone': value['phone'],
|
|
134
|
+
'country': value['country'],
|
|
135
|
+
'city': value['city'],
|
|
136
|
+
'postalCode': value['postalCode'],
|
|
137
|
+
'address': value['address'],
|
|
138
|
+
'companyName': value['companyName'],
|
|
139
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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 OrderListItemDtoDomainInformation
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderListItemDtoDomainInformation {
|
|
22
|
+
/**
|
|
23
|
+
* The order domain TLD
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrderListItemDtoDomainInformation
|
|
26
|
+
*/
|
|
27
|
+
tld: string;
|
|
28
|
+
/**
|
|
29
|
+
* The order domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderListItemDtoDomainInformation
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the OrderListItemDtoDomainInformation interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfOrderListItemDtoDomainInformation(value: object): value is OrderListItemDtoDomainInformation {
|
|
40
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function OrderListItemDtoDomainInformationFromJSON(json: any): OrderListItemDtoDomainInformation {
|
|
46
|
+
return OrderListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function OrderListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoDomainInformation {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'tld': json['tld'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function OrderListItemDtoDomainInformationToJSON(value?: OrderListItemDtoDomainInformation | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'tld': value['tld'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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 OrderListItemDtoSellerAccount
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderListItemDtoSellerAccount {
|
|
22
|
+
/**
|
|
23
|
+
* The order seller account ID
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof OrderListItemDtoSellerAccount
|
|
26
|
+
*/
|
|
27
|
+
accountId: object;
|
|
28
|
+
/**
|
|
29
|
+
* The order seller account ID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderListItemDtoSellerAccount
|
|
32
|
+
*/
|
|
33
|
+
identifier: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the OrderListItemDtoSellerAccount interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfOrderListItemDtoSellerAccount(value: object): value is OrderListItemDtoSellerAccount {
|
|
40
|
+
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
41
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function OrderListItemDtoSellerAccountFromJSON(json: any): OrderListItemDtoSellerAccount {
|
|
46
|
+
return OrderListItemDtoSellerAccountFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function OrderListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoSellerAccount {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'accountId': json['accountId'],
|
|
56
|
+
'identifier': json['identifier'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function OrderListItemDtoSellerAccountToJSON(value?: OrderListItemDtoSellerAccount | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'accountId': value['accountId'],
|
|
67
|
+
'identifier': value['identifier'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|