@digital8/lighting-illusions-ts-sdk 0.0.1840 → 0.0.1841

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 (57) hide show
  1. package/.openapi-generator/FILES +0 -10
  2. package/README.md +2 -7
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +2 -2
  8. package/dist/models/AddressResource.js +4 -4
  9. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  10. package/dist/models/ExternalApiLogResource.js +1 -3
  11. package/dist/models/StoreCartRequest.d.ts +2 -2
  12. package/dist/models/StoreCartRequest.js +2 -6
  13. package/dist/models/StoreCartRequestShippingAddress.d.ts +4 -4
  14. package/dist/models/StoreCartRequestShippingAddress.js +4 -12
  15. package/dist/models/StoreFrontendResource.d.ts +2 -2
  16. package/dist/models/StoreFrontendResource.js +6 -2
  17. package/dist/models/StoreResource.d.ts +2 -2
  18. package/dist/models/StoreResource.js +6 -2
  19. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  20. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  21. package/dist/models/UpdateCartRequest.d.ts +2 -2
  22. package/dist/models/UpdateCartRequest.js +2 -6
  23. package/dist/models/index.d.ts +0 -4
  24. package/dist/models/index.js +0 -4
  25. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  26. package/package.json +1 -1
  27. package/src/apis/index.ts +0 -1
  28. package/src/models/AddressFrontendResource.ts +3 -2
  29. package/src/models/AddressResource.ts +5 -5
  30. package/src/models/ExternalApiLogResource.ts +2 -3
  31. package/src/models/StoreCartRequest.ts +4 -6
  32. package/src/models/StoreCartRequestShippingAddress.ts +8 -12
  33. package/src/models/StoreFrontendResource.ts +6 -4
  34. package/src/models/StoreResource.ts +6 -4
  35. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  36. package/src/models/UpdateCartRequest.ts +4 -6
  37. package/src/models/index.ts +0 -4
  38. package/dist/apis/CouponsApi.d.ts +0 -33
  39. package/dist/apis/CouponsApi.js +0 -138
  40. package/dist/models/VerifyCouponRequest.d.ts +0 -63
  41. package/dist/models/VerifyCouponRequest.js +0 -64
  42. package/dist/models/VerifyCouponRequestProductsInner.d.ts +0 -38
  43. package/dist/models/VerifyCouponRequestProductsInner.js +0 -51
  44. package/dist/models/VerifyCouponResource.d.ts +0 -38
  45. package/dist/models/VerifyCouponResource.js +0 -55
  46. package/dist/models/VerifyCouponResourceArrayResponse.d.ts +0 -33
  47. package/dist/models/VerifyCouponResourceArrayResponse.js +0 -50
  48. package/docs/CouponsApi.md +0 -74
  49. package/docs/VerifyCouponRequest.md +0 -44
  50. package/docs/VerifyCouponRequestProductsInner.md +0 -36
  51. package/docs/VerifyCouponResource.md +0 -36
  52. package/docs/VerifyCouponResourceArrayResponse.md +0 -34
  53. package/src/apis/CouponsApi.ts +0 -77
  54. package/src/models/VerifyCouponRequest.ts +0 -115
  55. package/src/models/VerifyCouponRequestProductsInner.ts +0 -73
  56. package/src/models/VerifyCouponResource.ts +0 -75
  57. package/src/models/VerifyCouponResourceArrayResponse.ts +0 -73
@@ -66,7 +66,6 @@ docs/CategoryFrontendResourceArrayResponse.md
66
66
  docs/CategoryWithChildrenFrontendResource.md
67
67
  docs/CategoryWithChildrenFrontendResourceArrayResponse.md
68
68
  docs/CouponDiscountType.md
69
- docs/CouponsApi.md
70
69
  docs/CustomerListResource.md
71
70
  docs/CustomerListResourceArrayResponse.md
72
71
  docs/CustomerResource.md
@@ -489,10 +488,6 @@ docs/UpdateStoreRequest.md
489
488
  docs/UpdateStoreRequestSpecialDatesInner.md
490
489
  docs/UpdateSupplierRequest.md
491
490
  docs/UpdateTagRequest.md
