@randock/nameshift-api-client 0.0.65 → 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.
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrderListItemDtoDomainInformation
16
+ */
17
+ export interface OrderListItemDtoDomainInformation {
18
+ /**
19
+ * The order domain TLD
20
+ * @type {string}
21
+ * @memberof OrderListItemDtoDomainInformation
22
+ */
23
+ tld: string;
24
+ /**
25
+ * The order domain name
26
+ * @type {string}
27
+ * @memberof OrderListItemDtoDomainInformation
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OrderListItemDtoDomainInformation interface.
33
+ */
34
+ export declare function instanceOfOrderListItemDtoDomainInformation(value: object): value is OrderListItemDtoDomainInformation;
35
+ export declare function OrderListItemDtoDomainInformationFromJSON(json: any): OrderListItemDtoDomainInformation;
36
+ export declare function OrderListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoDomainInformation;
37
+ export declare function OrderListItemDtoDomainInformationToJSON(value?: OrderListItemDtoDomainInformation | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrderListItemDtoDomainInformationToJSON = exports.OrderListItemDtoDomainInformationFromJSONTyped = exports.OrderListItemDtoDomainInformationFromJSON = exports.instanceOfOrderListItemDtoDomainInformation = void 0;
17
+ /**
18
+ * Check if a given object implements the OrderListItemDtoDomainInformation interface.
19
+ */
20
+ function instanceOfOrderListItemDtoDomainInformation(value) {
21
+ if (!('tld' in value) || value['tld'] === undefined)
22
+ return false;
23
+ if (!('name' in value) || value['name'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfOrderListItemDtoDomainInformation = instanceOfOrderListItemDtoDomainInformation;
28
+ function OrderListItemDtoDomainInformationFromJSON(json) {
29
+ return OrderListItemDtoDomainInformationFromJSONTyped(json, false);
30
+ }
31
+ exports.OrderListItemDtoDomainInformationFromJSON = OrderListItemDtoDomainInformationFromJSON;
32
+ function OrderListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'tld': json['tld'],
38
+ 'name': json['name'],
39
+ };
40
+ }
41
+ exports.OrderListItemDtoDomainInformationFromJSONTyped = OrderListItemDtoDomainInformationFromJSONTyped;
42
+ function OrderListItemDtoDomainInformationToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'tld': value['tld'],
48
+ 'name': value['name'],
49
+ };
50
+ }
51
+ exports.OrderListItemDtoDomainInformationToJSON = OrderListItemDtoDomainInformationToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrderListItemDtoSellerAccount
16
+ */
17
+ export interface OrderListItemDtoSellerAccount {
18
+ /**
19
+ * The order seller account ID
20
+ * @type {object}
21
+ * @memberof OrderListItemDtoSellerAccount
22
+ */
23
+ accountId: object;
24
+ /**
25
+ * The order seller account ID
26
+ * @type {string}
27
+ * @memberof OrderListItemDtoSellerAccount
28
+ */
29
+ identifier: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OrderListItemDtoSellerAccount interface.
33
+ */
34
+ export declare function instanceOfOrderListItemDtoSellerAccount(value: object): value is OrderListItemDtoSellerAccount;
35
+ export declare function OrderListItemDtoSellerAccountFromJSON(json: any): OrderListItemDtoSellerAccount;
36
+ export declare function OrderListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoSellerAccount;
37
+ export declare function OrderListItemDtoSellerAccountToJSON(value?: OrderListItemDtoSellerAccount | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrderListItemDtoSellerAccountToJSON = exports.OrderListItemDtoSellerAccountFromJSONTyped = exports.OrderListItemDtoSellerAccountFromJSON = exports.instanceOfOrderListItemDtoSellerAccount = void 0;
17
+ /**
18
+ * Check if a given object implements the OrderListItemDtoSellerAccount interface.
19
+ */
20
+ function instanceOfOrderListItemDtoSellerAccount(value) {
21
+ if (!('accountId' in value) || value['accountId'] === undefined)
22
+ return false;
23
+ if (!('identifier' in value) || value['identifier'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfOrderListItemDtoSellerAccount = instanceOfOrderListItemDtoSellerAccount;
28
+ function OrderListItemDtoSellerAccountFromJSON(json) {
29
+ return OrderListItemDtoSellerAccountFromJSONTyped(json, false);
30
+ }
31
+ exports.OrderListItemDtoSellerAccountFromJSON = OrderListItemDtoSellerAccountFromJSON;
32
+ function OrderListItemDtoSellerAccountFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'accountId': json['accountId'],
38
+ 'identifier': json['identifier'],
39
+ };
40
+ }
41
+ exports.OrderListItemDtoSellerAccountFromJSONTyped = OrderListItemDtoSellerAccountFromJSONTyped;
42
+ function OrderListItemDtoSellerAccountToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'accountId': value['accountId'],
48
+ 'identifier': value['identifier'],
49
+ };
50
+ }
51
+ exports.OrderListItemDtoSellerAccountToJSON = OrderListItemDtoSellerAccountToJSON;
@@ -28,6 +28,7 @@ export * from './DomainTransferDtoAgent';
28
28
  export * from './DomainTransferOrderDto';
29
29
  export * from './ForgotPasswordRequestInput';
30
30
  export * from './GetAllDomainTransfers200Response';
31
+ export * from './GetAllOrders200Response';
31
32
  export * from './GetBuyerTransfers200Response';
32
33
  export * from './HttpException';
33
34
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
@@ -53,6 +54,11 @@ export * from './MoneyInput';
53
54
  export * from './NotFoundException';
54
55
  export * from './ObjectId';
55
56
  export * from './OrderDto';
57
+ export * from './OrderListItemDto';
58
+ export * from './OrderListItemDtoBasePrice';
59
+ export * from './OrderListItemDtoBuyerInformation';
60
+ export * from './OrderListItemDtoDomainInformation';
61
+ export * from './OrderListItemDtoSellerAccount';
56
62
  export * from './PaginateResponse';
57
63
  export * from './PaginateResponseLinks';
58
64
  export * from './PaginateResponseMeta';
@@ -46,6 +46,7 @@ __exportStar(require("./DomainTransferDtoAgent"), exports);
46
46
  __exportStar(require("./DomainTransferOrderDto"), exports);
47
47
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
48
48
  __exportStar(require("./GetAllDomainTransfers200Response"), exports);
49
+ __exportStar(require("./GetAllOrders200Response"), exports);
49
50
  __exportStar(require("./GetBuyerTransfers200Response"), exports);
50
51
  __exportStar(require("./HttpException"), exports);
51
52
  __exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
@@ -71,6 +72,11 @@ __exportStar(require("./MoneyInput"), exports);
71
72
  __exportStar(require("./NotFoundException"), exports);
72
73
  __exportStar(require("./ObjectId"), exports);
73
74
  __exportStar(require("./OrderDto"), exports);
75
+ __exportStar(require("./OrderListItemDto"), exports);
76
+ __exportStar(require("./OrderListItemDtoBasePrice"), exports);
77
+ __exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
78
+ __exportStar(require("./OrderListItemDtoDomainInformation"), exports);
79
+ __exportStar(require("./OrderListItemDtoSellerAccount"), exports);
74
80
  __exportStar(require("./PaginateResponse"), exports);
75
81
  __exportStar(require("./PaginateResponseLinks"), exports);
76
82
  __exportStar(require("./PaginateResponseMeta"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  AdminGetAllDomainTransfers200Response,
19
19
  ChangeOrderStatusInput,
20
+ GetAllOrders200Response,
20
21
  ListAccounts200Response,
21
22
  NotFoundException,
22
23
  ThrottlerException,
@@ -27,6 +28,8 @@ import {
27
28
  AdminGetAllDomainTransfers200ResponseToJSON,
28
29
  ChangeOrderStatusInputFromJSON,
29
30
  ChangeOrderStatusInputToJSON,
31
+ GetAllOrders200ResponseFromJSON,
32
+ GetAllOrders200ResponseToJSON,
30
33
  ListAccounts200ResponseFromJSON,
31
34
  ListAccounts200ResponseToJSON,
32
35
  NotFoundExceptionFromJSON,
@@ -49,6 +52,13 @@ export interface AdminApiChangeOrderStatusRequest {
49
52
  changeOrderStatusInput: ChangeOrderStatusInput;
50
53
  }
51
54
 
55
+ export interface AdminApiGetAllOrdersRequest {
56
+ filter?: object;
57
+ page?: number;
58
+ limit?: number;
59
+ sortBy?: Array<string>;
60
+ }
61
+
52
62
  export interface AdminApiListAccountsRequest {
53
63
  filter?: object;
54
64
  page?: number;
@@ -161,6 +171,56 @@ export class AdminApi extends runtime.BaseAPI {
161
171
  await this.changeOrderStatusRaw(requestParameters, initOverrides);
162
172
  }
163
173
 
174
+ /**
175
+ *
176
+ */
177
+ async getAllOrdersRaw(requestParameters: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllOrders200Response>> {
178
+ const queryParameters: any = {};
179
+
180
+ if (requestParameters['filter'] != null) {
181
+ queryParameters['filter'] = requestParameters['filter'];
182
+ }
183
+
184
+ if (requestParameters['page'] != null) {
185
+ queryParameters['page'] = requestParameters['page'];
186
+ }
187
+
188
+ if (requestParameters['limit'] != null) {
189
+ queryParameters['limit'] = requestParameters['limit'];
190
+ }
191
+
192
+ if (requestParameters['sortBy'] != null) {
193
+ queryParameters['sortBy'] = requestParameters['sortBy'];
194
+ }
195
+
196
+ const headerParameters: runtime.HTTPHeaders = {};
197
+
198
+ if (this.configuration && this.configuration.accessToken) {
199
+ const token = this.configuration.accessToken;
200
+ const tokenString = await token("bearer", []);
201
+
202
+ if (tokenString) {
203
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
204
+ }
205
+ }
206
+ const response = await this.request({
207
+ path: `/admin/orders`,
208
+ method: 'GET',
209
+ headers: headerParameters,
210
+ query: queryParameters,
211
+ }, initOverrides);
212
+
213
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetAllOrders200ResponseFromJSON(jsonValue));
214
+ }
215
+
216
+ /**
217
+ *
218
+ */
219
+ async getAllOrders(requestParameters: AdminApiGetAllOrdersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response> {
220
+ const response = await this.getAllOrdersRaw(requestParameters, initOverrides);
221
+ return await response.value();
222
+ }
223
+
164
224
  /**
165
225
  *
166
226
  */
@@ -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
+