@digital8/lighting-illusions-ts-sdk 0.0.1850 → 0.0.1852

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 (204) hide show
  1. package/.openapi-generator/FILES +74 -2
  2. package/README.md +52 -3
  3. package/dist/apis/CartsApi.d.ts +190 -0
  4. package/dist/apis/CartsApi.js +745 -0
  5. package/dist/apis/CustomersApi.d.ts +79 -0
  6. package/dist/apis/CustomersApi.js +316 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/models/AddressType.d.ts +25 -0
  10. package/dist/models/AddressType.js +51 -0
  11. package/dist/models/AdminCartResource.d.ts +240 -0
  12. package/dist/models/AdminCartResource.js +171 -0
  13. package/dist/models/AdminCartResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/AdminCartResourceArrayResponse.js +50 -0
  15. package/dist/models/AttachCouponCartRequest.d.ts +32 -0
  16. package/dist/models/AttachCouponCartRequest.js +51 -0
  17. package/dist/models/AttachItemCartRequest.d.ts +44 -0
  18. package/dist/models/AttachItemCartRequest.js +57 -0
  19. package/dist/models/CartListResource.d.ts +149 -0
  20. package/dist/models/CartListResource.js +112 -0
  21. package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/CartListResourceArrayResponse.js +50 -0
  23. package/dist/models/CartOrderSource.d.ts +29 -0
  24. package/dist/models/CartOrderSource.js +55 -0
  25. package/dist/models/CartStatus.d.ts +26 -0
  26. package/dist/models/CartStatus.js +52 -0
  27. package/dist/models/CustomerListResource.d.ts +76 -0
  28. package/dist/models/CustomerListResource.js +77 -0
  29. package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/CustomerListResourceArrayResponse.js +50 -0
  31. package/dist/models/CustomerResource.d.ts +76 -0
  32. package/dist/models/CustomerResource.js +77 -0
  33. package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/CustomerResourceArrayResponse.js +50 -0
  35. package/dist/models/DetachCouponCartRequest.d.ts +32 -0
  36. package/dist/models/DetachCouponCartRequest.js +51 -0
  37. package/dist/models/DiscountType.d.ts +26 -0
  38. package/dist/models/DiscountType.js +52 -0
  39. package/dist/models/DiscountValueType.d.ts +25 -0
  40. package/dist/models/DiscountValueType.js +51 -0
  41. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  42. package/dist/models/ExternalApiLogResource.js +3 -1
  43. package/dist/models/IndexCartRequest.d.ts +154 -0
  44. package/dist/models/IndexCartRequest.js +105 -0
  45. package/dist/models/IndexCustomerRequest.d.ts +99 -0
  46. package/dist/models/IndexCustomerRequest.js +83 -0
  47. package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
  48. package/dist/models/IndexExternalApiLogRequest.js +2 -0
  49. package/dist/models/LiAddressResource.d.ts +86 -0
  50. package/dist/models/LiAddressResource.js +83 -0
  51. package/dist/models/LiAddressResourceArrayResponse.d.ts +33 -0
  52. package/dist/models/LiAddressResourceArrayResponse.js +50 -0
  53. package/dist/models/LineItemListResource.d.ts +75 -0
  54. package/dist/models/LineItemListResource.js +78 -0
  55. package/dist/models/LineItemListResourceArrayResponse.d.ts +33 -0
  56. package/dist/models/LineItemListResourceArrayResponse.js +50 -0
  57. package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
  58. package/dist/models/PaginatedCartListResourceResponse.js +57 -0
  59. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
  60. package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
  61. package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
  62. package/dist/models/ProductChildCartLiteResource.js +77 -0
  63. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
  64. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
  65. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
  66. package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
  67. package/dist/models/ShippingType.d.ts +28 -0
  68. package/dist/models/ShippingType.js +54 -0
  69. package/dist/models/SitePaymentConfigResource.d.ts +6 -0
  70. package/dist/models/SitePaymentConfigResource.js +4 -0
  71. package/dist/models/StoreCartRequest.d.ts +148 -0
  72. package/dist/models/StoreCartRequest.js +108 -0
  73. package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
  74. package/dist/models/StoreCartRequestCustomer.js +55 -0
  75. package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
  76. package/dist/models/StoreCartRequestItemsInner.js +57 -0
  77. package/dist/models/StoreCartRequestShippingAddress.d.ts +68 -0
  78. package/dist/models/StoreCartRequestShippingAddress.js +61 -0
  79. package/dist/models/StoreCustomerRequest.d.ts +56 -0
  80. package/dist/models/StoreCustomerRequest.js +65 -0
  81. package/dist/models/StoreFrontendResource.d.ts +1 -1
  82. package/dist/models/StoreFrontendResource.js +1 -3
  83. package/dist/models/StoreListResource.d.ts +1 -13
  84. package/dist/models/StoreListResource.js +6 -12
  85. package/dist/models/StoreResource.d.ts +1 -13
  86. package/dist/models/StoreResource.js +8 -14
  87. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  88. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  89. package/dist/models/StoreSpecialDateResource.js +4 -4
  90. package/dist/models/StoreStoreRequest.d.ts +0 -12
  91. package/dist/models/StoreStoreRequest.js +0 -4
  92. package/dist/models/UpdateCartRequest.d.ts +123 -0
  93. package/dist/models/UpdateCartRequest.js +95 -0
  94. package/dist/models/UpdateCustomerRequest.d.ts +56 -0
  95. package/dist/models/UpdateCustomerRequest.js +63 -0
  96. package/dist/models/UpdateItemCartRequest.d.ts +38 -0
  97. package/dist/models/UpdateItemCartRequest.js +53 -0
  98. package/dist/models/UpdateSiteRequest.d.ts +6 -0
  99. package/dist/models/UpdateSiteRequest.js +4 -0
  100. package/dist/models/UpdateStoreRequest.d.ts +0 -12
  101. package/dist/models/UpdateStoreRequest.js +0 -4
  102. package/dist/models/index.d.ts +35 -1
  103. package/dist/models/index.js +35 -1
  104. package/docs/{StoreStockType.md → AddressType.md} +4 -4
  105. package/docs/AdminCartResource.md +102 -0
  106. package/docs/AdminCartResourceArrayResponse.md +34 -0
  107. package/docs/AttachCouponCartRequest.md +34 -0
  108. package/docs/AttachItemCartRequest.md +38 -0
  109. package/docs/CartListResource.md +72 -0
  110. package/docs/CartListResourceArrayResponse.md +34 -0
  111. package/docs/CartOrderSource.md +32 -0
  112. package/docs/CartStatus.md +32 -0
  113. package/docs/CartsApi.md +755 -0
  114. package/docs/CustomerListResource.md +48 -0
  115. package/docs/CustomerListResourceArrayResponse.md +34 -0
  116. package/docs/CustomerResource.md +48 -0
  117. package/docs/CustomerResourceArrayResponse.md +34 -0
  118. package/docs/CustomersApi.md +275 -0
  119. package/docs/DetachCouponCartRequest.md +34 -0
  120. package/docs/DiscountType.md +32 -0
  121. package/docs/DiscountValueType.md +32 -0
  122. package/docs/IndexCartRequest.md +66 -0
  123. package/docs/IndexCustomerRequest.md +50 -0
  124. package/docs/IndexExternalApiLogRequest.md +2 -0
  125. package/docs/LiAddressResource.md +52 -0
  126. package/docs/LiAddressResourceArrayResponse.md +34 -0
  127. package/docs/LineItemListResource.md +48 -0
  128. package/docs/LineItemListResourceArrayResponse.md +34 -0
  129. package/docs/PaginatedCartListResourceResponse.md +36 -0
  130. package/docs/PaginatedCustomerListResourceResponse.md +36 -0
  131. package/docs/ProductChildCartLiteResource.md +46 -0
  132. package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
  133. package/docs/ProductChildSiteDetailLiteResource.md +2 -0
  134. package/docs/ShippingType.md +32 -0
  135. package/docs/SitePaymentConfigResource.md +2 -0
  136. package/docs/StoreCartRequest.md +64 -0
  137. package/docs/StoreCartRequestCustomer.md +40 -0
  138. package/docs/StoreCartRequestItemsInner.md +38 -0
  139. package/docs/StoreCartRequestShippingAddress.md +46 -0
  140. package/docs/StoreCustomerRequest.md +42 -0
  141. package/docs/StoreListResource.md +0 -4
  142. package/docs/StoreResource.md +0 -4
  143. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  144. package/docs/StoreStoreRequest.md +0 -4
  145. package/docs/UpdateCartRequest.md +56 -0
  146. package/docs/UpdateCustomerRequest.md +42 -0
  147. package/docs/UpdateItemCartRequest.md +36 -0
  148. package/docs/UpdateSiteRequest.md +2 -0
  149. package/docs/UpdateStoreRequest.md +0 -4
  150. package/package.json +1 -1
  151. package/src/apis/CartsApi.ts +624 -0
  152. package/src/apis/CustomersApi.ts +232 -0
  153. package/src/apis/index.ts +2 -0
  154. package/src/models/AddressType.ts +53 -0
  155. package/src/models/AdminCartResource.ts +391 -0
  156. package/src/models/AdminCartResourceArrayResponse.ts +73 -0
  157. package/src/models/AttachCouponCartRequest.ts +66 -0
  158. package/src/models/AttachItemCartRequest.ts +83 -0
  159. package/src/models/CartListResource.ts +250 -0
  160. package/src/models/CartListResourceArrayResponse.ts +73 -0
  161. package/src/models/CartOrderSource.ts +57 -0
  162. package/src/models/CartStatus.ts +54 -0
  163. package/src/models/CustomerListResource.ts +142 -0
  164. package/src/models/CustomerListResourceArrayResponse.ts +73 -0
  165. package/src/models/CustomerResource.ts +142 -0
  166. package/src/models/CustomerResourceArrayResponse.ts +73 -0
  167. package/src/models/DetachCouponCartRequest.ts +66 -0
  168. package/src/models/DiscountType.ts +54 -0
  169. package/src/models/DiscountValueType.ts +53 -0
  170. package/src/models/ExternalApiLogResource.ts +3 -2
  171. package/src/models/IndexCartRequest.ts +224 -0
  172. package/src/models/IndexCustomerRequest.ts +152 -0
  173. package/src/models/IndexExternalApiLogRequest.ts +8 -0
  174. package/src/models/LiAddressResource.ts +145 -0
  175. package/src/models/LiAddressResourceArrayResponse.ts +73 -0
  176. package/src/models/LineItemListResource.ts +136 -0
  177. package/src/models/LineItemListResourceArrayResponse.ts +73 -0
  178. package/src/models/PaginatedCartListResourceResponse.ts +90 -0
  179. package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
  180. package/src/models/ProductChildCartLiteResource.ts +135 -0
  181. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
  182. package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
  183. package/src/models/ShippingType.ts +56 -0
  184. package/src/models/SitePaymentConfigResource.ts +9 -0
  185. package/src/models/StoreCartRequest.ts +236 -0
  186. package/src/models/StoreCartRequestCustomer.ts +89 -0
  187. package/src/models/StoreCartRequestItemsInner.ts +83 -0
  188. package/src/models/StoreCartRequestShippingAddress.ts +113 -0
  189. package/src/models/StoreCustomerRequest.ts +101 -0
  190. package/src/models/StoreFrontendResource.ts +2 -3
  191. package/src/models/StoreListResource.ts +6 -23
  192. package/src/models/StoreResource.ts +9 -26
  193. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  194. package/src/models/StoreSpecialDateResource.ts +4 -4
  195. package/src/models/StoreStoreRequest.ts +0 -16
  196. package/src/models/UpdateCartRequest.ts +195 -0
  197. package/src/models/UpdateCustomerRequest.ts +100 -0
  198. package/src/models/UpdateItemCartRequest.ts +74 -0
  199. package/src/models/UpdateSiteRequest.ts +9 -0
  200. package/src/models/UpdateStoreRequest.ts +0 -16
  201. package/src/models/index.ts +35 -1
  202. package/dist/models/StoreStockType.d.ts +0 -25
  203. package/dist/models/StoreStockType.js +0 -51
  204. package/src/models/StoreStockType.ts +0 -53
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStoreCartRequestItemsInner = instanceOfStoreCartRequestItemsInner;
17
+ exports.StoreCartRequestItemsInnerFromJSON = StoreCartRequestItemsInnerFromJSON;
18
+ exports.StoreCartRequestItemsInnerFromJSONTyped = StoreCartRequestItemsInnerFromJSONTyped;
19
+ exports.StoreCartRequestItemsInnerToJSON = StoreCartRequestItemsInnerToJSON;
20
+ exports.StoreCartRequestItemsInnerToJSONTyped = StoreCartRequestItemsInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StoreCartRequestItemsInner interface.
23
+ */
24
+ function instanceOfStoreCartRequestItemsInner(value) {
25
+ if (!('productChildId' in value) || value['productChildId'] === undefined)
26
+ return false;
27
+ if (!('quantity' in value) || value['quantity'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function StoreCartRequestItemsInnerFromJSON(json) {
32
+ return StoreCartRequestItemsInnerFromJSONTyped(json, false);
33
+ }
34
+ function StoreCartRequestItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'productChildId': json['product_child_id'],
40
+ 'quantity': json['quantity'],
41
+ 'productPrice': json['product_price'] == null ? undefined : json['product_price'],
42
+ };
43
+ }
44
+ function StoreCartRequestItemsInnerToJSON(json) {
45
+ return StoreCartRequestItemsInnerToJSONTyped(json, false);
46
+ }
47
+ function StoreCartRequestItemsInnerToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'product_child_id': value['productChildId'],
54
+ 'quantity': value['quantity'],
55
+ 'product_price': value['productPrice'],
56
+ };
57
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface StoreCartRequestShippingAddress
16
+ */
17
+ export interface StoreCartRequestShippingAddress {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StoreCartRequestShippingAddress
22
+ */
23
+ company?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof StoreCartRequestShippingAddress
28
+ */
29
+ line1?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof StoreCartRequestShippingAddress
34
+ */
35
+ line2?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof StoreCartRequestShippingAddress
40
+ */
41
+ suburb?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof StoreCartRequestShippingAddress
46
+ */
47
+ state?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof StoreCartRequestShippingAddress
52
+ */
53
+ postcode?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof StoreCartRequestShippingAddress
58
+ */
59
+ country?: string | null;
60
+ }
61
+ /**
62
+ * Check if a given object implements the StoreCartRequestShippingAddress interface.
63
+ */
64
+ export declare function instanceOfStoreCartRequestShippingAddress(value: object): value is StoreCartRequestShippingAddress;
65
+ export declare function StoreCartRequestShippingAddressFromJSON(json: any): StoreCartRequestShippingAddress;
66
+ export declare function StoreCartRequestShippingAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequestShippingAddress;
67
+ export declare function StoreCartRequestShippingAddressToJSON(json: any): StoreCartRequestShippingAddress;
68
+ export declare function StoreCartRequestShippingAddressToJSONTyped(value?: StoreCartRequestShippingAddress | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStoreCartRequestShippingAddress = instanceOfStoreCartRequestShippingAddress;
17
+ exports.StoreCartRequestShippingAddressFromJSON = StoreCartRequestShippingAddressFromJSON;
18
+ exports.StoreCartRequestShippingAddressFromJSONTyped = StoreCartRequestShippingAddressFromJSONTyped;
19
+ exports.StoreCartRequestShippingAddressToJSON = StoreCartRequestShippingAddressToJSON;
20
+ exports.StoreCartRequestShippingAddressToJSONTyped = StoreCartRequestShippingAddressToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StoreCartRequestShippingAddress interface.
23
+ */
24
+ function instanceOfStoreCartRequestShippingAddress(value) {
25
+ return true;
26
+ }
27
+ function StoreCartRequestShippingAddressFromJSON(json) {
28
+ return StoreCartRequestShippingAddressFromJSONTyped(json, false);
29
+ }
30
+ function StoreCartRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'company': json['company'] == null ? undefined : json['company'],
36
+ 'line1': json['line_1'] == null ? undefined : json['line_1'],
37
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
38
+ 'suburb': json['suburb'] == null ? undefined : json['suburb'],
39
+ 'state': json['state'] == null ? undefined : json['state'],
40
+ 'postcode': json['postcode'] == null ? undefined : json['postcode'],
41
+ 'country': json['country'] == null ? undefined : json['country'],
42
+ };
43
+ }
44
+ function StoreCartRequestShippingAddressToJSON(json) {
45
+ return StoreCartRequestShippingAddressToJSONTyped(json, false);
46
+ }
47
+ function StoreCartRequestShippingAddressToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'company': value['company'],
54
+ 'line_1': value['line1'],
55
+ 'line_2': value['line2'],
56
+ 'suburb': value['suburb'],
57
+ 'state': value['state'],
58
+ 'postcode': value['postcode'],
59
+ 'country': value['country'],
60
+ };
61
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface StoreCustomerRequest
16
+ */
17
+ export interface StoreCustomerRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof StoreCustomerRequest
22
+ */
23
+ siteId: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof StoreCustomerRequest
28
+ */
29
+ firstName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof StoreCustomerRequest
34
+ */
35
+ lastName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof StoreCustomerRequest
40
+ */
41
+ email: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof StoreCustomerRequest
46
+ */
47
+ phone?: string | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the StoreCustomerRequest interface.
51
+ */
52
+ export declare function instanceOfStoreCustomerRequest(value: object): value is StoreCustomerRequest;
53
+ export declare function StoreCustomerRequestFromJSON(json: any): StoreCustomerRequest;
54
+ export declare function StoreCustomerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCustomerRequest;
55
+ export declare function StoreCustomerRequestToJSON(json: any): StoreCustomerRequest;
56
+ export declare function StoreCustomerRequestToJSONTyped(value?: StoreCustomerRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStoreCustomerRequest = instanceOfStoreCustomerRequest;
17
+ exports.StoreCustomerRequestFromJSON = StoreCustomerRequestFromJSON;
18
+ exports.StoreCustomerRequestFromJSONTyped = StoreCustomerRequestFromJSONTyped;
19
+ exports.StoreCustomerRequestToJSON = StoreCustomerRequestToJSON;
20
+ exports.StoreCustomerRequestToJSONTyped = StoreCustomerRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StoreCustomerRequest interface.
23
+ */
24
+ function instanceOfStoreCustomerRequest(value) {
25
+ if (!('siteId' in value) || value['siteId'] === undefined)
26
+ return false;
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function StoreCustomerRequestFromJSON(json) {
36
+ return StoreCustomerRequestFromJSONTyped(json, false);
37
+ }
38
+ function StoreCustomerRequestFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'siteId': json['site_id'],
44
+ 'firstName': json['first_name'],
45
+ 'lastName': json['last_name'],
46
+ 'email': json['email'],
47
+ 'phone': json['phone'] == null ? undefined : json['phone'],
48
+ };
49
+ }
50
+ function StoreCustomerRequestToJSON(json) {
51
+ return StoreCustomerRequestToJSONTyped(json, false);
52
+ }
53
+ function StoreCustomerRequestToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'site_id': value['siteId'],
60
+ 'first_name': value['firstName'],
61
+ 'last_name': value['lastName'],
62
+ 'email': value['email'],
63
+ 'phone': value['phone'],
64
+ };
65
+ }
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website: string;
47
+ website?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,8 +28,6 @@ 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;
33
31
  if (!('phone' in value) || value['phone'] === undefined)
