@randock/nameshift-api-client 0.0.115 → 0.0.117
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/README.md +3 -3
- package/dist/models/BuyerDomainTransferListItemDto.d.ts +4 -4
- package/dist/models/BuyerDomainTransferListItemDto.js +6 -6
- package/dist/models/ChangeOrderStatusInput.d.ts +1 -1
- package/dist/models/ChangeOrderStatusInput.js +1 -1
- package/dist/models/DomainDto.d.ts +6 -0
- package/dist/models/DomainDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithDomainUrlDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithDomainUrlDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/OrderDto.d.ts +3 -3
- package/dist/models/OrderDto.js +7 -7
- package/dist/models/OrderListItemDto.d.ts +1 -1
- package/dist/models/OrderListItemDto.js +1 -1
- package/package.json +1 -1
- package/src/models/BuyerDomainTransferListItemDto.ts +7 -7
- package/src/models/ChangeOrderStatusInput.ts +1 -1
- package/src/models/DomainDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithDomainUrlDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/OrderDto.ts +9 -9
- package/src/models/OrderListItemDto.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.117
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.117 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
29b7ace6d6b0d4142d15dcb9f3bf9608c5d2ee1bd6912c7cd74f26017c81aab15d5cec2f71482f4d3c3eb53bdfb9de32
|
|
@@ -21,7 +21,7 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof BuyerDomainTransferListItemDto
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
invoiceStatus: BuyerDomainTransferListItemDtoInvoiceStatusEnum;
|
|
25
25
|
/**
|
|
26
26
|
* The buyer domain transfer status
|
|
27
27
|
* @type {string}
|
|
@@ -62,12 +62,12 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
62
62
|
/**
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const
|
|
66
|
-
readonly
|
|
65
|
+
export declare const BuyerDomainTransferListItemDtoInvoiceStatusEnum: {
|
|
66
|
+
readonly DRAFT: "draft";
|
|
67
67
|
readonly PAID: "paid";
|
|
68
68
|
readonly CANCELLED: "cancelled";
|
|
69
69
|
};
|
|
70
|
-
export type
|
|
70
|
+
export type BuyerDomainTransferListItemDtoInvoiceStatusEnum = typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum[keyof typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum];
|
|
71
71
|
/**
|
|
72
72
|
* @export
|
|
73
73
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.BuyerDomainTransferListItemDtoDomainTransferStatusEnum = exports.
|
|
16
|
+
exports.BuyerDomainTransferListItemDtoDomainTransferStatusEnum = exports.BuyerDomainTransferListItemDtoInvoiceStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfBuyerDomainTransferListItemDto = instanceOfBuyerDomainTransferListItemDto;
|
|
18
18
|
exports.BuyerDomainTransferListItemDtoFromJSON = BuyerDomainTransferListItemDtoFromJSON;
|
|
19
19
|
exports.BuyerDomainTransferListItemDtoFromJSONTyped = BuyerDomainTransferListItemDtoFromJSONTyped;
|
|
@@ -22,8 +22,8 @@ var BuyerDomainTransferListItemDomainDto_1 = require("./BuyerDomainTransferListI
|
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
26
|
-
|
|
25
|
+
exports.BuyerDomainTransferListItemDtoInvoiceStatusEnum = {
|
|
26
|
+
DRAFT: 'draft',
|
|
27
27
|
PAID: 'paid',
|
|
28
28
|
CANCELLED: 'cancelled'
|
|
29
29
|
};
|
|
@@ -41,7 +41,7 @@ exports.BuyerDomainTransferListItemDtoDomainTransferStatusEnum = {
|
|
|
41
41
|
* Check if a given object implements the BuyerDomainTransferListItemDto interface.
|
|
42
42
|
*/
|
|
43
43
|
function instanceOfBuyerDomainTransferListItemDto(value) {
|
|
44
|
-
if (!('
|
|
44
|
+
if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined)
|
|
45
45
|
return false;
|
|
46
46
|
if (!('domainTransferStatus' in value) || value['domainTransferStatus'] === undefined)
|
|
47
47
|
return false;
|
|
@@ -65,7 +65,7 @@ function BuyerDomainTransferListItemDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
65
65
|
return json;
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
|
-
'
|
|
68
|
+
'invoiceStatus': json['invoiceStatus'],
|
|
69
69
|
'domainTransferStatus': json['domainTransferStatus'],
|
|
70
70
|
'requirements': json['requirements'],
|
|
71
71
|
'orderId': json['orderId'],
|
|
@@ -79,7 +79,7 @@ function BuyerDomainTransferListItemDtoToJSON(value) {
|
|
|
79
79
|
return value;
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
|
-
'
|
|
82
|
+
'invoiceStatus': value['invoiceStatus'],
|
|
83
83
|
'domainTransferStatus': value['domainTransferStatus'],
|
|
84
84
|
'requirements': value['requirements'],
|
|
85
85
|
'orderId': value['orderId'],
|
|
@@ -83,6 +83,12 @@ export interface DomainDto {
|
|
|
83
83
|
* @memberof DomainDto
|
|
84
84
|
*/
|
|
85
85
|
minOffer: MoneyDto;
|
|
86
|
+
/**
|
|
87
|
+
* The creation date
|
|
88
|
+
* @type {Date}
|
|
89
|
+
* @memberof DomainDto
|
|
90
|
+
*/
|
|
91
|
+
createdAt: Date;
|
|
86
92
|
}
|
|
87
93
|
/**
|
|
88
94
|
* Check if a given object implements the DomainDto interface.
|
package/dist/models/DomainDto.js
CHANGED
|
@@ -44,6 +44,8 @@ function instanceOfDomainDto(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
48
|
+
return false;
|
|
47
49
|
return true;
|
|
48
50
|
}
|
|
49
51
|
function DomainDtoFromJSON(json) {
|
|
@@ -65,6 +67,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
'currencyCode': json['currencyCode'],
|
|
66
68
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
67
69
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
70
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
68
71
|
};
|
|
69
72
|
}
|
|
70
73
|
function DomainDtoToJSON(value) {
|
|
@@ -83,5 +86,6 @@ function DomainDtoToJSON(value) {
|
|
|
83
86
|
'currencyCode': value['currencyCode'],
|
|
84
87
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
85
88
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
89
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
86
90
|
};
|
|
87
91
|
}
|
|
@@ -84,6 +84,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
84
84
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
85
85
|
*/
|
|
86
86
|
minOffer: MoneyDto;
|
|
87
|
+
/**
|
|
88
|
+
* The creation date
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
91
|
+
*/
|
|
92
|
+
createdAt: Date;
|
|
87
93
|
/**
|
|
88
94
|
*
|
|
89
95
|
* @type {AccountDto}
|
|
@@ -45,6 +45,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
|
45
45
|
return false;
|
|
46
46
|
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
47
47
|
return false;
|
|
48
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
49
|
+
return false;
|
|
48
50
|
if (!('account' in value) || value['account'] === undefined)
|
|
49
51
|
return false;
|
|
50
52
|
return true;
|
|
@@ -68,6 +70,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
68
70
|
'currencyCode': json['currencyCode'],
|
|
69
71
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
70
72
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
73
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
71
74
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
72
75
|
};
|
|
73
76
|
}
|
|
@@ -87,6 +90,7 @@ function IntersectionDomainDtoWithAccountDtoToJSON(value) {
|
|
|
87
90
|
'currencyCode': value['currencyCode'],
|
|
88
91
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
89
92
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
93
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
90
94
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
91
95
|
};
|
|
92
96
|
}
|
|
@@ -89,6 +89,12 @@ export interface IntersectionDomainDtoWithDomainUrlDto {
|
|
|
89
89
|
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
90
90
|
*/
|
|
91
91
|
minOffer: MoneyDto;
|
|
92
|
+
/**
|
|
93
|
+
* The creation date
|
|
94
|
+
* @type {Date}
|
|
95
|
+
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
96
|
+
*/
|
|
97
|
+
createdAt: Date;
|
|
92
98
|
}
|
|
93
99
|
/**
|
|
94
100
|
* Check if a given object implements the IntersectionDomainDtoWithDomainUrlDto interface.
|
|
@@ -46,6 +46,8 @@ function instanceOfIntersectionDomainDtoWithDomainUrlDto(value) {
|
|
|
46
46
|
return false;
|
|
47
47
|
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
50
|
+
return false;
|
|
49
51
|
return true;
|
|
50
52
|
}
|
|
51
53
|
function IntersectionDomainDtoWithDomainUrlDtoFromJSON(json) {
|
|
@@ -68,6 +70,7 @@ function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
68
70
|
'currencyCode': json['currencyCode'],
|
|
69
71
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
70
72
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
73
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
function IntersectionDomainDtoWithDomainUrlDtoToJSON(value) {
|
|
@@ -87,5 +90,6 @@ function IntersectionDomainDtoWithDomainUrlDtoToJSON(value) {
|
|
|
87
90
|
'currencyCode': value['currencyCode'],
|
|
88
91
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
89
92
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
93
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
90
94
|
};
|
|
91
95
|
}
|
|
@@ -84,6 +84,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
84
84
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
85
85
|
*/
|
|
86
86
|
minOffer: MoneyDto;
|
|
87
|
+
/**
|
|
88
|
+
* The creation date
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
91
|
+
*/
|
|
92
|
+
createdAt: Date;
|
|
87
93
|
/**
|
|
88
94
|
*
|
|
89
95
|
* @type {AccountDto}
|
|
@@ -45,6 +45,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
|
45
45
|
return false;
|
|
46
46
|
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
47
47
|
return false;
|
|
48
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
49
|
+
return false;
|
|
48
50
|
if (!('hijacker' in value) || value['hijacker'] === undefined)
|
|
49
51
|
return false;
|
|
50
52
|
if (!('account' in value) || value['account'] === undefined)
|
|
@@ -70,6 +72,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
70
72
|
'currencyCode': json['currencyCode'],
|
|
71
73
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
72
74
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
75
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
73
76
|
'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
|
|
74
77
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
75
78
|
};
|
|
@@ -90,6 +93,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value) {
|
|
|
90
93
|
'currencyCode': value['currencyCode'],
|
|
91
94
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
92
95
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
96
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
93
97
|
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
|
|
94
98
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
95
99
|
};
|
|
@@ -61,13 +61,13 @@ export interface OrderDto {
|
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof OrderDto
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
firstName: string;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof OrderDto
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
lastName: string;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -109,7 +109,7 @@ export interface OrderDto {
|
|
|
109
109
|
* @export
|
|
110
110
|
*/
|
|
111
111
|
export declare const OrderDtoStatusEnum: {
|
|
112
|
-
readonly
|
|
112
|
+
readonly DRAFT: "draft";
|
|
113
113
|
readonly PAID: "paid";
|
|
114
114
|
readonly CANCELLED: "cancelled";
|
|
115
115
|
};
|
package/dist/models/OrderDto.js
CHANGED
|
@@ -27,7 +27,7 @@ var AddressDto_1 = require("./AddressDto");
|
|
|
27
27
|
* @export
|
|
28
28
|
*/
|
|
29
29
|
exports.OrderDtoStatusEnum = {
|
|
30
|
-
|
|
30
|
+
DRAFT: 'draft',
|
|
31
31
|
PAID: 'paid',
|
|
32
32
|
CANCELLED: 'cancelled'
|
|
33
33
|
};
|
|
@@ -47,9 +47,9 @@ function instanceOfOrderDto(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('items' in value) || value['items'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
-
if (!('
|
|
50
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
51
51
|
return false;
|
|
52
|
-
if (!('
|
|
52
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
53
53
|
return false;
|
|
54
54
|
if (!('email' in value) || value['email'] === undefined)
|
|
55
55
|
return false;
|
|
@@ -79,8 +79,8 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
80
80
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
|
|
81
81
|
'items': (json['items'].map(InvoiceItemDto_1.InvoiceItemDtoFromJSON)),
|
|
82
|
-
'
|
|
83
|
-
'
|
|
82
|
+
'firstName': json['firstName'],
|
|
83
|
+
'lastName': json['lastName'],
|
|
84
84
|
'email': json['email'],
|
|
85
85
|
'phone': json['phone'],
|
|
86
86
|
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
@@ -100,8 +100,8 @@ function OrderDtoToJSON(value) {
|
|
|
100
100
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
101
101
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
|
|
102
102
|
'items': (value['items'].map(InvoiceItemDto_1.InvoiceItemDtoToJSON)),
|
|
103
|
-
'
|
|
104
|
-
'
|
|
103
|
+
'firstName': value['firstName'],
|
|
104
|
+
'lastName': value['lastName'],
|
|
105
105
|
'email': value['email'],
|
|
106
106
|
'phone': value['phone'],
|
|
107
107
|
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof BuyerDomainTransferListItemDto
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
invoiceStatus: BuyerDomainTransferListItemDtoInvoiceStatusEnum;
|
|
35
35
|
/**
|
|
36
36
|
* The buyer domain transfer status
|
|
37
37
|
* @type {string}
|
|
@@ -74,12 +74,12 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
74
74
|
/**
|
|
75
75
|
* @export
|
|
76
76
|
*/
|
|
77
|
-
export const
|
|
78
|
-
|
|
77
|
+
export const BuyerDomainTransferListItemDtoInvoiceStatusEnum = {
|
|
78
|
+
DRAFT: 'draft',
|
|
79
79
|
PAID: 'paid',
|
|
80
80
|
CANCELLED: 'cancelled'
|
|
81
81
|
} as const;
|
|
82
|
-
export type
|
|
82
|
+
export type BuyerDomainTransferListItemDtoInvoiceStatusEnum = typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum[keyof typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* @export
|
|
@@ -98,7 +98,7 @@ export type BuyerDomainTransferListItemDtoDomainTransferStatusEnum = typeof Buye
|
|
|
98
98
|
* Check if a given object implements the BuyerDomainTransferListItemDto interface.
|
|
99
99
|
*/
|
|
100
100
|
export function instanceOfBuyerDomainTransferListItemDto(value: object): value is BuyerDomainTransferListItemDto {
|
|
101
|
-
if (!('
|
|
101
|
+
if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined) return false;
|
|
102
102
|
if (!('domainTransferStatus' in value) || value['domainTransferStatus'] === undefined) return false;
|
|
103
103
|
if (!('requirements' in value) || value['requirements'] === undefined) return false;
|
|
104
104
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
@@ -118,7 +118,7 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
|
|
|
118
118
|
}
|
|
119
119
|
return {
|
|
120
120
|
|
|
121
|
-
'
|
|
121
|
+
'invoiceStatus': json['invoiceStatus'],
|
|
122
122
|
'domainTransferStatus': json['domainTransferStatus'],
|
|
123
123
|
'requirements': json['requirements'],
|
|
124
124
|
'orderId': json['orderId'],
|
|
@@ -134,7 +134,7 @@ export function BuyerDomainTransferListItemDtoToJSON(value?: BuyerDomainTransfer
|
|
|
134
134
|
}
|
|
135
135
|
return {
|
|
136
136
|
|
|
137
|
-
'
|
|
137
|
+
'invoiceStatus': value['invoiceStatus'],
|
|
138
138
|
'domainTransferStatus': value['domainTransferStatus'],
|
|
139
139
|
'requirements': value['requirements'],
|
|
140
140
|
'orderId': value['orderId'],
|
package/src/models/DomainDto.ts
CHANGED
|
@@ -93,6 +93,12 @@ export interface DomainDto {
|
|
|
93
93
|
* @memberof DomainDto
|
|
94
94
|
*/
|
|
95
95
|
minOffer: MoneyDto;
|
|
96
|
+
/**
|
|
97
|
+
* The creation date
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof DomainDto
|
|
100
|
+
*/
|
|
101
|
+
createdAt: Date;
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
/**
|
|
@@ -110,6 +116,7 @@ export function instanceOfDomainDto(value: object): value is DomainDto {
|
|
|
110
116
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
111
117
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
112
118
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
119
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
113
120
|
return true;
|
|
114
121
|
}
|
|
115
122
|
|
|
@@ -134,6 +141,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
134
141
|
'currencyCode': json['currencyCode'],
|
|
135
142
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
136
143
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
144
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
137
145
|
};
|
|
138
146
|
}
|
|
139
147
|
|
|
@@ -154,6 +162,7 @@ export function DomainDtoToJSON(value?: DomainDto | null): any {
|
|
|
154
162
|
'currencyCode': value['currencyCode'],
|
|
155
163
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
156
164
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
165
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
157
166
|
};
|
|
158
167
|
}
|
|
159
168
|
|
|
@@ -99,6 +99,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
99
99
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
100
100
|
*/
|
|
101
101
|
minOffer: MoneyDto;
|
|
102
|
+
/**
|
|
103
|
+
* The creation date
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
106
|
+
*/
|
|
107
|
+
createdAt: Date;
|
|
102
108
|
/**
|
|
103
109
|
*
|
|
104
110
|
* @type {AccountDto}
|
|
@@ -122,6 +128,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
122
128
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
123
129
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
124
130
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
131
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
125
132
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
126
133
|
return true;
|
|
127
134
|
}
|
|
@@ -147,6 +154,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
147
154
|
'currencyCode': json['currencyCode'],
|
|
148
155
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
149
156
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
157
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
150
158
|
'account': AccountDtoFromJSON(json['account']),
|
|
151
159
|
};
|
|
152
160
|
}
|
|
@@ -168,6 +176,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDo
|
|
|
168
176
|
'currencyCode': value['currencyCode'],
|
|
169
177
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
170
178
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
179
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
171
180
|
'account': AccountDtoToJSON(value['account']),
|
|
172
181
|
};
|
|
173
182
|
}
|
|
@@ -99,6 +99,12 @@ export interface IntersectionDomainDtoWithDomainUrlDto {
|
|
|
99
99
|
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
100
100
|
*/
|
|
101
101
|
minOffer: MoneyDto;
|
|
102
|
+
/**
|
|
103
|
+
* The creation date
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
106
|
+
*/
|
|
107
|
+
createdAt: Date;
|
|
102
108
|
}
|
|
103
109
|
|
|
104
110
|
/**
|
|
@@ -117,6 +123,7 @@ export function instanceOfIntersectionDomainDtoWithDomainUrlDto(value: object):
|
|
|
117
123
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
118
124
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
119
125
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
126
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
120
127
|
return true;
|
|
121
128
|
}
|
|
122
129
|
|
|
@@ -142,6 +149,7 @@ export function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json: any, ig
|
|
|
142
149
|
'currencyCode': json['currencyCode'],
|
|
143
150
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
144
151
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
152
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
145
153
|
};
|
|
146
154
|
}
|
|
147
155
|
|
|
@@ -163,6 +171,7 @@ export function IntersectionDomainDtoWithDomainUrlDtoToJSON(value?: Intersection
|
|
|
163
171
|
'currencyCode': value['currencyCode'],
|
|
164
172
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
165
173
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
174
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
166
175
|
};
|
|
167
176
|
}
|
|
168
177
|
|
|
@@ -99,6 +99,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
99
99
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
100
100
|
*/
|
|
101
101
|
minOffer: MoneyDto;
|
|
102
|
+
/**
|
|
103
|
+
* The creation date
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
106
|
+
*/
|
|
107
|
+
createdAt: Date;
|
|
102
108
|
/**
|
|
103
109
|
*
|
|
104
110
|
* @type {AccountDto}
|
|
@@ -128,6 +134,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
128
134
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
129
135
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
130
136
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
137
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
131
138
|
if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
|
|
132
139
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
133
140
|
return true;
|
|
@@ -154,6 +161,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
154
161
|
'currencyCode': json['currencyCode'],
|
|
155
162
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
156
163
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
164
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
157
165
|
'hijacker': AccountDtoFromJSON(json['hijacker']),
|
|
158
166
|
'account': AccountDtoFromJSON(json['account']),
|
|
159
167
|
};
|
|
@@ -176,6 +184,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value?:
|
|
|
176
184
|
'currencyCode': value['currencyCode'],
|
|
177
185
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
178
186
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
187
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
179
188
|
'hijacker': AccountDtoToJSON(value['hijacker']),
|
|
180
189
|
'account': AccountDtoToJSON(value['account']),
|
|
181
190
|
};
|
package/src/models/OrderDto.ts
CHANGED
|
@@ -91,13 +91,13 @@ export interface OrderDto {
|
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof OrderDto
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
firstName: string;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {string}
|
|
98
98
|
* @memberof OrderDto
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
lastName: string;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
@@ -141,7 +141,7 @@ export interface OrderDto {
|
|
|
141
141
|
* @export
|
|
142
142
|
*/
|
|
143
143
|
export const OrderDtoStatusEnum = {
|
|
144
|
-
|
|
144
|
+
DRAFT: 'draft',
|
|
145
145
|
PAID: 'paid',
|
|
146
146
|
CANCELLED: 'cancelled'
|
|
147
147
|
} as const;
|
|
@@ -158,8 +158,8 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
|
|
|
158
158
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
159
159
|
if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
|
|
160
160
|
if (!('items' in value) || value['items'] === undefined) return false;
|
|
161
|
-
if (!('
|
|
162
|
-
if (!('
|
|
161
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
162
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
163
163
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
164
164
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
165
165
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
@@ -185,8 +185,8 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
185
185
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
186
186
|
'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
|
|
187
187
|
'items': ((json['items'] as Array<any>).map(InvoiceItemDtoFromJSON)),
|
|
188
|
-
'
|
|
189
|
-
'
|
|
188
|
+
'firstName': json['firstName'],
|
|
189
|
+
'lastName': json['lastName'],
|
|
190
190
|
'email': json['email'],
|
|
191
191
|
'phone': json['phone'],
|
|
192
192
|
'address': AddressDtoFromJSON(json['address']),
|
|
@@ -208,8 +208,8 @@ export function OrderDtoToJSON(value?: OrderDto | null): any {
|
|
|
208
208
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
209
209
|
'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
|
|
210
210
|
'items': ((value['items'] as Array<any>).map(InvoiceItemDtoToJSON)),
|
|
211
|
-
'
|
|
212
|
-
'
|
|
211
|
+
'firstName': value['firstName'],
|
|
212
|
+
'lastName': value['lastName'],
|
|
213
213
|
'email': value['email'],
|
|
214
214
|
'phone': value['phone'],
|
|
215
215
|
'address': AddressDtoToJSON(value['address']),
|