@digital8/lighting-illusions-ts-sdk 0.0.2443 → 0.0.2445

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 (105) hide show
  1. package/.openapi-generator/FILES +4 -15
  2. package/README.md +2 -2
  3. package/dist/apis/AuspostApi.d.ts +29 -0
  4. package/dist/apis/AuspostApi.js +125 -0
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +2 -2
  10. package/dist/models/AddressResource.js +3 -3
  11. package/dist/models/AdminOrderResource.d.ts +6 -0
  12. package/dist/models/AdminOrderResource.js +4 -0
  13. package/dist/models/AppliedCouponResource.d.ts +0 -30
  14. package/dist/models/AppliedCouponResource.js +0 -20
  15. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  16. package/dist/models/ExternalApiLogResource.js +3 -1
  17. package/dist/models/FrontendCartResource.d.ts +0 -6
  18. package/dist/models/FrontendCartResource.js +0 -4
  19. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  20. package/dist/models/OrderFulfillmentResource.js +3 -3
  21. package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
  22. package/dist/models/ProductCategoryLiteResource.js +0 -4
  23. package/dist/models/ProductChildListResource.d.ts +0 -6
  24. package/dist/models/ProductChildListResource.js +0 -4
  25. package/dist/models/SearchCartsRequest.d.ts +0 -6
  26. package/dist/models/SearchCartsRequest.js +0 -2
  27. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  28. package/dist/models/SearchOrdersRequest.js +0 -2
  29. package/dist/models/StoreListResource.d.ts +1 -1
  30. package/dist/models/StoreListResource.js +3 -1
  31. package/dist/models/StoreResource.d.ts +1 -1
  32. package/dist/models/StoreResource.js +3 -1
  33. package/dist/models/SuburbValidationResource.d.ts +32 -0
  34. package/dist/models/SuburbValidationResource.js +51 -0
  35. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
  37. package/dist/models/ValidateSuburbRequest.d.ts +50 -0
  38. package/dist/models/ValidateSuburbRequest.js +63 -0
  39. package/dist/models/index.d.ts +3 -14
  40. package/dist/models/index.js +3 -14
  41. package/package.json +1 -1
  42. package/src/apis/AuspostApi.ts +69 -0
  43. package/src/apis/index.ts +1 -1
  44. package/src/models/AddressFrontendResource.ts +2 -3
  45. package/src/models/AddressResource.ts +5 -5
  46. package/src/models/AdminOrderResource.ts +9 -0
  47. package/src/models/AppliedCouponResource.ts +0 -45
  48. package/src/models/ExternalApiLogResource.ts +3 -2
  49. package/src/models/FrontendCartResource.ts +0 -9
  50. package/src/models/OrderFulfillmentResource.ts +5 -5
  51. package/src/models/ProductCategoryLiteResource.ts +0 -9
  52. package/src/models/ProductChildListResource.ts +0 -9
  53. package/src/models/SearchCartsRequest.ts +0 -8
  54. package/src/models/SearchOrdersRequest.ts +0 -8
  55. package/src/models/StoreListResource.ts +3 -2
  56. package/src/models/StoreResource.ts +3 -2
  57. package/src/models/SuburbValidationResource.ts +66 -0
  58. package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
  59. package/src/models/ValidateSuburbRequest.ts +93 -0
  60. package/src/models/index.ts +3 -14
  61. package/dist/apis/CouponsApi.d.ts +0 -85
  62. package/dist/apis/CouponsApi.js +0 -355
  63. package/dist/models/CouponListResource.d.ts +0 -99
  64. package/dist/models/CouponListResource.js +0 -91
  65. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  66. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  67. package/dist/models/CouponLiteResource.d.ts +0 -44
  68. package/dist/models/CouponLiteResource.js +0 -57
  69. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  70. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  71. package/dist/models/CouponResource.d.ts +0 -163
  72. package/dist/models/CouponResource.js +0 -135
  73. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  74. package/dist/models/CouponResourceArrayResponse.js +0 -50
  75. package/dist/models/CouponType.d.ts +0 -26
  76. package/dist/models/CouponType.js +0 -52
  77. package/dist/models/CreateCouponRequest.d.ts +0 -126
  78. package/dist/models/CreateCouponRequest.js +0 -107
  79. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  80. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  81. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  82. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  83. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  84. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  85. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  86. package/dist/models/SearchAllCouponsRequest.js +0 -85
  87. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  88. package/dist/models/SearchCouponsRequest.js +0 -97
  89. package/dist/models/UpdateCouponRequest.d.ts +0 -120
  90. package/dist/models/UpdateCouponRequest.js +0 -103
  91. package/src/apis/CouponsApi.ts +0 -286
  92. package/src/models/CouponListResource.ts +0 -170
  93. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  94. package/src/models/CouponLiteResource.ts +0 -83
  95. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  96. package/src/models/CouponResource.ts +0 -288
  97. package/src/models/CouponResourceArrayResponse.ts +0 -73
  98. package/src/models/CouponType.ts +0 -54
  99. package/src/models/CreateCouponRequest.ts +0 -207
  100. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  101. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  102. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  103. package/src/models/SearchAllCouponsRequest.ts +0 -154
  104. package/src/models/SearchCouponsRequest.ts +0 -202
  105. package/src/models/UpdateCouponRequest.ts +0 -198
