@digital8/lighting-illusions-ts-sdk 0.0.1897 → 0.0.1898

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 (70) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +12 -3
  3. package/dist/apis/CartsApi.d.ts +6 -6
  4. package/dist/apis/CartsApi.js +3 -5
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +1 -3
  9. package/dist/models/CartCouponResource.d.ts +50 -0
  10. package/dist/models/CartCouponResource.js +63 -0
  11. package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/CartCouponResourceArrayResponse.js +50 -0
  13. package/dist/models/CartResource.d.ts +37 -6
  14. package/dist/models/CartResource.js +35 -12
  15. package/dist/models/DetachCouponCartRequest.d.ts +32 -0
  16. package/dist/models/DetachCouponCartRequest.js +51 -0
  17. package/dist/models/DiscountType.d.ts +26 -0
  18. package/dist/models/DiscountType.js +52 -0
  19. package/dist/models/DiscountValueType.d.ts +25 -0
  20. package/dist/models/DiscountValueType.js +51 -0
  21. package/dist/models/LineItemDiscountResource.d.ts +50 -0
  22. package/dist/models/LineItemDiscountResource.js +63 -0
  23. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/LineItemDiscountResourceArrayResponse.js +50 -0
  25. package/dist/models/LineItemListResource.d.ts +29 -4
  26. package/dist/models/LineItemListResource.js +23 -4
  27. package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
  28. package/dist/models/ProductChildCartLiteResource.js +77 -0
  29. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
  31. package/dist/models/StoreListResource.d.ts +1 -1
  32. package/dist/models/StoreListResource.js +3 -1
  33. package/dist/models/StoreResource.d.ts +1 -1
  34. package/dist/models/StoreResource.js +3 -1
  35. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  36. package/dist/models/StoreSpecialDateResource.js +1 -3
  37. package/dist/models/index.d.ts +9 -0
  38. package/dist/models/index.js +9 -0
  39. package/docs/CartCouponResource.md +40 -0
  40. package/docs/CartCouponResourceArrayResponse.md +34 -0
  41. package/docs/CartResource.md +17 -7
  42. package/docs/CartsApi.md +8 -8
  43. package/docs/DetachCouponCartRequest.md +34 -0
  44. package/docs/DiscountType.md +32 -0
  45. package/docs/DiscountValueType.md +32 -0
  46. package/docs/LineItemDiscountResource.md +40 -0
  47. package/docs/LineItemDiscountResourceArrayResponse.md +34 -0
  48. package/docs/LineItemListResource.md +9 -1
  49. package/docs/ProductChildCartLiteResource.md +46 -0
  50. package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
  51. package/docs/StoreSpecialDateResource.md +1 -1
  52. package/package.json +1 -1
  53. package/src/apis/CartsApi.ts +12 -14
  54. package/src/models/AddressFrontendResource.ts +3 -2
  55. package/src/models/AddressResource.ts +2 -3
  56. package/src/models/CartCouponResource.ts +93 -0
  57. package/src/models/CartCouponResourceArrayResponse.ts +73 -0
  58. package/src/models/CartResource.ts +71 -18
  59. package/src/models/DetachCouponCartRequest.ts +66 -0
  60. package/src/models/DiscountType.ts +54 -0
  61. package/src/models/DiscountValueType.ts +53 -0
  62. package/src/models/LineItemDiscountResource.ts +93 -0
  63. package/src/models/LineItemDiscountResourceArrayResponse.ts +73 -0
  64. package/src/models/LineItemListResource.ts +56 -12
  65. package/src/models/ProductChildCartLiteResource.ts +135 -0
  66. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
  67. package/src/models/StoreListResource.ts +3 -2
  68. package/src/models/StoreResource.ts +3 -2
  69. package/src/models/StoreSpecialDateResource.ts +3 -4
  70. package/src/models/index.ts +9 -0
