@randock/nameshift-api-client 0.0.126 → 0.0.127
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/DomainTransferDetailsDto.d.ts +17 -0
- package/dist/models/DomainTransferDetailsDto.js +15 -1
- package/dist/models/DomainTransferDto.d.ts +17 -0
- package/dist/models/DomainTransferDto.js +15 -1
- package/dist/models/InvoiceDto.d.ts +22 -0
- package/dist/models/InvoiceDto.js +18 -0
- package/package.json +1 -1
- package/src/models/DomainTransferDetailsDto.ts +21 -0
- package/src/models/DomainTransferDto.ts +21 -0
- package/src/models/InvoiceDto.ts +37 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.127
|
|
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.127 --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
|
+
5479aeb12cf28a7734cf0c7c67cddc810175d5acc37f0d3b7a55ccff08a99e319991682bc1fbb64962975047295f9c13
|
|
@@ -51,6 +51,12 @@ export interface DomainTransferDetailsDto {
|
|
|
51
51
|
* @memberof DomainTransferDetailsDto
|
|
52
52
|
*/
|
|
53
53
|
status: DomainTransferDetailsDtoStatusEnum;
|
|
54
|
+
/**
|
|
55
|
+
* The domain transfer status to seller
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof DomainTransferDetailsDto
|
|
58
|
+
*/
|
|
59
|
+
statusSeller: DomainTransferDetailsDtoStatusSellerEnum;
|
|
54
60
|
/**
|
|
55
61
|
* The domain transfer auth code
|
|
56
62
|
* @type {DomainTransferDetailsAuthCodeDto}
|
|
@@ -93,6 +99,17 @@ export declare const DomainTransferDetailsDtoStatusEnum: {
|
|
|
93
99
|
readonly COMPLETED: "completed";
|
|
94
100
|
};
|
|
95
101
|
export type DomainTransferDetailsDtoStatusEnum = typeof DomainTransferDetailsDtoStatusEnum[keyof typeof DomainTransferDetailsDtoStatusEnum];
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export declare const DomainTransferDetailsDtoStatusSellerEnum: {
|
|
106
|
+
readonly CREATED: "created";
|
|
107
|
+
readonly STARTED: "started";
|
|
108
|
+
readonly PENDING_MANUAL_ACTION: "pending_manual_action";
|
|
109
|
+
readonly ERROR: "error";
|
|
110
|
+
readonly COMPLETED: "completed";
|
|
111
|
+
};
|
|
112
|
+
export type DomainTransferDetailsDtoStatusSellerEnum = typeof DomainTransferDetailsDtoStatusSellerEnum[keyof typeof DomainTransferDetailsDtoStatusSellerEnum];
|
|
96
113
|
/**
|
|
97
114
|
* Check if a given object implements the DomainTransferDetailsDto interface.
|
|
98
115
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DomainTransferDetailsDtoStatusEnum = void 0;
|
|
16
|
+
exports.DomainTransferDetailsDtoStatusSellerEnum = exports.DomainTransferDetailsDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfDomainTransferDetailsDto = instanceOfDomainTransferDetailsDto;
|
|
18
18
|
exports.DomainTransferDetailsDtoFromJSON = DomainTransferDetailsDtoFromJSON;
|
|
19
19
|
exports.DomainTransferDetailsDtoFromJSONTyped = DomainTransferDetailsDtoFromJSONTyped;
|
|
@@ -35,6 +35,16 @@ exports.DomainTransferDetailsDtoStatusEnum = {
|
|
|
35
35
|
ERROR: 'error',
|
|
36
36
|
COMPLETED: 'completed'
|
|
37
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.DomainTransferDetailsDtoStatusSellerEnum = {
|
|
42
|
+
CREATED: 'created',
|
|
43
|
+
STARTED: 'started',
|
|
44
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
45
|
+
ERROR: 'error',
|
|
46
|
+
COMPLETED: 'completed'
|
|
47
|
+
};
|
|
38
48
|
/**
|
|
39
49
|
* Check if a given object implements the DomainTransferDetailsDto interface.
|
|
40
50
|
*/
|
|
@@ -49,6 +59,8 @@ function instanceOfDomainTransferDetailsDto(value) {
|
|
|
49
59
|
return false;
|
|
50
60
|
if (!('status' in value) || value['status'] === undefined)
|
|
51
61
|
return false;
|
|
62
|
+
if (!('statusSeller' in value) || value['statusSeller'] === undefined)
|
|
63
|
+
return false;
|
|
52
64
|
if (!('authCode' in value) || value['authCode'] === undefined)
|
|
53
65
|
return false;
|
|
54
66
|
if (!('validations' in value) || value['validations'] === undefined)
|
|
@@ -74,6 +86,7 @@ function DomainTransferDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
86
|
'domain': (0, DomainTransferDetailsDomainDto_1.DomainTransferDetailsDomainDtoFromJSON)(json['domain']),
|
|
75
87
|
'order': (0, DomainTransferDetailsOrderDto_1.DomainTransferDetailsOrderDtoFromJSON)(json['order']),
|
|
76
88
|
'status': json['status'],
|
|
89
|
+
'statusSeller': json['statusSeller'],
|
|
77
90
|
'authCode': (0, DomainTransferDetailsAuthCodeDto_1.DomainTransferDetailsAuthCodeDtoFromJSON)(json['authCode']),
|
|
78
91
|
'validations': (json['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoFromJSON)),
|
|
79
92
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -95,6 +108,7 @@ function DomainTransferDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
108
|
'domain': (0, DomainTransferDetailsDomainDto_1.DomainTransferDetailsDomainDtoToJSON)(value['domain']),
|
|
96
109
|
'order': (0, DomainTransferDetailsOrderDto_1.DomainTransferDetailsOrderDtoToJSON)(value['order']),
|
|
97
110
|
'status': value['status'],
|
|
111
|
+
'statusSeller': value['statusSeller'],
|
|
98
112
|
'authCode': (0, DomainTransferDetailsAuthCodeDto_1.DomainTransferDetailsAuthCodeDtoToJSON)(value['authCode']),
|
|
99
113
|
'validations': (value['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoToJSON)),
|
|
100
114
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -36,6 +36,12 @@ export interface DomainTransferDto {
|
|
|
36
36
|
* @memberof DomainTransferDto
|
|
37
37
|
*/
|
|
38
38
|
status: DomainTransferDtoStatusEnum;
|
|
39
|
+
/**
|
|
40
|
+
* The domain transfer status to seller
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof DomainTransferDto
|
|
43
|
+
*/
|
|
44
|
+
statusSeller: DomainTransferDtoStatusSellerEnum;
|
|
39
45
|
/**
|
|
40
46
|
* The domain transfer order
|
|
41
47
|
* @type {DomainTransferOrderDto}
|
|
@@ -66,6 +72,17 @@ export declare const DomainTransferDtoStatusEnum: {
|
|
|
66
72
|
readonly COMPLETED: "completed";
|
|
67
73
|
};
|
|
68
74
|
export type DomainTransferDtoStatusEnum = typeof DomainTransferDtoStatusEnum[keyof typeof DomainTransferDtoStatusEnum];
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const DomainTransferDtoStatusSellerEnum: {
|
|
79
|
+
readonly CREATED: "created";
|
|
80
|
+
readonly STARTED: "started";
|
|
81
|
+
readonly PENDING_MANUAL_ACTION: "pending_manual_action";
|
|
82
|
+
readonly ERROR: "error";
|
|
83
|
+
readonly COMPLETED: "completed";
|
|
84
|
+
};
|
|
85
|
+
export type DomainTransferDtoStatusSellerEnum = typeof DomainTransferDtoStatusSellerEnum[keyof typeof DomainTransferDtoStatusSellerEnum];
|
|
69
86
|
/**
|
|
70
87
|
* Check if a given object implements the DomainTransferDto interface.
|
|
71
88
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DomainTransferDtoStatusEnum = void 0;
|
|
16
|
+
exports.DomainTransferDtoStatusSellerEnum = exports.DomainTransferDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfDomainTransferDto = instanceOfDomainTransferDto;
|
|
18
18
|
exports.DomainTransferDtoFromJSON = DomainTransferDtoFromJSON;
|
|
19
19
|
exports.DomainTransferDtoFromJSONTyped = DomainTransferDtoFromJSONTyped;
|
|
@@ -32,6 +32,16 @@ exports.DomainTransferDtoStatusEnum = {
|
|
|
32
32
|
ERROR: 'error',
|
|
33
33
|
COMPLETED: 'completed'
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.DomainTransferDtoStatusSellerEnum = {
|
|
39
|
+
CREATED: 'created',
|
|
40
|
+
STARTED: 'started',
|
|
41
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
42
|
+
ERROR: 'error',
|
|
43
|
+
COMPLETED: 'completed'
|
|
44
|
+
};
|
|
35
45
|
/**
|
|
36
46
|
* Check if a given object implements the DomainTransferDto interface.
|
|
37
47
|
*/
|
|
@@ -42,6 +52,8 @@ function instanceOfDomainTransferDto(value) {
|
|
|
42
52
|
return false;
|
|
43
53
|
if (!('status' in value) || value['status'] === undefined)
|
|
44
54
|
return false;
|
|
55
|
+
if (!('statusSeller' in value) || value['statusSeller'] === undefined)
|
|
56
|
+
return false;
|
|
45
57
|
if (!('order' in value) || value['order'] === undefined)
|
|
46
58
|
return false;
|
|
47
59
|
if (!('agent' in value) || value['agent'] === undefined)
|
|
@@ -61,6 +73,7 @@ function DomainTransferDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
73
|
'id': json['id'],
|
|
62
74
|
'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoFromJSON)(json['domain']),
|
|
63
75
|
'status': json['status'],
|
|
76
|
+
'statusSeller': json['statusSeller'],
|
|
64
77
|
'order': (0, DomainTransferOrderDto_1.DomainTransferOrderDtoFromJSON)(json['order']),
|
|
65
78
|
'agent': (0, DomainTransferAgentDto_1.DomainTransferAgentDtoFromJSON)(json['agent']),
|
|
66
79
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -78,6 +91,7 @@ function DomainTransferDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
91
|
'id': value['id'],
|
|
79
92
|
'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoToJSON)(value['domain']),
|
|
80
93
|
'status': value['status'],
|
|
94
|
+
'statusSeller': value['statusSeller'],
|
|
81
95
|
'order': (0, DomainTransferOrderDto_1.DomainTransferOrderDtoToJSON)(value['order']),
|
|
82
96
|
'agent': (0, DomainTransferAgentDto_1.DomainTransferAgentDtoToJSON)(value['agent']),
|
|
83
97
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { InvoiceDomainDto } from './InvoiceDomainDto';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -40,7 +41,28 @@ export interface InvoiceDto {
|
|
|
40
41
|
* @memberof InvoiceDto
|
|
41
42
|
*/
|
|
42
43
|
date: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof InvoiceDto
|
|
48
|
+
*/
|
|
49
|
+
status: InvoiceDtoStatusEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {MoneyDto}
|
|
53
|
+
* @memberof InvoiceDto
|
|
54
|
+
*/
|
|
55
|
+
totalPrice: MoneyDto;
|
|
43
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const InvoiceDtoStatusEnum: {
|
|
61
|
+
readonly DRAFT: "draft";
|
|
62
|
+
readonly PAID: "paid";
|
|
63
|
+
readonly CANCELLED: "cancelled";
|
|
64
|
+
};
|
|
65
|
+
export type InvoiceDtoStatusEnum = typeof InvoiceDtoStatusEnum[keyof typeof InvoiceDtoStatusEnum];
|
|
44
66
|
/**
|
|
45
67
|
* Check if a given object implements the InvoiceDto interface.
|
|
46
68
|
*/
|
|
@@ -13,12 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.InvoiceDtoStatusEnum = void 0;
|
|
16
17
|
exports.instanceOfInvoiceDto = instanceOfInvoiceDto;
|
|
17
18
|
exports.InvoiceDtoFromJSON = InvoiceDtoFromJSON;
|
|
18
19
|
exports.InvoiceDtoFromJSONTyped = InvoiceDtoFromJSONTyped;
|
|
19
20
|
exports.InvoiceDtoToJSON = InvoiceDtoToJSON;
|
|
20
21
|
exports.InvoiceDtoToJSONTyped = InvoiceDtoToJSONTyped;
|
|
21
22
|
var InvoiceDomainDto_1 = require("./InvoiceDomainDto");
|
|
23
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.InvoiceDtoStatusEnum = {
|
|
28
|
+
DRAFT: 'draft',
|
|
29
|
+
PAID: 'paid',
|
|
30
|
+
CANCELLED: 'cancelled'
|
|
31
|
+
};
|
|
22
32
|
/**
|
|
23
33
|
* Check if a given object implements the InvoiceDto interface.
|
|
24
34
|
*/
|
|
@@ -31,6 +41,10 @@ function instanceOfInvoiceDto(value) {
|
|
|
31
41
|
return false;
|
|
32
42
|
if (!('date' in value) || value['date'] === undefined)
|
|
33
43
|
return false;
|
|
44
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('totalPrice' in value) || value['totalPrice'] === undefined)
|
|
47
|
+
return false;
|
|
34
48
|
return true;
|
|
35
49
|
}
|
|
36
50
|
function InvoiceDtoFromJSON(json) {
|
|
@@ -45,6 +59,8 @@ function InvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
59
|
'invoiceNumber': json['invoiceNumber'],
|
|
46
60
|
'domain': (0, InvoiceDomainDto_1.InvoiceDomainDtoFromJSON)(json['domain']),
|
|
47
61
|
'date': (new Date(json['date'])),
|
|
62
|
+
'status': json['status'],
|
|
63
|
+
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
48
64
|
};
|
|
49
65
|
}
|
|
50
66
|
function InvoiceDtoToJSON(json) {
|
|
@@ -60,5 +76,7 @@ function InvoiceDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
76
|
'invoiceNumber': value['invoiceNumber'],
|
|
61
77
|
'domain': (0, InvoiceDomainDto_1.InvoiceDomainDtoToJSON)(value['domain']),
|
|
62
78
|
'date': ((value['date']).toISOString()),
|
|
79
|
+
'status': value['status'],
|
|
80
|
+
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
63
81
|
};
|
|
64
82
|
}
|
package/package.json
CHANGED
|
@@ -92,6 +92,12 @@ export interface DomainTransferDetailsDto {
|
|
|
92
92
|
* @memberof DomainTransferDetailsDto
|
|
93
93
|
*/
|
|
94
94
|
status: DomainTransferDetailsDtoStatusEnum;
|
|
95
|
+
/**
|
|
96
|
+
* The domain transfer status to seller
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof DomainTransferDetailsDto
|
|
99
|
+
*/
|
|
100
|
+
statusSeller: DomainTransferDetailsDtoStatusSellerEnum;
|
|
95
101
|
/**
|
|
96
102
|
* The domain transfer auth code
|
|
97
103
|
* @type {DomainTransferDetailsAuthCodeDto}
|
|
@@ -137,6 +143,18 @@ export const DomainTransferDetailsDtoStatusEnum = {
|
|
|
137
143
|
} as const;
|
|
138
144
|
export type DomainTransferDetailsDtoStatusEnum = typeof DomainTransferDetailsDtoStatusEnum[keyof typeof DomainTransferDetailsDtoStatusEnum];
|
|
139
145
|
|
|
146
|
+
/**
|
|
147
|
+
* @export
|
|
148
|
+
*/
|
|
149
|
+
export const DomainTransferDetailsDtoStatusSellerEnum = {
|
|
150
|
+
CREATED: 'created',
|
|
151
|
+
STARTED: 'started',
|
|
152
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
153
|
+
ERROR: 'error',
|
|
154
|
+
COMPLETED: 'completed'
|
|
155
|
+
} as const;
|
|
156
|
+
export type DomainTransferDetailsDtoStatusSellerEnum = typeof DomainTransferDetailsDtoStatusSellerEnum[keyof typeof DomainTransferDetailsDtoStatusSellerEnum];
|
|
157
|
+
|
|
140
158
|
|
|
141
159
|
/**
|
|
142
160
|
* Check if a given object implements the DomainTransferDetailsDto interface.
|
|
@@ -147,6 +165,7 @@ export function instanceOfDomainTransferDetailsDto(value: object): value is Doma
|
|
|
147
165
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
148
166
|
if (!('order' in value) || value['order'] === undefined) return false;
|
|
149
167
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
168
|
+
if (!('statusSeller' in value) || value['statusSeller'] === undefined) return false;
|
|
150
169
|
if (!('authCode' in value) || value['authCode'] === undefined) return false;
|
|
151
170
|
if (!('validations' in value) || value['validations'] === undefined) return false;
|
|
152
171
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -170,6 +189,7 @@ export function DomainTransferDetailsDtoFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
170
189
|
'domain': DomainTransferDetailsDomainDtoFromJSON(json['domain']),
|
|
171
190
|
'order': DomainTransferDetailsOrderDtoFromJSON(json['order']),
|
|
172
191
|
'status': json['status'],
|
|
192
|
+
'statusSeller': json['statusSeller'],
|
|
173
193
|
'authCode': DomainTransferDetailsAuthCodeDtoFromJSON(json['authCode']),
|
|
174
194
|
'validations': ((json['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoFromJSON)),
|
|
175
195
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -194,6 +214,7 @@ export function DomainTransferDetailsDtoFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
194
214
|
'domain': DomainTransferDetailsDomainDtoToJSON(value['domain']),
|
|
195
215
|
'order': DomainTransferDetailsOrderDtoToJSON(value['order']),
|
|
196
216
|
'status': value['status'],
|
|
217
|
+
'statusSeller': value['statusSeller'],
|
|
197
218
|
'authCode': DomainTransferDetailsAuthCodeDtoToJSON(value['authCode']),
|
|
198
219
|
'validations': ((value['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoToJSON)),
|
|
199
220
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -59,6 +59,12 @@ export interface DomainTransferDto {
|
|
|
59
59
|
* @memberof DomainTransferDto
|
|
60
60
|
*/
|
|
61
61
|
status: DomainTransferDtoStatusEnum;
|
|
62
|
+
/**
|
|
63
|
+
* The domain transfer status to seller
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof DomainTransferDto
|
|
66
|
+
*/
|
|
67
|
+
statusSeller: DomainTransferDtoStatusSellerEnum;
|
|
62
68
|
/**
|
|
63
69
|
* The domain transfer order
|
|
64
70
|
* @type {DomainTransferOrderDto}
|
|
@@ -92,6 +98,18 @@ export const DomainTransferDtoStatusEnum = {
|
|
|
92
98
|
} as const;
|
|
93
99
|
export type DomainTransferDtoStatusEnum = typeof DomainTransferDtoStatusEnum[keyof typeof DomainTransferDtoStatusEnum];
|
|
94
100
|
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export const DomainTransferDtoStatusSellerEnum = {
|
|
105
|
+
CREATED: 'created',
|
|
106
|
+
STARTED: 'started',
|
|
107
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
108
|
+
ERROR: 'error',
|
|
109
|
+
COMPLETED: 'completed'
|
|
110
|
+
} as const;
|
|
111
|
+
export type DomainTransferDtoStatusSellerEnum = typeof DomainTransferDtoStatusSellerEnum[keyof typeof DomainTransferDtoStatusSellerEnum];
|
|
112
|
+
|
|
95
113
|
|
|
96
114
|
/**
|
|
97
115
|
* Check if a given object implements the DomainTransferDto interface.
|
|
@@ -100,6 +118,7 @@ export function instanceOfDomainTransferDto(value: object): value is DomainTrans
|
|
|
100
118
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
101
119
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
102
120
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
121
|
+
if (!('statusSeller' in value) || value['statusSeller'] === undefined) return false;
|
|
103
122
|
if (!('order' in value) || value['order'] === undefined) return false;
|
|
104
123
|
if (!('agent' in value) || value['agent'] === undefined) return false;
|
|
105
124
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -119,6 +138,7 @@ export function DomainTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
119
138
|
'id': json['id'],
|
|
120
139
|
'domain': DomainTransferDomainDtoFromJSON(json['domain']),
|
|
121
140
|
'status': json['status'],
|
|
141
|
+
'statusSeller': json['statusSeller'],
|
|
122
142
|
'order': DomainTransferOrderDtoFromJSON(json['order']),
|
|
123
143
|
'agent': DomainTransferAgentDtoFromJSON(json['agent']),
|
|
124
144
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -139,6 +159,7 @@ export function DomainTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
139
159
|
'id': value['id'],
|
|
140
160
|
'domain': DomainTransferDomainDtoToJSON(value['domain']),
|
|
141
161
|
'status': value['status'],
|
|
162
|
+
'statusSeller': value['statusSeller'],
|
|
142
163
|
'order': DomainTransferOrderDtoToJSON(value['order']),
|
|
143
164
|
'agent': DomainTransferAgentDtoToJSON(value['agent']),
|
|
144
165
|
'createdAt': ((value['createdAt']).toISOString()),
|
package/src/models/InvoiceDto.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
InvoiceDomainDtoToJSON,
|
|
21
21
|
InvoiceDomainDtoToJSONTyped,
|
|
22
22
|
} from './InvoiceDomainDto';
|
|
23
|
+
import type { MoneyDto } from './MoneyDto';
|
|
24
|
+
import {
|
|
25
|
+
MoneyDtoFromJSON,
|
|
26
|
+
MoneyDtoFromJSONTyped,
|
|
27
|
+
MoneyDtoToJSON,
|
|
28
|
+
MoneyDtoToJSONTyped,
|
|
29
|
+
} from './MoneyDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -51,8 +58,32 @@ export interface InvoiceDto {
|
|
|
51
58
|
* @memberof InvoiceDto
|
|
52
59
|
*/
|
|
53
60
|
date: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof InvoiceDto
|
|
65
|
+
*/
|
|
66
|
+
status: InvoiceDtoStatusEnum;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {MoneyDto}
|
|
70
|
+
* @memberof InvoiceDto
|
|
71
|
+
*/
|
|
72
|
+
totalPrice: MoneyDto;
|
|
54
73
|
}
|
|
55
74
|
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export const InvoiceDtoStatusEnum = {
|
|
80
|
+
DRAFT: 'draft',
|
|
81
|
+
PAID: 'paid',
|
|
82
|
+
CANCELLED: 'cancelled'
|
|
83
|
+
} as const;
|
|
84
|
+
export type InvoiceDtoStatusEnum = typeof InvoiceDtoStatusEnum[keyof typeof InvoiceDtoStatusEnum];
|
|
85
|
+
|
|
86
|
+
|
|
56
87
|
/**
|
|
57
88
|
* Check if a given object implements the InvoiceDto interface.
|
|
58
89
|
*/
|
|
@@ -61,6 +92,8 @@ export function instanceOfInvoiceDto(value: object): value is InvoiceDto {
|
|
|
61
92
|
if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined) return false;
|
|
62
93
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
63
94
|
if (!('date' in value) || value['date'] === undefined) return false;
|
|
95
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
96
|
+
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
64
97
|
return true;
|
|
65
98
|
}
|
|
66
99
|
|
|
@@ -78,6 +111,8 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
78
111
|
'invoiceNumber': json['invoiceNumber'],
|
|
79
112
|
'domain': InvoiceDomainDtoFromJSON(json['domain']),
|
|
80
113
|
'date': (new Date(json['date'])),
|
|
114
|
+
'status': json['status'],
|
|
115
|
+
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
81
116
|
};
|
|
82
117
|
}
|
|
83
118
|
|
|
@@ -96,6 +131,8 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
96
131
|
'invoiceNumber': value['invoiceNumber'],
|
|
97
132
|
'domain': InvoiceDomainDtoToJSON(value['domain']),
|
|
98
133
|
'date': ((value['date']).toISOString()),
|
|
134
|
+
'status': value['status'],
|
|
135
|
+
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
99
136
|
};
|
|
100
137
|
}
|
|
101
138
|
|