@randock/nameshift-api-client 0.0.106 → 0.0.108
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 -3
- package/README.md +3 -3
- package/dist/models/InvoiceItemDto.d.ts +69 -0
- package/dist/models/{OrderItemDto.js → InvoiceItemDto.js} +13 -13
- package/dist/models/{OrderItemTaxDto.d.ts → InvoiceItemTaxDto.d.ts} +14 -14
- package/dist/models/{OrderItemTaxDto.js → InvoiceItemTaxDto.js} +12 -12
- package/dist/models/InvoiceTransactionDto.d.ts +50 -0
- package/dist/models/{OrderTransactionDto.js → InvoiceTransactionDto.js} +12 -12
- package/dist/models/OrderDto.d.ts +6 -6
- package/dist/models/OrderDto.js +6 -6
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +2 -2
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +3 -3
- package/package.json +1 -1
- package/src/models/{OrderItemDto.ts → InvoiceItemDto.ts} +24 -24
- package/src/models/{OrderItemTaxDto.ts → InvoiceItemTaxDto.ts} +15 -15
- package/src/models/{OrderTransactionDto.ts → InvoiceTransactionDto.ts} +14 -14
- package/src/models/OrderDto.ts +19 -19
- package/src/models/OrderListItemDtoBuyerInformation.ts +2 -2
- package/src/models/index.ts +3 -3
- package/dist/models/OrderItemDto.d.ts +0 -69
- package/dist/models/OrderTransactionDto.d.ts +0 -50
package/.openapi-generator/FILES
CHANGED
|
@@ -77,6 +77,9 @@ src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
|
|
|
77
77
|
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
78
78
|
src/models/InvoiceDomainDto.ts
|
|
79
79
|
src/models/InvoiceDto.ts
|
|
80
|
+
src/models/InvoiceItemDto.ts
|
|
81
|
+
src/models/InvoiceItemTaxDto.ts
|
|
82
|
+
src/models/InvoiceTransactionDto.ts
|
|
80
83
|
src/models/LeadDomainDto.ts
|
|
81
84
|
src/models/LeadDto.ts
|
|
82
85
|
src/models/LeadMessageData.ts
|
|
@@ -95,13 +98,10 @@ src/models/ObjectId.ts
|
|
|
95
98
|
src/models/OrderCompanyInfoDto.ts
|
|
96
99
|
src/models/OrderCompanyTaxIdDto.ts
|
|
97
100
|
src/models/OrderDto.ts
|
|
98
|
-
src/models/OrderItemDto.ts
|
|
99
|
-
src/models/OrderItemTaxDto.ts
|
|
100
101
|
src/models/OrderListItemDto.ts
|
|
101
102
|
src/models/OrderListItemDtoBuyerInformation.ts
|
|
102
103
|
src/models/OrderListItemDtoDomainInformation.ts
|
|
103
104
|
src/models/OrderListItemDtoSellerAccount.ts
|
|
104
|
-
src/models/OrderTransactionDto.ts
|
|
105
105
|
src/models/OwnedDomainDto.ts
|
|
106
106
|
src/models/PaginateResponse.ts
|
|
107
107
|
src/models/PaginateResponseLinks.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.108
|
|
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.108 --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
|
+
00ef6f22a96247ade912d79fae52fa2ddf7067d08aadc34ecf473017497476abfaba62ff9cc0b868edecd0a89d68578a
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
import type { InvoiceItemTaxDto } from './InvoiceItemTaxDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface InvoiceItemDto
|
|
18
|
+
*/
|
|
19
|
+
export interface InvoiceItemDto {
|
|
20
|
+
/**
|
|
21
|
+
* The uuid for this order.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof InvoiceItemDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {object}
|
|
29
|
+
* @memberof InvoiceItemDto
|
|
30
|
+
*/
|
|
31
|
+
orderId: object;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof InvoiceItemDto
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {MoneyDto}
|
|
41
|
+
* @memberof InvoiceItemDto
|
|
42
|
+
*/
|
|
43
|
+
basePrice: MoneyDto;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {MoneyDto}
|
|
47
|
+
* @memberof InvoiceItemDto
|
|
48
|
+
*/
|
|
49
|
+
totalPrice: MoneyDto;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {MoneyDto}
|
|
53
|
+
* @memberof InvoiceItemDto
|
|
54
|
+
*/
|
|
55
|
+
totalTaxPrice: MoneyDto;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<InvoiceItemTaxDto>}
|
|
59
|
+
* @memberof InvoiceItemDto
|
|
60
|
+
*/
|
|
61
|
+
taxes: Array<InvoiceItemTaxDto>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the InvoiceItemDto interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfInvoiceItemDto(value: object): value is InvoiceItemDto;
|
|
67
|
+
export declare function InvoiceItemDtoFromJSON(json: any): InvoiceItemDto;
|
|
68
|
+
export declare function InvoiceItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItemDto;
|
|
69
|
+
export declare function InvoiceItemDtoToJSON(value?: InvoiceItemDto | null): any;
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
16
|
+
exports.instanceOfInvoiceItemDto = instanceOfInvoiceItemDto;
|
|
17
|
+
exports.InvoiceItemDtoFromJSON = InvoiceItemDtoFromJSON;
|
|
18
|
+
exports.InvoiceItemDtoFromJSONTyped = InvoiceItemDtoFromJSONTyped;
|
|
19
|
+
exports.InvoiceItemDtoToJSON = InvoiceItemDtoToJSON;
|
|
20
20
|
var MoneyDto_1 = require("./MoneyDto");
|
|
21
|
-
var
|
|
21
|
+
var InvoiceItemTaxDto_1 = require("./InvoiceItemTaxDto");
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the InvoiceItemDto interface.
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function instanceOfInvoiceItemDto(value) {
|
|
26
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
if (!('orderId' in value) || value['orderId'] === undefined)
|
|
@@ -39,10 +39,10 @@ function instanceOfOrderItemDto(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function InvoiceItemDtoFromJSON(json) {
|
|
43
|
+
return InvoiceItemDtoFromJSONTyped(json, false);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function InvoiceItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
46
|
if (json == null) {
|
|
47
47
|
return json;
|
|
48
48
|
}
|
|
@@ -53,10 +53,10 @@ function OrderItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
54
54
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
55
55
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
|
|
56
|
-
'taxes': (json['taxes'].map(
|
|
56
|
+
'taxes': (json['taxes'].map(InvoiceItemTaxDto_1.InvoiceItemTaxDtoFromJSON)),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function InvoiceItemDtoToJSON(value) {
|
|
60
60
|
if (value == null) {
|
|
61
61
|
return value;
|
|
62
62
|
}
|
|
@@ -67,6 +67,6 @@ function OrderItemDtoToJSON(value) {
|
|
|
67
67
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
68
68
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
69
69
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
|
|
70
|
-
'taxes': (value['taxes'].map(
|
|
70
|
+
'taxes': (value['taxes'].map(InvoiceItemTaxDto_1.InvoiceItemTaxDtoToJSON)),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -13,38 +13,38 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface InvoiceItemTaxDto
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface InvoiceItemTaxDto {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof InvoiceItemTaxDto
|
|
23
23
|
*/
|
|
24
|
-
reason:
|
|
24
|
+
reason: InvoiceItemTaxDtoReasonEnum;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof InvoiceItemTaxDto
|
|
29
29
|
*/
|
|
30
30
|
type: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {MoneyDto}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof InvoiceItemTaxDto
|
|
35
35
|
*/
|
|
36
36
|
price: MoneyDto;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {number}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof InvoiceItemTaxDto
|
|
41
41
|
*/
|
|
42
42
|
percentage: number;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* @export
|
|
46
46
|
*/
|
|
47
|
-
export declare const
|
|
47
|
+
export declare const InvoiceItemTaxDtoReasonEnum: {
|
|
48
48
|
readonly CUSTOMER_EXEMPT: "customer_exempt";
|
|
49
49
|
readonly NOT_COLLECTING: "not_collecting";
|
|
50
50
|
readonly NOT_SUBJECT_TO_TAX: "not_subject_to_tax";
|
|
@@ -61,11 +61,11 @@ export declare const OrderItemTaxDtoReasonEnum: {
|
|
|
61
61
|
readonly TAXABLE_BASIS_REDUCED: "taxable_basis_reduced";
|
|
62
62
|
readonly ZERO_RATED: "zero_rated";
|
|
63
63
|
};
|
|
64
|
-
export type
|
|
64
|
+
export type InvoiceItemTaxDtoReasonEnum = typeof InvoiceItemTaxDtoReasonEnum[keyof typeof InvoiceItemTaxDtoReasonEnum];
|
|
65
65
|
/**
|
|
66
|
-
* Check if a given object implements the
|
|
66
|
+
* Check if a given object implements the InvoiceItemTaxDto interface.
|
|
67
67
|
*/
|
|
68
|
-
export declare function
|
|
69
|
-
export declare function
|
|
70
|
-
export declare function
|
|
71
|
-
export declare function
|
|
68
|
+
export declare function instanceOfInvoiceItemTaxDto(value: object): value is InvoiceItemTaxDto;
|
|
69
|
+
export declare function InvoiceItemTaxDtoFromJSON(json: any): InvoiceItemTaxDto;
|
|
70
|
+
export declare function InvoiceItemTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItemTaxDto;
|
|
71
|
+
export declare function InvoiceItemTaxDtoToJSON(value?: InvoiceItemTaxDto | null): any;
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.InvoiceItemTaxDtoReasonEnum = void 0;
|
|
17
|
+
exports.instanceOfInvoiceItemTaxDto = instanceOfInvoiceItemTaxDto;
|
|
18
|
+
exports.InvoiceItemTaxDtoFromJSON = InvoiceItemTaxDtoFromJSON;
|
|
19
|
+
exports.InvoiceItemTaxDtoFromJSONTyped = InvoiceItemTaxDtoFromJSONTyped;
|
|
20
|
+
exports.InvoiceItemTaxDtoToJSON = InvoiceItemTaxDtoToJSON;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.InvoiceItemTaxDtoReasonEnum = {
|
|
26
26
|
CUSTOMER_EXEMPT: 'customer_exempt',
|
|
27
27
|
NOT_COLLECTING: 'not_collecting',
|
|
28
28
|
NOT_SUBJECT_TO_TAX: 'not_subject_to_tax',
|
|
@@ -40,9 +40,9 @@ exports.OrderItemTaxDtoReasonEnum = {
|
|
|
40
40
|
ZERO_RATED: 'zero_rated'
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
43
|
+
* Check if a given object implements the InvoiceItemTaxDto interface.
|
|
44
44
|
*/
|
|
45
|
-
function
|
|
45
|
+
function instanceOfInvoiceItemTaxDto(value) {
|
|
46
46
|
if (!('reason' in value) || value['reason'] === undefined)
|
|
47
47
|
return false;
|
|
48
48
|
if (!('type' in value) || value['type'] === undefined)
|
|
@@ -53,10 +53,10 @@ function instanceOfOrderItemTaxDto(value) {
|
|
|
53
53
|
return false;
|
|
54
54
|
return true;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function InvoiceItemTaxDtoFromJSON(json) {
|
|
57
|
+
return InvoiceItemTaxDtoFromJSONTyped(json, false);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function InvoiceItemTaxDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
60
|
if (json == null) {
|
|
61
61
|
return json;
|
|
62
62
|
}
|
|
@@ -67,7 +67,7 @@ function OrderItemTaxDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'percentage': json['percentage'],
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function InvoiceItemTaxDtoToJSON(value) {
|
|
71
71
|
if (value == null) {
|
|
72
72
|
return value;
|
|
73
73
|
}
|
|
@@ -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 InvoiceTransactionDto
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceTransactionDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvoiceTransactionDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvoiceTransactionDto
|
|
28
|
+
*/
|
|
29
|
+
gateway: InvoiceTransactionDtoGatewayEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceTransactionDto
|
|
34
|
+
*/
|
|
35
|
+
gatewayTransferToken: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const InvoiceTransactionDtoGatewayEnum: {
|
|
41
|
+
readonly STRIPE: "stripe";
|
|
42
|
+
};
|
|
43
|
+
export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the InvoiceTransactionDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfInvoiceTransactionDto(value: object): value is InvoiceTransactionDto;
|
|
48
|
+
export declare function InvoiceTransactionDtoFromJSON(json: any): InvoiceTransactionDto;
|
|
49
|
+
export declare function InvoiceTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceTransactionDto;
|
|
50
|
+
export declare function InvoiceTransactionDtoToJSON(value?: InvoiceTransactionDto | null): any;
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.InvoiceTransactionDtoGatewayEnum = void 0;
|
|
17
|
+
exports.instanceOfInvoiceTransactionDto = instanceOfInvoiceTransactionDto;
|
|
18
|
+
exports.InvoiceTransactionDtoFromJSON = InvoiceTransactionDtoFromJSON;
|
|
19
|
+
exports.InvoiceTransactionDtoFromJSONTyped = InvoiceTransactionDtoFromJSONTyped;
|
|
20
|
+
exports.InvoiceTransactionDtoToJSON = InvoiceTransactionDtoToJSON;
|
|
21
21
|
/**
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
exports.
|
|
24
|
+
exports.InvoiceTransactionDtoGatewayEnum = {
|
|
25
25
|
STRIPE: 'stripe'
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
* Check if a given object implements the
|
|
28
|
+
* Check if a given object implements the InvoiceTransactionDto interface.
|
|
29
29
|
*/
|
|
30
|
-
function
|
|
30
|
+
function instanceOfInvoiceTransactionDto(value) {
|
|
31
31
|
if (!('id' in value) || value['id'] === undefined)
|
|
32
32
|
return false;
|
|
33
33
|
if (!('gateway' in value) || value['gateway'] === undefined)
|
|
@@ -36,10 +36,10 @@ function instanceOfOrderTransactionDto(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
39
|
+
function InvoiceTransactionDtoFromJSON(json) {
|
|
40
|
+
return InvoiceTransactionDtoFromJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function InvoiceTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
43
|
if (json == null) {
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
@@ -49,7 +49,7 @@ function OrderTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'gatewayTransferToken': json['gatewayTransferToken'],
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function InvoiceTransactionDtoToJSON(value) {
|
|
53
53
|
if (value == null) {
|
|
54
54
|
return value;
|
|
55
55
|
}
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { InvoiceItemDto } from './InvoiceItemDto';
|
|
13
|
+
import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
|
-
import type { OrderTransactionDto } from './OrderTransactionDto';
|
|
15
15
|
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
16
16
|
import type { AddressDto } from './AddressDto';
|
|
17
17
|
/**
|
|
@@ -52,10 +52,10 @@ export interface OrderDto {
|
|
|
52
52
|
totalTaxPrice: MoneyDto;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
|
-
* @type {Array<
|
|
55
|
+
* @type {Array<InvoiceItemDto>}
|
|
56
56
|
* @memberof OrderDto
|
|
57
57
|
*/
|
|
58
|
-
items: Array<
|
|
58
|
+
items: Array<InvoiceItemDto>;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {string}
|
|
@@ -100,10 +100,10 @@ export interface OrderDto {
|
|
|
100
100
|
companyInfo: OrderCompanyInfoDto | null;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
|
-
* @type {
|
|
103
|
+
* @type {InvoiceTransactionDto}
|
|
104
104
|
* @memberof OrderDto
|
|
105
105
|
*/
|
|
106
|
-
transaction:
|
|
106
|
+
transaction: InvoiceTransactionDto;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
109
|
* @export
|
package/dist/models/OrderDto.js
CHANGED
|
@@ -18,9 +18,9 @@ exports.instanceOfOrderDto = instanceOfOrderDto;
|
|
|
18
18
|
exports.OrderDtoFromJSON = OrderDtoFromJSON;
|
|
19
19
|
exports.OrderDtoFromJSONTyped = OrderDtoFromJSONTyped;
|
|
20
20
|
exports.OrderDtoToJSON = OrderDtoToJSON;
|
|
21
|
-
var
|
|
21
|
+
var InvoiceItemDto_1 = require("./InvoiceItemDto");
|
|
22
|
+
var InvoiceTransactionDto_1 = require("./InvoiceTransactionDto");
|
|
22
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
|
-
var OrderTransactionDto_1 = require("./OrderTransactionDto");
|
|
24
24
|
var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
|
|
25
25
|
var AddressDto_1 = require("./AddressDto");
|
|
26
26
|
/**
|
|
@@ -78,7 +78,7 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
78
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
79
79
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
80
80
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
|
|
81
|
-
'items': (json['items'].map(
|
|
81
|
+
'items': (json['items'].map(InvoiceItemDto_1.InvoiceItemDtoFromJSON)),
|
|
82
82
|
'firstname': json['firstname'],
|
|
83
83
|
'lastname': json['lastname'],
|
|
84
84
|
'email': json['email'],
|
|
@@ -86,7 +86,7 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
86
|
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
87
87
|
'locale': json['locale'],
|
|
88
88
|
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
89
|
-
'transaction': (0,
|
|
89
|
+
'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
function OrderDtoToJSON(value) {
|
|
@@ -99,7 +99,7 @@ function OrderDtoToJSON(value) {
|
|
|
99
99
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
100
100
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
101
101
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
|
|
102
|
-
'items': (value['items'].map(
|
|
102
|
+
'items': (value['items'].map(InvoiceItemDto_1.InvoiceItemDtoToJSON)),
|
|
103
103
|
'firstname': value['firstname'],
|
|
104
104
|
'lastname': value['lastname'],
|
|
105
105
|
'email': value['email'],
|
|
@@ -107,6 +107,6 @@ function OrderDtoToJSON(value) {
|
|
|
107
107
|
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
|
108
108
|
'locale': value['locale'],
|
|
109
109
|
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
110
|
-
'transaction': (0,
|
|
110
|
+
'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
|
|
111
111
|
};
|
|
112
112
|
}
|
|
@@ -22,13 +22,13 @@ export interface OrderListItemDtoBuyerInformation {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof OrderListItemDtoBuyerInformation
|
|
24
24
|
*/
|
|
25
|
-
firstName: string;
|
|
25
|
+
firstName: string | null;
|
|
26
26
|
/**
|
|
27
27
|
* The order buyer last name
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof OrderListItemDtoBuyerInformation
|
|
30
30
|
*/
|
|
31
|
-
lastName: string;
|
|
31
|
+
lastName: string | null;
|
|
32
32
|
/**
|
|
33
33
|
* The order buyer email
|
|
34
34
|
* @type {string}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -57,6 +57,9 @@ export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
|
57
57
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
58
58
|
export * from './InvoiceDomainDto';
|
|
59
59
|
export * from './InvoiceDto';
|
|
60
|
+
export * from './InvoiceItemDto';
|
|
61
|
+
export * from './InvoiceItemTaxDto';
|
|
62
|
+
export * from './InvoiceTransactionDto';
|
|
60
63
|
export * from './LeadDomainDto';
|
|
61
64
|
export * from './LeadDto';
|
|
62
65
|
export * from './LeadMessageData';
|
|
@@ -75,13 +78,10 @@ export * from './ObjectId';
|
|
|
75
78
|
export * from './OrderCompanyInfoDto';
|
|
76
79
|
export * from './OrderCompanyTaxIdDto';
|
|
77
80
|
export * from './OrderDto';
|
|
78
|
-
export * from './OrderItemDto';
|
|
79
|
-
export * from './OrderItemTaxDto';
|
|
80
81
|
export * from './OrderListItemDto';
|
|
81
82
|
export * from './OrderListItemDtoBuyerInformation';
|
|
82
83
|
export * from './OrderListItemDtoDomainInformation';
|
|
83
84
|
export * from './OrderListItemDtoSellerAccount';
|
|
84
|
-
export * from './OrderTransactionDto';
|
|
85
85
|
export * from './OwnedDomainDto';
|
|
86
86
|
export * from './PaginateResponse';
|
|
87
87
|
export * from './PaginateResponseLinks';
|
package/dist/models/index.js
CHANGED
|
@@ -75,6 +75,9 @@ __exportStar(require("./IntersectionLeadDtoWithLeadDetailsDto"), exports);
|
|
|
75
75
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
76
76
|
__exportStar(require("./InvoiceDomainDto"), exports);
|
|
77
77
|
__exportStar(require("./InvoiceDto"), exports);
|
|
78
|
+
__exportStar(require("./InvoiceItemDto"), exports);
|
|
79
|
+
__exportStar(require("./InvoiceItemTaxDto"), exports);
|
|
80
|
+
__exportStar(require("./InvoiceTransactionDto"), exports);
|
|
78
81
|
__exportStar(require("./LeadDomainDto"), exports);
|
|
79
82
|
__exportStar(require("./LeadDto"), exports);
|
|
80
83
|
__exportStar(require("./LeadMessageData"), exports);
|
|
@@ -93,13 +96,10 @@ __exportStar(require("./ObjectId"), exports);
|
|
|
93
96
|
__exportStar(require("./OrderCompanyInfoDto"), exports);
|
|
94
97
|
__exportStar(require("./OrderCompanyTaxIdDto"), exports);
|
|
95
98
|
__exportStar(require("./OrderDto"), exports);
|
|
96
|
-
__exportStar(require("./OrderItemDto"), exports);
|
|
97
|
-
__exportStar(require("./OrderItemTaxDto"), exports);
|
|
98
99
|
__exportStar(require("./OrderListItemDto"), exports);
|
|
99
100
|
__exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
|
|
100
101
|
__exportStar(require("./OrderListItemDtoDomainInformation"), exports);
|
|
101
102
|
__exportStar(require("./OrderListItemDtoSellerAccount"), exports);
|
|
102
|
-
__exportStar(require("./OrderTransactionDto"), exports);
|
|
103
103
|
__exportStar(require("./OwnedDomainDto"), exports);
|
|
104
104
|
__exportStar(require("./PaginateResponse"), exports);
|
|
105
105
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
package/package.json
CHANGED
|
@@ -19,67 +19,67 @@ import {
|
|
|
19
19
|
MoneyDtoFromJSONTyped,
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
} from './MoneyDto';
|
|
22
|
-
import type {
|
|
22
|
+
import type { InvoiceItemTaxDto } from './InvoiceItemTaxDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
InvoiceItemTaxDtoFromJSON,
|
|
25
|
+
InvoiceItemTaxDtoFromJSONTyped,
|
|
26
|
+
InvoiceItemTaxDtoToJSON,
|
|
27
|
+
} from './InvoiceItemTaxDto';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @export
|
|
32
|
-
* @interface
|
|
32
|
+
* @interface InvoiceItemDto
|
|
33
33
|
*/
|
|
34
|
-
export interface
|
|
34
|
+
export interface InvoiceItemDto {
|
|
35
35
|
/**
|
|
36
36
|
* The uuid for this order.
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof InvoiceItemDto
|
|
39
39
|
*/
|
|
40
40
|
id: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {object}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof InvoiceItemDto
|
|
45
45
|
*/
|
|
46
46
|
orderId: object;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {string}
|
|
50
|
-
* @memberof
|
|
50
|
+
* @memberof InvoiceItemDto
|
|
51
51
|
*/
|
|
52
52
|
description: string;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {MoneyDto}
|
|
56
|
-
* @memberof
|
|
56
|
+
* @memberof InvoiceItemDto
|
|
57
57
|
*/
|
|
58
58
|
basePrice: MoneyDto;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {MoneyDto}
|
|
62
|
-
* @memberof
|
|
62
|
+
* @memberof InvoiceItemDto
|
|
63
63
|
*/
|
|
64
64
|
totalPrice: MoneyDto;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {MoneyDto}
|
|
68
|
-
* @memberof
|
|
68
|
+
* @memberof InvoiceItemDto
|
|
69
69
|
*/
|
|
70
70
|
totalTaxPrice: MoneyDto;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
|
-
* @type {Array<
|
|
74
|
-
* @memberof
|
|
73
|
+
* @type {Array<InvoiceItemTaxDto>}
|
|
74
|
+
* @memberof InvoiceItemDto
|
|
75
75
|
*/
|
|
76
|
-
taxes: Array<
|
|
76
|
+
taxes: Array<InvoiceItemTaxDto>;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Check if a given object implements the
|
|
80
|
+
* Check if a given object implements the InvoiceItemDto interface.
|
|
81
81
|
*/
|
|
82
|
-
export function
|
|
82
|
+
export function instanceOfInvoiceItemDto(value: object): value is InvoiceItemDto {
|
|
83
83
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
84
84
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
85
85
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
@@ -90,11 +90,11 @@ export function instanceOfOrderItemDto(value: object): value is OrderItemDto {
|
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export function
|
|
94
|
-
return
|
|
93
|
+
export function InvoiceItemDtoFromJSON(json: any): InvoiceItemDto {
|
|
94
|
+
return InvoiceItemDtoFromJSONTyped(json, false);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export function
|
|
97
|
+
export function InvoiceItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItemDto {
|
|
98
98
|
if (json == null) {
|
|
99
99
|
return json;
|
|
100
100
|
}
|
|
@@ -106,11 +106,11 @@ export function OrderItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
106
106
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
107
107
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
108
108
|
'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
|
|
109
|
-
'taxes': ((json['taxes'] as Array<any>).map(
|
|
109
|
+
'taxes': ((json['taxes'] as Array<any>).map(InvoiceItemTaxDtoFromJSON)),
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export function
|
|
113
|
+
export function InvoiceItemDtoToJSON(value?: InvoiceItemDto | null): any {
|
|
114
114
|
if (value == null) {
|
|
115
115
|
return value;
|
|
116
116
|
}
|
|
@@ -122,7 +122,7 @@ export function OrderItemDtoToJSON(value?: OrderItemDto | null): any {
|
|
|
122
122
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
123
123
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
124
124
|
'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
|
|
125
|
-
'taxes': ((value['taxes'] as Array<any>).map(
|
|
125
|
+
'taxes': ((value['taxes'] as Array<any>).map(InvoiceItemTaxDtoToJSON)),
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -23,31 +23,31 @@ import {
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @export
|
|
26
|
-
* @interface
|
|
26
|
+
* @interface InvoiceItemTaxDto
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface InvoiceItemTaxDto {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof InvoiceItemTaxDto
|
|
33
33
|
*/
|
|
34
|
-
reason:
|
|
34
|
+
reason: InvoiceItemTaxDtoReasonEnum;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof InvoiceItemTaxDto
|
|
39
39
|
*/
|
|
40
40
|
type: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {MoneyDto}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof InvoiceItemTaxDto
|
|
45
45
|
*/
|
|
46
46
|
price: MoneyDto;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {number}
|
|
50
|
-
* @memberof
|
|
50
|
+
* @memberof InvoiceItemTaxDto
|
|
51
51
|
*/
|
|
52
52
|
percentage: number;
|
|
53
53
|
}
|
|
@@ -56,7 +56,7 @@ export interface OrderItemTaxDto {
|
|
|
56
56
|
/**
|
|
57
57
|
* @export
|
|
58
58
|
*/
|
|
59
|
-
export const
|
|
59
|
+
export const InvoiceItemTaxDtoReasonEnum = {
|
|
60
60
|
CUSTOMER_EXEMPT: 'customer_exempt',
|
|
61
61
|
NOT_COLLECTING: 'not_collecting',
|
|
62
62
|
NOT_SUBJECT_TO_TAX: 'not_subject_to_tax',
|
|
@@ -73,13 +73,13 @@ export const OrderItemTaxDtoReasonEnum = {
|
|
|
73
73
|
TAXABLE_BASIS_REDUCED: 'taxable_basis_reduced',
|
|
74
74
|
ZERO_RATED: 'zero_rated'
|
|
75
75
|
} as const;
|
|
76
|
-
export type
|
|
76
|
+
export type InvoiceItemTaxDtoReasonEnum = typeof InvoiceItemTaxDtoReasonEnum[keyof typeof InvoiceItemTaxDtoReasonEnum];
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Check if a given object implements the
|
|
80
|
+
* Check if a given object implements the InvoiceItemTaxDto interface.
|
|
81
81
|
*/
|
|
82
|
-
export function
|
|
82
|
+
export function instanceOfInvoiceItemTaxDto(value: object): value is InvoiceItemTaxDto {
|
|
83
83
|
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
84
84
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
85
85
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
@@ -87,11 +87,11 @@ export function instanceOfOrderItemTaxDto(value: object): value is OrderItemTaxD
|
|
|
87
87
|
return true;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export function
|
|
91
|
-
return
|
|
90
|
+
export function InvoiceItemTaxDtoFromJSON(json: any): InvoiceItemTaxDto {
|
|
91
|
+
return InvoiceItemTaxDtoFromJSONTyped(json, false);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export function
|
|
94
|
+
export function InvoiceItemTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItemTaxDto {
|
|
95
95
|
if (json == null) {
|
|
96
96
|
return json;
|
|
97
97
|
}
|
|
@@ -104,7 +104,7 @@ export function OrderItemTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
export function
|
|
107
|
+
export function InvoiceItemTaxDtoToJSON(value?: InvoiceItemTaxDto | null): any {
|
|
108
108
|
if (value == null) {
|
|
109
109
|
return value;
|
|
110
110
|
}
|
|
@@ -16,25 +16,25 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface InvoiceTransactionDto
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface InvoiceTransactionDto {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof InvoiceTransactionDto
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof InvoiceTransactionDto
|
|
32
32
|
*/
|
|
33
|
-
gateway:
|
|
33
|
+
gateway: InvoiceTransactionDtoGatewayEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof InvoiceTransactionDto
|
|
38
38
|
*/
|
|
39
39
|
gatewayTransferToken: string;
|
|
40
40
|
}
|
|
@@ -43,27 +43,27 @@ export interface OrderTransactionDto {
|
|
|
43
43
|
/**
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
|
-
export const
|
|
46
|
+
export const InvoiceTransactionDtoGatewayEnum = {
|
|
47
47
|
STRIPE: 'stripe'
|
|
48
48
|
} as const;
|
|
49
|
-
export type
|
|
49
|
+
export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Check if a given object implements the
|
|
53
|
+
* Check if a given object implements the InvoiceTransactionDto interface.
|
|
54
54
|
*/
|
|
55
|
-
export function
|
|
55
|
+
export function instanceOfInvoiceTransactionDto(value: object): value is InvoiceTransactionDto {
|
|
56
56
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
57
57
|
if (!('gateway' in value) || value['gateway'] === undefined) return false;
|
|
58
58
|
if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined) return false;
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export function
|
|
63
|
-
return
|
|
62
|
+
export function InvoiceTransactionDtoFromJSON(json: any): InvoiceTransactionDto {
|
|
63
|
+
return InvoiceTransactionDtoFromJSONTyped(json, false);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export function
|
|
66
|
+
export function InvoiceTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceTransactionDto {
|
|
67
67
|
if (json == null) {
|
|
68
68
|
return json;
|
|
69
69
|
}
|
|
@@ -75,7 +75,7 @@ export function OrderTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export function
|
|
78
|
+
export function InvoiceTransactionDtoToJSON(value?: InvoiceTransactionDto | null): any {
|
|
79
79
|
if (value == null) {
|
|
80
80
|
return value;
|
|
81
81
|
}
|
package/src/models/OrderDto.ts
CHANGED
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { InvoiceItemDto } from './InvoiceItemDto';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
InvoiceItemDtoFromJSON,
|
|
19
|
+
InvoiceItemDtoFromJSONTyped,
|
|
20
|
+
InvoiceItemDtoToJSON,
|
|
21
|
+
} from './InvoiceItemDto';
|
|
22
|
+
import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
|
|
23
|
+
import {
|
|
24
|
+
InvoiceTransactionDtoFromJSON,
|
|
25
|
+
InvoiceTransactionDtoFromJSONTyped,
|
|
26
|
+
InvoiceTransactionDtoToJSON,
|
|
27
|
+
} from './InvoiceTransactionDto';
|
|
22
28
|
import type { MoneyDto } from './MoneyDto';
|
|
23
29
|
import {
|
|
24
30
|
MoneyDtoFromJSON,
|
|
25
31
|
MoneyDtoFromJSONTyped,
|
|
26
32
|
MoneyDtoToJSON,
|
|
27
33
|
} from './MoneyDto';
|
|
28
|
-
import type { OrderTransactionDto } from './OrderTransactionDto';
|
|
29
|
-
import {
|
|
30
|
-
OrderTransactionDtoFromJSON,
|
|
31
|
-
OrderTransactionDtoFromJSONTyped,
|
|
32
|
-
OrderTransactionDtoToJSON,
|
|
33
|
-
} from './OrderTransactionDto';
|
|
34
34
|
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
35
35
|
import {
|
|
36
36
|
OrderCompanyInfoDtoFromJSON,
|
|
@@ -82,10 +82,10 @@ export interface OrderDto {
|
|
|
82
82
|
totalTaxPrice: MoneyDto;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
|
-
* @type {Array<
|
|
85
|
+
* @type {Array<InvoiceItemDto>}
|
|
86
86
|
* @memberof OrderDto
|
|
87
87
|
*/
|
|
88
|
-
items: Array<
|
|
88
|
+
items: Array<InvoiceItemDto>;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {string}
|
|
@@ -130,10 +130,10 @@ export interface OrderDto {
|
|
|
130
130
|
companyInfo: OrderCompanyInfoDto | null;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
|
-
* @type {
|
|
133
|
+
* @type {InvoiceTransactionDto}
|
|
134
134
|
* @memberof OrderDto
|
|
135
135
|
*/
|
|
136
|
-
transaction:
|
|
136
|
+
transaction: InvoiceTransactionDto;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
|
|
@@ -184,7 +184,7 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
184
184
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
185
185
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
186
186
|
'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
|
|
187
|
-
'items': ((json['items'] as Array<any>).map(
|
|
187
|
+
'items': ((json['items'] as Array<any>).map(InvoiceItemDtoFromJSON)),
|
|
188
188
|
'firstname': json['firstname'],
|
|
189
189
|
'lastname': json['lastname'],
|
|
190
190
|
'email': json['email'],
|
|
@@ -192,7 +192,7 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
192
192
|
'address': AddressDtoFromJSON(json['address']),
|
|
193
193
|
'locale': json['locale'],
|
|
194
194
|
'companyInfo': OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
195
|
-
'transaction':
|
|
195
|
+
'transaction': InvoiceTransactionDtoFromJSON(json['transaction']),
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
|
|
@@ -207,7 +207,7 @@ export function OrderDtoToJSON(value?: OrderDto | null): any {
|
|
|
207
207
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
208
208
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
209
209
|
'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
|
|
210
|
-
'items': ((value['items'] as Array<any>).map(
|
|
210
|
+
'items': ((value['items'] as Array<any>).map(InvoiceItemDtoToJSON)),
|
|
211
211
|
'firstname': value['firstname'],
|
|
212
212
|
'lastname': value['lastname'],
|
|
213
213
|
'email': value['email'],
|
|
@@ -215,7 +215,7 @@ export function OrderDtoToJSON(value?: OrderDto | null): any {
|
|
|
215
215
|
'address': AddressDtoToJSON(value['address']),
|
|
216
216
|
'locale': value['locale'],
|
|
217
217
|
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
218
|
-
'transaction':
|
|
218
|
+
'transaction': InvoiceTransactionDtoToJSON(value['transaction']),
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -37,13 +37,13 @@ export interface OrderListItemDtoBuyerInformation {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof OrderListItemDtoBuyerInformation
|
|
39
39
|
*/
|
|
40
|
-
firstName: string;
|
|
40
|
+
firstName: string | null;
|
|
41
41
|
/**
|
|
42
42
|
* The order buyer last name
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof OrderListItemDtoBuyerInformation
|
|
45
45
|
*/
|
|
46
|
-
lastName: string;
|
|
46
|
+
lastName: string | null;
|
|
47
47
|
/**
|
|
48
48
|
* The order buyer email
|
|
49
49
|
* @type {string}
|
package/src/models/index.ts
CHANGED
|
@@ -59,6 +59,9 @@ export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
|
59
59
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
60
60
|
export * from './InvoiceDomainDto';
|
|
61
61
|
export * from './InvoiceDto';
|
|
62
|
+
export * from './InvoiceItemDto';
|
|
63
|
+
export * from './InvoiceItemTaxDto';
|
|
64
|
+
export * from './InvoiceTransactionDto';
|
|
62
65
|
export * from './LeadDomainDto';
|
|
63
66
|
export * from './LeadDto';
|
|
64
67
|
export * from './LeadMessageData';
|
|
@@ -77,13 +80,10 @@ export * from './ObjectId';
|
|
|
77
80
|
export * from './OrderCompanyInfoDto';
|
|
78
81
|
export * from './OrderCompanyTaxIdDto';
|
|
79
82
|
export * from './OrderDto';
|
|
80
|
-
export * from './OrderItemDto';
|
|
81
|
-
export * from './OrderItemTaxDto';
|
|
82
83
|
export * from './OrderListItemDto';
|
|
83
84
|
export * from './OrderListItemDtoBuyerInformation';
|
|
84
85
|
export * from './OrderListItemDtoDomainInformation';
|
|
85
86
|
export * from './OrderListItemDtoSellerAccount';
|
|
86
|
-
export * from './OrderTransactionDto';
|
|
87
87
|
export * from './OwnedDomainDto';
|
|
88
88
|
export * from './PaginateResponse';
|
|
89
89
|
export * from './PaginateResponseLinks';
|
|
@@ -1,69 +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
|
-
import type { MoneyDto } from './MoneyDto';
|
|
13
|
-
import type { OrderItemTaxDto } from './OrderItemTaxDto';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface OrderItemDto
|
|
18
|
-
*/
|
|
19
|
-
export interface OrderItemDto {
|
|
20
|
-
/**
|
|
21
|
-
* The uuid for this order.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof OrderItemDto
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {object}
|
|
29
|
-
* @memberof OrderItemDto
|
|
30
|
-
*/
|
|
31
|
-
orderId: object;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof OrderItemDto
|
|
36
|
-
*/
|
|
37
|
-
description: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {MoneyDto}
|
|
41
|
-
* @memberof OrderItemDto
|
|
42
|
-
*/
|
|
43
|
-
basePrice: MoneyDto;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {MoneyDto}
|
|
47
|
-
* @memberof OrderItemDto
|
|
48
|
-
*/
|
|
49
|
-
totalPrice: MoneyDto;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {MoneyDto}
|
|
53
|
-
* @memberof OrderItemDto
|
|
54
|
-
*/
|
|
55
|
-
totalTaxPrice: MoneyDto;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Array<OrderItemTaxDto>}
|
|
59
|
-
* @memberof OrderItemDto
|
|
60
|
-
*/
|
|
61
|
-
taxes: Array<OrderItemTaxDto>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Check if a given object implements the OrderItemDto interface.
|
|
65
|
-
*/
|
|
66
|
-
export declare function instanceOfOrderItemDto(value: object): value is OrderItemDto;
|
|
67
|
-
export declare function OrderItemDtoFromJSON(json: any): OrderItemDto;
|
|
68
|
-
export declare function OrderItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemDto;
|
|
69
|
-
export declare function OrderItemDtoToJSON(value?: OrderItemDto | null): any;
|
|
@@ -1,50 +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 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;
|