@digital8/lighting-illusions-ts-sdk 0.0.2409 → 0.0.2411

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2409
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2411
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/lighting-illusions-ts-sdk@0.0.2409 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2411 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2: string;
35
+ line2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -26,8 +26,6 @@ function instanceOfAddressFrontendResource(value) {
26
26
  return false;
27
27
  if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
30
- return false;
31
29
  if (!('postcode' in value) || value['postcode'] === undefined)
32
30
  return false;
33
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -50,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  return {
51
49
  'company': json['company'],
52
50
  'line1': json['line1'],
53
- 'line2': json['line2'],
51
+ 'line2': json['line2'] == null ? undefined : json['line2'],
54
52
  'postcode': json['postcode'],
55
53
  'suburb': json['suburb'],
56
54
  'country': json['country'],
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- addresseeName?: string | null;
41
+ addresseeName: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -56,7 +56,7 @@ export interface AddressResource {
56
56
  * @type {string}
57
57
  * @memberof AddressResource
58
58
  */
59
- line2: string;
59
+ line2?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -22,9 +22,9 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
- if (!('line1' in value) || value['line1'] === undefined)
25
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
- if (!('line2' in value) || value['line2'] === undefined)
27
+ if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
29
  if (!('postcode' in value) || value['postcode'] === undefined)
30
30
  return false;
@@ -49,10 +49,10 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'id': json['id'] == null ? undefined : json['id'],
50
50
  'type': json['type'] == null ? undefined : json['type'],
51
51
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
52
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
52
+ 'addresseeName': json['addresseeName'],
53
53
  'company': json['company'] == null ? undefined : json['company'],
54
54
  'line1': json['line1'],
55
- 'line2': json['line2'],
55
+ 'line2': json['line2'] == null ? undefined : json['line2'],
56
56
  'postcode': json['postcode'],
57
57
  'suburb': json['suburb'],
58
58
  'country': json['country'],
@@ -33,6 +33,36 @@ export interface AppliedCouponResource {
33
33
  * @memberof AppliedCouponResource
34
34
  */
35
35
  name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AppliedCouponResource
40
+ */
41
+ type: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AppliedCouponResource
46
+ */
47
+ discountType: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AppliedCouponResource
52
+ */
53
+ discountAmount: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof AppliedCouponResource
58
+ */
59
+ minAmount: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof AppliedCouponResource
64
+ */
65
+ minProducts: number;
36
66
  /**
37
67
  *
38
68
  * @type {number}
@@ -28,6 +28,16 @@ function instanceOfAppliedCouponResource(value) {
28
28
  return false;
29
29
  if (!('name' in value) || value['name'] === undefined)
30
30
  return false;
31
+ if (!('type' in value) || value['type'] === undefined)
32
+ return false;
33
+ if (!('discountType' in value) || value['discountType'] === undefined)
34
+ return false;
35
+ if (!('discountAmount' in value) || value['discountAmount'] === undefined)
36
+ return false;
37
+ if (!('minAmount' in value) || value['minAmount'] === undefined)
38
+ return false;
39
+ if (!('minProducts' in value) || value['minProducts'] === undefined)
40
+ return false;
31
41
  if (!('discountTotal' in value) || value['discountTotal'] === undefined)
32
42
  return false;
33
43
  return true;
@@ -43,6 +53,11 @@ function AppliedCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
43
53
  'id': json['id'],
44
54
  'code': json['code'],
45
55
  'name': json['name'],
56
+ 'type': json['type'],
57
+ 'discountType': json['discountType'],
58
+ 'discountAmount': json['discountAmount'],
59
+ 'minAmount': json['minAmount'],
60
+ 'minProducts': json['minProducts'],
46
61
  'discountTotal': json['discountTotal'],
47
62
  };
48
63
  }
@@ -58,6 +73,11 @@ function AppliedCouponResourceToJSONTyped(value, ignoreDiscriminator) {
58
73
  'id': value['id'],
59
74
  'code': value['code'],
60
75
  'name': value['name'],
76
+ 'type': value['type'],
77
+ 'discountType': value['discountType'],
78
+ 'discountAmount': value['discountAmount'],
79
+ 'minAmount': value['minAmount'],
80
+ 'minProducts': value['minProducts'],
61
81
  'discountTotal': value['discountTotal'],
62
82
  };
63
83
  }
@@ -85,6 +85,12 @@ export interface FrontendCartResource {
85
85
  * @memberof FrontendCartResource
86
86
  */
87
87
  coupons: Array<FrontendCartResourceCouponsInner>;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof FrontendCartResource
92
+ */
93
+ couponWarning: string;
88
94
  /**
89
95
  *
90
96
  * @type {number}
@@ -42,6 +42,8 @@ function instanceOfFrontendCartResource(value) {
42
42
  return false;
43
43
  if (!('coupons' in value) || value['coupons'] === undefined)
44
44
  return false;
45
+ if (!('couponWarning' in value) || value['couponWarning'] === undefined)
46
+ return false;
45
47
  if (!('subtotal' in value) || value['subtotal'] === undefined)
46
48
  return false;
47
49
  if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined)
@@ -85,6 +87,7 @@ function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
85
87
  'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
86
88
  'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
87
89
  'coupons': (json['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerFromJSON)),
90
+ 'couponWarning': json['couponWarning'],
88
91
  'subtotal': json['subtotal'],
89
92
  'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
90
93
  'promotionalDiscount': json['promotionalDiscount'],
@@ -118,6 +121,7 @@ function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
118
121
  'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
119
122
  'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
120
123
  'coupons': (value['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerToJSON)),
124
+ 'couponWarning': value['couponWarning'],
121
125
  'subtotal': value['subtotal'],
122
126
  'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
123
127
  'promotionalDiscount': value['promotionalDiscount'],
@@ -45,13 +45,13 @@ export interface OrderFulfillmentResource {
45
45
  * @type {string}
46
46
  * @memberof OrderFulfillmentResource
47
47
  */
48
- trackingUrl: string;
48
+ trackingUrl?: string | null;
49
49
  /**
50
50
  *
51
51
  * @type {string}
52
52
  * @memberof OrderFulfillmentResource
53
53
  */
54
- trackingCompany: string;
54
+ trackingCompany?: string | null;
55
55
  /**
56
56
  *
57
57
  * @type {string}
@@ -29,10 +29,6 @@ function instanceOfOrderFulfillmentResource(value) {
29
29
  return false;
30
30
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
31
31
  return false;
32
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
33
- return false;
34
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
35
- return false;
36
32
  if (!('docnum' in value) || value['docnum'] === undefined)
37
33
  return false;
38
34
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -53,8 +49,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
53
49
  'orderId': json['orderId'],
54
50
  'dateShipped': (new Date(json['dateShipped'])),
55
51
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
56
- 'trackingUrl': json['trackingUrl'],
57
- 'trackingCompany': json['trackingCompany'],
52
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
53
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
58
54
  'docnum': json['docnum'],
59
55
  'netsuiteId': json['netsuiteId'],
60
56
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine?: string | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -36,6 +36,8 @@ function instanceOfStoreFrontendResource(value) {
36
36
  return false;
37
37
  if (!('longitude' in value) || value['longitude'] === undefined)
38
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
39
41
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
42
  return false;
41
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -59,7 +61,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
59
61
  'address': json['address'] == null ? undefined : json['address'],
60
62
  'latitude': json['latitude'],
61
63
  'longitude': json['longitude'],
62
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
64
+ 'tagLine': json['tagLine'],
63
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
64
66
  'specialDates': json['specialDates'],
65
67
  'suppliers': json['suppliers'],
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {object}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date?: string | null;
41
+ date: object;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(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;
29
31
  if (!('closed' in value) || value['closed'] === undefined)
30
32
  return false;
31
33
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
45
47
  'id': json['id'] == null ? undefined : json['id'],
46
48
  'name': json['name'],
47
49
  'hours': json['hours'],
48
- 'date': json['date'] == null ? undefined : json['date'],
50
+ 'date': json['date'],
49
51
  'closed': json['closed'],
50
52
  'displayStartDate': json['displayStartDate'],
51
53
  'displayEndDate': json['displayEndDate'],
@@ -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['displayStartDate'],
53
51
  'displayEndDate': json['displayEndDate'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2409",
3
+ "version": "0.0.2411",
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;
39
+ line2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -75,7 +75,6 @@ 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;
79
78
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
80
79
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
81
80
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -96,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
96
95
 
97
96
  'company': json['company'],
98
97
  'line1': json['line1'],
99
- 'line2': json['line2'],
98
+ 'line2': json['line2'] == null ? undefined : json['line2'],
100
99
  'postcode': json['postcode'],
101
100
  'suburb': json['suburb'],
102
101
  'country': json['country'],
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- addresseeName?: string | null;
45
+ addresseeName: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -60,7 +60,7 @@ export interface AddressResource {
60
60
  * @type {string}
61
61
  * @memberof AddressResource
62
62
  */
63
- line2: string;
63
+ line2?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -97,8 +97,8 @@ export interface AddressResource {
97
97
  * Check if a given object implements the AddressResource interface.
98
98
  */
99
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
100
101
  if (!('line1' in value) || value['line1'] === undefined) return false;
101
- if (!('line2' in value) || value['line2'] === undefined) return false;
102
102
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
103
103
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
104
104
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -120,10 +120,10 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
120
120
  'id': json['id'] == null ? undefined : json['id'],
121
121
  'type': json['type'] == null ? undefined : json['type'],
122
122
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
123
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
123
+ 'addresseeName': json['addresseeName'],
124
124
  'company': json['company'] == null ? undefined : json['company'],
125
125
  'line1': json['line1'],
126
- 'line2': json['line2'],
126
+ 'line2': json['line2'] == null ? undefined : json['line2'],
127
127
  'postcode': json['postcode'],
128
128
  'suburb': json['suburb'],
129
129
  'country': json['country'],
@@ -37,6 +37,36 @@ export interface AppliedCouponResource {
37
37
  * @memberof AppliedCouponResource
38
38
  */
39
39
  name: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AppliedCouponResource
44
+ */
45
+ type: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AppliedCouponResource
50
+ */
51
+ discountType: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof AppliedCouponResource
56
+ */
57
+ discountAmount: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof AppliedCouponResource
62
+ */
63
+ minAmount: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof AppliedCouponResource
68
+ */
69
+ minProducts: number;
40
70
  /**
41
71
  *
42
72
  * @type {number}
@@ -52,6 +82,11 @@ export function instanceOfAppliedCouponResource(value: object): value is Applied
52
82
  if (!('id' in value) || value['id'] === undefined) return false;
53
83
  if (!('code' in value) || value['code'] === undefined) return false;
54
84
  if (!('name' in value) || value['name'] === undefined) return false;
85
+ if (!('type' in value) || value['type'] === undefined) return false;
86
+ if (!('discountType' in value) || value['discountType'] === undefined) return false;
87
+ if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
88
+ if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
89
+ if (!('minProducts' in value) || value['minProducts'] === undefined) return false;
55
90
  if (!('discountTotal' in value) || value['discountTotal'] === undefined) return false;
56
91
  return true;
57
92
  }
@@ -69,6 +104,11 @@ export function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminato
69
104
  'id': json['id'],
70
105
  'code': json['code'],
71
106
  'name': json['name'],
107
+ 'type': json['type'],
108
+ 'discountType': json['discountType'],
109
+ 'discountAmount': json['discountAmount'],
110
+ 'minAmount': json['minAmount'],
111
+ 'minProducts': json['minProducts'],
72
112
  'discountTotal': json['discountTotal'],
73
113
  };
74
114
  }
@@ -87,6 +127,11 @@ export function AppliedCouponResourceToJSONTyped(value?: AppliedCouponResource |
87
127
  'id': value['id'],
88
128
  'code': value['code'],
89
129
  'name': value['name'],
130
+ 'type': value['type'],
131
+ 'discountType': value['discountType'],
132
+ 'discountAmount': value['discountAmount'],
133
+ 'minAmount': value['minAmount'],
134
+ 'minProducts': value['minProducts'],
90
135
  'discountTotal': value['discountTotal'],
91
136
  };
92
137
  }
@@ -114,6 +114,12 @@ export interface FrontendCartResource {
114
114
  * @memberof FrontendCartResource
115
115
  */
116
116
  coupons: Array<FrontendCartResourceCouponsInner>;
117
+ /**
118
+ *
119
+ * @type {string}
120
+ * @memberof FrontendCartResource
121
+ */
122
+ couponWarning: string;
117
123
  /**
118
124
  *
119
125
  * @type {number}
@@ -194,6 +200,7 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
194
200
  if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
195
201
  if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
196
202
  if (!('coupons' in value) || value['coupons'] === undefined) return false;
203
+ if (!('couponWarning' in value) || value['couponWarning'] === undefined) return false;
197
204
  if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
198
205
  if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
199
206
  if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
@@ -229,6 +236,7 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
229
236
  'billingAddress': AddressResourceFromJSON(json['billingAddress']),
230
237
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
231
238
  'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
239
+ 'couponWarning': json['couponWarning'],
232
240
  'subtotal': json['subtotal'],
233
241
  'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
234
242
  'promotionalDiscount': json['promotionalDiscount'],
@@ -265,6 +273,7 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
265
273
  'billingAddress': AddressResourceToJSON(value['billingAddress']),
266
274
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
267
275
  'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
276
+ 'couponWarning': value['couponWarning'],
268
277
  'subtotal': value['subtotal'],
269
278
  'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
270
279
  'promotionalDiscount': value['promotionalDiscount'],
@@ -56,13 +56,13 @@ export interface OrderFulfillmentResource {
56
56
  * @type {string}
57
57
  * @memberof OrderFulfillmentResource
58
58
  */
59
- trackingUrl: string;
59
+ trackingUrl?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
63
63
  * @memberof OrderFulfillmentResource
64
64
  */
65
- trackingCompany: string;
65
+ trackingCompany?: string | null;
66
66
  /**
67
67
  *
68
68
  * @type {string}
@@ -102,8 +102,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
102
102
  if (!('id' in value) || value['id'] === undefined) return false;
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
106
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
107
105
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
108
106
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
109
107
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -124,8 +122,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
124
122
  'orderId': json['orderId'],
125
123
  'dateShipped': (new Date(json['dateShipped'])),
126
124
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
127
- 'trackingUrl': json['trackingUrl'],
128
- 'trackingCompany': json['trackingCompany'],
125
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
126
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
129
127
  'docnum': json['docnum'],
130
128
  'netsuiteId': json['netsuiteId'],
131
129
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine?: string | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -110,6 +110,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
114
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
115
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
116
  return true;
@@ -134,7 +135,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
135
  'address': json['address'] == null ? undefined : json['address'],
135
136
  'latitude': json['latitude'],
136
137
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
+ 'tagLine': json['tagLine'],
138
139
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
140
  'specialDates': json['specialDates'],
140
141
  'suppliers': json['suppliers'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
- if (!('date' in value) || value['date'] === undefined) return false;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],