@digital8/lighting-illusions-ts-sdk 0.0.1958 → 0.0.1960

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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +8 -2
  3. package/dist/models/AddressFrontendResource.d.ts +1 -1
  4. package/dist/models/AddressFrontendResource.js +3 -1
  5. package/dist/models/AddressResource.d.ts +2 -2
  6. package/dist/models/AddressResource.js +3 -3
  7. package/dist/models/CartCouponLiteResource.d.ts +44 -0
  8. package/dist/models/CartCouponLiteResource.js +59 -0
  9. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
  11. package/dist/models/FrontendCartResource.d.ts +138 -0
  12. package/dist/models/FrontendCartResource.js +119 -0
  13. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  15. package/dist/models/FrontendLineItemResource.d.ts +63 -0
  16. package/dist/models/FrontendLineItemResource.js +70 -0
  17. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
  19. package/dist/models/ProductChildCartLiteResource.d.ts +6 -0
  20. package/dist/models/ProductChildCartLiteResource.js +4 -0
  21. package/dist/models/StoreFrontendResource.d.ts +1 -1
  22. package/dist/models/StoreFrontendResource.js +1 -3
  23. package/dist/models/StoreListResource.d.ts +1 -1
  24. package/dist/models/StoreListResource.js +1 -3
  25. package/dist/models/index.d.ts +6 -0
  26. package/dist/models/index.js +6 -0
  27. package/docs/CartCouponLiteResource.md +38 -0
  28. package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
  29. package/docs/FrontendCartResource.md +68 -0
  30. package/docs/FrontendCartResourceArrayResponse.md +34 -0
  31. package/docs/FrontendLineItemResource.md +44 -0
  32. package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
  33. package/docs/ProductChildCartLiteResource.md +2 -0
  34. package/package.json +1 -1
  35. package/src/models/AddressFrontendResource.ts +3 -2
  36. package/src/models/AddressResource.ts +5 -5
  37. package/src/models/CartCouponLiteResource.ts +84 -0
  38. package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
  39. package/src/models/FrontendCartResource.ts +246 -0
  40. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  41. package/src/models/FrontendLineItemResource.ts +118 -0
  42. package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
  43. package/src/models/ProductChildCartLiteResource.ts +9 -0
  44. package/src/models/StoreFrontendResource.ts +2 -3
  45. package/src/models/StoreListResource.ts +2 -3
  46. package/src/models/index.ts +6 -0