@@ -42,13 +42,13 @@ 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}
49
49
  * @memberof AddressResource
50
50
  */
51
- company: string;
51
+ company?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -97,7 +97,7 @@ 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 (!('company' in value) || value['company'] === undefined) return false;
100
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
101
  if (!('line1' in value) || value['line1'] === 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;
@@ -120,8 +120,8 @@ 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'],
124
- 'company': json['company'],
123
+ 'addresseeName': json['addresseeName'],
124
+ 'company': json['company'] == null ? undefined : json['company'],
125
125
  'line1': json['line1'],
126
126
  'line2': json['line2'] == null ? undefined : json['line2'],
127
127
  'postcode': json['postcode'],
@@ -186,6 +186,12 @@ export interface AdminOrderResource {
186
186
  * @memberof AdminOrderResource
187
187
  */
188
188
  isNetsuiteLocked: boolean;
189
+ /**
190
+ *
191
+ * @type {boolean}
192
+ * @memberof AdminOrderResource
193
+ */
194
+ isPrivilegedAdmin: boolean;
189
195
  /**
190
196
  *
191
197
  * @type {number}
@@ -371,6 +377,7 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
371
377
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
372
378
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
373
379
  if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
380
+ if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined) return false;
374
381
  if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
375
382
  if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
376
383
  if (!('subtotalDiscountAmount' in value) || value['subtotalDiscountAmount'] === undefined) return false;
@@ -428,6 +435,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
428
435
  'useAsBillingAddress': json['useAsBillingAddress'],
429
436
  'netsuiteId': json['netsuiteId'],
430
437
  'isNetsuiteLocked': json['isNetsuiteLocked'],
438
+ 'isPrivilegedAdmin': json['isPrivilegedAdmin'],
431
439
  'subtotal': json['subtotal'],
432
440
  'productDiscountAmount': json['productDiscountAmount'],
433
441
  'subtotalDiscountAmount': json['subtotalDiscountAmount'],
@@ -486,6 +494,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
486
494
  'useAsBillingAddress': value['useAsBillingAddress'],
487
495
  'netsuiteId': value['netsuiteId'],
488
496
  'isNetsuiteLocked': value['isNetsuiteLocked'],
497
+ 'isPrivilegedAdmin': value['isPrivilegedAdmin'],
489
498
  'subtotal': value['subtotal'],
490
499
  'productDiscountAmount': value['productDiscountAmount'],
491
500
  'subtotalDiscountAmount': value['subtotalDiscountAmount'],
@@ -37,36 +37,6 @@ 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;
70
40
  /**
71
41
  *
72
42
  * @type {number}
@@ -82,11 +52,6 @@ export function instanceOfAppliedCouponResource(value: object): value is Applied
82
52
  if (!('id' in value) || value['id'] === undefined) return false;
83
53
  if (!('code' in value) || value['code'] === undefined) return false;
84
54
  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;
90
55
  if (!('discountTotal' in value) || value['discountTotal'] === undefined) return false;
91
56
  return true;
92
57
  }
@@ -104,11 +69,6 @@ export function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminato
104
69
  'id': json['id'],
105
70
  'code': json['code'],
106
71
  'name': json['name'],
107
- 'type': json['type'],
108
- 'discountType': json['discountType'],
109
- 'discountAmount': json['discountAmount'],
110
- 'minAmount': json['minAmount'],
111
- 'minProducts': json['minProducts'],
112
72
  'discountTotal': json['discountTotal'],
113
73
  };
114
74
  }
@@ -127,11 +87,6 @@ export function AppliedCouponResourceToJSONTyped(value?: AppliedCouponResource |
127
87
  'id': value['id'],
128
88
  'code': value['code'],
129
89
  'name': value['name'],
130
- 'type': value['type'],
131
- 'discountType': value['discountType'],
132
- 'discountAmount': value['discountAmount'],
133
- 'minAmount': value['minAmount'],
134
- 'minProducts': value['minProducts'],
135
90
  'discountTotal': value['discountTotal'],
136
91
  };
137
92
  }
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload?: string | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -114,12 +114,6 @@ 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;
123
117
  /**
124
118
  *
125
119
  * @type {number}
@@ -200,7 +194,6 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
200
194
  if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
201
195
  if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
202
196
  if (!('coupons' in value) || value['coupons'] === undefined) return false;
203
- if (!('couponWarning' in value) || value['couponWarning'] === undefined) return false;
204
197
  if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
205
198
  if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
206
199
  if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
@@ -236,7 +229,6 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
236
229
  'billingAddress': AddressResourceFromJSON(json['billingAddress']),
237
230
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
238
231
  'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
239
- 'couponWarning': json['couponWarning'],
240
232
  'subtotal': json['subtotal'],
241
233
  'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
242
234
  'promotionalDiscount': json['promotionalDiscount'],
@@ -273,7 +265,6 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
273
265
  'billingAddress': AddressResourceToJSON(value['billingAddress']),
274
266
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
275
267
  'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
276
- 'couponWarning': value['couponWarning'],
277
268
  'subtotal': value['subtotal'],
278
269
  'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
279
270
  'promotionalDiscount': value['promotionalDiscount'],
@@ -50,13 +50,13 @@ export interface OrderFulfillmentResource {
50
50
  * @type {string}
51
51
  * @memberof OrderFulfillmentResource
52
52
  */
53
- trackingNumber: string;
53
+ trackingNumber?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
57
  * @memberof OrderFulfillmentResource
58
58
  */
59
- trackingUrl?: string | null;
59
+ trackingUrl: string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -102,7 +102,7 @@ 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 (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
105
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
106
106
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
107
107
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
108
108
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -123,8 +123,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
123
123
  'id': json['id'],
124
124
  'orderId': json['orderId'],
125
125
  'dateShipped': (new Date(json['dateShipped'])),
126
- 'trackingNumber': json['trackingNumber'],
127
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
126
+ 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
127
+ 'trackingUrl': json['trackingUrl'],
128
128
  'trackingCompany': json['trackingCompany'],
129
129
  'docnum': json['docnum'],
130
130
  'netsuiteId': json['netsuiteId'],
@@ -43,12 +43,6 @@ export interface ProductCategoryLiteResource {
43
43
  * @memberof ProductCategoryLiteResource
44
44
  */
45
45
  isAutomated: boolean;
46
- /**
47
- *
48
- * @type {boolean}
49
- * @memberof ProductCategoryLiteResource
50
- */
51
- isParent: boolean;
52
46
  }
53
47
 
54
48
  /**
@@ -58,7 +52,6 @@ export function instanceOfProductCategoryLiteResource(value: object): value is P
58
52
  if (!('name' in value) || value['name'] === undefined) return false;
59
53
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
60
54
  if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
61
- if (!('isParent' in value) || value['isParent'] === undefined) return false;
62
55
  return true;
63
56
  }
64
57
 
@@ -76,7 +69,6 @@ export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscri
76
69
  'name': json['name'],
77
70
  'siteId': json['siteId'],
78
71
  'isAutomated': json['isAutomated'],
79
- 'isParent': json['isParent'],
80
72
  };
81
73
  }
82
74
 
@@ -95,7 +87,6 @@ export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLi
95
87
  'name': value['name'],
96
88
  'siteId': value['siteId'],
97
89
  'isAutomated': value['isAutomated'],
98
- 'isParent': value['isParent'],
99
90
  };
100
91
  }
101
92
 
@@ -58,12 +58,6 @@ export interface ProductChildListResource {
58
58
  * @memberof ProductChildListResource
59
59
  */
60
60
  name: string;
61
- /**
62
- *
63
- * @type {string}
64
- * @memberof ProductChildListResource
65
- */
66
- fullName: string;
67
61
  /**
68
62
  *
69
63
  * @type {string}
@@ -121,7 +115,6 @@ export function instanceOfProductChildListResource(value: object): value is Prod
121
115
  if (!('id' in value) || value['id'] === undefined) return false;
122
116
  if (!('sku' in value) || value['sku'] === undefined) return false;
123
117
  if (!('name' in value) || value['name'] === undefined) return false;
124
- if (!('fullName' in value) || value['fullName'] === undefined) return false;
125
118
  if (!('model' in value) || value['model'] === undefined) return false;
126
119
  if (!('stock' in value) || value['stock'] === undefined) return false;
127
120
  if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined) return false;
@@ -145,7 +138,6 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
145
138
  'parentId': json['parentId'] == null ? undefined : json['parentId'],
146
139
  'sku': json['sku'],
147
140
  'name': json['name'],
148
- 'fullName': json['fullName'],
149
141
  'model': json['model'],
150
142
  'stock': json['stock'],
151
143
  'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
@@ -172,7 +164,6 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
172
164
  'parentId': value['parentId'],
173
165
  'sku': value['sku'],
174
166
  'name': value['name'],
175
- 'fullName': value['fullName'],
176
167
  'model': value['model'],
177
168
  'stock': value['stock'],
178
169
  'isDisabled': value['isDisabled'],
@@ -121,12 +121,6 @@ export interface SearchCartsRequest {
121
121
  * @memberof SearchCartsRequest
122
122
  */
123
123
  includesRelations?: boolean;
124
- /**
125
- *
126
- * @type {number}
127
- * @memberof SearchCartsRequest
128
- */
129
- couponId?: number | null;
130
124
  }
131
125
 
132
126
 
@@ -185,7 +179,6 @@ export function SearchCartsRequestFromJSONTyped(json: any, ignoreDiscriminator:
185
179
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
186
180
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
187
181
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
188
- 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
189
182
  };
190
183
  }
191
184
 
@@ -217,7 +210,6 @@ export function SearchCartsRequestToJSONTyped(value?: SearchCartsRequest | null,
217
210
  'related_id': value['relatedId'],
218
211
  'related_type': value['relatedType'],
219
212
  'includes_relations': value['includesRelations'],
220
- 'coupon_id': value['couponId'],
221
213
  };
222
214
  }
