@digital8/lighting-illusions-ts-sdk 0.0.2022 → 0.0.2023
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 -6
- package/README.md +4 -5
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/LineItemListResource.d.ts +3 -3
- package/dist/models/LineItemListResource.js +3 -3
- package/dist/models/ProductChildLineItemLiteResource.d.ts +88 -0
- package/dist/models/{ProductChildCartLiteResource.js → ProductChildLineItemLiteResource.js} +13 -13
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/UpdateOrderRequest.d.ts +2 -2
- package/dist/models/UpdateOrderRequest.js +6 -2
- package/dist/models/index.d.ts +2 -3
- package/dist/models/index.js +2 -3
- package/docs/CartResource.md +2 -2
- package/docs/LineItemListResource.md +1 -1
- package/docs/{ProductChildCartLiteResource.md → ProductChildLineItemLiteResource.md} +4 -4
- package/docs/{ProductChildCartLiteResourceArrayResponse.md → ProductChildLineItemLiteResourceArrayResponse.md} +5 -5
- package/package.json +1 -1
- package/src/models/AddressResource.ts +5 -5
- package/src/models/CartResource.ts +14 -14
- package/src/models/LineItemListResource.ts +10 -10
- package/src/models/{ProductChildCartLiteResource.ts → ProductChildLineItemLiteResource.ts} +20 -20
- package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/UpdateOrderRequest.ts +6 -4
- package/src/models/index.ts +2 -3
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/OrderOmnisendEvent.md +0 -32
- package/src/models/OrderOmnisendEvent.ts +0 -53
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -242,7 +242,6 @@ docs/OrderListResource.md
|
|
|
242
242
|
docs/OrderListResourceArrayResponse.md
|
|
243
243
|
docs/OrderLiteResource.md
|
|
244
244
|
docs/OrderLiteResourceArrayResponse.md
|
|
245
|
-
docs/OrderOmnisendEvent.md
|
|
246
245
|
docs/OrderStatusLiteResource.md
|
|
247
246
|
docs/OrderStatusLiteResourceArrayResponse.md
|
|
248
247
|
docs/OrderStatusWithCountResource.md
|
|
@@ -375,10 +374,10 @@ docs/ProductChildAttributeGroupedResource.md
|
|
|
375
374
|
docs/ProductChildAttributeGroupedResourceArrayResponse.md
|
|
376
375
|
docs/ProductChildAttributeResource.md
|
|
377
376
|
docs/ProductChildAttributeResourceArrayResponse.md
|
|
378
|
-
docs/ProductChildCartLiteResource.md
|
|
379
|
-
docs/ProductChildCartLiteResourceArrayResponse.md
|
|
380
377
|
docs/ProductChildFrontendResource.md
|
|
381
378
|
docs/ProductChildFrontendResourceArrayResponse.md
|
|
379
|
+
docs/ProductChildLineItemLiteResource.md
|
|
380
|
+
docs/ProductChildLineItemLiteResourceArrayResponse.md
|
|
382
381
|
docs/ProductChildListResource.md
|
|
383
382
|
docs/ProductChildListResourceArrayResponse.md
|
|
384
383
|
docs/ProductChildLiteResource.md
|
|
@@ -905,7 +904,6 @@ src/models/OrderListResource.ts
|
|
|
905
904
|
src/models/OrderListResourceArrayResponse.ts
|
|
906
905
|
src/models/OrderLiteResource.ts
|
|
907
906
|
src/models/OrderLiteResourceArrayResponse.ts
|
|
908
|
-
src/models/OrderOmnisendEvent.ts
|
|
909
907
|
src/models/OrderStatusLiteResource.ts
|
|
910
908
|
src/models/OrderStatusLiteResourceArrayResponse.ts
|
|
911
909
|
src/models/OrderStatusWithCountResource.ts
|
|
@@ -1032,10 +1030,10 @@ src/models/ProductChildAttributeGroupedResource.ts
|
|
|
1032
1030
|
src/models/ProductChildAttributeGroupedResourceArrayResponse.ts
|
|
1033
1031
|
src/models/ProductChildAttributeResource.ts
|
|
1034
1032
|
src/models/ProductChildAttributeResourceArrayResponse.ts
|
|
1035
|
-
src/models/ProductChildCartLiteResource.ts
|
|
1036
|
-
src/models/ProductChildCartLiteResourceArrayResponse.ts
|
|
1037
1033
|
src/models/ProductChildFrontendResource.ts
|
|
1038
1034
|
src/models/ProductChildFrontendResourceArrayResponse.ts
|
|
1035
|
+
src/models/ProductChildLineItemLiteResource.ts
|
|
1036
|
+
src/models/ProductChildLineItemLiteResourceArrayResponse.ts
|
|
1039
1037
|
src/models/ProductChildListResource.ts
|
|
1040
1038
|
src/models/ProductChildListResourceArrayResponse.ts
|
|
1041
1039
|
src/models/ProductChildLiteResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2023
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -517,7 +517,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
517
517
|
- [OrderListResourceArrayResponse](docs/OrderListResourceArrayResponse.md)
|
|
518
518
|
- [OrderLiteResource](docs/OrderLiteResource.md)
|
|
519
519
|
- [OrderLiteResourceArrayResponse](docs/OrderLiteResourceArrayResponse.md)
|
|
520
|
-
- [OrderOmnisendEvent](docs/OrderOmnisendEvent.md)
|
|
521
520
|
- [OrderStatusLiteResource](docs/OrderStatusLiteResource.md)
|
|
522
521
|
- [OrderStatusLiteResourceArrayResponse](docs/OrderStatusLiteResourceArrayResponse.md)
|
|
523
522
|
- [OrderStatusWithCountResource](docs/OrderStatusWithCountResource.md)
|
|
@@ -644,10 +643,10 @@ All URIs are relative to *http://localhost/api*
|
|
|
644
643
|
- [ProductChildAttributeGroupedResourceArrayResponse](docs/ProductChildAttributeGroupedResourceArrayResponse.md)
|
|
645
644
|
- [ProductChildAttributeResource](docs/ProductChildAttributeResource.md)
|
|
646
645
|
- [ProductChildAttributeResourceArrayResponse](docs/ProductChildAttributeResourceArrayResponse.md)
|
|
647
|
-
- [ProductChildCartLiteResource](docs/ProductChildCartLiteResource.md)
|
|
648
|
-
- [ProductChildCartLiteResourceArrayResponse](docs/ProductChildCartLiteResourceArrayResponse.md)
|
|
649
646
|
- [ProductChildFrontendResource](docs/ProductChildFrontendResource.md)
|
|
650
647
|
- [ProductChildFrontendResourceArrayResponse](docs/ProductChildFrontendResourceArrayResponse.md)
|
|
648
|
+
- [ProductChildLineItemLiteResource](docs/ProductChildLineItemLiteResource.md)
|
|
649
|
+
- [ProductChildLineItemLiteResourceArrayResponse](docs/ProductChildLineItemLiteResourceArrayResponse.md)
|
|
651
650
|
- [ProductChildListResource](docs/ProductChildListResource.md)
|
|
652
651
|
- [ProductChildListResourceArrayResponse](docs/ProductChildListResourceArrayResponse.md)
|
|
653
652
|
- [ProductChildLiteResource](docs/ProductChildLiteResource.md)
|
|
@@ -918,7 +917,7 @@ and is automatically generated by the
|
|
|
918
917
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
919
918
|
|
|
920
919
|
- API version: `1.0.0`
|
|
921
|
-
- Package version: `0.0.
|
|
920
|
+
- Package version: `0.0.2023`
|
|
922
921
|
- Generator version: `7.22.0`
|
|
923
922
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
924
923
|
|
|
@@ -38,7 +38,7 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
company
|
|
41
|
+
company?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -50,7 +50,7 @@ export interface AddressResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof AddressResource
|
|
52
52
|
*/
|
|
53
|
-
line2
|
|
53
|
+
line2: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -24,10 +24,10 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
31
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
32
|
return false;
|
|
33
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -51,9 +51,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
52
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
53
53
|
'addresseeName': json['addresseeName'],
|
|
54
|
-
'company': json['company'],
|
|
54
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
55
55
|
'line1': json['line1'],
|
|
56
|
-
'line2': json['line2']
|
|
56
|
+
'line2': json['line2'],
|
|
57
57
|
'postcode': json['postcode'],
|
|
58
58
|
'suburb': json['suburb'],
|
|
59
59
|
'country': json['country'],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
13
|
import type { LineItemListResource } from './LineItemListResource';
|
|
14
|
-
import type {
|
|
14
|
+
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
15
15
|
import type { CustomerListResource } from './CustomerListResource';
|
|
16
16
|
import type { AddressResource } from './AddressResource';
|
|
17
17
|
/**
|
|
@@ -118,10 +118,10 @@ export interface CartResource {
|
|
|
118
118
|
useAsBillingAddress: boolean;
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
|
-
* @type {
|
|
121
|
+
* @type {LiAdminUserLiteResource}
|
|
122
122
|
* @memberof CartResource
|
|
123
123
|
*/
|
|
124
|
-
admin:
|
|
124
|
+
admin: LiAdminUserLiteResource | null;
|
|
125
125
|
/**
|
|
126
126
|
*
|
|
127
127
|
* @type {SiteLiteResource}
|
|
@@ -142,10 +142,10 @@ export interface CartResource {
|
|
|
142
142
|
lineItems: Array<LineItemListResource> | null;
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
|
-
* @type {
|
|
145
|
+
* @type {object}
|
|
146
146
|
* @memberof CartResource
|
|
147
147
|
*/
|
|
148
|
-
coupons:
|
|
148
|
+
coupons: object;
|
|
149
149
|
/**
|
|
150
150
|
*
|
|
151
151
|
* @type {AddressResource}
|
|
@@ -20,7 +20,7 @@ exports.CartResourceToJSON = CartResourceToJSON;
|
|
|
20
20
|
exports.CartResourceToJSONTyped = CartResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
22
|
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
-
var
|
|
23
|
+
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
24
24
|
var CustomerListResource_1 = require("./CustomerListResource");
|
|
25
25
|
var AddressResource_1 = require("./AddressResource");
|
|
26
26
|
/**
|
|
@@ -103,11 +103,11 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
103
|
'includeInsurance': json['includeInsurance'],
|
|
104
104
|
'overrideInsurance': json['overrideInsurance'],
|
|
105
105
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
106
|
-
'admin': json['admin'],
|
|
106
|
+
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
107
107
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
108
108
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
109
109
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
110
|
-
'coupons':
|
|
110
|
+
'coupons': json['coupons'],
|
|
111
111
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
112
112
|
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
113
113
|
'discountPreview': json['discountPreview'],
|
|
@@ -148,11 +148,11 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
148
148
|
'includeInsurance': value['includeInsurance'],
|
|
149
149
|
'overrideInsurance': value['overrideInsurance'],
|
|
150
150
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
151
|
-
'admin': value['admin'],
|
|
151
|
+
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
152
152
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
153
153
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
154
154
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
155
|
-
'coupons':
|
|
155
|
+
'coupons': value['coupons'],
|
|
156
156
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
157
157
|
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
158
158
|
'discountPreview': value['discountPreview'],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { LabelLiteResource } from './LabelLiteResource';
|
|
13
13
|
import type { LineItemDiscountResource } from './LineItemDiscountResource';
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -74,10 +74,10 @@ export interface LineItemListResource {
|
|
|
74
74
|
discounts: Array<LineItemDiscountResource> | null;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
|
-
* @type {
|
|
77
|
+
* @type {ProductChildLineItemLiteResource}
|
|
78
78
|
* @memberof LineItemListResource
|
|
79
79
|
*/
|
|
80
|
-
productChild:
|
|
80
|
+
productChild: ProductChildLineItemLiteResource | null;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Check if a given object implements the LineItemListResource interface.
|
|
@@ -20,7 +20,7 @@ exports.LineItemListResourceToJSON = LineItemListResourceToJSON;
|
|
|
20
20
|
exports.LineItemListResourceToJSONTyped = LineItemListResourceToJSONTyped;
|
|
21
21
|
var LabelLiteResource_1 = require("./LabelLiteResource");
|
|
22
22
|
var LineItemDiscountResource_1 = require("./LineItemDiscountResource");
|
|
23
|
-
var
|
|
23
|
+
var ProductChildLineItemLiteResource_1 = require("./ProductChildLineItemLiteResource");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the LineItemListResource interface.
|
|
26
26
|
*/
|
|
@@ -64,7 +64,7 @@ function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'totalDiscount': json['totalDiscount'],
|
|
65
65
|
'lineSubtotal': json['lineSubtotal'],
|
|
66
66
|
'discounts': (json['discounts'] == null ? null : json['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceFromJSON)),
|
|
67
|
-
'productChild': (0,
|
|
67
|
+
'productChild': (0, ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceFromJSON)(json['productChild']),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
function LineItemListResourceToJSON(json) {
|
|
@@ -85,6 +85,6 @@ function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
85
|
'totalDiscount': value['totalDiscount'],
|
|
86
86
|
'lineSubtotal': value['lineSubtotal'],
|
|
87
87
|
'discounts': (value['discounts'] == null ? null : value['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceToJSON)),
|
|
88
|
-
'productChild': (0,
|
|
88
|
+
'productChild': (0, ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceToJSON)(value['productChild']),
|
|
89
89
|
};
|
|
90
90
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 { LabelResource } from './LabelResource';
|
|
13
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProductChildLineItemLiteResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductChildLineItemLiteResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductChildLineItemLiteResource
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ProductChildLineItemLiteResource
|
|
30
|
+
*/
|
|
31
|
+
parentId: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProductChildLineItemLiteResource
|
|
36
|
+
*/
|
|
37
|
+
sku: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ProductChildLineItemLiteResource
|
|
42
|
+
*/
|
|
43
|
+
model: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ProductChildLineItemLiteResource
|
|
48
|
+
*/
|
|
49
|
+
modelNumber: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProductChildLineItemLiteResource
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof ProductChildLineItemLiteResource
|
|
60
|
+
*/
|
|
61
|
+
stock: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof ProductChildLineItemLiteResource
|
|
66
|
+
*/
|
|
67
|
+
salePrice: number;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {AssetLiteResource}
|
|
71
|
+
* @memberof ProductChildLineItemLiteResource
|
|
72
|
+
*/
|
|
73
|
+
thumbnail: AssetLiteResource | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {LabelResource}
|
|
77
|
+
* @memberof ProductChildLineItemLiteResource
|
|
78
|
+
*/
|
|
79
|
+
label: LabelResource | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the ProductChildLineItemLiteResource interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfProductChildLineItemLiteResource(value: object): value is ProductChildLineItemLiteResource;
|
|
85
|
+
export declare function ProductChildLineItemLiteResourceFromJSON(json: any): ProductChildLineItemLiteResource;
|
|
86
|
+
export declare function ProductChildLineItemLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLineItemLiteResource;
|
|
87
|
+
export declare function ProductChildLineItemLiteResourceToJSON(json: any): ProductChildLineItemLiteResource;
|
|
88
|
+
export declare function ProductChildLineItemLiteResourceToJSONTyped(value?: ProductChildLineItemLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,17 +13,17 @@
|
|
|
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.instanceOfProductChildLineItemLiteResource = instanceOfProductChildLineItemLiteResource;
|
|
17
|
+
exports.ProductChildLineItemLiteResourceFromJSON = ProductChildLineItemLiteResourceFromJSON;
|
|
18
|
+
exports.ProductChildLineItemLiteResourceFromJSONTyped = ProductChildLineItemLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildLineItemLiteResourceToJSON = ProductChildLineItemLiteResourceToJSON;
|
|
20
|
+
exports.ProductChildLineItemLiteResourceToJSONTyped = ProductChildLineItemLiteResourceToJSONTyped;
|
|
21
21
|
var LabelResource_1 = require("./LabelResource");
|
|
22
22
|
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the ProductChildLineItemLiteResource interface.
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function instanceOfProductChildLineItemLiteResource(value) {
|
|
27
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
@@ -46,10 +46,10 @@ function instanceOfProductChildCartLiteResource(value) {
|
|
|
46
46
|
return false;
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
49
|
+
function ProductChildLineItemLiteResourceFromJSON(json) {
|
|
50
|
+
return ProductChildLineItemLiteResourceFromJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ProductChildLineItemLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
53
|
if (json == null) {
|
|
54
54
|
return json;
|
|
55
55
|
}
|
|
@@ -66,10 +66,10 @@ function ProductChildCartLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function ProductChildLineItemLiteResourceToJSON(json) {
|
|
70
|
+
return ProductChildLineItemLiteResourceToJSONTyped(json, false);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ProductChildLineItemLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
73
73
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
74
74
|
if (value == null) {
|
|
75
75
|
return value;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildLineItemLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildLineItemLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildLineItemLiteResource>}
|
|
22
|
+
* @memberof ProductChildLineItemLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildLineItemLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildLineItemLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildLineItemLiteResourceArrayResponse(value: object): value is ProductChildLineItemLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseFromJSON(json: any): ProductChildLineItemLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLineItemLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseToJSON(json: any): ProductChildLineItemLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseToJSONTyped(value?: ProductChildLineItemLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.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.instanceOfProductChildLineItemLiteResourceArrayResponse = instanceOfProductChildLineItemLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductChildLineItemLiteResourceArrayResponseFromJSON = ProductChildLineItemLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildLineItemLiteResourceArrayResponseFromJSONTyped = ProductChildLineItemLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildLineItemLiteResourceArrayResponseToJSON = ProductChildLineItemLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildLineItemLiteResourceArrayResponseToJSONTyped = ProductChildLineItemLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildLineItemLiteResource_1 = require("./ProductChildLineItemLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildLineItemLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildLineItemLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildLineItemLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildLineItemLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildLineItemLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildLineItemLiteResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'siteId': json['siteId'],
|
|
57
55
|
'name': json['name'],
|
|
58
56
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
58
|
'phone': json['phone'],
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -33,10 +33,10 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
38
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
39
|
+
return false;
|
|
40
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
41
|
return false;
|
|
42
42
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -57,9 +57,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'phone': json['phone'],
|
|
58
58
|
'longitude': json['longitude'],
|
|
59
59
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
61
61
|
'email': json['email'],
|
|
62
|
-
'website': json['website']
|
|
62
|
+
'website': json['website'],
|
|
63
63
|
'netsuiteId': json['netsuiteId'],
|
|
64
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -45,7 +45,7 @@ export interface UpdateOrderRequest {
|
|
|
45
45
|
* @type {number}
|
|
46
46
|
* @memberof UpdateOrderRequest
|
|
47
47
|
*/
|
|
48
|
-
shippingSubtotal
|
|
48
|
+
shippingSubtotal: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {boolean}
|
|
@@ -57,7 +57,7 @@ export interface UpdateOrderRequest {
|
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof UpdateOrderRequest
|
|
59
59
|
*/
|
|
60
|
-
insuranceAmount
|
|
60
|
+
insuranceAmount: number;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {boolean}
|
|
@@ -47,6 +47,10 @@ function instanceOfUpdateOrderRequest(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('shippingType' in value) || value['shippingType'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
+
if (!('shippingSubtotal' in value) || value['shippingSubtotal'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
53
|
+
return false;
|
|
50
54
|
return true;
|
|
51
55
|
}
|
|
52
56
|
function UpdateOrderRequestFromJSON(json) {
|
|
@@ -61,9 +65,9 @@ function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
65
|
'statusId': json['status_id'],
|
|
62
66
|
'source': json['source'],
|
|
63
67
|
'shippingType': json['shipping_type'],
|
|
64
|
-
'shippingSubtotal': json['shipping_subtotal']
|
|
68
|
+
'shippingSubtotal': json['shipping_subtotal'],
|
|
65
69
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
66
|
-
'insuranceAmount': json['insurance_amount']
|
|
70
|
+
'insuranceAmount': json['insurance_amount'],
|
|
67
71
|
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
68
72
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
69
73
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -224,7 +224,6 @@ export * from './OrderListResource';
|
|
|
224
224
|
export * from './OrderListResourceArrayResponse';
|
|
225
225
|
export * from './OrderLiteResource';
|
|
226
226
|
export * from './OrderLiteResourceArrayResponse';
|
|
227
|
-
export * from './OrderOmnisendEvent';
|
|
228
227
|
export * from './OrderStatusLiteResource';
|
|
229
228
|
export * from './OrderStatusLiteResourceArrayResponse';
|
|
230
229
|
export * from './OrderStatusWithCountResource';
|
|
@@ -351,10 +350,10 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
351
350
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
352
351
|
export * from './ProductChildAttributeResource';
|
|
353
352
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
354
|
-
export * from './ProductChildCartLiteResource';
|
|
355
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
356
353
|
export * from './ProductChildFrontendResource';
|
|
357
354
|
export * from './ProductChildFrontendResourceArrayResponse';
|
|
355
|
+
export * from './ProductChildLineItemLiteResource';
|
|
356
|
+
export * from './ProductChildLineItemLiteResourceArrayResponse';
|
|
358
357
|
export * from './ProductChildListResource';
|
|
359
358
|
export * from './ProductChildListResourceArrayResponse';
|
|
360
359
|
export * from './ProductChildLiteResource';
|
package/dist/models/index.js
CHANGED
|
@@ -242,7 +242,6 @@ __exportStar(require("./OrderListResource"), exports);
|
|
|
242
242
|
__exportStar(require("./OrderListResourceArrayResponse"), exports);
|
|
243
243
|
__exportStar(require("./OrderLiteResource"), exports);
|
|
244
244
|
__exportStar(require("./OrderLiteResourceArrayResponse"), exports);
|
|
245
|
-
__exportStar(require("./OrderOmnisendEvent"), exports);
|
|
246
245
|
__exportStar(require("./OrderStatusLiteResource"), exports);
|
|
247
246
|
__exportStar(require("./OrderStatusLiteResourceArrayResponse"), exports);
|
|
248
247
|
__exportStar(require("./OrderStatusWithCountResource"), exports);
|
|
@@ -369,10 +368,10 @@ __exportStar(require("./ProductChildAttributeGroupedResource"), exports);
|
|
|
369
368
|
__exportStar(require("./ProductChildAttributeGroupedResourceArrayResponse"), exports);
|
|
370
369
|
__exportStar(require("./ProductChildAttributeResource"), exports);
|
|
371
370
|
__exportStar(require("./ProductChildAttributeResourceArrayResponse"), exports);
|
|
372
|
-
__exportStar(require("./ProductChildCartLiteResource"), exports);
|
|
373
|
-
__exportStar(require("./ProductChildCartLiteResourceArrayResponse"), exports);
|
|
374
371
|
__exportStar(require("./ProductChildFrontendResource"), exports);
|
|
375
372
|
__exportStar(require("./ProductChildFrontendResourceArrayResponse"), exports);
|
|
373
|
+
__exportStar(require("./ProductChildLineItemLiteResource"), exports);
|
|
374
|
+
__exportStar(require("./ProductChildLineItemLiteResourceArrayResponse"), exports);
|
|
376
375
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
377
376
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
378
377
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
package/docs/CartResource.md
CHANGED
|
@@ -22,11 +22,11 @@ Name | Type
|
|
|
22
22
|
`includeInsurance` | boolean
|
|
23
23
|
`overrideInsurance` | boolean
|
|
24
24
|
`useAsBillingAddress` | boolean
|
|
25
|
-
`admin` |
|
|
25
|
+
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
26
26
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
27
27
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
28
28
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
29
|
-
`coupons` |
|
|
29
|
+
`coupons` | object
|
|
30
30
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
31
31
|
`billingAddress` | [AddressResource](AddressResource.md)
|
|
32
32
|
`discountPreview` | number
|