492
- docs/VerifyCouponRequest.md
493
- docs/VerifyCouponRequestProductsInner.md
494
- docs/VerifyCouponResource.md
495
- docs/VerifyCouponResourceArrayResponse.md
496
491
  docs/WishlistCheckResource.md
497
492
  docs/WishlistCheckResourceArrayResponse.md
498
493
  docs/WishlistToggleResource.md
@@ -502,7 +497,6 @@ src/apis/AdminApi.ts
502
497
  src/apis/AssetApi.ts
503
498
  src/apis/AttributeApi.ts
504
499
  src/apis/CartsApi.ts
505
- src/apis/CouponsApi.ts
506
500
  src/apis/CustomersApi.ts
507
501
  src/apis/DefinitionApi.ts
508
502
  src/apis/DocumentApi.ts
@@ -987,10 +981,6 @@ src/models/UpdateStoreRequest.ts
987
981
  src/models/UpdateStoreRequestSpecialDatesInner.ts
988
982
  src/models/UpdateSupplierRequest.ts
989
983
  src/models/UpdateTagRequest.ts
990
- src/models/VerifyCouponRequest.ts
991
- src/models/VerifyCouponRequestProductsInner.ts
992
- src/models/VerifyCouponResource.ts
993
- src/models/VerifyCouponResourceArrayResponse.ts
994
984
  src/models/WishlistCheckResource.ts
995
985
  src/models/WishlistCheckResourceArrayResponse.ts
