@randock/nameshift-api-client 0.0.98 → 0.0.99
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 +34 -3
- package/dist/models/CreateOrderInput.js +16 -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 +34 -3
- package/dist/models/UpdateOrderInput.js +16 -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 +55 -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 +55 -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
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
17
|
+
import {
|
|
18
|
+
OrderCompanyInfoDtoFromJSON,
|
|
19
|
+
OrderCompanyInfoDtoFromJSONTyped,
|
|
20
|
+
OrderCompanyInfoDtoToJSON,
|
|
21
|
+
} from './OrderCompanyInfoDto';
|
|
16
22
|
import type { AddressDto } from './AddressDto';
|
|
17
23
|
import {
|
|
18
24
|
AddressDtoFromJSON,
|
|
@@ -57,17 +63,11 @@ export interface OrderListItemDtoBuyerInformation {
|
|
|
57
63
|
*/
|
|
58
64
|
address: AddressDto | null;
|
|
59
65
|
/**
|
|
60
|
-
* The order buyer company
|
|
61
|
-
* @type {
|
|
62
|
-
* @memberof OrderListItemDtoBuyerInformation
|
|
63
|
-
*/
|
|
64
|
-
companyName: string | null;
|
|
65
|
-
/**
|
|
66
|
-
* The order buyer company VAT number
|
|
67
|
-
* @type {string}
|
|
66
|
+
* The order buyer company information
|
|
67
|
+
* @type {OrderCompanyInfoDto}
|
|
68
68
|
* @memberof OrderListItemDtoBuyerInformation
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
companyInfo: OrderCompanyInfoDto | null;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -79,8 +79,7 @@ export function instanceOfOrderListItemDtoBuyerInformation(value: object): value
|
|
|
79
79
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
80
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
81
81
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
82
|
-
if (!('
|
|
83
|
-
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
|
|
82
|
+
if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
|
|
84
83
|
return true;
|
|
85
84
|
}
|
|
86
85
|
|
|
@@ -99,8 +98,7 @@ export function OrderListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreD
|
|
|
99
98
|
'email': json['email'],
|
|
100
99
|
'phone': json['phone'],
|
|
101
100
|
'address': AddressDtoFromJSON(json['address']),
|
|
102
|
-
'
|
|
103
|
-
'companyVatNumber': json['companyVatNumber'],
|
|
101
|
+
'companyInfo': OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
104
102
|
};
|
|
105
103
|
}
|
|
106
104
|
|
|
@@ -115,8 +113,7 @@ export function OrderListItemDtoBuyerInformationToJSON(value?: OrderListItemDtoB
|
|
|
115
113
|
'email': value['email'],
|
|
116
114
|
'phone': value['phone'],
|
|
117
115
|
'address': AddressDtoToJSON(value['address']),
|
|
118
|
-
'
|
|
119
|
-
'companyVatNumber': value['companyVatNumber'],
|
|
116
|
+
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
120
117
|
};
|
|
121
118
|
}
|
|
122
119
|
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrderTransactionDto
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderTransactionDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrderTransactionDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderTransactionDto
|
|
32
|
+
*/
|
|
33
|
+
gateway: OrderTransactionDtoGatewayEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrderTransactionDto
|
|
38
|
+
*/
|
|
39
|
+
gatewayTransferToken: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const OrderTransactionDtoGatewayEnum = {
|
|
47
|
+
STRIPE: 'stripe'
|
|
48
|
+
} as const;
|
|
49
|
+
export type OrderTransactionDtoGatewayEnum = typeof OrderTransactionDtoGatewayEnum[keyof typeof OrderTransactionDtoGatewayEnum];
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the OrderTransactionDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfOrderTransactionDto(value: object): value is OrderTransactionDto {
|
|
56
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
57
|
+
if (!('gateway' in value) || value['gateway'] === undefined) return false;
|
|
58
|
+
if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function OrderTransactionDtoFromJSON(json: any): OrderTransactionDto {
|
|
63
|
+
return OrderTransactionDtoFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function OrderTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderTransactionDto {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'id': json['id'],
|
|
73
|
+
'gateway': json['gateway'],
|
|
74
|
+
'gatewayTransferToken': json['gatewayTransferToken'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function OrderTransactionDtoToJSON(value?: OrderTransactionDto | null): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'id': value['id'],
|
|
85
|
+
'gateway': value['gateway'],
|
|
86
|
+
'gatewayTransferToken': value['gatewayTransferToken'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
17
|
+
import {
|
|
18
|
+
OrderCompanyInfoDtoFromJSON,
|
|
19
|
+
OrderCompanyInfoDtoFromJSONTyped,
|
|
20
|
+
OrderCompanyInfoDtoToJSON,
|
|
21
|
+
} from './OrderCompanyInfoDto';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -24,28 +31,55 @@ export interface UpdateOrderInput {
|
|
|
24
31
|
* @type {string}
|
|
25
32
|
* @memberof UpdateOrderInput
|
|
26
33
|
*/
|
|
27
|
-
|
|
34
|
+
email?: string;
|
|
28
35
|
/**
|
|
29
36
|
*
|
|
30
37
|
* @type {string}
|
|
31
38
|
* @memberof UpdateOrderInput
|
|
32
39
|
*/
|
|
33
|
-
|
|
40
|
+
addressCountryCode?: string;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
43
|
* @type {string}
|
|
37
44
|
* @memberof UpdateOrderInput
|
|
38
45
|
*/
|
|
39
|
-
|
|
46
|
+
addressStateCode?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof UpdateOrderInput
|
|
51
|
+
*/
|
|
52
|
+
addressLine1?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof UpdateOrderInput
|
|
57
|
+
*/
|
|
58
|
+
addressLine2?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof UpdateOrderInput
|
|
63
|
+
*/
|
|
64
|
+
addressPostalCode?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof UpdateOrderInput
|
|
69
|
+
*/
|
|
70
|
+
addressCity?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {OrderCompanyInfoDto}
|
|
74
|
+
* @memberof UpdateOrderInput
|
|
75
|
+
*/
|
|
76
|
+
companyInfo?: OrderCompanyInfoDto | null;
|
|
40
77
|
}
|
|
41
78
|
|
|
42
79
|
/**
|
|
43
80
|
* Check if a given object implements the UpdateOrderInput interface.
|
|
44
81
|
*/
|
|
45
82
|
export function instanceOfUpdateOrderInput(value: object): value is UpdateOrderInput {
|
|
46
|
-
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
47
|
-
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
48
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
49
83
|
return true;
|
|
50
84
|
}
|
|
51
85
|
|
|
@@ -59,9 +93,14 @@ export function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
59
93
|
}
|
|
60
94
|
return {
|
|
61
95
|
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
96
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
97
|
+
'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
|
|
98
|
+
'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
|
|
99
|
+
'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
|
|
100
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
101
|
+
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
102
|
+
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
103
|
+
'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
65
104
|
};
|
|
66
105
|
}
|
|
67
106
|
|
|
@@ -71,9 +110,14 @@ export function UpdateOrderInputToJSON(value?: UpdateOrderInput | null): any {
|
|
|
71
110
|
}
|
|
72
111
|
return {
|
|
73
112
|
|
|
74
|
-
'firstname': value['firstname'],
|
|
75
|
-
'lastname': value['lastname'],
|
|
76
113
|
'email': value['email'],
|
|
114
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
115
|
+
'addressStateCode': value['addressStateCode'],
|
|
116
|
+
'addressLine1': value['addressLine1'],
|
|
117
|
+
'addressLine2': value['addressLine2'],
|
|
118
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
119
|
+
'addressCity': value['addressCity'],
|
|
120
|
+
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
77
121
|
};
|
|
78
122
|
}
|
|
79
123
|
|
package/src/models/index.ts
CHANGED
|
@@ -70,13 +70,15 @@ export * from './LoginInput';
|
|
|
70
70
|
export * from './MoneyDto';
|
|
71
71
|
export * from './NotFoundException';
|
|
72
72
|
export * from './ObjectId';
|
|
73
|
-
export * from './
|
|
73
|
+
export * from './OrderCompanyInfoDto';
|
|
74
|
+
export * from './OrderCompanyTaxIdDto';
|
|
74
75
|
export * from './OrderDto';
|
|
75
76
|
export * from './OrderListItemDto';
|
|
76
77
|
export * from './OrderListItemDtoBuyerInformation';
|
|
77
78
|
export * from './OrderListItemDtoDomainInformation';
|
|
78
79
|
export * from './OrderListItemDtoSellerAccount';
|
|
79
80
|
export * from './OrderTaxDto';
|
|
81
|
+
export * from './OrderTransactionDto';
|
|
80
82
|
export * from './PaginateResponse';
|
|
81
83
|
export * from './PaginateResponseLinks';
|
|
82
84
|
export * from './PaginateResponseMeta';
|
|
@@ -1,31 +0,0 @@
|
|
|
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 OrderCheckoutSessionDto
|
|
16
|
-
*/
|
|
17
|
-
export interface OrderCheckoutSessionDto {
|
|
18
|
-
/**
|
|
19
|
-
* Order payment provider checkout session token
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof OrderCheckoutSessionDto
|
|
22
|
-
*/
|
|
23
|
-
accessToken: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the OrderCheckoutSessionDto interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfOrderCheckoutSessionDto(value: object): value is OrderCheckoutSessionDto;
|
|
29
|
-
export declare function OrderCheckoutSessionDtoFromJSON(json: any): OrderCheckoutSessionDto;
|
|
30
|
-
export declare function OrderCheckoutSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCheckoutSessionDto;
|
|
31
|
-
export declare function OrderCheckoutSessionDtoToJSON(value?: OrderCheckoutSessionDto | null): any;
|
|
@@ -1,46 +0,0 @@
|
|
|
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.instanceOfOrderCheckoutSessionDto = instanceOfOrderCheckoutSessionDto;
|
|
17
|
-
exports.OrderCheckoutSessionDtoFromJSON = OrderCheckoutSessionDtoFromJSON;
|
|
18
|
-
exports.OrderCheckoutSessionDtoFromJSONTyped = OrderCheckoutSessionDtoFromJSONTyped;
|
|
19
|
-
exports.OrderCheckoutSessionDtoToJSON = OrderCheckoutSessionDtoToJSON;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the OrderCheckoutSessionDto interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfOrderCheckoutSessionDto(value) {
|
|
24
|
-
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function OrderCheckoutSessionDtoFromJSON(json) {
|
|
29
|
-
return OrderCheckoutSessionDtoFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function OrderCheckoutSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'accessToken': json['accessToken'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function OrderCheckoutSessionDtoToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'accessToken': value['accessToken'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Nameshift
|
|
5
|
-
* Nameshift API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface OrderCheckoutSessionDto
|
|
20
|
-
*/
|
|
21
|
-
export interface OrderCheckoutSessionDto {
|
|
22
|
-
/**
|
|
23
|
-
* Order payment provider checkout session token
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof OrderCheckoutSessionDto
|
|
26
|
-
*/
|
|
27
|
-
accessToken: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the OrderCheckoutSessionDto interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfOrderCheckoutSessionDto(value: object): value is OrderCheckoutSessionDto {
|
|
34
|
-
if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function OrderCheckoutSessionDtoFromJSON(json: any): OrderCheckoutSessionDto {
|
|
39
|
-
return OrderCheckoutSessionDtoFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function OrderCheckoutSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCheckoutSessionDto {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'accessToken': json['accessToken'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function OrderCheckoutSessionDtoToJSON(value?: OrderCheckoutSessionDto | null): any {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
|
|
58
|
-
'accessToken': value['accessToken'],
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|