34
32
  return false;
35
33
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
54
  'siteId': json['siteId'],
57
55
  'name': json['name'],
58
56
  'email': json['email'],
59
- 'website': json['website'],
57
+ 'website': json['website'] == null ? undefined : json['website'],
60
58
  'phone': json['phone'],
61
59
  'address': json['address'] == null ? undefined : json['address'],
62
60
  'latitude': json['latitude'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine?: string | null;
60
+ tagLine: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -70,18 +70,6 @@ export interface StoreListResource {
70
70
  * @memberof StoreListResource
71
71
  */
72
72
  website: string;
73
- /**
74
- *
75
- * @type {number}
76
- * @memberof StoreListResource
77
- */
78
- netsuiteId: number;
79
- /**
80
- *
81
- * @type {number}
82
- * @memberof StoreListResource
83
- */
84
- displayNetsuiteId: number;
85
73
  /**
86
74
  *
87
75
  * @type {string}
@@ -33,14 +33,12 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
+ return false;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
38
40
  if (!('website' in value) || value['website'] === undefined)
39
41
  return false;
40
- if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
41
- return false;
42
- if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
43
- return false;
44
42
  return true;
45
43
  }
46
44
  function StoreListResourceFromJSON(json) {
@@ -57,12 +55,10 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
57
55
  'phone': json['phone'],
58
56
  'longitude': json['longitude'],
59
57
  'latitude': json['latitude'],
60
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
58
+ 'tagLine': json['tag_line'],
61
59
  'email': json['email'],
62
60
  'website': json['website'],
63
- 'netsuiteId': json['netsuiteId'],
64
- 'displayNetsuiteId': json['displayNetsuiteId'],
65
- 'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
61
+ 'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
66
62
  };
67
63
  }
68
64
  function StoreListResourceToJSON(json) {
@@ -80,11 +76,9 @@ function StoreListResourceToJSONTyped(value, ignoreDiscriminator) {
80
76
  'phone': value['phone'],
81
77
  'longitude': value['longitude'],
82
78
  'latitude': value['latitude'],
83
- 'tagLine': value['tagLine'],
79
+ 'tag_line': value['tagLine'],
84
80
  'email': value['email'],
85
81
  'website': value['website'],
86
- 'netsuiteId': value['netsuiteId'],
87
- 'displayNetsuiteId': value['displayNetsuiteId'],
88
- 'openingHours': value['openingHours'],
82
+ 'opening_hours': value['openingHours'],
89
83
  };
90
84
  }
@@ -72,19 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
76
- /**
77
- *
78
- * @type {number}
79
- * @memberof StoreResource
80
- */
81
- netsuiteId: number;
82
- /**
83
- *
84
- * @type {number}
85
- * @memberof StoreResource
86
- */
87
- displayNetsuiteId: number;
75
+ website: string;
88
76
  /**
89
77
  *
90
78
  * @type {string}
@@ -40,9 +40,7 @@ function instanceOfStoreResource(value) {
40
40
  return false;
41
41
  if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
- if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
44
- return false;
45
- if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
43
+ if (!('website' in value) || value['website'] === undefined)
46
44
  return false;
47
45
  if (!('suppliers' in value) || value['suppliers'] === undefined)
48
46
  return false;
@@ -66,15 +64,13 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
64
  'phone': json['phone'],
67
65
  'longitude': json['longitude'],
68
66
  'latitude': json['latitude'],
69
- 'tagLine': json['tagLine'],
67
+ 'tagLine': json['tag_line'],
70
68
  'email': json['email'],
71
- 'website': json['website'] == null ? undefined : json['website'],
72
- 'netsuiteId': json['netsuiteId'],
73
- 'displayNetsuiteId': json['displayNetsuiteId'],
74
- 'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
69
+ 'website': json['website'],
70
+ 'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
75
71
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
76
72
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
77
- 'specialDates': (json['specialDates'] == null ? null : json['specialDates'].map(StoreSpecialDateResource_1.StoreSpecialDateResourceFromJSON)),
73
+ 'specialDates': (json['special_dates'] == null ? null : json['special_dates'].map(StoreSpecialDateResource_1.StoreSpecialDateResourceFromJSON)),
78
74
  };
79
75
  }
80
76
  function StoreResourceToJSON(json) {
@@ -92,14 +88,12 @@ function StoreResourceToJSONTyped(value, ignoreDiscriminator) {
92
88
  'phone': value['phone'],
93
89
  'longitude': value['longitude'],
94
90
  'latitude': value['latitude'],
95
- 'tagLine': value['tagLine'],
91
+ 'tag_line': value['tagLine'],
96
92
  'email': value['email'],
97
93
  'website': value['website'],
98
- 'netsuiteId': value['netsuiteId'],
99
- 'displayNetsuiteId': value['displayNetsuiteId'],
100
- 'openingHours': value['openingHours'],
94
+ 'opening_hours': value['openingHours'],
101
95
  'suppliers': (value['suppliers'] == null ? null : value['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceToJSON)),
102
96
  'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
103
- 'specialDates': (value['specialDates'] == null ? null : value['specialDates'].map(StoreSpecialDateResource_1.StoreSpecialDateResourceToJSON)),
97
+ 'special_dates': (value['specialDates'] == null ? null : value['specialDates'].map(StoreSpecialDateResource_1.StoreSpecialDateResourceToJSON)),
104
98
  };
105
99
  }
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ 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;
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 StoreSpecialDateFrontendResourceFromJSONTyped(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'],
@@ -49,8 +49,8 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'hours': json['hours'],
50
50
  'date': json['date'],
51
51
  'closed': json['closed'],
52
- 'displayStartDate': json['displayStartDate'],
53
- 'displayEndDate': json['displayEndDate'],
52
+ 'displayStartDate': json['display_start_date'],
53
+ 'displayEndDate': json['display_end_date'],
54
54
  };
55
55
  }
56
56
  function StoreSpecialDateResourceToJSON(json) {
@@ -67,7 +67,7 @@ function StoreSpecialDateResourceToJSONTyped(value, ignoreDiscriminator) {
67
67
  'hours': value['hours'],
68
68
  'date': value['date'],
69
69
  'closed': value['closed'],
70
- 'displayStartDate': value['displayStartDate'],
71
- 'displayEndDate': value['displayEndDate'],
70
+ 'display_start_date': value['displayStartDate'],
71
+ 'display_end_date': value['displayEndDate'],
72
72
  };
73
73
  }
@@ -71,18 +71,6 @@ export interface StoreStoreRequest {
71
71
  * @memberof StoreStoreRequest
72
72
  */
73
73
  openingHours?: Array<string | null>;
74
- /**
75
- *
76
- * @type {number}
77
- * @memberof StoreStoreRequest
78
- */
79
- netsuiteId?: number | null;
80
- /**
81
- *
82
- * @type {number}
83
- * @memberof StoreStoreRequest
84
- */
85
- displayNetsuiteId?: number | null;
86
74
  /**
87
75
  *
88
76
  * @type {Array<number>}
@@ -55,8 +55,6 @@ function StoreStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'email': json['email'] == null ? undefined : json['email'],
56
56
  'website': json['website'] == null ? undefined : json['website'],
57
57
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
58
- 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
59
- 'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
60
58
  'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
61
59
  'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerFromJSON)),
62
60
  'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
@@ -80,8 +78,6 @@ function StoreStoreRequestToJSONTyped(value, ignoreDiscriminator) {
80
78
  'email': value['email'],
81
79
  'website': value['website'],
82
80
  'opening_hours': value['openingHours'],
83
- 'netsuite_id': value['netsuiteId'],
84
- 'display_netsuite_id': value['displayNetsuiteId'],
85
81
  'supplier_ids': value['supplierIds'],
86
82
  'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerToJSON)),
87
83
  'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),