@digital8/lighting-illusions-ts-sdk 0.0.2811 → 0.0.2813
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/README.md +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderLineItemResource.d.ts +2 -2
- package/dist/models/AdminOrderResource.d.ts +4 -4
- package/dist/models/AppliedCouponResource.d.ts +4 -4
- package/dist/models/CartResource.d.ts +2 -2
- package/dist/models/CategoryAutomationRuleResource.d.ts +2 -2
- package/dist/models/CategoryFrontendResource.d.ts +2 -2
- package/dist/models/CouponListResource.d.ts +2 -2
- package/dist/models/CouponResource.d.ts +4 -4
- package/dist/models/DiscountResource.d.ts +2 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendLineItemResource.d.ts +2 -2
- package/dist/models/LineItemListResource.d.ts +2 -2
- package/dist/models/ModelAttributeListResource.d.ts +2 -2
- package/dist/models/ModelAttributeResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/ProductAccessoryFrontendResource.d.ts +4 -4
- package/dist/models/ProductCategoryResource.d.ts +2 -2
- package/dist/models/ProductChildListResource.d.ts +2 -2
- package/dist/models/ProductChildLiteFrontendResource.d.ts +6 -6
- package/dist/models/ProductChildOverlayRelationResource.d.ts +2 -2
- package/dist/models/ProductChildResource.d.ts +8 -8
- package/dist/models/ProductChildResource.js +4 -4
- package/dist/models/ProductChildSiteDetailFrontendResource.d.ts +4 -4
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +4 -4
- package/dist/models/ProductChildSiteDetailResource.d.ts +4 -4
- package/dist/models/ProductCompareResource.d.ts +4 -4
- package/dist/models/ProductDetailFrontendResource.d.ts +6 -6
- package/dist/models/SiteNotificationListResource.d.ts +4 -4
- package/dist/models/SiteNotificationListResource.js +4 -4
- package/dist/models/SiteNotificationResource.d.ts +4 -4
- package/dist/models/SiteNotificationResource.js +4 -4
- package/dist/models/SitePaymentConfigResource.d.ts +14 -14
- package/dist/models/StoreCreditListResource.d.ts +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +6 -6
- package/dist/models/StoreSpecialDateFrontendResource.js +6 -6
- package/dist/models/StoreSpecialDateResource.d.ts +6 -6
- package/dist/models/StoreSpecialDateResource.js +6 -6
- package/dist/models/TransactionListResource.d.ts +2 -2
- package/dist/models/TransactionLiteResource.d.ts +4 -4
- package/dist/models/TransactionResource.d.ts +4 -4
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderLineItemResource.ts +2 -2
- package/src/models/AdminOrderResource.ts +4 -4
- package/src/models/AppliedCouponResource.ts +4 -4
- package/src/models/CartResource.ts +2 -2
- package/src/models/CategoryAutomationRuleResource.ts +2 -2
- package/src/models/CategoryFrontendResource.ts +2 -2
- package/src/models/CouponListResource.ts +2 -2
- package/src/models/CouponResource.ts +4 -4
- package/src/models/DiscountResource.ts +2 -2
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendLineItemResource.ts +2 -2
- package/src/models/LineItemListResource.ts +2 -2
- package/src/models/ModelAttributeListResource.ts +2 -2
- package/src/models/ModelAttributeResource.ts +2 -2
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/ProductAccessoryFrontendResource.ts +4 -4
- package/src/models/ProductCategoryResource.ts +2 -2
- package/src/models/ProductChildListResource.ts +2 -2
- package/src/models/ProductChildLiteFrontendResource.ts +6 -6
- package/src/models/ProductChildOverlayRelationResource.ts +2 -2
- package/src/models/ProductChildResource.ts +12 -12
- package/src/models/ProductChildSiteDetailFrontendResource.ts +4 -4
- package/src/models/ProductChildSiteDetailLiteResource.ts +4 -4
- package/src/models/ProductChildSiteDetailResource.ts +4 -4
- package/src/models/ProductCompareResource.ts +4 -4
- package/src/models/ProductDetailFrontendResource.ts +6 -6
- package/src/models/SiteNotificationListResource.ts +8 -8
- package/src/models/SiteNotificationResource.ts +8 -8
- package/src/models/SitePaymentConfigResource.ts +14 -14
- package/src/models/StoreCreditListResource.ts +4 -4
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +12 -12
- package/src/models/StoreSpecialDateResource.ts +12 -12
- package/src/models/TransactionListResource.ts +2 -2
- package/src/models/TransactionLiteResource.ts +4 -4
- package/src/models/TransactionResource.ts +4 -4
|
@@ -53,8 +53,8 @@ function SiteNotificationListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'heading': json['heading'] == null ? undefined : json['heading'],
|
|
54
54
|
'type': json['type'] == null ? undefined : json['type'],
|
|
55
55
|
'isActive': json['isActive'],
|
|
56
|
-
'startDate': json['startDate'],
|
|
57
|
-
'endDate': json['endDate'],
|
|
56
|
+
'startDate': (new Date(json['startDate'])),
|
|
57
|
+
'endDate': (new Date(json['endDate'])),
|
|
58
58
|
'text': json['text'],
|
|
59
59
|
'textColour': json['textColour'],
|
|
60
60
|
'backgroundColour': json['backgroundColour'],
|
|
@@ -74,8 +74,8 @@ function SiteNotificationListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
74
|
'heading': value['heading'],
|
|
75
75
|
'type': value['type'],
|
|
76
76
|
'isActive': value['isActive'],
|
|
77
|
-
'startDate': value['startDate'],
|
|
78
|
-
'endDate': value['endDate'],
|
|
77
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
78
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
79
79
|
'text': value['text'],
|
|
80
80
|
'textColour': value['textColour'],
|
|
81
81
|
'backgroundColour': value['backgroundColour'],
|
|
@@ -30,16 +30,16 @@ export interface SiteNotificationResource {
|
|
|
30
30
|
text: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {Date}
|
|
34
34
|
* @memberof SiteNotificationResource
|
|
35
35
|
*/
|
|
36
|
-
startDate:
|
|
36
|
+
startDate: Date;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {Date}
|
|
40
40
|
* @memberof SiteNotificationResource
|
|
41
41
|
*/
|
|
42
|
-
endDate:
|
|
42
|
+
endDate: Date;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
@@ -49,8 +49,8 @@ function SiteNotificationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
return {
|
|
50
50
|
'id': json['id'],
|
|
51
51
|
'text': json['text'],
|
|
52
|
-
'startDate': json['startDate'],
|
|
53
|
-
'endDate': json['endDate'],
|
|
52
|
+
'startDate': (new Date(json['startDate'])),
|
|
53
|
+
'endDate': (new Date(json['endDate'])),
|
|
54
54
|
'backgroundColour': json['backgroundColour'],
|
|
55
55
|
'textColour': json['textColour'],
|
|
56
56
|
'site': (0, SiteResource_1.SiteResourceFromJSON)(json['site']),
|
|
@@ -67,8 +67,8 @@ function SiteNotificationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
67
|
return {
|
|
68
68
|
'id': value['id'],
|
|
69
69
|
'text': value['text'],
|
|
70
|
-
'startDate': value['startDate'],
|
|
71
|
-
'endDate': value['endDate'],
|
|
70
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
71
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
72
72
|
'backgroundColour': value['backgroundColour'],
|
|
73
73
|
'textColour': value['textColour'],
|
|
74
74
|
'site': (0, SiteResource_1.SiteResourceToJSON)(value['site']),
|
|
@@ -23,46 +23,46 @@ export interface SitePaymentConfigResource {
|
|
|
23
23
|
id: number;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof SitePaymentConfigResource
|
|
28
28
|
*/
|
|
29
|
-
shippingAmount:
|
|
29
|
+
shippingAmount: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof SitePaymentConfigResource
|
|
34
34
|
*/
|
|
35
|
-
freeShippingThreshold:
|
|
35
|
+
freeShippingThreshold: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof SitePaymentConfigResource
|
|
40
40
|
*/
|
|
41
|
-
insuranceThreshold:
|
|
41
|
+
insuranceThreshold: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof SitePaymentConfigResource
|
|
46
46
|
*/
|
|
47
|
-
insuranceBase:
|
|
47
|
+
insuranceBase: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
51
51
|
* @memberof SitePaymentConfigResource
|
|
52
52
|
*/
|
|
53
|
-
insuranceAdditional:
|
|
53
|
+
insuranceAdditional: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {string}
|
|
57
57
|
* @memberof SitePaymentConfigResource
|
|
58
58
|
*/
|
|
59
|
-
amexSurcharge:
|
|
59
|
+
amexSurcharge: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {string}
|
|
63
63
|
* @memberof SitePaymentConfigResource
|
|
64
64
|
*/
|
|
65
|
-
acCouponValue:
|
|
65
|
+
acCouponValue: string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -53,16 +53,16 @@ export interface StoreCreditListResource {
|
|
|
53
53
|
expiryDate?: Date | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {string}
|
|
57
57
|
* @memberof StoreCreditListResource
|
|
58
58
|
*/
|
|
59
|
-
originalAmount:
|
|
59
|
+
originalAmount: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {string}
|
|
63
63
|
* @memberof StoreCreditListResource
|
|
64
64
|
*/
|
|
65
|
-
amountRemaining:
|
|
65
|
+
amountRemaining: string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @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
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,7 +61,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'latitude': json['latitude'],
|
|
60
62
|
'tagLine': json['tagLine'],
|
|
61
63
|
'email': json['email'],
|
|
62
|
-
'website': json['website']
|
|
64
|
+
'website': json['website'],
|
|
63
65
|
'netsuiteId': json['netsuiteId'],
|
|
64
66
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
67
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {Date}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date:
|
|
41
|
+
date: Date;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -47,16 +47,16 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
47
47
|
closed: boolean;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {Date}
|
|
51
51
|
* @memberof StoreSpecialDateFrontendResource
|
|
52
52
|
*/
|
|
53
|
-
displayStartDate:
|
|
53
|
+
displayStartDate: Date;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {Date}
|
|
57
57
|
* @memberof StoreSpecialDateFrontendResource
|
|
58
58
|
*/
|
|
59
|
-
displayEndDate:
|
|
59
|
+
displayEndDate: Date;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the StoreSpecialDateFrontendResource interface.
|
|
@@ -47,10 +47,10 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
48
|
'name': json['name'],
|
|
49
49
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
50
|
+
'date': (new Date(json['date'])),
|
|
51
51
|
'closed': json['closed'],
|
|
52
|
-
'displayStartDate': json['displayStartDate'],
|
|
53
|
-
'displayEndDate': json['displayEndDate'],
|
|
52
|
+
'displayStartDate': (new Date(json['displayStartDate'])),
|
|
53
|
+
'displayEndDate': (new Date(json['displayEndDate'])),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function StoreSpecialDateFrontendResourceToJSON(json) {
|
|
@@ -65,9 +65,9 @@ function StoreSpecialDateFrontendResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
65
65
|
'id': value['id'],
|
|
66
66
|
'name': value['name'],
|
|
67
67
|
'hours': value['hours'],
|
|
68
|
-
'date': value['date'],
|
|
68
|
+
'date': ((value['date']).toISOString()),
|
|
69
69
|
'closed': value['closed'],
|
|
70
|
-
'displayStartDate': value['displayStartDate'],
|
|
71
|
-
'displayEndDate': value['displayEndDate'],
|
|
70
|
+
'displayStartDate': ((value['displayStartDate']).toISOString()),
|
|
71
|
+
'displayEndDate': ((value['displayEndDate']).toISOString()),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {Date}
|
|
39
39
|
* @memberof StoreSpecialDateResource
|
|
40
40
|
*/
|
|
41
|
-
date:
|
|
41
|
+
date: Date;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -47,16 +47,16 @@ export interface StoreSpecialDateResource {
|
|
|
47
47
|
closed: boolean;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {Date}
|
|
51
51
|
* @memberof StoreSpecialDateResource
|
|
52
52
|
*/
|
|
53
|
-
displayStartDate:
|
|
53
|
+
displayStartDate: Date;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {Date}
|
|
57
57
|
* @memberof StoreSpecialDateResource
|
|
58
58
|
*/
|
|
59
|
-
displayEndDate:
|
|
59
|
+
displayEndDate: Date;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the StoreSpecialDateResource interface.
|
|
@@ -47,10 +47,10 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
48
|
'name': json['name'],
|
|
49
49
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
50
|
+
'date': (new Date(json['date'])),
|
|
51
51
|
'closed': json['closed'],
|
|
52
|
-
'displayStartDate': json['displayStartDate'],
|
|
53
|
-
'displayEndDate': json['displayEndDate'],
|
|
52
|
+
'displayStartDate': (new Date(json['displayStartDate'])),
|
|
53
|
+
'displayEndDate': (new Date(json['displayEndDate'])),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function StoreSpecialDateResourceToJSON(json) {
|
|
@@ -65,9 +65,9 @@ function StoreSpecialDateResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
65
|
'id': value['id'],
|
|
66
66
|
'name': value['name'],
|
|
67
67
|
'hours': value['hours'],
|
|
68
|
-
'date': value['date'],
|
|
68
|
+
'date': ((value['date']).toISOString()),
|
|
69
69
|
'closed': value['closed'],
|
|
70
|
-
'displayStartDate': value['displayStartDate'],
|
|
71
|
-
'displayEndDate': value['displayEndDate'],
|
|
70
|
+
'displayStartDate': ((value['displayStartDate']).toISOString()),
|
|
71
|
+
'displayEndDate': ((value['displayEndDate']).toISOString()),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -57,16 +57,16 @@ export interface TransactionLiteResource {
|
|
|
57
57
|
status: PaymentStatus;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {string}
|
|
61
61
|
* @memberof TransactionLiteResource
|
|
62
62
|
*/
|
|
63
|
-
amount:
|
|
63
|
+
amount: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @type {
|
|
66
|
+
* @type {string}
|
|
67
67
|
* @memberof TransactionLiteResource
|
|
68
68
|
*/
|
|
69
|
-
surcharge:
|
|
69
|
+
surcharge: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {number}
|
|
@@ -51,16 +51,16 @@ export interface TransactionResource {
|
|
|
51
51
|
status: PaymentStatus;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {string}
|
|
55
55
|
* @memberof TransactionResource
|
|
56
56
|
*/
|
|
57
|
-
amount:
|
|
57
|
+
amount: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {string}
|
|
61
61
|
* @memberof TransactionResource
|
|
62
62
|
*/
|
|
63
|
-
surcharge:
|
|
63
|
+
surcharge: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {number}
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ export interface AddressFrontendResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
company
|
|
45
|
+
company: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -92,6 +92,7 @@ export interface AddressFrontendResource {
|
|
|
92
92
|
*/
|
|
93
93
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
94
94
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
95
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
95
96
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
96
97
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
97
98
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -114,7 +115,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
114
115
|
'id': json['id'] == null ? undefined : json['id'],
|
|
115
116
|
'type': json['type'] == null ? undefined : json['type'],
|
|
116
117
|
'addresseeName': json['addresseeName'],
|
|
117
|
-
'company': json['company']
|
|
118
|
+
'company': json['company'],
|
|
118
119
|
'line1': json['line1'],
|
|
119
120
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
120
121
|
'postcode': json['postcode'],
|
|
@@ -48,7 +48,7 @@ export interface AddressResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
addresseeName
|
|
51
|
+
addresseeName?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -103,7 +103,6 @@ export interface AddressResource {
|
|
|
103
103
|
* Check if a given object implements the AddressResource interface.
|
|
104
104
|
*/
|
|
105
105
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
106
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
107
106
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
108
107
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
109
108
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
@@ -129,7 +128,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
129
128
|
'type': json['type'] == null ? undefined : json['type'],
|
|
130
129
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
131
130
|
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
132
|
-
'addresseeName': json['addresseeName'],
|
|
131
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
133
132
|
'company': json['company'],
|
|
134
133
|
'line1': json['line1'],
|
|
135
134
|
'line2': json['line2'],
|
|
@@ -48,10 +48,10 @@ export interface AdminOrderLineItemResource {
|
|
|
48
48
|
quantity: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {string}
|
|
52
52
|
* @memberof AdminOrderLineItemResource
|
|
53
53
|
*/
|
|
54
|
-
productPrice:
|
|
54
|
+
productPrice: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {number}
|
|
@@ -146,10 +146,10 @@ export interface AdminOrderResource {
|
|
|
146
146
|
shippingType: string;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
|
-
* @type {
|
|
149
|
+
* @type {string}
|
|
150
150
|
* @memberof AdminOrderResource
|
|
151
151
|
*/
|
|
152
|
-
shippingSubtotal?:
|
|
152
|
+
shippingSubtotal?: string | null;
|
|
153
153
|
/**
|
|
154
154
|
*
|
|
155
155
|
* @type {boolean}
|
|
@@ -158,10 +158,10 @@ export interface AdminOrderResource {
|
|
|
158
158
|
overrideShipping: boolean;
|
|
159
159
|
/**
|
|
160
160
|
*
|
|
161
|
-
* @type {
|
|
161
|
+
* @type {string}
|
|
162
162
|
* @memberof AdminOrderResource
|
|
163
163
|
*/
|
|
164
|
-
lockedInsuranceAmount:
|
|
164
|
+
lockedInsuranceAmount: string;
|
|
165
165
|
/**
|
|
166
166
|
*
|
|
167
167
|
* @type {boolean}
|
|
@@ -51,16 +51,16 @@ export interface AppliedCouponResource {
|
|
|
51
51
|
discountType: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {string}
|
|
55
55
|
* @memberof AppliedCouponResource
|
|
56
56
|
*/
|
|
57
|
-
discountAmount:
|
|
57
|
+
discountAmount: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {string}
|
|
61
61
|
* @memberof AppliedCouponResource
|
|
62
62
|
*/
|
|
63
|
-
minAmount:
|
|
63
|
+
minAmount: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {number}
|
|
@@ -117,10 +117,10 @@ export interface CartResource {
|
|
|
117
117
|
shippingType: string;
|
|
118
118
|
/**
|
|
119
119
|
*
|
|
120
|
-
* @type {
|
|
120
|
+
* @type {string}
|
|
121
121
|
* @memberof CartResource
|
|
122
122
|
*/
|
|
123
|
-
shippingSubtotal?:
|
|
123
|
+
shippingSubtotal?: string | null;
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
126
|
* @type {boolean}
|
|
@@ -45,10 +45,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
45
45
|
groupId: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
|
-
* @type {
|
|
48
|
+
* @type {number}
|
|
49
49
|
* @memberof CategoryAutomationRuleResource
|
|
50
50
|
*/
|
|
51
|
-
relatedId?:
|
|
51
|
+
relatedId?: number | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -61,10 +61,10 @@ export interface CategoryFrontendResource {
|
|
|
61
61
|
slug: string;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {number}
|
|
65
65
|
* @memberof CategoryFrontendResource
|
|
66
66
|
*/
|
|
67
|
-
parentId?:
|
|
67
|
+
parentId?: number | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {AssetLiteResource}
|
|
@@ -87,16 +87,16 @@ export interface CouponResource {
|
|
|
87
87
|
discountType: string;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
|
-
* @type {
|
|
90
|
+
* @type {string}
|
|
91
91
|
* @memberof CouponResource
|
|
92
92
|
*/
|
|
93
|
-
discountAmount:
|
|
93
|
+
discountAmount: string;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
|
-
* @type {
|
|
96
|
+
* @type {string}
|
|
97
97
|
* @memberof CouponResource
|
|
98
98
|
*/
|
|
99
|
-
minAmount:
|
|
99
|
+
minAmount: string;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
102
|
* @type {number}
|
|
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof ExternalApiLogResource
|
|
82
82
|
*/
|
|
83
|
-
requestPayload
|
|
83
|
+
requestPayload?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -113,7 +113,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
113
113
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
114
114
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
115
115
|
if (!('isSuccess' in value) || value['isSuccess'] === undefined) return false;
|
|
116
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
117
116
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
118
117
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
119
118
|
return true;
|
|
@@ -137,7 +136,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
137
136
|
'endpoint': json['endpoint'],
|
|
138
137
|
'responseCode': json['responseCode'],
|
|
139
138
|
'isSuccess': json['isSuccess'],
|
|
140
|
-
'requestPayload': json['requestPayload'],
|
|
139
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
141
140
|
'responsePayload': json['responsePayload'],
|
|
142
141
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
143
142
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -47,10 +47,10 @@ export interface FrontendLineItemResource {
|
|
|
47
47
|
availableQuantity: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
51
51
|
* @memberof FrontendLineItemResource
|
|
52
52
|
*/
|
|
53
|
-
productPrice:
|
|
53
|
+
productPrice: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
@@ -66,10 +66,10 @@ export interface ModelAttributeListResource {
|
|
|
66
66
|
selectedValues: Array<AttributeValueResource> | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {number}
|
|
70
70
|
* @memberof ModelAttributeListResource
|
|
71
71
|
*/
|
|
72
|
-
order?:
|
|
72
|
+
order?: number | null;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|