@digital8/lighting-illusions-ts-sdk 0.0.1933 → 0.0.1934
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 +8 -0
- package/README.md +8 -2
- package/dist/apis/OrdersApi.d.ts +37 -2
- package/dist/apis/OrdersApi.js +126 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +7 -1
- package/dist/models/AdminOrderResource.d.ts +16 -4
- package/dist/models/AdminOrderResource.js +15 -7
- package/dist/models/AttachCouponOrderRequest.d.ts +32 -0
- package/dist/models/AttachCouponOrderRequest.js +51 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CartResource.d.ts +15 -3
- package/dist/models/CartResource.js +12 -6
- package/dist/models/DetachCouponOrderRequest.d.ts +32 -0
- package/dist/models/DetachCouponOrderRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllOrderRequest.d.ts +1 -0
- package/dist/models/GetAllOrderRequest.js +2 -1
- package/dist/models/IndexOrderRequest.d.ts +1 -0
- package/dist/models/IndexOrderRequest.js +2 -1
- package/dist/models/OrderListResource.d.ts +18 -0
- package/dist/models/OrderListResource.js +10 -0
- package/dist/models/OrderStatusWithCountResource.d.ts +50 -0
- package/dist/models/OrderStatusWithCountResource.js +63 -0
- package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +33 -0
- package/dist/models/OrderStatusWithCountResourceArrayResponse.js +50 -0
- package/dist/models/StoreCartRequest.d.ts +6 -0
- package/dist/models/StoreCartRequest.js +2 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
- package/dist/models/StoreCartRequestShippingAddress.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +6 -2
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreStoreRequestAddress.d.ts +6 -0
- package/dist/models/StoreStoreRequestAddress.js +2 -0
- package/dist/models/UpdateCartRequest.d.ts +6 -0
- package/dist/models/UpdateCartRequest.js +2 -0
- package/dist/models/UpdateOrderRequest.d.ts +6 -0
- package/dist/models/UpdateOrderRequest.js +2 -0
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +1 -7
- package/dist/models/UpdateOrderRequestBillingAddress.js +3 -5
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +1 -7
- package/dist/models/UpdateOrderRequestShippingAddress.js +2 -6
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/AddressResource.md +2 -0
- package/docs/AdminOrderResource.md +7 -3
- package/docs/AttachCouponOrderRequest.md +34 -0
- package/docs/CartListResource.md +2 -0
- package/docs/CartResource.md +8 -4
- package/docs/DetachCouponOrderRequest.md +34 -0
- package/docs/OrderListResource.md +6 -0
- package/docs/OrderStatusWithCountResource.md +40 -0
- package/docs/OrderStatusWithCountResourceArrayResponse.md +34 -0
- package/docs/OrdersApi.md +141 -3
- package/docs/StoreCartRequest.md +2 -0
- package/docs/StoreCartRequestShippingAddress.md +2 -0
- package/docs/StoreStoreRequestAddress.md +2 -0
- package/docs/UpdateCartRequest.md +2 -0
- package/docs/UpdateOrderRequest.md +2 -0
- package/docs/UpdateOrderRequestBillingAddress.md +2 -4
- package/docs/UpdateOrderRequestShippingAddress.md +2 -4
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +124 -3
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +12 -2
- package/src/models/AdminOrderResource.ts +28 -10
- package/src/models/AttachCouponOrderRequest.ts +66 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CartResource.ts +26 -9
- package/src/models/DetachCouponOrderRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllOrderRequest.ts +2 -1
- package/src/models/IndexOrderRequest.ts +2 -1
- package/src/models/OrderListResource.ts +26 -0
- package/src/models/OrderStatusWithCountResource.ts +93 -0
- package/src/models/OrderStatusWithCountResourceArrayResponse.ts +73 -0
- package/src/models/StoreCartRequest.ts +8 -0
- package/src/models/StoreCartRequestShippingAddress.ts +8 -0
- package/src/models/StoreFrontendResource.ts +6 -4
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreStoreRequestAddress.ts +8 -0
- package/src/models/UpdateCartRequest.ts +8 -0
- package/src/models/UpdateOrderRequest.ts +8 -0
- package/src/models/UpdateOrderRequestBillingAddress.ts +4 -12
- package/src/models/UpdateOrderRequestShippingAddress.ts +3 -12
- package/src/models/index.ts +4 -0
|
@@ -28,12 +28,16 @@ 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;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
37
41
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
38
42
|
return false;
|
|
39
43
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -52,12 +56,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
56
|
'siteId': json['siteId'],
|
|
53
57
|
'name': json['name'],
|
|
54
58
|
'email': json['email'],
|
|
55
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
56
60
|
'phone': json['phone'],
|
|
57
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
58
62
|
'latitude': json['latitude'],
|
|
59
63
|
'longitude': json['longitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
64
|
+
'tagLine': json['tagLine'],
|
|
61
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
62
66
|
'specialDates': json['specialDates'],
|
|
63
67
|
'suppliers': json['suppliers'],
|
|
@@ -36,8 +36,6 @@ 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;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -64,7 +62,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'phone': json['phone'],
|
|
65
63
|
'longitude': json['longitude'],
|
|
66
64
|
'latitude': json['latitude'],
|
|
67
|
-
'tagLine': json['tag_line'],
|
|
65
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
68
66
|
'email': json['email'],
|
|
69
67
|
'website': json['website'],
|
|
70
68
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -44,6 +44,7 @@ function StoreStoreRequestAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
47
48
|
'company': json['company'],
|
|
48
49
|
'line1': json['line_1'],
|
|
49
50
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -62,6 +63,7 @@ function StoreStoreRequestAddressToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
63
|
return value;
|
|
63
64
|
}
|
|
64
65
|
return {
|
|
66
|
+
'addressee_name': value['addresseeName'],
|
|
65
67
|
'company': value['company'],
|
|
66
68
|
'line_1': value['line1'],
|
|
67
69
|
'line_2': value['line2'],
|
|
@@ -64,6 +64,7 @@ function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
65
65
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
66
66
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
67
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
67
68
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
68
69
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
69
70
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -89,6 +90,7 @@ function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
90
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
90
91
|
'override_shipping': value['overrideShipping'],
|
|
91
92
|
'insurance_amount': value['insuranceAmount'],
|
|
93
|
+
'include_insurance': value['includeInsurance'],
|
|
92
94
|
'override_insurance': value['overrideInsurance'],
|
|
93
95
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
94
96
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -71,6 +71,7 @@ function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
71
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
72
72
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
73
73
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
74
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
74
75
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
75
76
|
'shippingAddress': json['shipping_address'] == null ? undefined : (0, UpdateOrderRequestShippingAddress_1.UpdateOrderRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
76
77
|
'billingAddress': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressFromJSON)(json['billing_address']),
|
|
@@ -92,6 +93,7 @@ function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
93
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
93
94
|
'override_shipping': value['overrideShipping'],
|
|
94
95
|
'insurance_amount': value['insuranceAmount'],
|
|
96
|
+
'include_insurance': value['includeInsurance'],
|
|
95
97
|
'override_insurance': value['overrideInsurance'],
|
|
96
98
|
'shipping_address': (0, UpdateOrderRequestShippingAddress_1.UpdateOrderRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
97
99
|
'billing_address': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressToJSON)(value['billingAddress']),
|
|
@@ -20,13 +20,7 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateOrderRequestBillingAddress
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateOrderRequestBillingAddress
|
|
28
|
-
*/
|
|
29
|
-
addressee?: string | null;
|
|
23
|
+
addresseeName: string;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -22,7 +22,7 @@ exports.UpdateOrderRequestBillingAddressToJSONTyped = UpdateOrderRequestBillingA
|
|
|
22
22
|
* Check if a given object implements the UpdateOrderRequestBillingAddress interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfUpdateOrderRequestBillingAddress(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
@@ -34,8 +34,7 @@ function UpdateOrderRequestBillingAddressFromJSONTyped(json, ignoreDiscriminator
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
38
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
37
|
+
'addresseeName': json['addressee_name'],
|
|
39
38
|
'company': json['company'] == null ? undefined : json['company'],
|
|
40
39
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
41
40
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -54,8 +53,7 @@ function UpdateOrderRequestBillingAddressToJSONTyped(value, ignoreDiscriminator)
|
|
|
54
53
|
return value;
|
|
55
54
|
}
|
|
56
55
|
return {
|
|
57
|
-
'
|
|
58
|
-
'addressee': value['addressee'],
|
|
56
|
+
'addressee_name': value['addresseeName'],
|
|
59
57
|
'company': value['company'],
|
|
60
58
|
'line_1': value['line1'],
|
|
61
59
|
'line_2': value['line2'],
|
|
@@ -20,13 +20,7 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateOrderRequestShippingAddress
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
28
|
-
*/
|
|
29
|
-
addressee?: string | null;
|
|
23
|
+
addresseeName?: string | null;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -22,8 +22,6 @@ exports.UpdateOrderRequestShippingAddressToJSONTyped = UpdateOrderRequestShippin
|
|
|
22
22
|
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfUpdateOrderRequestShippingAddress(value) {
|
|
25
|
-
if (!('adresseeName' in value) || value['adresseeName'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
function UpdateOrderRequestShippingAddressFromJSON(json) {
|
|
@@ -34,8 +32,7 @@ function UpdateOrderRequestShippingAddressFromJSONTyped(json, ignoreDiscriminato
|
|
|
34
32
|
return json;
|
|
35
33
|
}
|
|
36
34
|
return {
|
|
37
|
-
'
|
|
38
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
35
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
39
36
|
'company': json['company'] == null ? undefined : json['company'],
|
|
40
37
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
41
38
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -54,8 +51,7 @@ function UpdateOrderRequestShippingAddressToJSONTyped(value, ignoreDiscriminator
|
|
|
54
51
|
return value;
|
|
55
52
|
}
|
|
56
53
|
return {
|
|
57
|
-
'
|
|
58
|
-
'addressee': value['addressee'],
|
|
54
|
+
'addressee_name': value['addresseeName'],
|
|
59
55
|
'company': value['company'],
|
|
60
56
|
'line_1': value['line1'],
|
|
61
57
|
'line_2': value['line2'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './AttachAttributeProductTypeRequest';
|
|
|
24
24
|
export * from './AttachAttributesProductRangeRequest';
|
|
25
25
|
export * from './AttachAttributesProductRangeRequestAttributesInner';
|
|
26
26
|
export * from './AttachCouponCartRequest';
|
|
27
|
+
export * from './AttachCouponOrderRequest';
|
|
27
28
|
export * from './AttachDocumentablesDocumentRequest';
|
|
28
29
|
export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
29
30
|
export * from './AttachDocumentsProductChildRequest';
|
|
@@ -80,6 +81,7 @@ export * from './DetachAccessoriesProductRangeRequest';
|
|
|
80
81
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
81
82
|
export * from './DetachAttributesProductRangeRequest';
|
|
82
83
|
export * from './DetachCouponCartRequest';
|
|
84
|
+
export * from './DetachCouponOrderRequest';
|
|
83
85
|
export * from './DetachDocumentablesDocumentRequest';
|
|
84
86
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
85
87
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -196,6 +198,8 @@ export * from './OrderListResource';
|
|
|
196
198
|
export * from './OrderListResourceArrayResponse';
|
|
197
199
|
export * from './OrderLiteResource';
|
|
198
200
|
export * from './OrderLiteResourceArrayResponse';
|
|
201
|
+
export * from './OrderStatusWithCountResource';
|
|
202
|
+
export * from './OrderStatusWithCountResourceArrayResponse';
|
|
199
203
|
export * from './OverlayTemplateAssetFrontendResource';
|
|
200
204
|
export * from './OverlayTemplateAssetFrontendResourceArrayResponse';
|
|
201
205
|
export * from './OverlayTemplateAssetPosition';
|
package/dist/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __exportStar(require("./AttachAttributeProductTypeRequest"), exports);
|
|
|
42
42
|
__exportStar(require("./AttachAttributesProductRangeRequest"), exports);
|
|
43
43
|
__exportStar(require("./AttachAttributesProductRangeRequestAttributesInner"), exports);
|
|
44
44
|
__exportStar(require("./AttachCouponCartRequest"), exports);
|
|
45
|
+
__exportStar(require("./AttachCouponOrderRequest"), exports);
|
|
45
46
|
__exportStar(require("./AttachDocumentablesDocumentRequest"), exports);
|
|
46
47
|
__exportStar(require("./AttachDocumentablesDocumentRequestDocumentablesInner"), exports);
|
|
47
48
|
__exportStar(require("./AttachDocumentsProductChildRequest"), exports);
|
|
@@ -98,6 +99,7 @@ __exportStar(require("./DetachAccessoriesProductRangeRequest"), exports);
|
|
|
98
99
|
__exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
|
|
99
100
|
__exportStar(require("./DetachAttributesProductRangeRequest"), exports);
|
|
100
101
|
__exportStar(require("./DetachCouponCartRequest"), exports);
|
|
102
|
+
__exportStar(require("./DetachCouponOrderRequest"), exports);
|
|
101
103
|
__exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
|
|
102
104
|
__exportStar(require("./DetachDocumentablesDocumentRequestDocumentablesInner"), exports);
|
|
103
105
|
__exportStar(require("./DetachDocumentsProductChildRequest"), exports);
|
|
@@ -214,6 +216,8 @@ __exportStar(require("./OrderListResource"), exports);
|
|
|
214
216
|
__exportStar(require("./OrderListResourceArrayResponse"), exports);
|
|
215
217
|
__exportStar(require("./OrderLiteResource"), exports);
|
|
216
218
|
__exportStar(require("./OrderLiteResourceArrayResponse"), exports);
|
|
219
|
+
__exportStar(require("./OrderStatusWithCountResource"), exports);
|
|
220
|
+
__exportStar(require("./OrderStatusWithCountResourceArrayResponse"), exports);
|
|
217
221
|
__exportStar(require("./OverlayTemplateAssetFrontendResource"), exports);
|
|
218
222
|
__exportStar(require("./OverlayTemplateAssetFrontendResourceArrayResponse"), exports);
|
|
219
223
|
__exportStar(require("./OverlayTemplateAssetPosition"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
10
|
`sourceAddressId` | number
|
|
11
|
+
`addresseeName` | string
|
|
11
12
|
`company` | string
|
|
12
13
|
`addressee` | string
|
|
13
14
|
`line1` | string
|
|
@@ -27,6 +28,7 @@ import type { AddressResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
27
28
|
const example = {
|
|
28
29
|
"id": null,
|
|
29
30
|
"sourceAddressId": null,
|
|
31
|
+
"addresseeName": null,
|
|
30
32
|
"company": null,
|
|
31
33
|
"addressee": null,
|
|
32
34
|
"line1": null,
|
|
@@ -17,14 +17,16 @@ Name | Type
|
|
|
17
17
|
`shippingSubtotal` | number
|
|
18
18
|
`overrideShipping` | boolean
|
|
19
19
|
`insuranceAmount` | number
|
|
20
|
+
`includeInsurance` | boolean
|
|
20
21
|
`overrideInsurance` | boolean
|
|
21
22
|
`useAsBillingAddress` | boolean
|
|
22
23
|
`netsuiteId` | string
|
|
23
24
|
`isNetsuiteLocked` | boolean
|
|
25
|
+
`isDisabled` | boolean
|
|
24
26
|
`omnisendId` | string
|
|
25
27
|
`subtotal` | number
|
|
26
28
|
`productDiscountAmount` | number
|
|
27
|
-
`
|
|
29
|
+
`subtotalDiscountAmount` | number
|
|
28
30
|
`shippingDiscountAmount` | number
|
|
29
31
|
`shippingAmount` | number
|
|
30
32
|
`total` | number
|
|
@@ -44,7 +46,7 @@ Name | Type
|
|
|
44
46
|
`coupons` | object
|
|
45
47
|
`shippingAddress` | object
|
|
46
48
|
`billingAddress` | object
|
|
47
|
-
`omnisendSync` |
|
|
49
|
+
`omnisendSync` | string
|
|
48
50
|
|
|
49
51
|
## Example
|
|
50
52
|
|
|
@@ -64,14 +66,16 @@ const example = {
|
|
|
64
66
|
"shippingSubtotal": null,
|
|
65
67
|
"overrideShipping": null,
|
|
66
68
|
"insuranceAmount": null,
|
|
69
|
+
"includeInsurance": null,
|
|
67
70
|
"overrideInsurance": null,
|
|
68
71
|
"useAsBillingAddress": null,
|
|
69
72
|
"netsuiteId": null,
|
|
70
73
|
"isNetsuiteLocked": null,
|
|
74
|
+
"isDisabled": null,
|
|
71
75
|
"omnisendId": null,
|
|
72
76
|
"subtotal": null,
|
|
73
77
|
"productDiscountAmount": null,
|
|
74
|
-
"
|
|
78
|
+
"subtotalDiscountAmount": null,
|
|
75
79
|
"shippingDiscountAmount": null,
|
|
76
80
|
"shippingAmount": null,
|
|
77
81
|
"total": null,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# AttachCouponOrderRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`couponCode` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { AttachCouponOrderRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"couponCode": null,
|
|
19
|
+
} satisfies AttachCouponOrderRequest
|
|
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 AttachCouponOrderRequest
|
|
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
|
+
|
package/docs/CartListResource.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`shippingSubtotal` | number
|
|
14
14
|
`overrideShipping` | boolean
|
|
15
15
|
`insuranceAmount` | number
|
|
16
|
+
`includeInsurance` | boolean
|
|
16
17
|
`overrideInsurance` | boolean
|
|
17
18
|
`useAsBillingAddress` | boolean
|
|
18
19
|
`expiryDate` | Date
|
|
@@ -38,6 +39,7 @@ const example = {
|
|
|
38
39
|
"shippingSubtotal": null,
|
|
39
40
|
"overrideShipping": null,
|
|
40
41
|
"insuranceAmount": null,
|
|
42
|
+
"includeInsurance": null,
|
|
41
43
|
"overrideInsurance": null,
|
|
42
44
|
"useAsBillingAddress": null,
|
|
43
45
|
"expiryDate": null,
|
package/docs/CartResource.md
CHANGED
|
@@ -18,7 +18,8 @@ Name | Type
|
|
|
18
18
|
`shippingType` | string
|
|
19
19
|
`shippingSubtotal` | number
|
|
20
20
|
`overrideShipping` | boolean
|
|
21
|
-
`
|
|
21
|
+
`insuranceSubtotal` | string
|
|
22
|
+
`includeInsurance` | boolean
|
|
22
23
|
`overrideInsurance` | boolean
|
|
23
24
|
`useAsBillingAddress` | boolean
|
|
24
25
|
`admin` | object
|
|
@@ -31,11 +32,12 @@ Name | Type
|
|
|
31
32
|
`discountPreview` | number
|
|
32
33
|
`subtotal` | number
|
|
33
34
|
`shippingAmount` | number
|
|
35
|
+
`insuranceAmount` | number
|
|
34
36
|
`total` | number
|
|
35
37
|
`discountAmount` | number
|
|
36
38
|
`productDiscountAmount` | number
|
|
37
39
|
`shippingDiscountAmount` | number
|
|
38
|
-
`
|
|
40
|
+
`subtotalDiscountAmount` | number
|
|
39
41
|
`finalTotalAmount` | number
|
|
40
42
|
`status` | string
|
|
41
43
|
|
|
@@ -58,7 +60,8 @@ const example = {
|
|
|
58
60
|
"shippingType": null,
|
|
59
61
|
"shippingSubtotal": null,
|
|
60
62
|
"overrideShipping": null,
|
|
61
|
-
"
|
|
63
|
+
"insuranceSubtotal": null,
|
|
64
|
+
"includeInsurance": null,
|
|
62
65
|
"overrideInsurance": null,
|
|
63
66
|
"useAsBillingAddress": null,
|
|
64
67
|
"admin": null,
|
|
@@ -71,11 +74,12 @@ const example = {
|
|
|
71
74
|
"discountPreview": null,
|
|
72
75
|
"subtotal": null,
|
|
73
76
|
"shippingAmount": null,
|
|
77
|
+
"insuranceAmount": null,
|
|
74
78
|
"total": null,
|
|
75
79
|
"discountAmount": null,
|
|
76
80
|
"productDiscountAmount": null,
|
|
77
81
|
"shippingDiscountAmount": null,
|
|
78
|
-
"
|
|
82
|
+
"subtotalDiscountAmount": null,
|
|
79
83
|
"finalTotalAmount": null,
|
|
80
84
|
"status": null,
|
|
81
85
|
} satisfies CartResource
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# DetachCouponOrderRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`couponId` | number
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { DetachCouponOrderRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"couponId": null,
|
|
19
|
+
} satisfies DetachCouponOrderRequest
|
|
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 DetachCouponOrderRequest
|
|
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
|
+
|
|
@@ -11,6 +11,9 @@ Name | Type
|
|
|
11
11
|
`placedAt` | Date
|
|
12
12
|
`createdAt` | Date
|
|
13
13
|
`updatedAt` | Date
|
|
14
|
+
`source` | string
|
|
15
|
+
`netsuiteId` | string
|
|
16
|
+
`isNetsuiteLocked` | boolean
|
|
14
17
|
`subtotal` | number
|
|
15
18
|
`finalTotalAmount` | number
|
|
16
19
|
`cartStatusContext` | object
|
|
@@ -31,6 +34,9 @@ const example = {
|
|
|
31
34
|
"placedAt": null,
|
|
32
35
|
"createdAt": null,
|
|
33
36
|
"updatedAt": null,
|
|
37
|
+
"source": null,
|
|
38
|
+
"netsuiteId": null,
|
|
39
|
+
"isNetsuiteLocked": null,
|
|
34
40
|
"subtotal": null,
|
|
35
41
|
"finalTotalAmount": null,
|
|
36
42
|
"cartStatusContext": null,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# OrderStatusWithCountResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`isOrderNetsuiteSyncable` | boolean
|
|
12
|
+
`ordersCount` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { OrderStatusWithCountResource } 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
|
+
"isOrderNetsuiteSyncable": null,
|
|
24
|
+
"ordersCount": null,
|
|
25
|
+
} satisfies OrderStatusWithCountResource
|
|
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 OrderStatusWithCountResource
|
|
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
|
+
# OrderStatusWithCountResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<OrderStatusWithCountResource>](OrderStatusWithCountResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { OrderStatusWithCountResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies OrderStatusWithCountResourceArrayResponse
|
|
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 OrderStatusWithCountResourceArrayResponse
|
|
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
|
+
|