996
986
  src/models/WishlistToggleResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1840
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1841
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -85,7 +85,6 @@ All URIs are relative to *http://localhost/api*
85
85
  *CartsApi* | [**storeCart**](docs/CartsApi.md#storecartoperation) | **POST** /admin-api/carts/create | Auto-generated: storeCart
86
86
  *CartsApi* | [**updateCart**](docs/CartsApi.md#updatecartoperation) | **PUT** /admin-api/carts/{cart}/update | Auto-generated: updateCart
87
87
  *CartsApi* | [**updateItemCart**](docs/CartsApi.md#updateitemcartoperation) | **PUT** /admin-api/carts/{cart}/items/{lineItem}/update | Auto-generated: updateItemCart
88
- *CouponsApi* | [**verifyCoupon**](docs/CouponsApi.md#verifycouponoperation) | **POST** /admin-api/coupons/verify | Auto-generated: verifyCoupon
89
88
  *CustomersApi* | [**indexCustomer**](docs/CustomersApi.md#indexcustomeroperation) | **POST** /admin-api/customers/list | Auto-generated: indexCustomer
90
89
  *CustomersApi* | [**showCustomer**](docs/CustomersApi.md#showcustomer) | **GET** /admin-api/customers/{customer} | Auto-generated: showCustomer
91
90
  *CustomersApi* | [**storeCustomer**](docs/CustomersApi.md#storecustomeroperation) | **POST** /admin-api/customers/create | Auto-generated: storeCustomer
@@ -710,10 +709,6 @@ All URIs are relative to *http://localhost/api*
710
709
  - [UpdateStoreRequestSpecialDatesInner](docs/UpdateStoreRequestSpecialDatesInner.md)
711
710
  - [UpdateSupplierRequest](docs/UpdateSupplierRequest.md)
712
711
  - [UpdateTagRequest](docs/UpdateTagRequest.md)
713
- - [VerifyCouponRequest](docs/VerifyCouponRequest.md)
714
- - [VerifyCouponRequestProductsInner](docs/VerifyCouponRequestProductsInner.md)
715
- - [VerifyCouponResource](docs/VerifyCouponResource.md)
716
- - [VerifyCouponResourceArrayResponse](docs/VerifyCouponResourceArrayResponse.md)
717
712
  - [WishlistCheckResource](docs/WishlistCheckResource.md)
718
713
  - [WishlistCheckResourceArrayResponse](docs/WishlistCheckResourceArrayResponse.md)
719
714
  - [WishlistToggleResource](docs/WishlistToggleResource.md)
@@ -731,7 +726,7 @@ and is automatically generated by the
731
726
  [OpenAPI Generator](https://openapi-generator.tech) project:
732
727
 
733
728
  - API version: `1.0.0`
734
- - Package version: `0.0.1840`
729
+ - Package version: `0.0.1841`
735
730
  - Generator version: `7.21.0`
736
731
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
737
732
 
@@ -2,7 +2,6 @@ export * from './AdminApi';
2
2
  export * from './AssetApi';
3
3
  export * from './AttributeApi';
4
4
  export * from './CartsApi';
5
- export * from './CouponsApi';
6
5
  export * from './CustomersApi';
7
6
  export * from './DefinitionApi';
8
7
  export * from './DocumentApi';
@@ -20,7 +20,6 @@ __exportStar(require("./AdminApi"), exports);
20
20
  __exportStar(require("./AssetApi"), exports);
21
21
  __exportStar(require("./AttributeApi"), exports);
22
22
  __exportStar(require("./CartsApi"), exports);
23
- __exportStar(require("./CouponsApi"), exports);
24
23
  __exportStar(require("./CustomersApi"), exports);
25
24
  __exportStar(require("./DefinitionApi"), exports);
26
25
  __exportStar(require("./DocumentApi"), exports);
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2?: string | null;
35
+ line2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -26,6 +26,8 @@ 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;
29
31
  if (!('postcode' in value) || value['postcode'] === undefined)
30
32
  return false;
31
33
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -48,7 +50,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'company': json['company'],
50
52
  'line1': json['line1'],
51
- 'line2': json['line2'] == null ? undefined : json['line2'],
53
+ 'line2': json['line2'],
52
54
  'postcode': json['postcode'],
53
55
  'suburb': json['suburb'],
54
56
  'country': json['country'],
@@ -26,7 +26,7 @@ export interface AddressResource {
26
26
  * @type {string}
27
27
  * @memberof AddressResource
28
28
  */
29
- company?: string | null;
29
+ company: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- line2: string;
41
+ line2?: string | null;
42
42
  /**
43
43
  *
44
44
  * @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 (!('company' in value) || value['company'] === 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;
@@ -47,9 +47,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
47
47
  }
48
48
  return {
49
49
  'id': json['id'] == null ? undefined : json['id'],
50
- 'company': json['company'] == null ? undefined : json['company'],
50
+ 'company': json['company'],
51
51
  'line1': json['line_1'],
52
- 'line2': json['line_2'],
52
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
53
53
  'postcode': json['postcode'],
54
54
  'suburb': json['suburb'],
55
55
  'country': json['country'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -101,13 +101,13 @@ export interface StoreCartRequest {
101
101
  * @type {StoreCartRequestShippingAddress}
102
102
  * @memberof StoreCartRequest
103
103
  */
104
- shippingAddress: StoreCartRequestShippingAddress;
104
+ shippingAddress?: StoreCartRequestShippingAddress;
105
105
  /**
106
106
  *
107
107
  * @type {StoreCartRequestShippingAddress}
108
108
  * @memberof StoreCartRequest
109
109
  */
110
- billingAddress: StoreCartRequestShippingAddress;
110
+ billingAddress?: StoreCartRequestShippingAddress;
111
111
  }
112
112
  /**
113
113
  * @export
@@ -51,10 +51,6 @@ function instanceOfStoreCartRequest(value) {
51
51
  return false;
52
52
  if (!('source' in value) || value['source'] === undefined)
53
53
  return false;
54
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
55
- return false;
56
- if (!('billingAddress' in value) || value['billingAddress'] === undefined)
57
- return false;
58
54
  return true;
59
55
  }
60
56
  function StoreCartRequestFromJSON(json) {
@@ -78,8 +74,8 @@ function StoreCartRequestFromJSONTyped(json, ignoreDiscriminator) {
78
74
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
79
75
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
80
76
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
81
- 'shippingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
82
- 'billingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['billing_address']),
77
+ 'shippingAddress': json['shipping_address'] == null ? undefined : (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
78
+ 'billingAddress': json['billing_address'] == null ? undefined : (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['billing_address']),
83
79
  };
84
80
  }
85
81
  function StoreCartRequestToJSON(json) {
@@ -26,7 +26,7 @@ export interface StoreCartRequestShippingAddress {
26
26
  * @type {string}
27
27
  * @memberof StoreCartRequestShippingAddress
28
28
  */
29
- line1: string;
29
+ line1?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -38,19 +38,19 @@ export interface StoreCartRequestShippingAddress {
38
38
  * @type {string}
39
39
  * @memberof StoreCartRequestShippingAddress
40
40
  */
41
- suburb: string;
41
+ suburb?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {string}
45
45
  * @memberof StoreCartRequestShippingAddress
46
46
  */
47
- state: string;
47
+ state?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
51
51
  * @memberof StoreCartRequestShippingAddress
52
52
  */
53
- postcode: string;
53
+ postcode?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -22,14 +22,6 @@ exports.StoreCartRequestShippingAddressToJSONTyped = StoreCartRequestShippingAdd
22
22
  * Check if a given object implements the StoreCartRequestShippingAddress interface.
23
23
  */
24
24
  function instanceOfStoreCartRequestShippingAddress(value) {
25
- if (!('line1' in value) || value['line1'] === undefined)
26
- return false;
27
- if (!('suburb' in value) || value['suburb'] === undefined)
28
- return false;
29
- if (!('state' in value) || value['state'] === undefined)
30
- return false;
31
- if (!('postcode' in value) || value['postcode'] === undefined)
32
- return false;
33
25
  return true;
34
26
  }
35
27
  function StoreCartRequestShippingAddressFromJSON(json) {
@@ -41,11 +33,11 @@ function StoreCartRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator)
41
33
  }
42
34
  return {
43
35
  'company': json['company'] == null ? undefined : json['company'],
44
- 'line1': json['line_1'],
36
+ 'line1': json['line_1'] == null ? undefined : json['line_1'],
45
37
  'line2': json['line_2'] == null ? undefined : json['line_2'],
46
- 'suburb': json['suburb'],
47
- 'state': json['state'],
48
- 'postcode': json['postcode'],
38
+ 'suburb': json['suburb'] == null ? undefined : json['suburb'],
39
+ 'state': json['state'] == null ? undefined : json['state'],
40
+ 'postcode': json['postcode'] == null ? undefined : json['postcode'],
49
41
  'country': json['country'] == null ? undefined : json['country'],
50
42
  };
51
43
  }
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website?: string | null;
47
+ website: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -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}
@@ -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'] == null ? undefined : 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'] == null ? undefined : 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'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -36,8 +36,12 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
39
41
  if (!('email' in value) || value['email'] === undefined)
40
42
  return false;
43
+ if (!('website' in value) || value['website'] === undefined)
44
+ return false;
41
45
  if (!('suppliers' in value) || value['suppliers'] === undefined)
42
46
  return false;
43
47
  if (!('address' in value) || value['address'] === undefined)
@@ -60,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
60
64
  'phone': json['phone'],
61
65
  'longitude': json['longitude'],
62
66
  'latitude': json['latitude'],
63
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
67
+ 'tagLine': json['tag_line'],
64
68
  'email': json['email'],
65
- 'website': json['website'] == null ? undefined : json['website'],
69
+ 'website': json['website'],
66
70
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
67
71
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
68
72
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -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'],
@@ -76,13 +76,13 @@ export interface UpdateCartRequest {
76
76
  * @type {StoreCartRequestShippingAddress}
77
77
  * @memberof UpdateCartRequest
78
78
  */
79
- shippingAddress: StoreCartRequestShippingAddress;
79
+ shippingAddress?: StoreCartRequestShippingAddress;
80
80
  /**
81
81
  *
82
82
  * @type {StoreCartRequestShippingAddress}
83
83
  * @memberof UpdateCartRequest
84
84
  */
85
- billingAddress: StoreCartRequestShippingAddress;
85
+ billingAddress?: StoreCartRequestShippingAddress;
86
86
  }
87
87
  /**
88
88
  * @export
@@ -46,10 +46,6 @@ exports.UpdateCartRequestShippingTypeEnum = {
46
46
  * Check if a given object implements the UpdateCartRequest interface.
47
47
  */
48
48
  function instanceOfUpdateCartRequest(value) {
49
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
50
- return false;
51
- if (!('billingAddress' in value) || value['billingAddress'] === undefined)
52
- return false;
53
49
  return true;
54
50
  }
55
51
  function UpdateCartRequestFromJSON(json) {
@@ -69,8 +65,8 @@ function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
69
65
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
70
66
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
71
67
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
72
- 'shippingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
73
- 'billingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['billing_address']),
68
+ 'shippingAddress': json['shipping_address'] == null ? undefined : (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
69
+ 'billingAddress': json['billing_address'] == null ? undefined : (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['billing_address']),
74
70
  };
75
71
  }
76
72
  function UpdateCartRequestToJSON(json) {
@@ -461,10 +461,6 @@ export * from './UpdateStoreRequest';
461
461
  export * from './UpdateStoreRequestSpecialDatesInner';
462
462
  export * from './UpdateSupplierRequest';
463
463
  export * from './UpdateTagRequest';
464
- export * from './VerifyCouponRequest';
465
- export * from './VerifyCouponRequestProductsInner';
466
- export * from './VerifyCouponResource';
467
- export * from './VerifyCouponResourceArrayResponse';
468
464
  export * from './WishlistCheckResource';
469
465
  export * from './WishlistCheckResourceArrayResponse';
470
466
  export * from './WishlistToggleResource';
@@ -479,10 +479,6 @@ __exportStar(require("./UpdateStoreRequest"), exports);
479
479
  __exportStar(require("./UpdateStoreRequestSpecialDatesInner"), exports);
480
480
  __exportStar(require("./UpdateSupplierRequest"), exports);
481
481
  __exportStar(require("./UpdateTagRequest"), exports);
482
- __exportStar(require("./VerifyCouponRequest"), exports);
483
- __exportStar(require("./VerifyCouponRequestProductsInner"), exports);
484
- __exportStar(require("./VerifyCouponResource"), exports);
485
- __exportStar(require("./VerifyCouponResourceArrayResponse"), exports);
486
482
  __exportStar(require("./WishlistCheckResource"), exports);
487
483
  __exportStar(require("./WishlistCheckResourceArrayResponse"), exports);
488
484
  __exportStar(require("./WishlistToggleResource"), exports);
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1840",
3
+ "version": "0.0.1841",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
package/src/apis/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from './AdminApi';
4
4
  export * from './AssetApi';
5
5
  export * from './AttributeApi';
6
6
  export * from './CartsApi';
7
- export * from './CouponsApi';
8
7
  export * from './CustomersApi';
9
8
  export * from './DefinitionApi';
10
9
  export * from './DocumentApi';
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -75,6 +75,7 @@ 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;
78
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
80
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
80
81
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -95,7 +96,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
95
96
 
96
97
  'company': json['company'],
97
98
  'line1': json['line1'],
98
- 'line2': json['line2'] == null ? undefined : json['line2'],
99
+ 'line2': json['line2'],
99
100
  'postcode': json['postcode'],
100
101
  'suburb': json['suburb'],
101
102
  'country': json['country'],
@@ -30,7 +30,7 @@ export interface AddressResource {
30
30
  * @type {string}
31
31
  * @memberof AddressResource
32
32
  */
33
- company?: string | null;
33
+ company: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- line2: string;
45
+ line2?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -79,8 +79,8 @@ export interface AddressResource {
79
79
  * Check if a given object implements the AddressResource interface.
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
+ if (!('company' in value) || value['company'] === undefined) return false;
82
83
  if (!('line1' in value) || value['line1'] === undefined) return false;
83
- if (!('line2' in value) || value['line2'] === undefined) return false;
84
84
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
85
85
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
86
86
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -100,9 +100,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
100
100
  return {
101
101
 
102
102
  'id': json['id'] == null ? undefined : json['id'],
103
- 'company': json['company'] == null ? undefined : json['company'],
103
+ 'company': json['company'],
104
104
  'line1': json['line_1'],
105
- 'line2': json['line_2'],
105
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
106
106
  'postcode': json['postcode'],
107
107
  'suburb': json['suburb'],
108
108
  'country': json['country'],
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ 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;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),