@@ -0,0 +1,63 @@
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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FrontendLineItemResource
17
+ */
18
+ export interface FrontendLineItemResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof FrontendLineItemResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof FrontendLineItemResource
29
+ */
30
+ quantity: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof FrontendLineItemResource
35
+ */
36
+ productPrice: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof FrontendLineItemResource
41
+ */
42
+ subtotalAmount: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof FrontendLineItemResource
47
+ */
48
+ totalAmount: number;
49
+ /**
50
+ *
51
+ * @type {ProductChildCartLiteResource}
52
+ * @memberof FrontendLineItemResource
53
+ */
54
+ productChild: ProductChildCartLiteResource | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the FrontendLineItemResource interface.
58
+ */
59
+ export declare function instanceOfFrontendLineItemResource(value: object): value is FrontendLineItemResource;
60
+ export declare function FrontendLineItemResourceFromJSON(json: any): FrontendLineItemResource;
61
+ export declare function FrontendLineItemResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendLineItemResource;
62
+ export declare function FrontendLineItemResourceToJSON(json: any): FrontendLineItemResource;
63
+ export declare function FrontendLineItemResourceToJSONTyped(value?: FrontendLineItemResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.instanceOfFrontendLineItemResource = instanceOfFrontendLineItemResource;
17
+ exports.FrontendLineItemResourceFromJSON = FrontendLineItemResourceFromJSON;
18
+ exports.FrontendLineItemResourceFromJSONTyped = FrontendLineItemResourceFromJSONTyped;
19
+ exports.FrontendLineItemResourceToJSON = FrontendLineItemResourceToJSON;
20
+ exports.FrontendLineItemResourceToJSONTyped = FrontendLineItemResourceToJSONTyped;
21
+ var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
22
+ /**
23
+ * Check if a given object implements the FrontendLineItemResource interface.
24
+ */
25
+ function instanceOfFrontendLineItemResource(value) {
26
+ if (!('quantity' in value) || value['quantity'] === undefined)
27
+ return false;
28
+ if (!('productPrice' in value) || value['productPrice'] === undefined)
29
+ return false;
30
+ if (!('subtotalAmount' in value) || value['subtotalAmount'] === undefined)
31
+ return false;
32
+ if (!('totalAmount' in value) || value['totalAmount'] === undefined)
33
+ return false;
34
+ if (!('productChild' in value) || value['productChild'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function FrontendLineItemResourceFromJSON(json) {
39
+ return FrontendLineItemResourceFromJSONTyped(json, false);
40
+ }
41
+ function FrontendLineItemResourceFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'id': json['id'] == null ? undefined : json['id'],
47
+ 'quantity': json['quantity'],
48
+ 'productPrice': json['product_price'],
49
+ 'subtotalAmount': json['subtotal_amount'],
50
+ 'totalAmount': json['total_amount'],
51
+ 'productChild': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)(json['product_child']),
52
+ };
53
+ }
54
+ function FrontendLineItemResourceToJSON(json) {
55
+ return FrontendLineItemResourceToJSONTyped(json, false);
56
+ }
57
+ function FrontendLineItemResourceToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'quantity': value['quantity'],
65
+ 'product_price': value['productPrice'],
66
+ 'subtotal_amount': value['subtotalAmount'],
67
+ 'total_amount': value['totalAmount'],
68
+ 'product_child': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)(value['productChild']),
69
+ };
70
+ }
@@ -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 { FrontendLineItemResource } from './FrontendLineItemResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FrontendLineItemResourceArrayResponse
17
+ */
18
+ export interface FrontendLineItemResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<FrontendLineItemResource>}
22
+ * @memberof FrontendLineItemResourceArrayResponse
23
+ */
24
+ data?: Array<FrontendLineItemResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the FrontendLineItemResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfFrontendLineItemResourceArrayResponse(value: object): value is FrontendLineItemResourceArrayResponse;
30
+ export declare function FrontendLineItemResourceArrayResponseFromJSON(json: any): FrontendLineItemResourceArrayResponse;
31
+ export declare function FrontendLineItemResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendLineItemResourceArrayResponse;
32
+ export declare function FrontendLineItemResourceArrayResponseToJSON(json: any): FrontendLineItemResourceArrayResponse;
33
+ export declare function FrontendLineItemResourceArrayResponseToJSONTyped(value?: FrontendLineItemResourceArrayResponse | 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.instanceOfFrontendLineItemResourceArrayResponse = instanceOfFrontendLineItemResourceArrayResponse;
17
+ exports.FrontendLineItemResourceArrayResponseFromJSON = FrontendLineItemResourceArrayResponseFromJSON;
18
+ exports.FrontendLineItemResourceArrayResponseFromJSONTyped = FrontendLineItemResourceArrayResponseFromJSONTyped;
19
+ exports.FrontendLineItemResourceArrayResponseToJSON = FrontendLineItemResourceArrayResponseToJSON;
20
+ exports.FrontendLineItemResourceArrayResponseToJSONTyped = FrontendLineItemResourceArrayResponseToJSONTyped;
21
+ var FrontendLineItemResource_1 = require("./FrontendLineItemResource");
22
+ /**
23
+ * Check if a given object implements the FrontendLineItemResourceArrayResponse interface.
24
+ */
25
+ function instanceOfFrontendLineItemResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function FrontendLineItemResourceArrayResponseFromJSON(json) {
29
+ return FrontendLineItemResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function FrontendLineItemResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
37
+ };
38
+ }
39
+ function FrontendLineItemResourceArrayResponseToJSON(json) {
40
+ return FrontendLineItemResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function FrontendLineItemResourceArrayResponseToJSONTyped(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(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
49
+ };
50
+ }
@@ -53,6 +53,12 @@ export interface ProductChildCartLiteResource {
53
53
  * @memberof ProductChildCartLiteResource
54
54
  */
55
55
  name: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ProductChildCartLiteResource
60
+ */
61
+ slug: string;
56
62
  /**
57
63
  *
58
64
  * @type {number}
@@ -36,6 +36,8 @@ function instanceOfProductChildCartLiteResource(value) {
36
36
  return false;
37
37
  if (!('name' in value) || value['name'] === undefined)
38
38
  return false;
39
+ if (!('slug' in value) || value['slug'] === undefined)
40
+ return false;
39
41
  if (!('stock' in value) || value['stock'] === undefined)
40
42
  return false;
41
43
  if (!('salePrice' in value) || value['salePrice'] === undefined)
@@ -60,6 +62,7 @@ function ProductChildCartLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
60
62
  'model': json['model'],
61
63
  'modelNumber': json['model_number'],
62
64
  'name': json['name'],
65
+ 'slug': json['slug'],
63
66
  'stock': json['stock'],
64
67
  'salePrice': json['sale_price'],
65
68
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
@@ -81,6 +84,7 @@ function ProductChildCartLiteResourceToJSONTyped(value, ignoreDiscriminator) {
81
84
  'model': value['model'],
82
85
  'model_number': value['modelNumber'],
83
86
  'name': value['name'],
87
+ 'slug': value['slug'],
84
88
  'stock': value['stock'],
85
89
  'sale_price': value['salePrice'],
86
90
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website: string;
47
+ website?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -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'],
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website: string;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
- if (!('website' in value) || value['website'] === undefined)
41
- return false;
42
40
  return true;
43
41
  }
44
42
  function StoreListResourceFromJSON(json) {
@@ -57,7 +55,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
57
55
  'latitude': json['latitude'],
58
56
  'tagLine': json['tag_line'],
59
57
  'email': json['email'],
60
- 'website': json['website'],
58
+ 'website': json['website'] == null ? undefined : json['website'],
61
59
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
62
60
  };
63
61
  }
@@ -46,6 +46,8 @@ export * from './AttributeResourceArrayResponse';
46
46
  export * from './AttributeType';
47
47
  export * from './AttributeValueResource';
48
48
  export * from './AttributeValueResourceArrayResponse';
49
+ export * from './CartCouponLiteResource';
50
+ export * from './CartCouponLiteResourceArrayResponse';
49
51
  export * from './CartCouponResource';
50
52
  export * from './CartCouponResourceArrayResponse';
51
53
  export * from './CartListResource';
@@ -103,6 +105,10 @@ export * from './ExternalApiLogResource';
103
105
  export * from './ExternalApiLogResourceArrayResponse';
104
106
  export * from './ExternalApiProvider';
105
107
  export * from './ExternalApiSyncStatus';
108
+ export * from './FrontendCartResource';
109
+ export * from './FrontendCartResourceArrayResponse';
110
+ export * from './FrontendLineItemResource';
111
+ export * from './FrontendLineItemResourceArrayResponse';
106
112
  export * from './GenericResponse';
107
113
  export * from './GetAllAttributeRequest';
108
114
  export * from './GetAllAttributeValueRequest';
@@ -64,6 +64,8 @@ __exportStar(require("./AttributeResourceArrayResponse"), exports);
64
64
  __exportStar(require("./AttributeType"), exports);
65
65
  __exportStar(require("./AttributeValueResource"), exports);
66
66
  __exportStar(require("./AttributeValueResourceArrayResponse"), exports);
67
+ __exportStar(require("./CartCouponLiteResource"), exports);
68
+ __exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
67
69
  __exportStar(require("./CartCouponResource"), exports);
68
70
  __exportStar(require("./CartCouponResourceArrayResponse"), exports);
69
71
  __exportStar(require("./CartListResource"), exports);
@@ -121,6 +123,10 @@ __exportStar(require("./ExternalApiLogResource"), exports);
121
123
  __exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
122
124
  __exportStar(require("./ExternalApiProvider"), exports);
123
125
  __exportStar(require("./ExternalApiSyncStatus"), exports);
126
+ __exportStar(require("./FrontendCartResource"), exports);
127
+ __exportStar(require("./FrontendCartResourceArrayResponse"), exports);
128
+ __exportStar(require("./FrontendLineItemResource"), exports);
129
+ __exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
124
130
  __exportStar(require("./GenericResponse"), exports);
125
131
  __exportStar(require("./GetAllAttributeRequest"), exports);
126
132
  __exportStar(require("./GetAllAttributeValueRequest"), exports);
@@ -0,0 +1,38 @@
1
+
2
+ # CartCouponLiteResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `code` | string
11
+ `name` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { CartCouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "id": null,
21
+ "code": null,
22
+ "name": null,
23
+ } satisfies CartCouponLiteResource
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as CartCouponLiteResource
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,34 @@
1
+
2
+ # CartCouponLiteResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;CartCouponLiteResource&gt;](CartCouponLiteResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CartCouponLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies CartCouponLiteResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as CartCouponLiteResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,68 @@
1
+
2
+ # FrontendCartResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `lifecycleStatus` | string
11
+ `siteId` | number
12
+ `sessionToken` | string
13
+ `customer` | [CustomerListResource](CustomerListResource.md)
14
+ `shippingType` | string
15
+ `shippingAddress` | [AddressResource](AddressResource.md)
16
+ `billingAddress` | [AddressResource](AddressResource.md)
17
+ `lineItems` | [Array&lt;FrontendLineItemResource&gt;](FrontendLineItemResource.md)
18
+ `coupons` | [Array&lt;CartCouponLiteResource&gt;](CartCouponLiteResource.md)
19
+ `subtotal` | number
20
+ `promotionalDiscount` | number
21
+ `couponSubtotalDiscount` | number
22
+ `couponShippingDiscount` | number
23
+ `shipping` | number
24
+ `transitInsurance` | number
25
+ `gst` | number
26
+ `grandTotal` | number
27
+
28
+ ## Example
29
+
30
+ ```typescript
31
+ import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
32
+
33
+ // TODO: Update the object below with actual values
34
+ const example = {
35
+ "id": null,
36
+ "lifecycleStatus": null,
37
+ "siteId": null,
38
+ "sessionToken": null,
39
+ "customer": null,
40
+ "shippingType": null,
41
+ "shippingAddress": null,
42
+ "billingAddress": null,
43
+ "lineItems": null,
44
+ "coupons": null,
45
+ "subtotal": null,
46
+ "promotionalDiscount": null,
47
+ "couponSubtotalDiscount": null,
48
+ "couponShippingDiscount": null,
49
+ "shipping": null,
50
+ "transitInsurance": null,
51
+ "gst": null,
52
+ "grandTotal": null,
53
+ } satisfies FrontendCartResource
54
+
55
+ console.log(example)
56
+
57
+ // Convert the instance to a JSON string
58
+ const exampleJSON: string = JSON.stringify(example)
59
+ console.log(exampleJSON)
60
+
61
+ // Parse the JSON string back to an object
62
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
63
+ console.log(exampleParsed)
64
+ ```
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
67
+
68
+
@@ -0,0 +1,34 @@
1
+
2
+ # FrontendCartResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;FrontendCartResource&gt;](FrontendCartResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FrontendCartResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies FrontendCartResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,44 @@
1
+
2
+ # FrontendLineItemResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `quantity` | number
11
+ `productPrice` | number
12
+ `subtotalAmount` | number
13
+ `totalAmount` | number
14
+ `productChild` | [ProductChildCartLiteResource](ProductChildCartLiteResource.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { FrontendLineItemResource } from '@digital8/lighting-illusions-ts-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "quantity": null,
25
+ "productPrice": null,
26
+ "subtotalAmount": null,
27
+ "totalAmount": null,
28
+ "productChild": null,
29
+ } satisfies FrontendLineItemResource
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResource
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # FrontendLineItemResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;FrontendLineItemResource&gt;](FrontendLineItemResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FrontendLineItemResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies FrontendLineItemResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -12,6 +12,7 @@ Name | Type
12
12
  `model` | string
13
13
  `modelNumber` | string
14
14
  `name` | string
15
+ `slug` | string
15
16
  `stock` | number
16
17
  `salePrice` | number
17
18
  `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
@@ -30,6 +31,7 @@ const example = {
30
31
  "model": null,
31
32
  "modelNumber": null,
32
33
  "name": null,
34
+ "slug": null,
33
35
  "stock": null,
34
36
  "salePrice": null,
35
37
  "thumbnail": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1958",
3
+ "version": "0.0.1960",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -75,6 +75,7 @@ export interface AddressFrontendResource {
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
76
  if (!('company' in value) || value['company'] === undefined) return false;
77
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
+ if (!('line2' in value) || value['line2'] === undefined) return false;
78
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
80
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
80
81
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -95,7 +96,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
95
96
 
96
97
  'company': json['company'],
97
98
  'line1': json['line1'],
98
- 'line2': json['line2'] == null ? undefined : json['line2'],
99
+ 'line2': json['line2'],
99
100
  'postcode': json['postcode'],
100
101
  'suburb': json['suburb'],
101
102
  'country': json['country'],