@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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +15 -1
  4. package/dist/apis/AdminApi.js +63 -0
  5. package/dist/models/BuyerDomainTransferListItemDto.d.ts +29 -9
  6. package/dist/models/BuyerDomainTransferListItemDto.js +24 -9
  7. package/dist/models/GetAllOrders200Response.d.ts +46 -0
  8. package/dist/models/GetAllOrders200Response.js +58 -0
  9. package/dist/models/OrderListItemDto.d.ts +79 -0
  10. package/dist/models/OrderListItemDto.js +82 -0
  11. package/dist/models/OrderListItemDtoBasePrice.d.ts +37 -0
  12. package/dist/models/OrderListItemDtoBasePrice.js +51 -0
  13. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +85 -0
  14. package/dist/models/OrderListItemDtoBuyerInformation.js +83 -0
  15. package/dist/models/OrderListItemDtoDomainInformation.d.ts +37 -0
  16. package/dist/models/OrderListItemDtoDomainInformation.js +51 -0
  17. package/dist/models/OrderListItemDtoSellerAccount.d.ts +37 -0
  18. package/dist/models/OrderListItemDtoSellerAccount.js +51 -0
  19. package/dist/models/index.d.ts +6 -0
  20. package/dist/models/index.js +6 -0
  21. package/package.json +1 -1
  22. package/src/apis/AdminApi.ts +60 -0
  23. package/src/models/BuyerDomainTransferListItemDto.ts +42 -15
  24. package/src/models/GetAllOrders200Response.ts +98 -0
  25. package/src/models/OrderListItemDto.ts +151 -0
  26. package/src/models/OrderListItemDtoBasePrice.ts +70 -0
  27. package/src/models/OrderListItemDtoBuyerInformation.ts +142 -0
  28. package/src/models/OrderListItemDtoDomainInformation.ts +70 -0
  29. package/src/models/OrderListItemDtoSellerAccount.ts +70 -0
  30. package/src/models/index.ts +6 -0
