@randock/nameshift-api-client 0.0.97 → 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 +4 -3
- package/README.md +3 -3
- package/dist/apis/OrdersPublicApi.d.ts +1 -12
- package/dist/apis/OrdersPublicApi.js +1 -45
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AccountDto.d.ts +3 -8
- package/dist/models/AccountDto.js +4 -7
- package/dist/models/AccountMetricsDto.d.ts +49 -0
- package/dist/models/AccountMetricsDto.js +58 -0
- package/dist/models/CreateOrderInput.d.ts +34 -3
- package/dist/models/CreateOrderInput.js +16 -11
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +3 -8
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +4 -7
- 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 +4 -2
- package/dist/models/index.js +4 -2
- package/package.json +1 -1
- package/src/apis/OrdersPublicApi.ts +1 -41
- package/src/apis/index.ts +0 -1
- package/src/models/AccountDto.ts +11 -14
- package/src/models/AccountMetricsDto.ts +88 -0
- package/src/models/CreateOrderInput.ts +55 -11
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +11 -14
- 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 +4 -2
- package/dist/apis/DashboardApi.d.ts +0 -26
- package/dist/apis/DashboardApi.js +0 -130
- package/dist/models/DashboardStatsDto.d.ts +0 -43
- package/dist/models/DashboardStatsDto.js +0 -54
- package/dist/models/OrderCheckoutSessionDto.d.ts +0 -31
- package/dist/models/OrderCheckoutSessionDto.js +0 -46
- package/src/apis/DashboardApi.ts +0 -67
- package/src/models/DashboardStatsDto.ts +0 -79
- package/src/models/OrderCheckoutSessionDto.ts +0 -61
|
@@ -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;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.OrderTransactionDtoGatewayEnum = void 0;
|
|
17
|
+
exports.instanceOfOrderTransactionDto = instanceOfOrderTransactionDto;
|
|
18
|
+
exports.OrderTransactionDtoFromJSON = OrderTransactionDtoFromJSON;
|
|
19
|
+
exports.OrderTransactionDtoFromJSONTyped = OrderTransactionDtoFromJSONTyped;
|
|
20
|
+
exports.OrderTransactionDtoToJSON = OrderTransactionDtoToJSON;
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.OrderTransactionDtoGatewayEnum = {
|
|
25
|
+
STRIPE: 'stripe'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the OrderTransactionDto interface.
|
|
29
|
+
*/
|
|
30
|
+
function instanceOfOrderTransactionDto(value) {
|
|
31
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('gateway' in value) || value['gateway'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function OrderTransactionDtoFromJSON(json) {
|
|
40
|
+
return OrderTransactionDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function OrderTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'gateway': json['gateway'],
|
|
49
|
+
'gatewayTransferToken': json['gatewayTransferToken'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function OrderTransactionDtoToJSON(value) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'gateway': value['gateway'],
|
|
59
|
+
'gatewayTransferToken': value['gatewayTransferToken'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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
|
|
@@ -20,19 +21,49 @@ export interface UpdateOrderInput {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof UpdateOrderInput
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
email?: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof UpdateOrderInput
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
+
addressCountryCode?: string;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
* @type {string}
|
|
33
34
|
* @memberof UpdateOrderInput
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
addressStateCode?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateOrderInput
|
|
41
|
+
*/
|
|
42
|
+
addressLine1?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateOrderInput
|
|
47
|
+
*/
|
|
48
|
+
addressLine2?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateOrderInput
|
|
53
|
+
*/
|
|
54
|
+
addressPostalCode?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof UpdateOrderInput
|
|
59
|
+
*/
|
|
60
|
+
addressCity?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {OrderCompanyInfoDto}
|
|
64
|
+
* @memberof UpdateOrderInput
|
|
65
|
+
*/
|
|
66
|
+
companyInfo?: OrderCompanyInfoDto | null;
|
|
36
67
|
}
|
|
37
68
|
/**
|
|
38
69
|
* Check if a given object implements the UpdateOrderInput interface.
|
|
@@ -17,16 +17,11 @@ exports.instanceOfUpdateOrderInput = instanceOfUpdateOrderInput;
|
|
|
17
17
|
exports.UpdateOrderInputFromJSON = UpdateOrderInputFromJSON;
|
|
18
18
|
exports.UpdateOrderInputFromJSONTyped = UpdateOrderInputFromJSONTyped;
|
|
19
19
|
exports.UpdateOrderInputToJSON = UpdateOrderInputToJSON;
|
|
20
|
+
var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
|
|
20
21
|
/**
|
|
21
22
|
* Check if a given object implements the UpdateOrderInput interface.
|
|
22
23
|
*/
|
|
23
24
|
function instanceOfUpdateOrderInput(value) {
|
|
24
|
-
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
-
return false;
|
|
30
25
|
return true;
|
|
31
26
|
}
|
|
32
27
|
function UpdateOrderInputFromJSON(json) {
|
|
@@ -37,9 +32,14 @@ function UpdateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
32
|
return json;
|
|
38
33
|
}
|
|
39
34
|
return {
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
35
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
36
|
+
'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
|
|
37
|
+
'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
|
|
38
|
+
'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
|
|
39
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
40
|
+
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
41
|
+
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
42
|
+
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function UpdateOrderInputToJSON(value) {
|
|
@@ -47,8 +47,13 @@ function UpdateOrderInputToJSON(value) {
|
|
|
47
47
|
return value;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
-
'firstname': value['firstname'],
|
|
51
|
-
'lastname': value['lastname'],
|
|
52
50
|
'email': value['email'],
|
|
51
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
52
|
+
'addressStateCode': value['addressStateCode'],
|
|
53
|
+
'addressLine1': value['addressLine1'],
|
|
54
|
+
'addressLine2': value['addressLine2'],
|
|
55
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
56
|
+
'addressCity': value['addressCity'],
|
|
57
|
+
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
53
58
|
};
|
|
54
59
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './AccountDto';
|
|
2
|
+
export * from './AccountMetricsDto';
|
|
2
3
|
export * from './AccountPaymentProviderSessionDto';
|
|
3
4
|
export * from './AccountSettingsInput';
|
|
4
5
|
export * from './AddressDto';
|
|
@@ -21,7 +22,6 @@ export * from './CreateBuyerLeadMessageInput';
|
|
|
21
22
|
export * from './CreateLeadInput';
|
|
22
23
|
export * from './CreateLeadMessageInput';
|
|
23
24
|
export * from './CreateOrderInput';
|
|
24
|
-
export * from './DashboardStatsDto';
|
|
25
25
|
export * from './DeleteDomainsInput';
|
|
26
26
|
export * from './DomainDto';
|
|
27
27
|
export * from './DomainSellerDto';
|
|
@@ -68,13 +68,15 @@ export * from './LoginInput';
|
|
|
68
68
|
export * from './MoneyDto';
|
|
69
69
|
export * from './NotFoundException';
|
|
70
70
|
export * from './ObjectId';
|
|
71
|
-
export * from './
|
|
71
|
+
export * from './OrderCompanyInfoDto';
|
|
72
|
+
export * from './OrderCompanyTaxIdDto';
|
|
72
73
|
export * from './OrderDto';
|
|
73
74
|
export * from './OrderListItemDto';
|
|
74
75
|
export * from './OrderListItemDtoBuyerInformation';
|
|
75
76
|
export * from './OrderListItemDtoDomainInformation';
|
|
76
77
|
export * from './OrderListItemDtoSellerAccount';
|
|
77
78
|
export * from './OrderTaxDto';
|
|
79
|
+
export * from './OrderTransactionDto';
|
|
78
80
|
export * from './PaginateResponse';
|
|
79
81
|
export * from './PaginateResponseLinks';
|
|
80
82
|
export * from './PaginateResponseMeta';
|
package/dist/models/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountDto"), exports);
|
|
20
|
+
__exportStar(require("./AccountMetricsDto"), exports);
|
|
20
21
|
__exportStar(require("./AccountPaymentProviderSessionDto"), exports);
|
|
21
22
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
22
23
|
__exportStar(require("./AddressDto"), exports);
|
|
@@ -39,7 +40,6 @@ __exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
|
39
40
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
40
41
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
41
42
|
__exportStar(require("./CreateOrderInput"), exports);
|
|
42
|
-
__exportStar(require("./DashboardStatsDto"), exports);
|
|
43
43
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
44
44
|
__exportStar(require("./DomainDto"), exports);
|
|
45
45
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
@@ -86,13 +86,15 @@ __exportStar(require("./LoginInput"), exports);
|
|
|
86
86
|
__exportStar(require("./MoneyDto"), exports);
|
|
87
87
|
__exportStar(require("./NotFoundException"), exports);
|
|
88
88
|
__exportStar(require("./ObjectId"), exports);
|
|
89
|
-
__exportStar(require("./
|
|
89
|
+
__exportStar(require("./OrderCompanyInfoDto"), exports);
|
|
90
|
+
__exportStar(require("./OrderCompanyTaxIdDto"), exports);
|
|
90
91
|
__exportStar(require("./OrderDto"), exports);
|
|
91
92
|
__exportStar(require("./OrderListItemDto"), exports);
|
|
92
93
|
__exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
|
|
93
94
|
__exportStar(require("./OrderListItemDtoDomainInformation"), exports);
|
|
94
95
|
__exportStar(require("./OrderListItemDtoSellerAccount"), exports);
|
|
95
96
|
__exportStar(require("./OrderTaxDto"), exports);
|
|
97
|
+
__exportStar(require("./OrderTransactionDto"), exports);
|
|
96
98
|
__exportStar(require("./PaginateResponse"), exports);
|
|
97
99
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
98
100
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
package/package.json
CHANGED
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
CreateOrderInput,
|
|
20
20
|
NotFoundException,
|
|
21
21
|
ObjectId,
|
|
22
|
-
OrderCheckoutSessionDto,
|
|
23
22
|
OrderDto,
|
|
24
23
|
UpdateOrderInput,
|
|
25
24
|
ValidationException,
|
|
@@ -33,8 +32,6 @@ import {
|
|
|
33
32
|
NotFoundExceptionToJSON,
|
|
34
33
|
ObjectIdFromJSON,
|
|
35
34
|
ObjectIdToJSON,
|
|
36
|
-
OrderCheckoutSessionDtoFromJSON,
|
|
37
|
-
OrderCheckoutSessionDtoToJSON,
|
|
38
35
|
OrderDtoFromJSON,
|
|
39
36
|
OrderDtoToJSON,
|
|
40
37
|
UpdateOrderInputFromJSON,
|
|
@@ -51,10 +48,6 @@ export interface OrdersPublicApiGetOrderRequest {
|
|
|
51
48
|
orderId: string;
|
|
52
49
|
}
|
|
53
50
|
|
|
54
|
-
export interface OrdersPublicApiGetOrderCheckoutSessionRequest {
|
|
55
|
-
orderId: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
51
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
59
52
|
orderId: string;
|
|
60
53
|
updateOrderInput: UpdateOrderInput;
|
|
@@ -134,39 +127,6 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
134
127
|
return await response.value();
|
|
135
128
|
}
|
|
136
129
|
|
|
137
|
-
/**
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
async getOrderCheckoutSessionRaw(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderCheckoutSessionDto>> {
|
|
141
|
-
if (requestParameters['orderId'] == null) {
|
|
142
|
-
throw new runtime.RequiredError(
|
|
143
|
-
'orderId',
|
|
144
|
-
'Required parameter "orderId" was null or undefined when calling getOrderCheckoutSession().'
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
const queryParameters: any = {};
|
|
149
|
-
|
|
150
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
-
|
|
152
|
-
const response = await this.request({
|
|
153
|
-
path: `/orders/{orderId}/checkout-session`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
154
|
-
method: 'GET',
|
|
155
|
-
headers: headerParameters,
|
|
156
|
-
query: queryParameters,
|
|
157
|
-
}, initOverrides);
|
|
158
|
-
|
|
159
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrderCheckoutSessionDtoFromJSON(jsonValue));
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
async getOrderCheckoutSession(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderCheckoutSessionDto> {
|
|
166
|
-
const response = await this.getOrderCheckoutSessionRaw(requestParameters, initOverrides);
|
|
167
|
-
return await response.value();
|
|
168
|
-
}
|
|
169
|
-
|
|
170
130
|
/**
|
|
171
131
|
*
|
|
172
132
|
*/
|
|
@@ -193,7 +153,7 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
193
153
|
|
|
194
154
|
const response = await this.request({
|
|
195
155
|
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
196
|
-
method: '
|
|
156
|
+
method: 'PATCH',
|
|
197
157
|
headers: headerParameters,
|
|
198
158
|
query: queryParameters,
|
|
199
159
|
body: UpdateOrderInputToJSON(requestParameters['updateOrderInput']),
|
package/src/apis/index.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './AccountsPublicApi';
|
|
|
5
5
|
export * from './AdminApi';
|
|
6
6
|
export * from './BuyersApi';
|
|
7
7
|
export * from './BuyersPublicApi';
|
|
8
|
-
export * from './DashboardApi';
|
|
9
8
|
export * from './DomainsApi';
|
|
10
9
|
export * from './DomainsPublicApi';
|
|
11
10
|
export * from './LeadsApi';
|
package/src/models/AccountDto.ts
CHANGED
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
PaymentProviderDtoFromJSONTyped,
|
|
20
20
|
PaymentProviderDtoToJSON,
|
|
21
21
|
} from './PaymentProviderDto';
|
|
22
|
+
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
23
|
+
import {
|
|
24
|
+
AccountMetricsDtoFromJSON,
|
|
25
|
+
AccountMetricsDtoFromJSONTyped,
|
|
26
|
+
AccountMetricsDtoToJSON,
|
|
27
|
+
} from './AccountMetricsDto';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
@@ -46,16 +52,10 @@ export interface AccountDto {
|
|
|
46
52
|
name: string;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
|
-
* @type {
|
|
50
|
-
* @memberof AccountDto
|
|
51
|
-
*/
|
|
52
|
-
activeDomainTransfersNumber: number;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
55
|
+
* @type {AccountMetricsDto}
|
|
56
56
|
* @memberof AccountDto
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
metrics: AccountMetricsDto;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {PaymentProviderDto}
|
|
@@ -71,8 +71,7 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
|
|
|
71
71
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
72
72
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
73
73
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
74
|
-
if (!('
|
|
75
|
-
if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
|
|
74
|
+
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
76
75
|
if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
|
|
77
76
|
return true;
|
|
78
77
|
}
|
|
@@ -90,8 +89,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
90
89
|
'id': json['id'],
|
|
91
90
|
'identifier': json['identifier'],
|
|
92
91
|
'name': json['name'],
|
|
93
|
-
'
|
|
94
|
-
'activeLeadsNumber': json['activeLeadsNumber'],
|
|
92
|
+
'metrics': AccountMetricsDtoFromJSON(json['metrics']),
|
|
95
93
|
'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
|
|
96
94
|
};
|
|
97
95
|
}
|
|
@@ -105,8 +103,7 @@ export function AccountDtoToJSON(value?: AccountDto | null): any {
|
|
|
105
103
|
'id': value['id'],
|
|
106
104
|
'identifier': value['identifier'],
|
|
107
105
|
'name': value['name'],
|
|
108
|
-
'
|
|
109
|
-
'activeLeadsNumber': value['activeLeadsNumber'],
|
|
106
|
+
'metrics': AccountMetricsDtoToJSON(value['metrics']),
|
|
110
107
|
'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
|
|
111
108
|
};
|
|
112
109
|
}
|