@digital8/lighting-illusions-ts-sdk 0.0.2021 → 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/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/CreateCartRequest.d.ts +12 -7
- package/dist/models/CreateCartRequest.js +7 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/SearchCartsRequest.d.ts +6 -15
- package/dist/models/SearchCartsRequest.js +3 -11
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +18 -7
- package/dist/models/UpdateCartRequest.js +6 -3
- 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/CreateCartRequest.md +4 -2
- package/docs/LineItemListResource.md +1 -1
- package/docs/{ProductChildCartLiteResource.md → ProductChildLineItemLiteResource.md} +4 -4
- package/docs/{ProductChildCartLiteResourceArrayResponse.md → ProductChildLineItemLiteResourceArrayResponse.md} +5 -5
- package/docs/SearchCartsRequest.md +2 -2
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCartRequest.md +6 -2
- package/package.json +1 -1
- package/src/models/CartResource.ts +14 -14
- package/src/models/CreateCartRequest.ts +18 -16
- package/src/models/ExternalApiLogResource.ts +2 -3
- 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/SearchCartsRequest.ts +8 -18
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCartRequest.ts +24 -15
- package/src/models/UpdateOrderRequest.ts +6 -4
- package/src/models/index.ts +2 -3
- package/dist/models/CreateCartRequestCustomer.d.ts +0 -50
- package/dist/models/CreateCartRequestCustomer.js +0 -55
- 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/CreateCartRequestCustomer.md +0 -40
- package/src/models/CreateCartRequestCustomer.ts +0 -89
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -94,7 +94,6 @@ docs/CreateBlogCategoryRequest.md
|
|
|
94
94
|
docs/CreateBlogCategoryRequestDescriptionsInner.md
|
|
95
95
|
docs/CreateBlogCategoryRequestSeoInner.md
|
|
96
96
|
docs/CreateCartRequest.md
|
|
97
|
-
docs/CreateCartRequestCustomer.md
|
|
98
97
|
docs/CreateCartRequestItemsInner.md
|
|
99
98
|
docs/CreateCartRequestShippingAddress.md
|
|
100
99
|
docs/CreateCustomerRequest.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
|
|
@@ -766,7 +765,6 @@ src/models/CreateBlogCategoryRequest.ts
|
|
|
766
765
|
src/models/CreateBlogCategoryRequestDescriptionsInner.ts
|
|
767
766
|
src/models/CreateBlogCategoryRequestSeoInner.ts
|
|
768
767
|
src/models/CreateCartRequest.ts
|
|
769
|
-
src/models/CreateCartRequestCustomer.ts
|
|
770
768
|
src/models/CreateCartRequestItemsInner.ts
|
|
771
769
|
src/models/CreateCartRequestShippingAddress.ts
|
|
772
770
|
src/models/CreateCustomerRequest.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
|
|
|
@@ -378,7 +378,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
378
378
|
- [CreateBlogCategoryRequestDescriptionsInner](docs/CreateBlogCategoryRequestDescriptionsInner.md)
|
|
379
379
|
- [CreateBlogCategoryRequestSeoInner](docs/CreateBlogCategoryRequestSeoInner.md)
|
|
380
380
|
- [CreateCartRequest](docs/CreateCartRequest.md)
|
|
381
|
-
- [CreateCartRequestCustomer](docs/CreateCartRequestCustomer.md)
|
|
382
381
|
- [CreateCartRequestItemsInner](docs/CreateCartRequestItemsInner.md)
|
|
383
382
|
- [CreateCartRequestShippingAddress](docs/CreateCartRequestShippingAddress.md)
|
|
384
383
|
- [CreateCustomerRequest](docs/CreateCustomerRequest.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
|
|
|
@@ -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,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { CreateCartRequestItemsInner } from './CreateCartRequestItemsInner';
|
|
13
13
|
import type { CreateCartRequestShippingAddress } from './CreateCartRequestShippingAddress';
|
|
14
|
-
import type { CreateCartRequestCustomer } from './CreateCartRequestCustomer';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
17
16
|
* @export
|
|
@@ -23,7 +22,7 @@ export interface CreateCartRequest {
|
|
|
23
22
|
* @type {number}
|
|
24
23
|
* @memberof CreateCartRequest
|
|
25
24
|
*/
|
|
26
|
-
customerId
|
|
25
|
+
customerId: number;
|
|
27
26
|
/**
|
|
28
27
|
*
|
|
29
28
|
* @type {number}
|
|
@@ -35,19 +34,25 @@ export interface CreateCartRequest {
|
|
|
35
34
|
* @type {string}
|
|
36
35
|
* @memberof CreateCartRequest
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
token?: string;
|
|
39
38
|
/**
|
|
40
39
|
*
|
|
41
40
|
* @type {string}
|
|
42
41
|
* @memberof CreateCartRequest
|
|
43
42
|
*/
|
|
44
|
-
|
|
43
|
+
sessionToken?: string;
|
|
45
44
|
/**
|
|
46
45
|
*
|
|
47
46
|
* @type {string}
|
|
48
47
|
* @memberof CreateCartRequest
|
|
49
48
|
*/
|
|
50
|
-
|
|
49
|
+
paymentToken?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CreateCartRequest
|
|
54
|
+
*/
|
|
55
|
+
guestEmail?: string;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @type {CreateCartRequestSourceEnum}
|
|
@@ -62,10 +67,10 @@ export interface CreateCartRequest {
|
|
|
62
67
|
items?: Array<CreateCartRequestItemsInner>;
|
|
63
68
|
/**
|
|
64
69
|
*
|
|
65
|
-
* @type {
|
|
70
|
+
* @type {Array<string>}
|
|
66
71
|
* @memberof CreateCartRequest
|
|
67
72
|
*/
|
|
68
|
-
|
|
73
|
+
couponCodes?: Array<string>;
|
|
69
74
|
/**
|
|
70
75
|
*
|
|
71
76
|
* @type {CreateCartRequestShippingTypeEnum}
|
|
@@ -21,7 +21,6 @@ exports.CreateCartRequestToJSON = CreateCartRequestToJSON;
|
|
|
21
21
|
exports.CreateCartRequestToJSONTyped = CreateCartRequestToJSONTyped;
|
|
22
22
|
var CreateCartRequestItemsInner_1 = require("./CreateCartRequestItemsInner");
|
|
23
23
|
var CreateCartRequestShippingAddress_1 = require("./CreateCartRequestShippingAddress");
|
|
24
|
-
var CreateCartRequestCustomer_1 = require("./CreateCartRequestCustomer");
|
|
25
24
|
/**
|
|
26
25
|
* @export
|
|
27
26
|
*/
|
|
@@ -43,6 +42,8 @@ exports.CreateCartRequestShippingTypeEnum = {
|
|
|
43
42
|
* Check if a given object implements the CreateCartRequest interface.
|
|
44
43
|
*/
|
|
45
44
|
function instanceOfCreateCartRequest(value) {
|
|
45
|
+
if (!('customerId' in value) || value['customerId'] === undefined)
|
|
46
|
+
return false;
|
|
46
47
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
47
48
|
return false;
|
|
48
49
|
if (!('source' in value) || value['source'] === undefined)
|
|
@@ -57,14 +58,15 @@ function CreateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
return json;
|
|
58
59
|
}
|
|
59
60
|
return {
|
|
60
|
-
'customerId': json['customer_id']
|
|
61
|
+
'customerId': json['customer_id'],
|
|
61
62
|
'siteId': json['site_id'],
|
|
63
|
+
'token': json['token'] == null ? undefined : json['token'],
|
|
62
64
|
'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
|
|
63
65
|
'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
|
|
64
66
|
'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
|
|
65
67
|
'source': json['source'],
|
|
66
68
|
'items': json['items'] == null ? undefined : (json['items'].map(CreateCartRequestItemsInner_1.CreateCartRequestItemsInnerFromJSON)),
|
|
67
|
-
'
|
|
69
|
+
'couponCodes': json['coupon_codes'] == null ? undefined : json['coupon_codes'],
|
|
68
70
|
'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
|
|
69
71
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
70
72
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
@@ -89,12 +91,13 @@ function CreateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
91
|
return {
|
|
90
92
|
'customer_id': value['customerId'],
|
|
91
93
|
'site_id': value['siteId'],
|
|
94
|
+
'token': value['token'],
|
|
92
95
|
'session_token': value['sessionToken'],
|
|
93
96
|
'payment_token': value['paymentToken'],
|
|
94
97
|
'guest_email': value['guestEmail'],
|
|
95
98
|
'source': value['source'],
|
|
96
99
|
'items': value['items'] == null ? undefined : (value['items'].map(CreateCartRequestItemsInner_1.CreateCartRequestItemsInnerToJSON)),
|
|
97
|
-
'
|
|
100
|
+
'coupon_codes': value['couponCodes'],
|
|
98
101
|
'shipping_type': value['shippingType'],
|
|
99
102
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
100
103
|
'override_shipping': value['overrideShipping'],
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -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
|
+
}
|
|
@@ -57,6 +57,12 @@ export interface SearchCartsRequest {
|
|
|
57
57
|
* @memberof SearchCartsRequest
|
|
58
58
|
*/
|
|
59
59
|
source?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof SearchCartsRequest
|
|
64
|
+
*/
|
|
65
|
+
status?: Array<string>;
|
|
60
66
|
/**
|
|
61
67
|
*
|
|
62
68
|
* @type {Date}
|
|
@@ -111,12 +117,6 @@ export interface SearchCartsRequest {
|
|
|
111
117
|
* @memberof SearchCartsRequest
|
|
112
118
|
*/
|
|
113
119
|
includesRelations?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {Array<SearchCartsRequestStatusEnum>}
|
|
117
|
-
* @memberof SearchCartsRequest
|
|
118
|
-
*/
|
|
119
|
-
status?: Array<SearchCartsRequestStatusEnum>;
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* @export
|
|
@@ -135,15 +135,6 @@ export declare const SearchCartsRequestSortDirectionEnum: {
|
|
|
135
135
|
readonly Desc: "desc";
|
|
136
136
|
};
|
|
137
137
|
export type SearchCartsRequestSortDirectionEnum = typeof SearchCartsRequestSortDirectionEnum[keyof typeof SearchCartsRequestSortDirectionEnum];
|
|
138
|
-
/**
|
|
139
|
-
* @export
|
|
140
|
-
*/
|
|
141
|
-
export declare const SearchCartsRequestStatusEnum: {
|
|
142
|
-
readonly Active: "active";
|
|
143
|
-
readonly Expired: "expired";
|
|
144
|
-
readonly Completed: "completed";
|
|
145
|
-
};
|
|
146
|
-
export type SearchCartsRequestStatusEnum = typeof SearchCartsRequestStatusEnum[keyof typeof SearchCartsRequestStatusEnum];
|
|
147
138
|
/**
|
|
148
139
|
* Check if a given object implements the SearchCartsRequest interface.
|
|
149
140
|
*/
|