223
215
 
@@ -133,12 +133,6 @@ export interface SearchOrdersRequest {
133
133
  * @memberof SearchOrdersRequest
134
134
  */
135
135
  includesRelations?: boolean;
136
- /**
137
- *
138
- * @type {number}
139
- * @memberof SearchOrdersRequest
140
- */
141
- couponId?: number | null;
142
136
  }
143
137
 
144
138
 
@@ -200,7 +194,6 @@ export function SearchOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator:
200
194
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
201
195
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
202
196
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
203
- 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
204
197
  };
205
198
  }
206
199
 
@@ -234,7 +227,6 @@ export function SearchOrdersRequestToJSONTyped(value?: SearchOrdersRequest | nul
234
227
  'related_id': value['relatedId'],
235
228
  'related_type': value['relatedType'],
236
229
  'includes_relations': value['includesRelations'],
237
- 'coupon_id': value['couponId'],
238
230
  };
239
231
  }
240
232
 
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine?: string | null;
71
+ tagLine: string;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -110,6 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
114
  if (!('email' in value) || value['email'] === undefined) return false;
114
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
115
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
@@ -132,7 +133,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
132
133
  'phone': json['phone'],
133
134
  'longitude': json['longitude'],
134
135
  'latitude': json['latitude'],
135
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
136
+ 'tagLine': json['tagLine'],
136
137
  'email': json['email'],