@@ -0,0 +1,85 @@
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 OrderListItemDtoBuyerInformation
16
+ */
17
+ export interface OrderListItemDtoBuyerInformation {
18
+ /**
19
+ * The order buyer first name
20
+ * @type {string}
21
+ * @memberof OrderListItemDtoBuyerInformation
22
+ */
23
+ firstname: string;
24
+ /**
25
+ * The order buyer last name
26
+ * @type {string}
27
+ * @memberof OrderListItemDtoBuyerInformation
28
+ */
29
+ lastname: string;
30
+ /**
31
+ * The order buyer email
32
+ * @type {string}
33
+ * @memberof OrderListItemDtoBuyerInformation
34
+ */
35
+ email: string;
36
+ /**
37
+ * The order buyer phone
38
+ * @type {string}
39
+ * @memberof OrderListItemDtoBuyerInformation
40
+ */
41
+ phone: string;
42
+ /**
43
+ * The order buyer country
44
+ * @type {string}
45
+ * @memberof OrderListItemDtoBuyerInformation
46
+ */
47
+ country: string;
48
+ /**
49
+ * The order buyer city
50
+ * @type {string}
51
+ * @memberof OrderListItemDtoBuyerInformation
52
+ */
53
+ city: string;
54
+ /**
55
+ * The order buyer postal code
56
+ * @type {string}
57
+ * @memberof OrderListItemDtoBuyerInformation
58
+ */
59
+ postalCode: string;
60
+ /**
61
+ * The order buyer address
62
+ * @type {string}
63
+ * @memberof OrderListItemDtoBuyerInformation
64
+ */
65
+ address: string;
66
+ /**
67
+ * The order buyer company name
68
+ * @type {string}
69
+ * @memberof OrderListItemDtoBuyerInformation
70
+ */
71
+ companyName: string | null;
72
+ /**
73
+ * The order buyer company VAT number
74
+ * @type {string}
75
+ * @memberof OrderListItemDtoBuyerInformation
76
+ */
77
+ companyVatNumber: string | null;
78
+ }
79
+ /**
80
+ * Check if a given object implements the OrderListItemDtoBuyerInformation interface.
81
+ */
82
+ export declare function instanceOfOrderListItemDtoBuyerInformation(value: object): value is OrderListItemDtoBuyerInformation;
83
+ export declare function OrderListItemDtoBuyerInformationFromJSON(json: any): OrderListItemDtoBuyerInformation;
84
+ export declare function OrderListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoBuyerInformation;
85
+ export declare function OrderListItemDtoBuyerInformationToJSON(value?: OrderListItemDtoBuyerInformation | null): any;
@@ -0,0 +1,83 @@
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.OrderListItemDtoBuyerInformationToJSON = exports.OrderListItemDtoBuyerInformationFromJSONTyped = exports.OrderListItemDtoBuyerInformationFromJSON = exports.instanceOfOrderListItemDtoBuyerInformation = void 0;
17
+ /**
18
+ * Check if a given object implements the OrderListItemDtoBuyerInformation interface.
19
+ */
20
+ function instanceOfOrderListItemDtoBuyerInformation(value) {
21
+ if (!('firstname' in value) || value['firstname'] === undefined)
22
+ return false;
23
+ if (!('lastname' in value) || value['lastname'] === undefined)
24
+ return false;
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ if (!('phone' in value) || value['phone'] === undefined)
28
+ return false;
29
+ if (!('country' in value) || value['country'] === undefined)
30
+ return false;
31
+ if (!('city' in value) || value['city'] === undefined)
32
+ return false;
33
+ if (!('postalCode' in value) || value['postalCode'] === undefined)
34
+ return false;
35
+ if (!('address' in value) || value['address'] === undefined)
36
+ return false;
37
+ if (!('companyName' in value) || value['companyName'] === undefined)
38
+ return false;
39
+ if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ exports.instanceOfOrderListItemDtoBuyerInformation = instanceOfOrderListItemDtoBuyerInformation;
44
+ function OrderListItemDtoBuyerInformationFromJSON(json) {
45
+ return OrderListItemDtoBuyerInformationFromJSONTyped(json, false);
46
+ }
47
+ exports.OrderListItemDtoBuyerInformationFromJSON = OrderListItemDtoBuyerInformationFromJSON;
48
+ function OrderListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'firstname': json['firstname'],
54
+ 'lastname': json['lastname'],
55
+ 'email': json['email'],
56
+ 'phone': json['phone'],
57
+ 'country': json['country'],
58
+ 'city': json['city'],
59
+ 'postalCode': json['postalCode'],
60
+ 'address': json['address'],
61
+ 'companyName': json['companyName'],
62
+ 'companyVatNumber': json['companyVatNumber'],
63
+ };
64
+ }
65
+ exports.OrderListItemDtoBuyerInformationFromJSONTyped = OrderListItemDtoBuyerInformationFromJSONTyped;
66
+ function OrderListItemDtoBuyerInformationToJSON(value) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'firstname': value['firstname'],
72
+ 'lastname': value['lastname'],
73
+ 'email': value['email'],
74
+ 'phone': value['phone'],
75
+ 'country': value['country'],
76
+ 'city': value['city'],
77
+ 'postalCode': value['postalCode'],
78
+ 'address': value['address'],
79
+ 'companyName': value['companyName'],
80
+ 'companyVatNumber': value['companyVatNumber'],
81
+ };
82
+ }
83
+ exports.OrderListItemDtoBuyerInformationToJSON = OrderListItemDtoBuyerInformationToJSON;
@@ -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.67",
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
  */
