@digital8/lighting-illusions-ts-sdk 0.0.1843 → 0.0.1844

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 (66) hide show
  1. package/.openapi-generator/FILES +0 -14
  2. package/README.md +3 -10
  3. package/dist/apis/CartsApi.d.ts +6 -6
  4. package/dist/apis/CartsApi.js +5 -3
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +1 -3
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +1 -3
  9. package/dist/models/AdminCartResource.d.ts +4 -34
  10. package/dist/models/AdminCartResource.js +10 -32
  11. package/dist/models/AttachCouponCartRequest.d.ts +2 -2
  12. package/dist/models/AttachCouponCartRequest.js +3 -3
  13. package/dist/models/LineItemListResource.d.ts +3 -27
  14. package/dist/models/LineItemListResource.js +3 -19
  15. package/dist/models/StoreFrontendResource.d.ts +1 -1
  16. package/dist/models/StoreFrontendResource.js +1 -3
  17. package/dist/models/StoreResource.d.ts +2 -2
  18. package/dist/models/StoreResource.js +4 -4
  19. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  20. package/dist/models/StoreSpecialDateResource.js +3 -1
  21. package/dist/models/index.d.ts +0 -7
  22. package/dist/models/index.js +0 -7
  23. package/docs/AdminCartResource.md +6 -16
  24. package/docs/AttachCouponCartRequest.md +2 -2
  25. package/docs/CartsApi.md +8 -8
  26. package/docs/LineItemListResource.md +1 -9
  27. package/docs/StoreSpecialDateResource.md +1 -1
  28. package/package.json +1 -1
  29. package/src/apis/CartsApi.ts +14 -12
  30. package/src/models/AddressFrontendResource.ts +2 -3
  31. package/src/models/AddressResource.ts +2 -3
  32. package/src/models/AdminCartResource.ts +14 -60
  33. package/src/models/AttachCouponCartRequest.ts +5 -5
  34. package/src/models/LineItemListResource.ts +10 -46
  35. package/src/models/StoreFrontendResource.ts +2 -3
  36. package/src/models/StoreResource.ts +5 -5
  37. package/src/models/StoreSpecialDateResource.ts +4 -3
  38. package/src/models/index.ts +0 -7
  39. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  40. package/dist/models/DetachCouponCartRequest.js +0 -51
  41. package/dist/models/DiscountType.d.ts +0 -26
  42. package/dist/models/DiscountType.js +0 -52
  43. package/dist/models/DiscountValueType.d.ts +0 -25
  44. package/dist/models/DiscountValueType.js +0 -51
  45. package/dist/models/FrontendCartResource.d.ts +0 -174
  46. package/dist/models/FrontendCartResource.js +0 -133
  47. package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
  48. package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
  49. package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
  50. package/dist/models/ProductChildCartLiteResource.js +0 -77
  51. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  52. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  53. package/docs/DetachCouponCartRequest.md +0 -34
  54. package/docs/DiscountType.md +0 -32
  55. package/docs/DiscountValueType.md +0 -32
  56. package/docs/FrontendCartResource.md +0 -80
  57. package/docs/FrontendCartResourceArrayResponse.md +0 -34
  58. package/docs/ProductChildCartLiteResource.md +0 -46
  59. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  60. package/src/models/DetachCouponCartRequest.ts +0 -66
  61. package/src/models/DiscountType.ts +0 -54
  62. package/src/models/DiscountValueType.ts +0 -53
  63. package/src/models/FrontendCartResource.ts +0 -295
  64. package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
  65. package/src/models/ProductChildCartLiteResource.ts +0 -135
  66. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -109,7 +109,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
109
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
114
  return true;
@@ -134,7 +133,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
133
  'address': json['address'] == null ? undefined : json['address'],
135
134
  'latitude': json['latitude'],
136
135
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
138
  'specialDates': json['specialDates'],
