@randock/nameshift-api-client 0.0.98 → 0.0.100
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 +3 -1
- package/README.md +3 -3
- package/dist/apis/OrdersPublicApi.d.ts +1 -12
- package/dist/apis/OrdersPublicApi.js +1 -45
- package/dist/models/CreateOrderInput.d.ts +46 -3
- package/dist/models/CreateOrderInput.js +20 -11
- package/dist/models/OrderCompanyInfoDto.d.ts +38 -0
- package/dist/models/OrderCompanyInfoDto.js +51 -0
- package/dist/models/OrderCompanyTaxIdDto.d.ts +43 -0
- package/dist/models/OrderCompanyTaxIdDto.js +54 -0
- package/dist/models/OrderDto.d.ts +6 -4
- package/dist/models/OrderDto.js +8 -6
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -9
- package/dist/models/OrderListItemDtoBuyerInformation.js +4 -7
- package/dist/models/OrderTransactionDto.d.ts +50 -0
- package/dist/models/OrderTransactionDto.js +61 -0
- package/dist/models/UpdateOrderInput.d.ts +46 -3
- package/dist/models/UpdateOrderInput.js +20 -11
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/apis/OrdersPublicApi.ts +1 -41
- package/src/models/CreateOrderInput.ts +71 -11
- package/src/models/OrderCompanyInfoDto.ts +77 -0
- package/src/models/OrderCompanyTaxIdDto.ts +79 -0
- package/src/models/OrderDto.ts +22 -10
- package/src/models/OrderListItemDtoBuyerInformation.ts +12 -15
- package/src/models/OrderTransactionDto.ts +89 -0
- package/src/models/UpdateOrderInput.ts +71 -11
- package/src/models/index.ts +3 -1
- package/dist/models/OrderCheckoutSessionDto.d.ts +0 -31
- package/dist/models/OrderCheckoutSessionDto.js +0 -46
- package/src/models/OrderCheckoutSessionDto.ts +0 -61
package/.openapi-generator/FILES
CHANGED
|
@@ -88,13 +88,15 @@ src/models/LoginInput.ts
|
|
|
88
88
|
src/models/MoneyDto.ts
|
|
89
89
|
src/models/NotFoundException.ts
|
|
90
90
|
src/models/ObjectId.ts
|
|
91
|
-
src/models/
|
|
91
|
+
src/models/OrderCompanyInfoDto.ts
|
|
92
|
+
src/models/OrderCompanyTaxIdDto.ts
|
|
92
93
|
src/models/OrderDto.ts
|
|
93
94
|
src/models/OrderListItemDto.ts
|
|
94
95
|
src/models/OrderListItemDtoBuyerInformation.ts
|
|
95
96
|
src/models/OrderListItemDtoDomainInformation.ts
|
|
96
97
|
src/models/OrderListItemDtoSellerAccount.ts
|
|
97
98
|
src/models/OrderTaxDto.ts
|
|
99
|
+
src/models/OrderTransactionDto.ts
|
|
98
100
|
src/models/PaginateResponse.ts
|
|
99
101
|
src/models/PaginateResponseLinks.ts
|
|
100
102
|
src/models/PaginateResponseMeta.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.100
|
|
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.100 --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
|
+
d76bdca92abb38064d62315ee94e39223c304decb4d7818a2be73291cab20aa1b926a33fb94662bbadbf3ccbbcc1f7e7
|
|
@@ -10,16 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateOrderInput, ObjectId,
|
|
13
|
+
import type { CreateOrderInput, ObjectId, OrderDto, UpdateOrderInput } from '../models/index';
|
|
14
14
|
export interface OrdersPublicApiCreateOrderRequest {
|
|
15
15
|
createOrderInput: CreateOrderInput;
|
|
16
16
|
}
|
|
17
17
|
export interface OrdersPublicApiGetOrderRequest {
|
|
18
18
|
orderId: string;
|
|
19
19
|
}
|
|
20
|
-
export interface OrdersPublicApiGetOrderCheckoutSessionRequest {
|
|
21
|
-
orderId: string;
|
|
22
|
-
}
|
|
23
20
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
24
21
|
orderId: string;
|
|
25
22
|
updateOrderInput: UpdateOrderInput;
|
|
@@ -44,14 +41,6 @@ export declare class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
44
41
|
*
|
|
45
42
|
*/
|
|
46
43
|
getOrder(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderDto>;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
getOrderCheckoutSessionRaw(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderCheckoutSessionDto>>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
getOrderCheckoutSession(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderCheckoutSessionDto>;
|
|
55
44
|
/**
|
|
56
45
|
*
|
|
57
46
|
*/
|
|
@@ -165,50 +165,6 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
OrdersPublicApi.prototype.getOrderCheckoutSessionRaw = function (requestParameters, initOverrides) {
|
|
172
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
-
var queryParameters, headerParameters, response;
|
|
174
|
-
return __generator(this, function (_a) {
|
|
175
|
-
switch (_a.label) {
|
|
176
|
-
case 0:
|
|
177
|
-
if (requestParameters['orderId'] == null) {
|
|
178
|
-
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling getOrderCheckoutSession().');
|
|
179
|
-
}
|
|
180
|
-
queryParameters = {};
|
|
181
|
-
headerParameters = {};
|
|
182
|
-
return [4 /*yield*/, this.request({
|
|
183
|
-
path: "/orders/{orderId}/checkout-session".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
184
|
-
method: 'GET',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
}, initOverrides)];
|
|
188
|
-
case 1:
|
|
189
|
-
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderCheckoutSessionDtoFromJSON)(jsonValue); })];
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
*/
|
|
198
|
-
OrdersPublicApi.prototype.getOrderCheckoutSession = function (requestParameters, initOverrides) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var response;
|
|
201
|
-
return __generator(this, function (_a) {
|
|
202
|
-
switch (_a.label) {
|
|
203
|
-
case 0: return [4 /*yield*/, this.getOrderCheckoutSessionRaw(requestParameters, initOverrides)];
|
|
204
|
-
case 1:
|
|
205
|
-
response = _a.sent();
|
|
206
|
-
return [4 /*yield*/, response.value()];
|
|
207
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
168
|
/**
|
|
213
169
|
*
|
|
214
170
|
*/
|
|
@@ -229,7 +185,7 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
229
185
|
headerParameters['Content-Type'] = 'application/json';
|
|
230
186
|
return [4 /*yield*/, this.request({
|
|
231
187
|
path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
232
|
-
method: '
|
|
188
|
+
method: 'PATCH',
|
|
233
189
|
headers: headerParameters,
|
|
234
190
|
query: queryParameters,
|
|
235
191
|
body: (0, index_1.UpdateOrderInputToJSON)(requestParameters['updateOrderInput']),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -38,19 +39,61 @@ export interface CreateOrderInput {
|
|
|
38
39
|
* @type {string}
|
|
39
40
|
* @memberof CreateOrderInput
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
email?: string;
|
|
42
43
|
/**
|
|
43
44
|
*
|
|
44
45
|
* @type {string}
|
|
45
46
|
* @memberof CreateOrderInput
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
+
firstName?: string | null;
|
|
48
49
|
/**
|
|
49
50
|
*
|
|
50
51
|
* @type {string}
|
|
51
52
|
* @memberof CreateOrderInput
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
lastName?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CreateOrderInput
|
|
59
|
+
*/
|
|
60
|
+
addressCountryCode?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CreateOrderInput
|
|
65
|
+
*/
|
|
66
|
+
addressStateCode?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CreateOrderInput
|
|
71
|
+
*/
|
|
72
|
+
addressLine1?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CreateOrderInput
|
|
77
|
+
*/
|
|
78
|
+
addressLine2?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CreateOrderInput
|
|
83
|
+
*/
|
|
84
|
+
addressPostalCode?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CreateOrderInput
|
|
89
|
+
*/
|
|
90
|
+
addressCity?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {OrderCompanyInfoDto}
|
|
94
|
+
* @memberof CreateOrderInput
|
|
95
|
+
*/
|
|
96
|
+
companyInfo?: OrderCompanyInfoDto | null;
|
|
54
97
|
}
|
|
55
98
|
/**
|
|
56
99
|
* Check if a given object implements the CreateOrderInput interface.
|
|
@@ -17,6 +17,7 @@ exports.instanceOfCreateOrderInput = instanceOfCreateOrderInput;
|
|
|
17
17
|
exports.CreateOrderInputFromJSON = CreateOrderInputFromJSON;
|
|
18
18
|
exports.CreateOrderInputFromJSONTyped = CreateOrderInputFromJSONTyped;
|
|
19
19
|
exports.CreateOrderInputToJSON = CreateOrderInputToJSON;
|
|
20
|
+
var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
|
|
20
21
|
/**
|
|
21
22
|
* Check if a given object implements the CreateOrderInput interface.
|
|
22
23
|
*/
|
|
@@ -27,12 +28,6 @@ function instanceOfCreateOrderInput(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
29
30
|
return false;
|
|
30
|
-
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
35
|
-
return false;
|
|
36
31
|
return true;
|
|
37
32
|
}
|
|
38
33
|
function CreateOrderInputFromJSON(json) {
|
|
@@ -46,9 +41,16 @@ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
41
|
'leadId': json['leadId'],
|
|
47
42
|
'locale': json['locale'],
|
|
48
43
|
'domainName': json['domainName'],
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
44
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
45
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
46
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
47
|
+
'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
|
|
48
|
+
'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
|
|
49
|
+
'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
|
|
50
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
51
|
+
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
52
|
+
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
53
|
+
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
function CreateOrderInputToJSON(value) {
|
|
@@ -59,8 +61,15 @@ function CreateOrderInputToJSON(value) {
|
|
|
59
61
|
'leadId': value['leadId'],
|
|
60
62
|
'locale': value['locale'],
|
|
61
63
|
'domainName': value['domainName'],
|
|
62
|
-
'firstname': value['firstname'],
|
|
63
|
-
'lastname': value['lastname'],
|
|
64
64
|
'email': value['email'],
|
|
65
|
+
'firstName': value['firstName'],
|
|
66
|
+
'lastName': value['lastName'],
|
|
67
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
68
|
+
'addressStateCode': value['addressStateCode'],
|
|
69
|
+
'addressLine1': value['addressLine1'],
|
|
70
|
+
'addressLine2': value['addressLine2'],
|
|
71
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
72
|
+
'addressCity': value['addressCity'],
|
|
73
|
+
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
65
74
|
};
|
|
66
75
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { OrderCompanyTaxIdDto } from './OrderCompanyTaxIdDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrderCompanyInfoDto
|
|
17
|
+
*/
|
|
18
|
+
export interface OrderCompanyInfoDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OrderCompanyInfoDto
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {OrderCompanyTaxIdDto}
|
|
28
|
+
* @memberof OrderCompanyInfoDto
|
|
29
|
+
*/
|
|
30
|
+
taxId: OrderCompanyTaxIdDto;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the OrderCompanyInfoDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfOrderCompanyInfoDto(value: object): value is OrderCompanyInfoDto;
|
|
36
|
+
export declare function OrderCompanyInfoDtoFromJSON(json: any): OrderCompanyInfoDto;
|
|
37
|
+
export declare function OrderCompanyInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCompanyInfoDto;
|
|
38
|
+
export declare function OrderCompanyInfoDtoToJSON(value?: OrderCompanyInfoDto | 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.instanceOfOrderCompanyInfoDto = instanceOfOrderCompanyInfoDto;
|
|
17
|
+
exports.OrderCompanyInfoDtoFromJSON = OrderCompanyInfoDtoFromJSON;
|
|
18
|
+
exports.OrderCompanyInfoDtoFromJSONTyped = OrderCompanyInfoDtoFromJSONTyped;
|
|
19
|
+
exports.OrderCompanyInfoDtoToJSON = OrderCompanyInfoDtoToJSON;
|
|
20
|
+
var OrderCompanyTaxIdDto_1 = require("./OrderCompanyTaxIdDto");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrderCompanyInfoDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrderCompanyInfoDto(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('taxId' in value) || value['taxId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function OrderCompanyInfoDtoFromJSON(json) {
|
|
32
|
+
return OrderCompanyInfoDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function OrderCompanyInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'taxId': (0, OrderCompanyTaxIdDto_1.OrderCompanyTaxIdDtoFromJSON)(json['taxId']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function OrderCompanyInfoDtoToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'taxId': (0, OrderCompanyTaxIdDto_1.OrderCompanyTaxIdDtoToJSON)(value['taxId']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 OrderCompanyTaxIdDto
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderCompanyTaxIdDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrderCompanyTaxIdDto
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderCompanyTaxIdDto
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrderCompanyTaxIdDto
|
|
34
|
+
*/
|
|
35
|
+
countryCode: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the OrderCompanyTaxIdDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfOrderCompanyTaxIdDto(value: object): value is OrderCompanyTaxIdDto;
|
|
41
|
+
export declare function OrderCompanyTaxIdDtoFromJSON(json: any): OrderCompanyTaxIdDto;
|
|
42
|
+
export declare function OrderCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCompanyTaxIdDto;
|
|
43
|
+
export declare function OrderCompanyTaxIdDtoToJSON(value?: OrderCompanyTaxIdDto | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfOrderCompanyTaxIdDto = instanceOfOrderCompanyTaxIdDto;
|
|
17
|
+
exports.OrderCompanyTaxIdDtoFromJSON = OrderCompanyTaxIdDtoFromJSON;
|
|
18
|
+
exports.OrderCompanyTaxIdDtoFromJSONTyped = OrderCompanyTaxIdDtoFromJSONTyped;
|
|
19
|
+
exports.OrderCompanyTaxIdDtoToJSON = OrderCompanyTaxIdDtoToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the OrderCompanyTaxIdDto interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfOrderCompanyTaxIdDto(value) {
|
|
24
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function OrderCompanyTaxIdDtoFromJSON(json) {
|
|
33
|
+
return OrderCompanyTaxIdDtoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function OrderCompanyTaxIdDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'value': json['value'],
|
|
41
|
+
'type': json['type'],
|
|
42
|
+
'countryCode': json['countryCode'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function OrderCompanyTaxIdDtoToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'value': value['value'],
|
|
51
|
+
'type': value['type'],
|
|
52
|
+
'countryCode': value['countryCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { OrderTransactionDto } from './OrderTransactionDto';
|
|
13
14
|
import type { OrderTaxDto } from './OrderTaxDto';
|
|
15
|
+
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
14
16
|
import type { AddressDto } from './AddressDto';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
@@ -86,16 +88,16 @@ export interface OrderDto {
|
|
|
86
88
|
locale: string;
|
|
87
89
|
/**
|
|
88
90
|
*
|
|
89
|
-
* @type {
|
|
91
|
+
* @type {OrderCompanyInfoDto}
|
|
90
92
|
* @memberof OrderDto
|
|
91
93
|
*/
|
|
92
|
-
|
|
94
|
+
companyInfo: OrderCompanyInfoDto | null;
|
|
93
95
|
/**
|
|
94
96
|
*
|
|
95
|
-
* @type {
|
|
97
|
+
* @type {OrderTransactionDto}
|
|
96
98
|
* @memberof OrderDto
|
|
97
99
|
*/
|
|
98
|
-
|
|
100
|
+
transaction: OrderTransactionDto;
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
103
|
* @export
|
package/dist/models/OrderDto.js
CHANGED
|
@@ -19,7 +19,9 @@ exports.OrderDtoFromJSON = OrderDtoFromJSON;
|
|
|
19
19
|
exports.OrderDtoFromJSONTyped = OrderDtoFromJSONTyped;
|
|
20
20
|
exports.OrderDtoToJSON = OrderDtoToJSON;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var OrderTransactionDto_1 = require("./OrderTransactionDto");
|
|
22
23
|
var OrderTaxDto_1 = require("./OrderTaxDto");
|
|
24
|
+
var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
|
|
23
25
|
var AddressDto_1 = require("./AddressDto");
|
|
24
26
|
/**
|
|
25
27
|
* @export
|
|
@@ -54,9 +56,9 @@ function instanceOfOrderDto(value) {
|
|
|
54
56
|
return false;
|
|
55
57
|
if (!('locale' in value) || value['locale'] === undefined)
|
|
56
58
|
return false;
|
|
57
|
-
if (!('
|
|
59
|
+
if (!('companyInfo' in value) || value['companyInfo'] === undefined)
|
|
58
60
|
return false;
|
|
59
|
-
if (!('
|
|
61
|
+
if (!('transaction' in value) || value['transaction'] === undefined)
|
|
60
62
|
return false;
|
|
61
63
|
return true;
|
|
62
64
|
}
|
|
@@ -79,8 +81,8 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
81
|
'phone': json['phone'],
|
|
80
82
|
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
81
83
|
'locale': json['locale'],
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
+
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
85
|
+
'transaction': (0, OrderTransactionDto_1.OrderTransactionDtoFromJSON)(json['transaction']),
|
|
84
86
|
};
|
|
85
87
|
}
|
|
86
88
|
function OrderDtoToJSON(value) {
|
|
@@ -99,7 +101,7 @@ function OrderDtoToJSON(value) {
|
|
|
99
101
|
'phone': value['phone'],
|
|
100
102
|
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
|
101
103
|
'locale': value['locale'],
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
+
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
105
|
+
'transaction': (0, OrderTransactionDto_1.OrderTransactionDtoToJSON)(value['transaction']),
|
|
104
106
|
};
|
|
105
107
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
12
13
|
import type { AddressDto } from './AddressDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -47,17 +48,11 @@ export interface OrderListItemDtoBuyerInformation {
|
|
|
47
48
|
*/
|
|
48
49
|
address: AddressDto | null;
|
|
49
50
|
/**
|
|
50
|
-
* The order buyer company
|
|
51
|
-
* @type {
|
|
52
|
-
* @memberof OrderListItemDtoBuyerInformation
|
|
53
|
-
*/
|
|
54
|
-
companyName: string | null;
|
|
55
|
-
/**
|
|
56
|
-
* The order buyer company VAT number
|
|
57
|
-
* @type {string}
|
|
51
|
+
* The order buyer company information
|
|
52
|
+
* @type {OrderCompanyInfoDto}
|
|
58
53
|
* @memberof OrderListItemDtoBuyerInformation
|
|
59
54
|
*/
|
|
60
|
-
|
|
55
|
+
companyInfo: OrderCompanyInfoDto | null;
|
|
61
56
|
}
|
|
62
57
|
/**
|
|
63
58
|
* Check if a given object implements the OrderListItemDtoBuyerInformation interface.
|
|
@@ -17,6 +17,7 @@ exports.instanceOfOrderListItemDtoBuyerInformation = instanceOfOrderListItemDtoB
|
|
|
17
17
|
exports.OrderListItemDtoBuyerInformationFromJSON = OrderListItemDtoBuyerInformationFromJSON;
|
|
18
18
|
exports.OrderListItemDtoBuyerInformationFromJSONTyped = OrderListItemDtoBuyerInformationFromJSONTyped;
|
|
19
19
|
exports.OrderListItemDtoBuyerInformationToJSON = OrderListItemDtoBuyerInformationToJSON;
|
|
20
|
+
var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
|
|
20
21
|
var AddressDto_1 = require("./AddressDto");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the OrderListItemDtoBuyerInformation interface.
|
|
@@ -32,9 +33,7 @@ function instanceOfOrderListItemDtoBuyerInformation(value) {
|
|
|
32
33
|
return false;
|
|
33
34
|
if (!('address' in value) || value['address'] === undefined)
|
|
34
35
|
return false;
|
|
35
|
-
if (!('
|
|
36
|
-
return false;
|
|
37
|
-
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
|
|
36
|
+
if (!('companyInfo' in value) || value['companyInfo'] === undefined)
|
|
38
37
|
return false;
|
|
39
38
|
return true;
|
|
40
39
|
}
|
|
@@ -51,8 +50,7 @@ function OrderListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator
|
|
|
51
50
|
'email': json['email'],
|
|
52
51
|
'phone': json['phone'],
|
|
53
52
|
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
54
|
-
'
|
|
55
|
-
'companyVatNumber': json['companyVatNumber'],
|
|
53
|
+
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
56
54
|
};
|
|
57
55
|
}
|
|
58
56
|
function OrderListItemDtoBuyerInformationToJSON(value) {
|
|
@@ -65,7 +63,6 @@ function OrderListItemDtoBuyerInformationToJSON(value) {
|
|
|
65
63
|
'email': value['email'],
|
|
66
64
|
'phone': value['phone'],
|
|
67
65
|
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
|
68
|
-
'
|
|
69
|
-
'companyVatNumber': value['companyVatNumber'],
|
|
66
|
+
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
70
67
|
};
|
|
71
68
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 OrderTransactionDto
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderTransactionDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrderTransactionDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderTransactionDto
|
|
28
|
+
*/
|
|
29
|
+
gateway: OrderTransactionDtoGatewayEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrderTransactionDto
|
|
34
|
+
*/
|
|
35
|
+
gatewayTransferToken: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const OrderTransactionDtoGatewayEnum: {
|
|
41
|
+
readonly STRIPE: "stripe";
|
|
42
|
+
};
|
|
43
|
+
export type OrderTransactionDtoGatewayEnum = typeof OrderTransactionDtoGatewayEnum[keyof typeof OrderTransactionDtoGatewayEnum];
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the OrderTransactionDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfOrderTransactionDto(value: object): value is OrderTransactionDto;
|
|
48
|
+
export declare function OrderTransactionDtoFromJSON(json: any): OrderTransactionDto;
|
|
49
|
+
export declare function OrderTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderTransactionDto;
|
|
50
|
+
export declare function OrderTransactionDtoToJSON(value?: OrderTransactionDto | null): any;
|