@randock/nameshift-api-client 0.0.64 → 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.
- package/.openapi-generator/FILES +13 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- package/dist/apis/DomainsPublicApi.d.ts +1 -13
- package/dist/apis/DomainsPublicApi.js +0 -49
- package/dist/apis/LeadsApi.d.ts +2 -2
- package/dist/apis/LeadsApi.js +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +13 -1
- package/dist/apis/LeadsPublicApi.js +47 -0
- package/dist/apis/OrdersPublicApi.d.ts +52 -0
- package/dist/apis/OrdersPublicApi.js +217 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CreateLeadInput.d.ts +6 -6
- package/dist/models/CreateLeadInput.js +4 -4
- package/dist/models/{BuyDomainInput.d.ts → CreateOrderInput.d.ts} +30 -24
- package/dist/models/{BuyDomainInput.js → CreateOrderInput.js} +19 -15
- package/dist/models/GetAllOrders200Response.d.ts +46 -0
- package/dist/models/GetAllOrders200Response.js +58 -0
- package/dist/models/NotFoundException.d.ts +43 -0
- package/dist/models/NotFoundException.js +55 -0
- package/dist/models/OrderDto.d.ts +118 -0
- package/dist/models/OrderDto.js +107 -0
- package/dist/models/OrderListItemDto.d.ts +79 -0
- package/dist/models/OrderListItemDto.js +82 -0
- package/dist/models/OrderListItemDtoBasePrice.d.ts +37 -0
- package/dist/models/OrderListItemDtoBasePrice.js +51 -0
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +85 -0
- package/dist/models/OrderListItemDtoBuyerInformation.js +83 -0
- package/dist/models/OrderListItemDtoDomainInformation.d.ts +37 -0
- package/dist/models/OrderListItemDtoDomainInformation.js +51 -0
- package/dist/models/OrderListItemDtoSellerAccount.d.ts +37 -0
- package/dist/models/OrderListItemDtoSellerAccount.js +51 -0
- package/dist/models/PublicLeadDto.d.ts +6 -0
- package/dist/models/PublicLeadDto.js +4 -0
- package/dist/models/PutLeadOfferInput.d.ts +32 -0
- package/dist/models/{PutLeadInput.js → PutLeadOfferInput.js} +11 -11
- package/dist/models/UpdateLeadInput.d.ts +77 -0
- package/dist/models/UpdateLeadInput.js +80 -0
- package/dist/models/UpdateOrderInput.d.ts +85 -0
- package/dist/models/UpdateOrderInput.js +83 -0
- package/dist/models/index.d.ts +12 -2
- package/dist/models/index.js +12 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +63 -0
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/DomainsApi.ts +3 -0
- package/src/apis/DomainsPublicApi.ts +3 -54
- package/src/apis/LeadsApi.ts +8 -8
- package/src/apis/LeadsPublicApi.ts +53 -0
- package/src/apis/OrdersPublicApi.ts +172 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateLeadInput.ts +9 -9
- package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
- package/src/models/GetAllOrders200Response.ts +98 -0
- package/src/models/NotFoundException.ts +79 -0
- package/src/models/OrderDto.ts +196 -0
- package/src/models/OrderListItemDto.ts +151 -0
- package/src/models/OrderListItemDtoBasePrice.ts +70 -0
- package/src/models/OrderListItemDtoBuyerInformation.ts +142 -0
- package/src/models/OrderListItemDtoDomainInformation.ts +70 -0
- package/src/models/OrderListItemDtoSellerAccount.ts +70 -0
- package/src/models/PublicLeadDto.ts +9 -0
- package/src/models/{PutLeadInput.ts → PutLeadOfferInput.ts} +9 -9
- package/src/models/UpdateLeadInput.ts +134 -0
- package/src/models/UpdateOrderInput.ts +142 -0
- package/src/models/index.ts +12 -2
- package/dist/models/PutLeadInput.d.ts +0 -32
|
@@ -0,0 +1,55 @@
|
|
|
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.NotFoundExceptionToJSON = exports.NotFoundExceptionFromJSONTyped = exports.NotFoundExceptionFromJSON = exports.instanceOfNotFoundException = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the NotFoundException interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfNotFoundException(value) {
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfNotFoundException = instanceOfNotFoundException;
|
|
30
|
+
function NotFoundExceptionFromJSON(json) {
|
|
31
|
+
return NotFoundExceptionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.NotFoundExceptionFromJSON = NotFoundExceptionFromJSON;
|
|
34
|
+
function NotFoundExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'statusCode': json['statusCode'],
|
|
41
|
+
'message': json['message'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.NotFoundExceptionFromJSONTyped = NotFoundExceptionFromJSONTyped;
|
|
45
|
+
function NotFoundExceptionToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'statusCode': value['statusCode'],
|
|
52
|
+
'message': value['message'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.NotFoundExceptionToJSON = NotFoundExceptionToJSON;
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrderDto
|
|
17
|
+
*/
|
|
18
|
+
export interface OrderDto {
|
|
19
|
+
/**
|
|
20
|
+
* The uuid for this order.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OrderDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OrderDto
|
|
29
|
+
*/
|
|
30
|
+
status: OrderDtoStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {MoneyDto}
|
|
34
|
+
* @memberof OrderDto
|
|
35
|
+
*/
|
|
36
|
+
basePrice: MoneyDto;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof OrderDto
|
|
41
|
+
*/
|
|
42
|
+
firstname: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof OrderDto
|
|
47
|
+
*/
|
|
48
|
+
lastname: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof OrderDto
|
|
53
|
+
*/
|
|
54
|
+
email: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof OrderDto
|
|
59
|
+
*/
|
|
60
|
+
phone: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof OrderDto
|
|
65
|
+
*/
|
|
66
|
+
country: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof OrderDto
|
|
71
|
+
*/
|
|
72
|
+
city: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof OrderDto
|
|
77
|
+
*/
|
|
78
|
+
postalCode: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof OrderDto
|
|
83
|
+
*/
|
|
84
|
+
address: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof OrderDto
|
|
89
|
+
*/
|
|
90
|
+
locale: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof OrderDto
|
|
95
|
+
*/
|
|
96
|
+
companyName: string | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof OrderDto
|
|
101
|
+
*/
|
|
102
|
+
companyVatNumber: string | null;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export declare const OrderDtoStatusEnum: {
|
|
108
|
+
readonly OPEN: "open";
|
|
109
|
+
readonly PAID: "paid";
|
|
110
|
+
};
|
|
111
|
+
export type OrderDtoStatusEnum = typeof OrderDtoStatusEnum[keyof typeof OrderDtoStatusEnum];
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the OrderDto interface.
|
|
114
|
+
*/
|
|
115
|
+
export declare function instanceOfOrderDto(value: object): value is OrderDto;
|
|
116
|
+
export declare function OrderDtoFromJSON(json: any): OrderDto;
|
|
117
|
+
export declare function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDto;
|
|
118
|
+
export declare function OrderDtoToJSON(value?: OrderDto | null): any;
|
|
@@ -0,0 +1,107 @@
|
|
|
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.OrderDtoToJSON = exports.OrderDtoFromJSONTyped = exports.OrderDtoFromJSON = exports.instanceOfOrderDto = exports.OrderDtoStatusEnum = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.OrderDtoStatusEnum = {
|
|
22
|
+
OPEN: 'open',
|
|
23
|
+
PAID: 'paid'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the OrderDto interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfOrderDto(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('postalCode' in value) || value['postalCode'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
exports.instanceOfOrderDto = instanceOfOrderDto;
|
|
60
|
+
function OrderDtoFromJSON(json) {
|
|
61
|
+
return OrderDtoFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
exports.OrderDtoFromJSON = OrderDtoFromJSON;
|
|
64
|
+
function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'status': json['status'],
|
|
71
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
72
|
+
'firstname': json['firstname'],
|
|
73
|
+
'lastname': json['lastname'],
|
|
74
|
+
'email': json['email'],
|
|
75
|
+
'phone': json['phone'],
|
|
76
|
+
'country': json['country'],
|
|
77
|
+
'city': json['city'],
|
|
78
|
+
'postalCode': json['postalCode'],
|
|
79
|
+
'address': json['address'],
|
|
80
|
+
'locale': json['locale'],
|
|
81
|
+
'companyName': json['companyName'],
|
|
82
|
+
'companyVatNumber': json['companyVatNumber'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
exports.OrderDtoFromJSONTyped = OrderDtoFromJSONTyped;
|
|
86
|
+
function OrderDtoToJSON(value) {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
'id': value['id'],
|
|
92
|
+
'status': value['status'],
|
|
93
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
94
|
+
'firstname': value['firstname'],
|
|
95
|
+
'lastname': value['lastname'],
|
|
96
|
+
'email': value['email'],
|
|
97
|
+
'phone': value['phone'],
|
|
98
|
+
'country': value['country'],
|
|
99
|
+
'city': value['city'],
|
|
100
|
+
'postalCode': value['postalCode'],
|
|
101
|
+
'address': value['address'],
|
|
102
|
+
'locale': value['locale'],
|
|
103
|
+
'companyName': value['companyName'],
|
|
104
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
exports.OrderDtoToJSON = OrderDtoToJSON;
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import type { OrderListItemDtoBasePrice } from './OrderListItemDtoBasePrice';
|
|
13
|
+
import type { OrderListItemDtoDomainInformation } from './OrderListItemDtoDomainInformation';
|
|
14
|
+
import type { OrderListItemDtoBuyerInformation } from './OrderListItemDtoBuyerInformation';
|
|
15
|
+
import type { OrderListItemDtoSellerAccount } from './OrderListItemDtoSellerAccount';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrderListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* The order ID
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof OrderListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
* The order status
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderListItemDto
|
|
32
|
+
*/
|
|
33
|
+
status: OrderListItemDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
* The order creation date
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof OrderListItemDto
|
|
38
|
+
*/
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
/**
|
|
41
|
+
* The order domain information
|
|
42
|
+
* @type {OrderListItemDtoDomainInformation}
|
|
43
|
+
* @memberof OrderListItemDto
|
|
44
|
+
*/
|
|
45
|
+
domain: OrderListItemDtoDomainInformation;
|
|
46
|
+
/**
|
|
47
|
+
* The order seller information
|
|
48
|
+
* @type {OrderListItemDtoSellerAccount}
|
|
49
|
+
* @memberof OrderListItemDto
|
|
50
|
+
*/
|
|
51
|
+
sellerAccount: OrderListItemDtoSellerAccount;
|
|
52
|
+
/**
|
|
53
|
+
* The order buyer information
|
|
54
|
+
* @type {OrderListItemDtoBuyerInformation}
|
|
55
|
+
* @memberof OrderListItemDto
|
|
56
|
+
*/
|
|
57
|
+
buyerInformation: OrderListItemDtoBuyerInformation;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {OrderListItemDtoBasePrice}
|
|
61
|
+
* @memberof OrderListItemDto
|
|
62
|
+
*/
|
|
63
|
+
basePrice: OrderListItemDtoBasePrice | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const OrderListItemDtoStatusEnum: {
|
|
69
|
+
readonly OPEN: "open";
|
|
70
|
+
readonly PAID: "paid";
|
|
71
|
+
};
|
|
72
|
+
export type OrderListItemDtoStatusEnum = typeof OrderListItemDtoStatusEnum[keyof typeof OrderListItemDtoStatusEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the OrderListItemDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfOrderListItemDto(value: object): value is OrderListItemDto;
|
|
77
|
+
export declare function OrderListItemDtoFromJSON(json: any): OrderListItemDto;
|
|
78
|
+
export declare function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDto;
|
|
79
|
+
export declare function OrderListItemDtoToJSON(value?: OrderListItemDto | null): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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.OrderListItemDtoToJSON = exports.OrderListItemDtoFromJSONTyped = exports.OrderListItemDtoFromJSON = exports.instanceOfOrderListItemDto = exports.OrderListItemDtoStatusEnum = void 0;
|
|
17
|
+
var OrderListItemDtoBasePrice_1 = require("./OrderListItemDtoBasePrice");
|
|
18
|
+
var OrderListItemDtoDomainInformation_1 = require("./OrderListItemDtoDomainInformation");
|
|
19
|
+
var OrderListItemDtoBuyerInformation_1 = require("./OrderListItemDtoBuyerInformation");
|
|
20
|
+
var OrderListItemDtoSellerAccount_1 = require("./OrderListItemDtoSellerAccount");
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.OrderListItemDtoStatusEnum = {
|
|
25
|
+
OPEN: 'open',
|
|
26
|
+
PAID: 'paid'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the OrderListItemDto interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfOrderListItemDto(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
exports.instanceOfOrderListItemDto = instanceOfOrderListItemDto;
|
|
49
|
+
function OrderListItemDtoFromJSON(json) {
|
|
50
|
+
return OrderListItemDtoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
exports.OrderListItemDtoFromJSON = OrderListItemDtoFromJSON;
|
|
53
|
+
function OrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
61
|
+
'domain': (0, OrderListItemDtoDomainInformation_1.OrderListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
62
|
+
'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
63
|
+
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
|
|
64
|
+
'basePrice': (0, OrderListItemDtoBasePrice_1.OrderListItemDtoBasePriceFromJSON)(json['basePrice']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.OrderListItemDtoFromJSONTyped = OrderListItemDtoFromJSONTyped;
|
|
68
|
+
function OrderListItemDtoToJSON(value) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
76
|
+
'domain': (0, OrderListItemDtoDomainInformation_1.OrderListItemDtoDomainInformationToJSON)(value['domain']),
|
|
77
|
+
'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
78
|
+
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
|
|
79
|
+
'basePrice': (0, OrderListItemDtoBasePrice_1.OrderListItemDtoBasePriceToJSON)(value['basePrice']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
exports.OrderListItemDtoToJSON = OrderListItemDtoToJSON;
|
|
@@ -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
|
+
* The order base price
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OrderListItemDtoBasePrice
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderListItemDtoBasePrice {
|
|
18
|
+
/**
|
|
19
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof OrderListItemDtoBasePrice
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Three letter ISO currency code
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderListItemDtoBasePrice
|
|
28
|
+
*/
|
|
29
|
+
currencyCode: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the OrderListItemDtoBasePrice interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfOrderListItemDtoBasePrice(value: object): value is OrderListItemDtoBasePrice;
|
|
35
|
+
export declare function OrderListItemDtoBasePriceFromJSON(json: any): OrderListItemDtoBasePrice;
|
|
36
|
+
export declare function OrderListItemDtoBasePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoBasePrice;
|
|
37
|
+
export declare function OrderListItemDtoBasePriceToJSON(value?: OrderListItemDtoBasePrice | 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.OrderListItemDtoBasePriceToJSON = exports.OrderListItemDtoBasePriceFromJSONTyped = exports.OrderListItemDtoBasePriceFromJSON = exports.instanceOfOrderListItemDtoBasePrice = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the OrderListItemDtoBasePrice interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfOrderListItemDtoBasePrice(value) {
|
|
21
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfOrderListItemDtoBasePrice = instanceOfOrderListItemDtoBasePrice;
|
|
28
|
+
function OrderListItemDtoBasePriceFromJSON(json) {
|
|
29
|
+
return OrderListItemDtoBasePriceFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.OrderListItemDtoBasePriceFromJSON = OrderListItemDtoBasePriceFromJSON;
|
|
32
|
+
function OrderListItemDtoBasePriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'amount': json['amount'],
|
|
38
|
+
'currencyCode': json['currencyCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.OrderListItemDtoBasePriceFromJSONTyped = OrderListItemDtoBasePriceFromJSONTyped;
|
|
42
|
+
function OrderListItemDtoBasePriceToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'amount': value['amount'],
|
|
48
|
+
'currencyCode': value['currencyCode'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.OrderListItemDtoBasePriceToJSON = OrderListItemDtoBasePriceToJSON;
|
|
@@ -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;
|