@randock/nameshift-api-client 0.0.65 → 0.0.67
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 +6 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- package/dist/models/BuyerDomainTransferListItemDto.d.ts +29 -9
- package/dist/models/BuyerDomainTransferListItemDto.js +24 -9
- package/dist/models/GetAllOrders200Response.d.ts +46 -0
- package/dist/models/GetAllOrders200Response.js +58 -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/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/models/BuyerDomainTransferListItemDto.ts +42 -15
- package/src/models/GetAllOrders200Response.ts +98 -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/index.ts +6 -0
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
} from './PaginateResponseLinks';
|
|
22
|
+
import type { OrderListItemDto } from './OrderListItemDto';
|
|
23
|
+
import {
|
|
24
|
+
OrderListItemDtoFromJSON,
|
|
25
|
+
OrderListItemDtoFromJSONTyped,
|
|
26
|
+
OrderListItemDtoToJSON,
|
|
27
|
+
} from './OrderListItemDto';
|
|
28
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
|
+
import {
|
|
30
|
+
PaginateResponseMetaFromJSON,
|
|
31
|
+
PaginateResponseMetaFromJSONTyped,
|
|
32
|
+
PaginateResponseMetaToJSON,
|
|
33
|
+
} from './PaginateResponseMeta';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface GetAllOrders200Response
|
|
39
|
+
*/
|
|
40
|
+
export interface GetAllOrders200Response {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<OrderListItemDto>}
|
|
44
|
+
* @memberof GetAllOrders200Response
|
|
45
|
+
*/
|
|
46
|
+
data: Array<OrderListItemDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PaginateResponseMeta}
|
|
50
|
+
* @memberof GetAllOrders200Response
|
|
51
|
+
*/
|
|
52
|
+
meta: PaginateResponseMeta;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PaginateResponseLinks}
|
|
56
|
+
* @memberof GetAllOrders200Response
|
|
57
|
+
*/
|
|
58
|
+
links: PaginateResponseLinks;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the GetAllOrders200Response interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfGetAllOrders200Response(value: object): value is GetAllOrders200Response {
|
|
65
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
66
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
67
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function GetAllOrders200ResponseFromJSON(json: any): GetAllOrders200Response {
|
|
72
|
+
return GetAllOrders200ResponseFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function GetAllOrders200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllOrders200Response {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(OrderListItemDtoFromJSON)),
|
|
82
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function GetAllOrders200ResponseToJSON(value?: GetAllOrders200Response | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(OrderListItemDtoToJSON)),
|
|
94
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './DomainTransferDtoAgent';
|
|
|
30
30
|
export * from './DomainTransferOrderDto';
|
|
31
31
|
export * from './ForgotPasswordRequestInput';
|
|
32
32
|
export * from './GetAllDomainTransfers200Response';
|
|
33
|
+
export * from './GetAllOrders200Response';
|
|
33
34
|
export * from './GetBuyerTransfers200Response';
|
|
34
35
|
export * from './HttpException';
|
|
35
36
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
@@ -55,6 +56,11 @@ export * from './MoneyInput';
|
|
|
55
56
|
export * from './NotFoundException';
|
|
56
57
|
export * from './ObjectId';
|
|
57
58
|
export * from './OrderDto';
|
|
59
|
+
export * from './OrderListItemDto';
|
|
60
|
+
export * from './OrderListItemDtoBasePrice';
|
|
61
|
+
export * from './OrderListItemDtoBuyerInformation';
|
|
62
|
+
export * from './OrderListItemDtoDomainInformation';
|
|
63
|
+
export * from './OrderListItemDtoSellerAccount';
|
|
58
64
|
export * from './PaginateResponse';
|
|
59
65
|
export * from './PaginateResponseLinks';
|
|
60
66
|
export * from './PaginateResponseMeta';
|