137
138
  'website': json['website'] == null ? undefined : json['website'],
138
139
  'netsuiteId': json['netsuiteId'],
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -150,6 +150,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('email' in value) || value['email'] === undefined) return false;
153
+ if (!('website' in value) || value['website'] === undefined) return false;
153
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
154
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
155
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
177
  'latitude': json['latitude'],
177
178
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
178
179
  'email': json['email'],
179
- 'website': json['website'] == null ? undefined : json['website'],
180
+ 'website': json['website'],
180
181
  'netsuiteId': json['netsuiteId'],
181
182
  'displayNetsuiteId': json['displayNetsuiteId'],
182
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SuburbValidationResource
20
+ */
21
+ export interface SuburbValidationResource {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof SuburbValidationResource
26
+ */
27
+ found: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SuburbValidationResource interface.
32
+ */
33
+ export function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource {
34
+ if (!('found' in value) || value['found'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource {
39
+ return SuburbValidationResourceFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'found': json['found'],
49
+ };
50
+ }
51
+
52
+ export function SuburbValidationResourceToJSON(json: any): SuburbValidationResource {
53
+ return SuburbValidationResourceToJSONTyped(json, false);
54
+ }
55
+
56
+ export function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'found': value['found'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SuburbValidationResource } from './SuburbValidationResource';
17
+ import {
18
+ SuburbValidationResourceFromJSON,
19
+ SuburbValidationResourceFromJSONTyped,
20
+ SuburbValidationResourceToJSON,
21
+ SuburbValidationResourceToJSONTyped,
22
+ } from './SuburbValidationResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SuburbValidationResourceArrayResponse
28
+ */
29
+ export interface SuburbValidationResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<SuburbValidationResource>}
33
+ * @memberof SuburbValidationResourceArrayResponse
34
+ */
35
+ data?: Array<SuburbValidationResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SuburbValidationResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse {
46
+ return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SuburbValidationResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse {
60
+ return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(SuburbValidationResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ValidateSuburbRequest
20
+ */
21
+ export interface ValidateSuburbRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ValidateSuburbRequest
26
+ */
27
+ siteId: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ValidateSuburbRequest
32
+ */
33
+ suburb: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ValidateSuburbRequest
38
+ */
39
+ state: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ValidateSuburbRequest
44
+ */
45
+ postcode: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ValidateSuburbRequest interface.
50
+ */
51
+ export function instanceOfValidateSuburbRequest(value: object): value is ValidateSuburbRequest {
52
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
53
+ if (!('suburb' in value) || value['suburb'] === undefined) return false;
54
+ if (!('state' in value) || value['state'] === undefined) return false;
55
+ if (!('postcode' in value) || value['postcode'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ValidateSuburbRequestFromJSON(json: any): ValidateSuburbRequest {
60
+ return ValidateSuburbRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ValidateSuburbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateSuburbRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'siteId': json['site_id'],
70
+ 'suburb': json['suburb'],
71
+ 'state': json['state'],
72
+ 'postcode': json['postcode'],
73
+ };
74
+ }
75
+
76
+ export function ValidateSuburbRequestToJSON(json: any): ValidateSuburbRequest {
77
+ return ValidateSuburbRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ValidateSuburbRequestToJSONTyped(value?: ValidateSuburbRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'site_id': value['siteId'],
88
+ 'suburb': value['suburb'],
89
+ 'state': value['state'],
90
+ 'postcode': value['postcode'],
91
+ };
92
+ }
93
+