@@ -26,30 +26,42 @@ import {
26
26
  * @interface BuyerDomainTransferListItemDto
27
27
  */
28
28
  export interface BuyerDomainTransferListItemDto {
29
+ /**
30
+ * The buyer order status
31
+ * @type {string}
32
+ * @memberof BuyerDomainTransferListItemDto
33
+ */
34
+ orderStatus: BuyerDomainTransferListItemDtoOrderStatusEnum;
35
+ /**
36
+ * The buyer domain transfer status
37
+ * @type {string}
38
+ * @memberof BuyerDomainTransferListItemDto
39
+ */
40
+ domainTransferStatus: BuyerDomainTransferListItemDtoDomainTransferStatusEnum | null;
29
41
  /**
30
42
  * The domain transfer requirements with its satisfied status
31
43
  * @type {object}
32
44
  * @memberof BuyerDomainTransferListItemDto
33
45
  */
34
46
  requirements: object;
47
+ /**
48
+ * The buyer order ID
49
+ * @type {object}
50
+ * @memberof BuyerDomainTransferListItemDto
51
+ */
52
+ orderId: object;
35
53
  /**
36
54
  * The buyer domain transfer ID
37
55
  * @type {object}
38
56
  * @memberof BuyerDomainTransferListItemDto
39
57
  */
40
- id: object;
58
+ domainTransferId: object | null;
41
59
  /**
42
60
  * The buyer domain of transfer
43
61
  * @type {BuyerDomainTransferListItemDomainDto}
44
62
  * @memberof BuyerDomainTransferListItemDto
45
63
  */
46
64
  domain: BuyerDomainTransferListItemDomainDto;
47
- /**
48
- * The buyer domain transfer status
49
- * @type {string}
50
- * @memberof BuyerDomainTransferListItemDto
51
- */
52
- status: BuyerDomainTransferListItemDtoStatusEnum;
53
65
  /**
54
66
  * The buyer domain transfer creation date
55
67
  * @type {Date}
@@ -62,24 +74,35 @@ export interface BuyerDomainTransferListItemDto {
62
74
  /**
63
75
  * @export
64
76
  */
65
- export const BuyerDomainTransferListItemDtoStatusEnum = {
77
+ export const BuyerDomainTransferListItemDtoOrderStatusEnum = {
78
+ OPEN: 'open',
79
+ PAID: 'paid'
80
+ } as const;
81
+ export type BuyerDomainTransferListItemDtoOrderStatusEnum = typeof BuyerDomainTransferListItemDtoOrderStatusEnum[keyof typeof BuyerDomainTransferListItemDtoOrderStatusEnum];
82
+
83
+ /**
84
+ * @export
85
+ */
86
+ export const BuyerDomainTransferListItemDtoDomainTransferStatusEnum = {
66
87
  CREATED: 'created',
67
88
  STARTED: 'started',
68
89
  PENDING_MANUAL_ACTION: 'pending_manual_action',
69
90
  ERROR: 'error',
70
91
  COMPLETED: 'completed'
71
92
  } as const;
72
- export type BuyerDomainTransferListItemDtoStatusEnum = typeof BuyerDomainTransferListItemDtoStatusEnum[keyof typeof BuyerDomainTransferListItemDtoStatusEnum];
93
+ export type BuyerDomainTransferListItemDtoDomainTransferStatusEnum = typeof BuyerDomainTransferListItemDtoDomainTransferStatusEnum[keyof typeof BuyerDomainTransferListItemDtoDomainTransferStatusEnum];
73
94
 
74
95
 
75
96
  /**
76
97
  * Check if a given object implements the BuyerDomainTransferListItemDto interface.
77
98
  */
78
99
  export function instanceOfBuyerDomainTransferListItemDto(value: object): value is BuyerDomainTransferListItemDto {
100
+ if (!('orderStatus' in value) || value['orderStatus'] === undefined) return false;
101
+ if (!('domainTransferStatus' in value) || value['domainTransferStatus'] === undefined) return false;
79
102
  if (!('requirements' in value) || value['requirements'] === undefined) return false;
80
- if (!('id' in value) || value['id'] === undefined) return false;
103
+ if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
+ if (!('domainTransferId' in value) || value['domainTransferId'] === undefined) return false;
81
105
  if (!('domain' in value) || value['domain'] === undefined) return false;
82
- if (!('status' in value) || value['status'] === undefined) return false;
83
106
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
84
107
  return true;
85
108
  }
@@ -94,10 +117,12 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
94
117
  }
95
118
  return {
96
119
 
120
+ 'orderStatus': json['orderStatus'],
121
+ 'domainTransferStatus': json['domainTransferStatus'],
97
122
  'requirements': json['requirements'],
98
- 'id': json['id'],
123
+ 'orderId': json['orderId'],
124
+ 'domainTransferId': json['domainTransferId'],
99
125
  'domain': BuyerDomainTransferListItemDomainDtoFromJSON(json['domain']),
100
- 'status': json['status'],
101
126
  'createdAt': (new Date(json['createdAt'])),
102
127
  };
103
128
  }
@@ -108,10 +133,12 @@ export function BuyerDomainTransferListItemDtoToJSON(value?: BuyerDomainTransfer
108
133
  }
109
134
  return {
110
135
 
136
+ 'orderStatus': value['orderStatus'],
137
+ 'domainTransferStatus': value['domainTransferStatus'],
111
138
  'requirements': value['requirements'],
112
- 'id': value['id'],
139
+ 'orderId': value['orderId'],
140
+ 'domainTransferId': value['domainTransferId'],
113
141
  'domain': BuyerDomainTransferListItemDomainDtoToJSON(value['domain']),
114
- 'status': value['status'],
115
142
  'createdAt': ((value['createdAt']).toISOString()),
116
143
  };
117
144
  }