140
139
  'suppliers': json['suppliers'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
92
+ tagLine: string;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website: string;
104
+ website?: string | null;
105
105
  /**
106
106
  *
107
107
  * @type {string}
@@ -137,8 +137,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
137
137
  if (!('phone' in value) || value['phone'] === undefined) return false;
138
138
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
139
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
140
141
  if (!('email' in value) || value['email'] === undefined) return false;
141
- if (!('website' in value) || value['website'] === undefined) return false;
142
142
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
143
143
  if (!('address' in value) || value['address'] === undefined) return false;
144
144
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -161,9 +161,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
161
161
  'phone': json['phone'],
162
162
  'longitude': json['longitude'],
163
163
  'latitude': json['latitude'],
164
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
164
+ 'tagLine': json['tag_line'],
165
165
  'email': json['email'],
166
- 'website': json['website'],
166
+ 'website': json['website'] == null ? undefined : json['website'],
167
167
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
168
168
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
169
169
  'address': AddressResourceFromJSON(json['address']),
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['display_start_date'],
94
95
  'displayEndDate': json['display_end_date'],
@@ -74,7 +74,6 @@ export * from './DestroyAttributeValueRequest';
74
74
  export * from './DetachAccessoriesProductRangeRequest';
75
75
  export * from './DetachAssetableOverlayTemplateRequest';
76
76
  export * from './DetachAttributesProductRangeRequest';
77
- export * from './DetachCouponCartRequest';
78
77
  export * from './DetachDocumentablesDocumentRequest';
79
78
  export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
80
79
  export * from './DetachDocumentsProductChildRequest';
@@ -82,8 +81,6 @@ export * from './DetachDocumentsProductRangeRequest';
82
81
  export * from './DetachProductsProductCategoryRequest';
83
82
  export * from './DetachStoresSupplierRequest';
84
83
  export * from './DetachSuppliersStoreRequest';
85
- export * from './DiscountType';
86
- export * from './DiscountValueType';
87
84
  export * from './DocumentFileForUploadResource';
88
85
  export * from './DocumentFileForUploadResourceArrayResponse';
89
86
  export * from './DocumentFrontendResource';
@@ -98,8 +95,6 @@ export * from './ExternalApiLogResource';
98
95
  export * from './ExternalApiLogResourceArrayResponse';
99
96
  export * from './ExternalApiProvider';
100
97
  export * from './ExternalApiSyncStatus';
101
- export * from './FrontendCartResource';
102
- export * from './FrontendCartResourceArrayResponse';
103
98
  export * from './GenericResponse';
104
99
  export * from './GetAllAttributeRequest';
105
100
  export * from './GetAllAttributeValueRequest';
@@ -270,8 +265,6 @@ export * from './ProductChildAttributeGroupedResource';
270
265
  export * from './ProductChildAttributeGroupedResourceArrayResponse';
271
266
  export * from './ProductChildAttributeResource';
272
267
  export * from './ProductChildAttributeResourceArrayResponse';
273
- export * from './ProductChildCartLiteResource';
274
- export * from './ProductChildCartLiteResourceArrayResponse';
275
268
  export * from './ProductChildListResource';
276
269
  export * from './ProductChildListResourceArrayResponse';
277
270
  export * from './ProductChildLiteResource';
@@ -1,32 +0,0 @@
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 DetachCouponCartRequest
16
- */
17
- export interface DetachCouponCartRequest {
18
- /**
19
- *
20
- * @type {Array<number>}
21
- * @memberof DetachCouponCartRequest
22
- */
23
- couponIds: Array<number>;
24
- }
25
- /**
26
- * Check if a given object implements the DetachCouponCartRequest interface.
27
- */
28
- export declare function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest;
29
- export declare function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest;
30
- export declare function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest;
31
- export declare function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest;
32
- export declare function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +0,0 @@
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.instanceOfDetachCouponCartRequest = instanceOfDetachCouponCartRequest;
17
- exports.DetachCouponCartRequestFromJSON = DetachCouponCartRequestFromJSON;
18
- exports.DetachCouponCartRequestFromJSONTyped = DetachCouponCartRequestFromJSONTyped;
19
- exports.DetachCouponCartRequestToJSON = DetachCouponCartRequestToJSON;
20
- exports.DetachCouponCartRequestToJSONTyped = DetachCouponCartRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the DetachCouponCartRequest interface.
23
- */
24
- function instanceOfDetachCouponCartRequest(value) {
25
- if (!('couponIds' in value) || value['couponIds'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function DetachCouponCartRequestFromJSON(json) {
30
- return DetachCouponCartRequestFromJSONTyped(json, false);
31
- }
32
- function DetachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponIds': json['coupon_ids'],
38
- };
39
- }
40
- function DetachCouponCartRequestToJSON(json) {
41
- return DetachCouponCartRequestToJSONTyped(json, false);
42
- }
43
- function DetachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_ids': value['couponIds'],
50
- };
51
- }
@@ -1,26 +0,0 @@
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
- */
16
- export declare const DiscountType: {
17
- readonly Shipping: "shipping";
18
- readonly Subtotal: "subtotal";
19
- readonly Product: "product";
20
- };
21
- export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
22
- export declare function instanceOfDiscountType(value: any): boolean;
23
- export declare function DiscountTypeFromJSON(json: any): DiscountType;
24
- export declare function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType;
25
- export declare function DiscountTypeToJSON(value?: DiscountType | null): any;
26
- export declare function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType;
@@ -1,52 +0,0 @@
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.DiscountType = void 0;
17
- exports.instanceOfDiscountType = instanceOfDiscountType;
18
- exports.DiscountTypeFromJSON = DiscountTypeFromJSON;
19
- exports.DiscountTypeFromJSONTyped = DiscountTypeFromJSONTyped;
20
- exports.DiscountTypeToJSON = DiscountTypeToJSON;
21
- exports.DiscountTypeToJSONTyped = DiscountTypeToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.DiscountType = {
27
- Shipping: 'shipping',
28
- Subtotal: 'subtotal',
29
- Product: 'product'
30
- };
31
- function instanceOfDiscountType(value) {
32
- for (var key in exports.DiscountType) {
33
- if (Object.prototype.hasOwnProperty.call(exports.DiscountType, key)) {
34
- if (exports.DiscountType[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function DiscountTypeFromJSON(json) {
42
- return DiscountTypeFromJSONTyped(json, false);
43
- }
44
- function DiscountTypeFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function DiscountTypeToJSON(value) {
48
- return value;
49
- }
50
- function DiscountTypeToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
@@ -1,25 +0,0 @@
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
- */
16
- export declare const DiscountValueType: {
17
- readonly FixedValue: "fixed_value";
18
- readonly Percentage: "percentage";
19
- };
20
- export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
21
- export declare function instanceOfDiscountValueType(value: any): boolean;
22
- export declare function DiscountValueTypeFromJSON(json: any): DiscountValueType;
23
- export declare function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType;
24
- export declare function DiscountValueTypeToJSON(value?: DiscountValueType | null): any;
25
- export declare function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType;
@@ -1,51 +0,0 @@
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.DiscountValueType = void 0;
17
- exports.instanceOfDiscountValueType = instanceOfDiscountValueType;
18
- exports.DiscountValueTypeFromJSON = DiscountValueTypeFromJSON;
19
- exports.DiscountValueTypeFromJSONTyped = DiscountValueTypeFromJSONTyped;
20
- exports.DiscountValueTypeToJSON = DiscountValueTypeToJSON;
21
- exports.DiscountValueTypeToJSONTyped = DiscountValueTypeToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.DiscountValueType = {
27
- FixedValue: 'fixed_value',
28
- Percentage: 'percentage'
29
- };
30
- function instanceOfDiscountValueType(value) {
31
- for (var key in exports.DiscountValueType) {
32
- if (Object.prototype.hasOwnProperty.call(exports.DiscountValueType, key)) {
33
- if (exports.DiscountValueType[key] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
- function DiscountValueTypeFromJSON(json) {
41
- return DiscountValueTypeFromJSONTyped(json, false);
42
- }
43
- function DiscountValueTypeFromJSONTyped(json, ignoreDiscriminator) {
44
- return json;
45
- }
46
- function DiscountValueTypeToJSON(value) {
47
- return value;
48
- }
49
- function DiscountValueTypeToJSONTyped(value, ignoreDiscriminator) {
50
- return value;
51
- }
@@ -1,174 +0,0 @@
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
- import type { SiteLiteResource } from './SiteLiteResource';
13
- import type { LineItemListResource } from './LineItemListResource';
14
- import type { CustomerListResource } from './CustomerListResource';
15
- import type { AddressResource } from './AddressResource';
16
- /**
17
- *
18
- * @export
19
- * @interface FrontendCartResource
20
- */
21
- export interface FrontendCartResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof FrontendCartResource
26
- */
27
- id?: number | null;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof FrontendCartResource
32
- */
33
- siteId: number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof FrontendCartResource
38
- */
39
- customerId?: number | null;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof FrontendCartResource
44
- */
45
- source: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof FrontendCartResource
50
- */
51
- sessionToken?: string | null;
52
- /**
53
- *
54
- * @type {Date}
55
- * @memberof FrontendCartResource
56
- */
57
- expiryDate: Date;
58
- /**
59
- *
60
- * @type {Date}
61
- * @memberof FrontendCartResource
62
- */
63
- checkoutCompletedAt?: Date | null;
64
- /**
65
- *
66
- * @type {Date}
67
- * @memberof FrontendCartResource
68
- */
69
- createdAt?: Date | null;
70
- /**
71
- *
72
- * @type {Date}
73
- * @memberof FrontendCartResource
74
- */
75
- updatedAt?: Date | null;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof FrontendCartResource
80
- */
81
- shippingType?: string | null;
82
- /**
83
- *
84
- * @type {boolean}
85
- * @memberof FrontendCartResource
86
- */
87
- useAsBillingAddress: boolean;
88
- /**
89
- *
90
- * @type {SiteLiteResource}
91
- * @memberof FrontendCartResource
92
- */
93
- site: SiteLiteResource | null;
94
- /**
95
- *
96
- * @type {CustomerListResource}
97
- * @memberof FrontendCartResource
98
- */
99
- customer: CustomerListResource | null;
100
- /**
101
- *
102
- * @type {Array<LineItemListResource>}
103
- * @memberof FrontendCartResource
104
- */
105
- lineItems: Array<LineItemListResource> | null;
106
- /**
107
- *
108
- * @type {object}
109
- * @memberof FrontendCartResource
110
- */
111
- coupons: object;
112
- /**
113
- *
114
- * @type {AddressResource}
115
- * @memberof FrontendCartResource
116
- */
117
- shippingAddress: AddressResource | null;
118
- /**
119
- *
120
- * @type {AddressResource}
121
- * @memberof FrontendCartResource
122
- */
123
- billingAddress: AddressResource | null;
124
- /**
125
- *
126
- * @type {number}
127
- * @memberof FrontendCartResource
128
- */
129
- subtotal: number;
130
- /**
131
- *
132
- * @type {number}
133
- * @memberof FrontendCartResource
134
- */
135
- discountPreview: number;
136
- /**
137
- *
138
- * @type {number}
139
- * @memberof FrontendCartResource
140
- */
141
- totalSubtotalDiscount: number;
142
- /**
143
- *
144
- * @type {number}
145
- * @memberof FrontendCartResource
146
- */
147
- totalShippingDiscount: number;
148
- /**
149
- *
150
- * @type {number}
151
- * @memberof FrontendCartResource
152
- */
153
- shippingEstimate: number;
154
- /**
155
- *
156
- * @type {number}
157
- * @memberof FrontendCartResource
158
- */
159
- insuranceEstimate: number;
160
- /**
161
- *
162
- * @type {string}
163
- * @memberof FrontendCartResource
164
- */
165
- status: string;
166
- }
167
- /**
168
- * Check if a given object implements the FrontendCartResource interface.
169
- */
170
- export declare function instanceOfFrontendCartResource(value: object): value is FrontendCartResource;
171
- export declare function FrontendCartResourceFromJSON(json: any): FrontendCartResource;
172
- export declare function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResource;
173
- export declare function FrontendCartResourceToJSON(json: any): FrontendCartResource;
174
- export declare function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,133 +0,0 @@
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.instanceOfFrontendCartResource = instanceOfFrontendCartResource;
17
- exports.FrontendCartResourceFromJSON = FrontendCartResourceFromJSON;
18
- exports.FrontendCartResourceFromJSONTyped = FrontendCartResourceFromJSONTyped;
19
- exports.FrontendCartResourceToJSON = FrontendCartResourceToJSON;
20
- exports.FrontendCartResourceToJSONTyped = FrontendCartResourceToJSONTyped;
21
- var SiteLiteResource_1 = require("./SiteLiteResource");
22
- var LineItemListResource_1 = require("./LineItemListResource");
23
- var CustomerListResource_1 = require("./CustomerListResource");
24
- var AddressResource_1 = require("./AddressResource");
25
- /**
26
- * Check if a given object implements the FrontendCartResource interface.
27
- */
28
- function instanceOfFrontendCartResource(value) {
29
- if (!('siteId' in value) || value['siteId'] === undefined)
30
- return false;
31
- if (!('source' in value) || value['source'] === undefined)
32
- return false;
33
- if (!('expiryDate' in value) || value['expiryDate'] === undefined)
34
- return false;
35
- if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
36
- return false;
37
- if (!('site' in value) || value['site'] === undefined)
38
- return false;
39
- if (!('customer' in value) || value['customer'] === undefined)
40
- return false;
41
- if (!('lineItems' in value) || value['lineItems'] === undefined)
42
- return false;
43
- if (!('coupons' in value) || value['coupons'] === undefined)
44
- return false;
45
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
46
- return false;
47
- if (!('billingAddress' in value) || value['billingAddress'] === undefined)
48
- return false;
49
- if (!('subtotal' in value) || value['subtotal'] === undefined)
50
- return false;
51
- if (!('discountPreview' in value) || value['discountPreview'] === undefined)
52
- return false;
53
- if (!('totalSubtotalDiscount' in value) || value['totalSubtotalDiscount'] === undefined)
54
- return false;
55
- if (!('totalShippingDiscount' in value) || value['totalShippingDiscount'] === undefined)
56
- return false;
57
- if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined)
58
- return false;
59
- if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined)
60
- return false;
61
- if (!('status' in value) || value['status'] === undefined)
62
- return false;
63
- return true;
64
- }
65
- function FrontendCartResourceFromJSON(json) {
66
- return FrontendCartResourceFromJSONTyped(json, false);
67
- }
68
- function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
69
- if (json == null) {
70
- return json;
71
- }
72
- return {
73
- 'id': json['id'] == null ? undefined : json['id'],
74
- 'siteId': json['site_id'],
75
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
76
- 'source': json['source'],
77
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
78
- 'expiryDate': (new Date(json['expiry_date'])),
79
- 'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
80
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
81
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
82
- 'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
83
- 'useAsBillingAddress': json['use_as_billing_address'],
84
- 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
85
- 'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
86
- 'lineItems': (json['line_items'] == null ? null : json['line_items'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
87
- 'coupons': json['coupons'],
88
- 'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shipping_address']),
89
- 'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billing_address']),
90
- 'subtotal': json['subtotal'],
91
- 'discountPreview': json['discount_preview'],
92
- 'totalSubtotalDiscount': json['total_subtotal_discount'],
93
- 'totalShippingDiscount': json['total_shipping_discount'],
94
- 'shippingEstimate': json['shipping_estimate'],
95
- 'insuranceEstimate': json['insurance_estimate'],
96
- 'status': json['status'],
97
- };
98
- }
99
- function FrontendCartResourceToJSON(json) {
100
- return FrontendCartResourceToJSONTyped(json, false);
101
- }
102
- function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
103
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
104
- if (value == null) {
105
- return value;
106
- }
107
- return {
108
- 'id': value['id'],
109
- 'site_id': value['siteId'],
110
- 'customer_id': value['customerId'],
111
- 'source': value['source'],
112
- 'session_token': value['sessionToken'],
113
- 'expiry_date': value['expiryDate'].toISOString(),
114
- 'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
115
- 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
116
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
117
- 'shipping_type': value['shippingType'],
118
- 'use_as_billing_address': value['useAsBillingAddress'],
119
- 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
120
- 'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
121
- 'line_items': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
122
- 'coupons': value['coupons'],
123
- 'shipping_address': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
124
- 'billing_address': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
125
- 'subtotal': value['subtotal'],
126
- 'discount_preview': value['discountPreview'],
127
- 'total_subtotal_discount': value['totalSubtotalDiscount'],
128
- 'total_shipping_discount': value['totalShippingDiscount'],
129
- 'shipping_estimate': value['shippingEstimate'],
130
- 'insurance_estimate': value['insuranceEstimate'],
131
- 'status': value['status'],
132
- };
133
- }