@@ -0,0 +1,77 @@
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.instanceOfProductChildCartLiteResource = instanceOfProductChildCartLiteResource;
17
+ exports.ProductChildCartLiteResourceFromJSON = ProductChildCartLiteResourceFromJSON;
18
+ exports.ProductChildCartLiteResourceFromJSONTyped = ProductChildCartLiteResourceFromJSONTyped;
19
+ exports.ProductChildCartLiteResourceToJSON = ProductChildCartLiteResourceToJSON;
20
+ exports.ProductChildCartLiteResourceToJSONTyped = ProductChildCartLiteResourceToJSONTyped;
21
+ var LabelResource_1 = require("./LabelResource");
22
+ var AssetLiteResource_1 = require("./AssetLiteResource");
23
+ /**
24
+ * Check if a given object implements the ProductChildCartLiteResource interface.
25
+ */
26
+ function instanceOfProductChildCartLiteResource(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('parentId' in value) || value['parentId'] === undefined)
30
+ return false;
31
+ if (!('sku' in value) || value['sku'] === undefined)
32
+ return false;
33
+ if (!('model' in value) || value['model'] === undefined)
34
+ return false;
35
+ if (!('name' in value) || value['name'] === undefined)
36
+ return false;
37
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined)
38
+ return false;
39
+ if (!('label' in value) || value['label'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function ProductChildCartLiteResourceFromJSON(json) {
44
+ return ProductChildCartLiteResourceFromJSONTyped(json, false);
45
+ }
46
+ function ProductChildCartLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'parentId': json['parent_id'],
53
+ 'sku': json['sku'],
54
+ 'model': json['model'],
55
+ 'name': json['name'],
56
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
57
+ 'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
58
+ };
59
+ }
60
+ function ProductChildCartLiteResourceToJSON(json) {
61
+ return ProductChildCartLiteResourceToJSONTyped(json, false);
62
+ }
63
+ function ProductChildCartLiteResourceToJSONTyped(value, ignoreDiscriminator) {
64
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'parent_id': value['parentId'],
71
+ 'sku': value['sku'],
72
+ 'model': value['model'],
73
+ 'name': value['name'],
74
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
75
+ 'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
76
+ };
77
+ }
@@ -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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductChildCartLiteResourceArrayResponse
17
+ */
18
+ export interface ProductChildCartLiteResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductChildCartLiteResource>}
22
+ * @memberof ProductChildCartLiteResourceArrayResponse
23
+ */
24
+ data?: Array<ProductChildCartLiteResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse;
30
+ export declare function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse;
31
+ export declare function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse;
32
+ export declare function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse;
33
+ export declare function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | 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.instanceOfProductChildCartLiteResourceArrayResponse = instanceOfProductChildCartLiteResourceArrayResponse;
17
+ exports.ProductChildCartLiteResourceArrayResponseFromJSON = ProductChildCartLiteResourceArrayResponseFromJSON;
18
+ exports.ProductChildCartLiteResourceArrayResponseFromJSONTyped = ProductChildCartLiteResourceArrayResponseFromJSONTyped;
19
+ exports.ProductChildCartLiteResourceArrayResponseToJSON = ProductChildCartLiteResourceArrayResponseToJSON;
20
+ exports.ProductChildCartLiteResourceArrayResponseToJSONTyped = ProductChildCartLiteResourceArrayResponseToJSONTyped;
21
+ var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
22
+ /**
23
+ * Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductChildCartLiteResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductChildCartLiteResourceArrayResponseFromJSON(json) {
29
+ return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductChildCartLiteResourceArrayResponseToJSON(json) {
40
+ return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductChildCartLiteResourceArrayResponseToJSONTyped(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(ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)),
49
+ };
50
+ }
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -37,6 +37,8 @@ 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;
40
42
  return true;
41
43
  }
42
44
  function StoreListResourceFromJSON(json) {
@@ -55,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
55
57
  'latitude': json['latitude'],
56
58
  'tagLine': json['tag_line'],
57
59
  'email': json['email'],
58
- 'website': json['website'] == null ? undefined : json['website'],
60
+ 'website': json['website'],
59
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
60
62
  };
61
63
  }
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -36,6 +36,8 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
39
41
  if (!('email' in value) || value['email'] === undefined)
40
42
  return false;
41
43
  if (!('website' in value) || value['website'] === undefined)
@@ -62,7 +64,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
62
64
  'phone': json['phone'],
63
65
  'longitude': json['longitude'],
64
66
  'latitude': json['latitude'],
65
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
67
+ 'tagLine': json['tag_line'],
66
68
  'email': json['email'],
67
69
  'website': json['website'],
68
70
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -35,10 +35,10 @@ export interface StoreSpecialDateResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
- if (!('date' in value) || value['date'] === undefined)
30
- return false;
31
29
  if (!('closed' in value) || value['closed'] === undefined)
32
30
  return false;
33
31
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
47
45
  'id': json['id'] == null ? undefined : json['id'],
48
46
  'name': json['name'],
49
47
  'hours': json['hours'],
50
- 'date': json['date'],
48
+ 'date': json['date'] == null ? undefined : json['date'],
51
49
  'closed': json['closed'],
52
50
  'displayStartDate': json['display_start_date'],
53
51
  'displayEndDate': json['display_end_date'],
@@ -42,6 +42,8 @@ export * from './AttributeResourceArrayResponse';
42
42
  export * from './AttributeType';
43
43
  export * from './AttributeValueResource';
44
44
  export * from './AttributeValueResourceArrayResponse';
45
+ export * from './CartCouponResource';
46
+ export * from './CartCouponResourceArrayResponse';
45
47
  export * from './CartListResource';
46
48
  export * from './CartListResourceArrayResponse';
47
49
  export * from './CartOrderSource';
@@ -72,6 +74,7 @@ export * from './DestroyAttributeValueRequest';
72
74
  export * from './DetachAccessoriesProductRangeRequest';
73
75
  export * from './DetachAssetableOverlayTemplateRequest';
74
76
  export * from './DetachAttributesProductRangeRequest';
77
+ export * from './DetachCouponCartRequest';
75
78
  export * from './DetachDocumentablesDocumentRequest';
76
79
  export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
77
80
  export * from './DetachDocumentsProductChildRequest';
@@ -79,6 +82,8 @@ export * from './DetachDocumentsProductRangeRequest';
79
82
  export * from './DetachProductsProductCategoryRequest';
80
83
  export * from './DetachStoresSupplierRequest';
81
84
  export * from './DetachSuppliersStoreRequest';
85
+ export * from './DiscountType';
86
+ export * from './DiscountValueType';
82
87
  export * from './DocumentFileForUploadResource';
83
88
  export * from './DocumentFileForUploadResourceArrayResponse';
84
89
  export * from './DocumentFrontendResource';
@@ -154,6 +159,8 @@ export * from './LabelResource';
154
159
  export * from './LabelResourceArrayResponse';
155
160
  export * from './LiAddressResource';
156
161
  export * from './LiAddressResourceArrayResponse';
162
+ export * from './LineItemDiscountResource';
163
+ export * from './LineItemDiscountResourceArrayResponse';
157
164
  export * from './LineItemListResource';
158
165
  export * from './LineItemListResourceArrayResponse';
159
166
  export * from './ListAssetsProductRegistrationRequest';
@@ -263,6 +270,8 @@ export * from './ProductChildAttributeGroupedResource';
263
270
  export * from './ProductChildAttributeGroupedResourceArrayResponse';
264
271
  export * from './ProductChildAttributeResource';
265
272
  export * from './ProductChildAttributeResourceArrayResponse';
273
+ export * from './ProductChildCartLiteResource';
274
+ export * from './ProductChildCartLiteResourceArrayResponse';
266
275
  export * from './ProductChildListResource';
267
276
  export * from './ProductChildListResourceArrayResponse';
268
277
  export * from './ProductChildLiteResource';
@@ -60,6 +60,8 @@ __exportStar(require("./AttributeResourceArrayResponse"), exports);
60
60
  __exportStar(require("./AttributeType"), exports);
61
61
  __exportStar(require("./AttributeValueResource"), exports);
62
62
  __exportStar(require("./AttributeValueResourceArrayResponse"), exports);
63
+ __exportStar(require("./CartCouponResource"), exports);
64
+ __exportStar(require("./CartCouponResourceArrayResponse"), exports);
63
65
  __exportStar(require("./CartListResource"), exports);
64
66
  __exportStar(require("./CartListResourceArrayResponse"), exports);
65
67
  __exportStar(require("./CartOrderSource"), exports);
@@ -90,6 +92,7 @@ __exportStar(require("./DestroyAttributeValueRequest"), exports);
90
92
  __exportStar(require("./DetachAccessoriesProductRangeRequest"), exports);
91
93
  __exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
92
94
  __exportStar(require("./DetachAttributesProductRangeRequest"), exports);
95
+ __exportStar(require("./DetachCouponCartRequest"), exports);
93
96
  __exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
94
97
  __exportStar(require("./DetachDocumentablesDocumentRequestDocumentablesInner"), exports);
95
98
  __exportStar(require("./DetachDocumentsProductChildRequest"), exports);
@@ -97,6 +100,8 @@ __exportStar(require("./DetachDocumentsProductRangeRequest"), exports);
97
100
  __exportStar(require("./DetachProductsProductCategoryRequest"), exports);
98
101
  __exportStar(require("./DetachStoresSupplierRequest"), exports);
99
102
  __exportStar(require("./DetachSuppliersStoreRequest"), exports);
103
+ __exportStar(require("./DiscountType"), exports);
104
+ __exportStar(require("./DiscountValueType"), exports);
100
105
  __exportStar(require("./DocumentFileForUploadResource"), exports);
101
106
  __exportStar(require("./DocumentFileForUploadResourceArrayResponse"), exports);
102
107
  __exportStar(require("./DocumentFrontendResource"), exports);
@@ -172,6 +177,8 @@ __exportStar(require("./LabelResource"), exports);
172
177
  __exportStar(require("./LabelResourceArrayResponse"), exports);
173
178
  __exportStar(require("./LiAddressResource"), exports);
174
179
  __exportStar(require("./LiAddressResourceArrayResponse"), exports);
180
+ __exportStar(require("./LineItemDiscountResource"), exports);
181
+ __exportStar(require("./LineItemDiscountResourceArrayResponse"), exports);
175
182
  __exportStar(require("./LineItemListResource"), exports);
176
183
  __exportStar(require("./LineItemListResourceArrayResponse"), exports);
177
184
  __exportStar(require("./ListAssetsProductRegistrationRequest"), exports);
@@ -281,6 +288,8 @@ __exportStar(require("./ProductChildAttributeGroupedResource"), exports);
281
288
  __exportStar(require("./ProductChildAttributeGroupedResourceArrayResponse"), exports);
282
289
  __exportStar(require("./ProductChildAttributeResource"), exports);
283
290
  __exportStar(require("./ProductChildAttributeResourceArrayResponse"), exports);
291
+ __exportStar(require("./ProductChildCartLiteResource"), exports);
292
+ __exportStar(require("./ProductChildCartLiteResourceArrayResponse"), exports);
284
293
  __exportStar(require("./ProductChildListResource"), exports);
285
294
  __exportStar(require("./ProductChildListResourceArrayResponse"), exports);
286
295
  __exportStar(require("./ProductChildLiteResource"), exports);
@@ -0,0 +1,40 @@
1
+
2
+ # CartCouponResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `code` | string
11
+ `name` | string
12
+ `discountTotal` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { CartCouponResource } from '@digital8/lighting-illusions-ts-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "code": null,
23
+ "name": null,
24
+ "discountTotal": null,
25
+ } satisfies CartCouponResource
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as CartCouponResource
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,34 @@
1
+
2
+ # CartCouponResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;CartCouponResource&gt;](CartCouponResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CartCouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies CartCouponResourceArrayResponse
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 CartCouponResourceArrayResponse
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
+
@@ -25,13 +25,18 @@ Name | Type
25
25
  `site` | [SiteLiteResource](SiteLiteResource.md)
26
26
  `customer` | [CustomerListResource](CustomerListResource.md)
27
27
  `lineItems` | [Array&lt;LineItemListResource&gt;](LineItemListResource.md)
28
- `coupons` | object
28
+ `coupons` | [Array&lt;CartCouponResource&gt;](CartCouponResource.md)
29
29
  `shippingAddress` | [AddressResource](AddressResource.md)
30
30
  `billingAddress` | [AddressResource](AddressResource.md)
31
- `subtotal` | number
32
31
  `discountPreview` | number
33
- `shippingEstimate` | number
34
- `insuranceEstimate` | number
32
+ `subtotal` | number
33
+ `shippingAmount` | number
34
+ `total` | number
35
+ `discountAmount` | number
36
+ `productDiscountAmount` | number
37
+ `shippingDiscountAmount` | number
38
+ `cartDiscountAmount` | number
39
+ `finalTotalAmount` | number
35
40
  `status` | string
36
41
 
37
42
  ## Example
@@ -63,10 +68,15 @@ const example = {
63
68
  "coupons": null,
64
69
  "shippingAddress": null,
65
70
  "billingAddress": null,
66
- "subtotal": null,
67
71
  "discountPreview": null,
68
- "shippingEstimate": null,
69
- "insuranceEstimate": null,
72
+ "subtotal": null,
73
+ "shippingAmount": null,
74
+ "total": null,
75
+ "discountAmount": null,
76
+ "productDiscountAmount": null,
77
+ "shippingDiscountAmount": null,
78
+ "cartDiscountAmount": null,
79
+ "finalTotalAmount": null,
70
80
  "status": null,
71
81
  } satisfies CartResource
72
82
 
package/docs/CartsApi.md CHANGED
@@ -7,7 +7,7 @@ All URIs are relative to *http://localhost/api*
7
7
  | [**attachCouponCart**](CartsApi.md#attachcouponcartoperation) | **POST** /admin-api/carts/{cart}/coupons/attach | Auto-generated: attachCouponCart |
8
8
  | [**attachItemCart**](CartsApi.md#attachitemcartoperation) | **POST** /admin-api/carts/{cart}/items/attach | Auto-generated: attachItemCart |
9
9
  | [**destroyCart**](CartsApi.md#destroycart) | **DELETE** /admin-api/carts/{cart}/delete | Auto-generated: destroyCart |
10
- | [**detachCouponCart**](CartsApi.md#detachcouponcart) | **DELETE** /admin-api/carts/{cart}/coupons/{coupon}/detach | Auto-generated: detachCouponCart |
10
+ | [**detachCouponCart**](CartsApi.md#detachcouponcartoperation) | **DELETE** /admin-api/carts/{cart}/coupons/detach | Auto-generated: detachCouponCart |
11
11
  | [**detachItemCart**](CartsApi.md#detachitemcart) | **DELETE** /admin-api/carts/{cart}/items/{lineItem}/detach | Auto-generated: detachItemCart |
12
12
  | [**indexCart**](CartsApi.md#indexcartoperation) | **POST** /admin-api/carts/list | Auto-generated: indexCart |
13
13
  | [**sendPaymentLinkCart**](CartsApi.md#sendpaymentlinkcart) | **POST** /admin-api/carts/{cart}/send-payment-link | Auto-generated: sendPaymentLinkCart |
@@ -221,7 +221,7 @@ No authorization required
221
221
 
222
222
  ## detachCouponCart
223
223
 
224
- > CartResource detachCouponCart(cart, coupon)
224
+ > CartResource detachCouponCart(cart, detachCouponCartRequest)
225
225
 
226
226
  Auto-generated: detachCouponCart
227
227
 
@@ -232,7 +232,7 @@ import {
232
232
  Configuration,
233
233
  CartsApi,
234
234
  } from '@digital8/lighting-illusions-ts-sdk';
235
- import type { DetachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk';
235
+ import type { DetachCouponCartOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
236
236
 
237
237
  async function example() {
238
238
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
@@ -241,9 +241,9 @@ async function example() {
241
241
  const body = {
242
242
  // number | The id of the cart
243
243
  cart: 56,
244
- // number | The id of the coupon
245
- coupon: 56,
246
- } satisfies DetachCouponCartRequest;
244
+ // DetachCouponCartRequest (optional)
245
+ detachCouponCartRequest: ...,
246
+ } satisfies DetachCouponCartOperationRequest;
247
247
 
248
248
  try {
249
249
  const data = await api.detachCouponCart(body);
@@ -263,7 +263,7 @@ example().catch(console.error);
263
263
  | Name | Type | Description | Notes |
264
264
  |------------- | ------------- | ------------- | -------------|
265
265
  | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
266
- | **coupon** | `number` | The id of the coupon | [Defaults to `undefined`] |
266
+ | **detachCouponCartRequest** | [DetachCouponCartRequest](DetachCouponCartRequest.md) | | [Optional] |
267
267
 
268
268
  ### Return type
269
269
 
@@ -275,7 +275,7 @@ No authorization required
275
275
 
276
276
  ### HTTP request headers
277
277
 
278
- - **Content-Type**: Not defined
278
+ - **Content-Type**: `application/json`
279
279
  - **Accept**: `application/json`
280
280
 
281
281
 
@@ -0,0 +1,34 @@
1
+
2
+ # DetachCouponCartRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `couponIds` | Array&lt;number&gt;
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { DetachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "couponIds": null,
19
+ } satisfies DetachCouponCartRequest
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 DetachCouponCartRequest
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,32 @@
1
+
2
+ # DiscountType
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { DiscountType } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies DiscountType
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as DiscountType
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -0,0 +1,32 @@
1
+
2
+ # DiscountValueType
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { DiscountValueType } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies DiscountValueType
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as DiscountValueType
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -0,0 +1,40 @@
1
+
2
+ # LineItemDiscountResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `discountTotal` | number
12
+ `couponCode` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { LineItemDiscountResource } from '@digital8/lighting-illusions-ts-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "name": null,
23
+ "discountTotal": null,
24
+ "couponCode": null,
25
+ } satisfies LineItemDiscountResource
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as LineItemDiscountResource
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+