@digital8/lighting-illusions-ts-sdk 0.0.1843 → 0.0.1845
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -4
- package/README.md +2 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +3 -2
- package/src/models/index.ts +0 -2
- package/dist/models/FrontendCartResource.d.ts +0 -174
- package/dist/models/FrontendCartResource.js +0 -133
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/docs/FrontendCartResource.md +0 -80
- package/docs/FrontendCartResourceArrayResponse.md +0 -34
- package/src/models/FrontendCartResource.ts +0 -295
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -108,8 +108,6 @@ docs/ExternalApiLogResource.md
|
|
|
108
108
|
docs/ExternalApiLogResourceArrayResponse.md
|
|
109
109
|
docs/ExternalApiProvider.md
|
|
110
110
|
docs/ExternalApiSyncStatus.md
|
|
111
|
-
docs/FrontendCartResource.md
|
|
112
|
-
docs/FrontendCartResourceArrayResponse.md
|
|
113
111
|
docs/GenericResponse.md
|
|
114
112
|
docs/GetAllAttributeRequest.md
|
|
115
113
|
docs/GetAllAttributeValueRequest.md
|
|
@@ -621,8 +619,6 @@ src/models/ExternalApiLogResource.ts
|
|
|
621
619
|
src/models/ExternalApiLogResourceArrayResponse.ts
|
|
622
620
|
src/models/ExternalApiProvider.ts
|
|
623
621
|
src/models/ExternalApiSyncStatus.ts
|
|
624
|
-
src/models/FrontendCartResource.ts
|
|
625
|
-
src/models/FrontendCartResourceArrayResponse.ts
|
|
626
622
|
src/models/GenericResponse.ts
|
|
627
623
|
src/models/GetAllAttributeRequest.ts
|
|
628
624
|
src/models/GetAllAttributeValueRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1845
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -344,8 +344,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
344
344
|
- [ExternalApiLogResourceArrayResponse](docs/ExternalApiLogResourceArrayResponse.md)
|
|
345
345
|
- [ExternalApiProvider](docs/ExternalApiProvider.md)
|
|
346
346
|
- [ExternalApiSyncStatus](docs/ExternalApiSyncStatus.md)
|
|
347
|
-
- [FrontendCartResource](docs/FrontendCartResource.md)
|
|
348
|
-
- [FrontendCartResourceArrayResponse](docs/FrontendCartResourceArrayResponse.md)
|
|
349
347
|
- [GenericResponse](docs/GenericResponse.md)
|
|
350
348
|
- [GetAllAttributeRequest](docs/GetAllAttributeRequest.md)
|
|
351
349
|
- [GetAllAttributeValueRequest](docs/GetAllAttributeValueRequest.md)
|
|
@@ -731,7 +729,7 @@ and is automatically generated by the
|
|
|
731
729
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
732
730
|
|
|
733
731
|
- API version: `1.0.0`
|
|
734
|
-
- Package version: `0.0.
|
|
732
|
+
- Package version: `0.0.1845`
|
|
735
733
|
- Generator version: `7.21.0`
|
|
736
734
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
737
735
|
|
|
@@ -22,6 +22,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('line2' in value) || value['line2'] === undefined)
|
|
@@ -47,7 +49,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'company': json['company']
|
|
52
|
+
'company': json['company'],
|
|
51
53
|
'line1': json['line_1'],
|
|
52
54
|
'line2': json['line_2'],
|
|
53
55
|
'postcode': json['postcode'],
|
|
@@ -34,8 +34,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
58
|
'latitude': json['latitude'],
|
|
61
59
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
61
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
62
|
'specialDates': json['specialDates'],
|
|
65
63
|
'suppliers': json['suppliers'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website?: string | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {string}
|
|
@@ -33,12 +33,8 @@ 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;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
38
|
return true;
|
|
43
39
|
}
|
|
44
40
|
function StoreListResourceFromJSON(json) {
|
|
@@ -55,9 +51,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
51
|
'phone': json['phone'],
|
|
56
52
|
'longitude': json['longitude'],
|
|
57
53
|
'latitude': json['latitude'],
|
|
58
|
-
'tagLine': json['tag_line'],
|
|
54
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
59
55
|
'email': json['email'],
|
|
60
|
-
'website': json['website'],
|
|
56
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
61
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
62
58
|
};
|
|
63
59
|
}
|
|
@@ -36,6 +36,8 @@ 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;
|
|
41
43
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -62,7 +64,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
64
|
'phone': json['phone'],
|
|
63
65
|
'longitude': json['longitude'],
|
|
64
66
|
'latitude': json['latitude'],
|
|
65
|
-
'tagLine': json['tag_line']
|
|
67
|
+
'tagLine': json['tag_line'],
|
|
66
68
|
'email': json['email'],
|
|
67
69
|
'website': json['website'],
|
|
68
70
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -96,8 +96,6 @@ export * from './ExternalApiLogResource';
|
|
|
96
96
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
97
97
|
export * from './ExternalApiProvider';
|
|
98
98
|
export * from './ExternalApiSyncStatus';
|
|
99
|
-
export * from './FrontendCartResource';
|
|
100
|
-
export * from './FrontendCartResourceArrayResponse';
|
|
101
99
|
export * from './GenericResponse';
|
|
102
100
|
export * from './GetAllAttributeRequest';
|
|
103
101
|
export * from './GetAllAttributeValueRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -114,8 +114,6 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
114
114
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
115
115
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
116
116
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
117
|
-
__exportStar(require("./FrontendCartResource"), exports);
|
|
118
|
-
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
119
117
|
__exportStar(require("./GenericResponse"), exports);
|
|
120
118
|
__exportStar(require("./GetAllAttributeRequest"), exports);
|
|
121
119
|
__exportStar(require("./GetAllAttributeValueRequest"), exports);
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,6 +79,7 @@ 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
84
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
84
85
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -100,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
101
|
return {
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company']
|
|
104
|
+
'company': json['company'],
|
|
104
105
|
'line1': json['line_1'],
|
|
105
106
|
'line2': json['line_2'],
|
|
106
107
|
'postcode': json['postcode'],
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
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'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -98,9 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
98
98
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
99
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
101
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
104
102
|
return true;
|
|
105
103
|
}
|
|
106
104
|
|
|
@@ -120,9 +118,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
120
118
|
'phone': json['phone'],
|
|
121
119
|
'longitude': json['longitude'],
|
|
122
120
|
'latitude': json['latitude'],
|
|
123
|
-
'tagLine': json['tag_line'],
|
|
121
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
124
122
|
'email': json['email'],
|
|
125
|
-
'website': json['website'],
|
|
123
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
126
124
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
127
125
|
};
|
|
128
126
|
}
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -137,6 +137,7 @@ 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
142
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
142
143
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -161,7 +162,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
161
162
|
'phone': json['phone'],
|
|
162
163
|
'longitude': json['longitude'],
|
|
163
164
|
'latitude': json['latitude'],
|
|
164
|
-
'tagLine': json['tag_line']
|
|
165
|
+
'tagLine': json['tag_line'],
|
|
165
166
|
'email': json['email'],
|
|
166
167
|
'website': json['website'],
|
|
167
168
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
package/src/models/index.ts
CHANGED
|
@@ -98,8 +98,6 @@ export * from './ExternalApiLogResource';
|
|
|
98
98
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
99
99
|
export * from './ExternalApiProvider';
|
|
100
100
|
export * from './ExternalApiSyncStatus';
|
|
101
|
-
export * from './FrontendCartResource';
|
|
102
|
-
export * from './FrontendCartResourceArrayResponse';
|
|
103
101
|
export * from './GenericResponse';
|
|
104
102
|
export * from './GetAllAttributeRequest';
|
|
105
103
|
export * from './GetAllAttributeValueRequest';
|
|
@@ -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
|
-
}
|
|
@@ -1,33 +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 { FrontendCartResource } from './FrontendCartResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface FrontendCartResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface FrontendCartResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<FrontendCartResource>}
|
|
22
|
-
* @memberof FrontendCartResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<FrontendCartResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfFrontendCartResourceArrayResponse(value: object): value is FrontendCartResourceArrayResponse;
|
|
30
|
-
export declare function FrontendCartResourceArrayResponseFromJSON(json: any): FrontendCartResourceArrayResponse;
|
|
31
|
-
export declare function FrontendCartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceArrayResponse;
|
|
32
|
-
export declare function FrontendCartResourceArrayResponseToJSON(json: any): FrontendCartResourceArrayResponse;
|
|
33
|
-
export declare function FrontendCartResourceArrayResponseToJSONTyped(value?: FrontendCartResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfFrontendCartResourceArrayResponse = instanceOfFrontendCartResourceArrayResponse;
|
|
17
|
-
exports.FrontendCartResourceArrayResponseFromJSON = FrontendCartResourceArrayResponseFromJSON;
|
|
18
|
-
exports.FrontendCartResourceArrayResponseFromJSONTyped = FrontendCartResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.FrontendCartResourceArrayResponseToJSON = FrontendCartResourceArrayResponseToJSON;
|
|
20
|
-
exports.FrontendCartResourceArrayResponseToJSONTyped = FrontendCartResourceArrayResponseToJSONTyped;
|
|
21
|
-
var FrontendCartResource_1 = require("./FrontendCartResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfFrontendCartResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function FrontendCartResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return FrontendCartResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function FrontendCartResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(FrontendCartResource_1.FrontendCartResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function FrontendCartResourceArrayResponseToJSON(json) {
|
|
40
|
-
return FrontendCartResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function FrontendCartResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(FrontendCartResource_1.FrontendCartResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# FrontendCartResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`siteId` | number
|
|
11
|
-
`customerId` | number
|
|
12
|
-
`source` | string
|
|
13
|
-
`sessionToken` | string
|
|
14
|
-
`expiryDate` | Date
|
|
15
|
-
`checkoutCompletedAt` | Date
|
|
16
|
-
`createdAt` | Date
|
|
17
|
-
`updatedAt` | Date
|
|
18
|
-
`shippingType` | string
|
|
19
|
-
`useAsBillingAddress` | boolean
|
|
20
|
-
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
21
|
-
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
22
|
-
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
23
|
-
`coupons` | object
|
|
24
|
-
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
25
|
-
`billingAddress` | [AddressResource](AddressResource.md)
|
|
26
|
-
`subtotal` | number
|
|
27
|
-
`discountPreview` | number
|
|
28
|
-
`totalSubtotalDiscount` | number
|
|
29
|
-
`totalShippingDiscount` | number
|
|
30
|
-
`shippingEstimate` | number
|
|
31
|
-
`insuranceEstimate` | number
|
|
32
|
-
`status` | string
|
|
33
|
-
|
|
34
|
-
## Example
|
|
35
|
-
|
|
36
|
-
```typescript
|
|
37
|
-
import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
38
|
-
|
|
39
|
-
// TODO: Update the object below with actual values
|
|
40
|
-
const example = {
|
|
41
|
-
"id": null,
|
|
42
|
-
"siteId": null,
|
|
43
|
-
"customerId": null,
|
|
44
|
-
"source": null,
|
|
45
|
-
"sessionToken": null,
|
|
46
|
-
"expiryDate": null,
|
|
47
|
-
"checkoutCompletedAt": null,
|
|
48
|
-
"createdAt": null,
|
|
49
|
-
"updatedAt": null,
|
|
50
|
-
"shippingType": null,
|
|
51
|
-
"useAsBillingAddress": null,
|
|
52
|
-
"site": null,
|
|
53
|
-
"customer": null,
|
|
54
|
-
"lineItems": null,
|
|
55
|
-
"coupons": null,
|
|
56
|
-
"shippingAddress": null,
|
|
57
|
-
"billingAddress": null,
|
|
58
|
-
"subtotal": null,
|
|
59
|
-
"discountPreview": null,
|
|
60
|
-
"totalSubtotalDiscount": null,
|
|
61
|
-
"totalShippingDiscount": null,
|
|
62
|
-
"shippingEstimate": null,
|
|
63
|
-
"insuranceEstimate": null,
|
|
64
|
-
"status": null,
|
|
65
|
-
} satisfies FrontendCartResource
|
|
66
|
-
|
|
67
|
-
console.log(example)
|
|
68
|
-
|
|
69
|
-
// Convert the instance to a JSON string
|
|
70
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
71
|
-
console.log(exampleJSON)
|
|
72
|
-
|
|
73
|
-
// Parse the JSON string back to an object
|
|
74
|
-
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
|
|
75
|
-
console.log(exampleParsed)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
79
|
-
|
|
80
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# FrontendCartResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<FrontendCartResource>](FrontendCartResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { FrontendCartResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies FrontendCartResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
SiteLiteResourceFromJSON,
|
|
19
|
-
SiteLiteResourceFromJSONTyped,
|
|
20
|
-
SiteLiteResourceToJSON,
|
|
21
|
-
SiteLiteResourceToJSONTyped,
|
|
22
|
-
} from './SiteLiteResource';
|
|
23
|
-
import type { LineItemListResource } from './LineItemListResource';
|
|
24
|
-
import {
|
|
25
|
-
LineItemListResourceFromJSON,
|
|
26
|
-
LineItemListResourceFromJSONTyped,
|
|
27
|
-
LineItemListResourceToJSON,
|
|
28
|
-
LineItemListResourceToJSONTyped,
|
|
29
|
-
} from './LineItemListResource';
|
|
30
|
-
import type { CustomerListResource } from './CustomerListResource';
|
|
31
|
-
import {
|
|
32
|
-
CustomerListResourceFromJSON,
|
|
33
|
-
CustomerListResourceFromJSONTyped,
|
|
34
|
-
CustomerListResourceToJSON,
|
|
35
|
-
CustomerListResourceToJSONTyped,
|
|
36
|
-
} from './CustomerListResource';
|
|
37
|
-
import type { AddressResource } from './AddressResource';
|
|
38
|
-
import {
|
|
39
|
-
AddressResourceFromJSON,
|
|
40
|
-
AddressResourceFromJSONTyped,
|
|
41
|
-
AddressResourceToJSON,
|
|
42
|
-
AddressResourceToJSONTyped,
|
|
43
|
-
} from './AddressResource';
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @interface FrontendCartResource
|
|
49
|
-
*/
|
|
50
|
-
export interface FrontendCartResource {
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof FrontendCartResource
|
|
55
|
-
*/
|
|
56
|
-
id?: number | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof FrontendCartResource
|
|
61
|
-
*/
|
|
62
|
-
siteId: number;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {number}
|
|
66
|
-
* @memberof FrontendCartResource
|
|
67
|
-
*/
|
|
68
|
-
customerId?: number | null;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof FrontendCartResource
|
|
73
|
-
*/
|
|
74
|
-
source: string;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof FrontendCartResource
|
|
79
|
-
*/
|
|
80
|
-
sessionToken?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Date}
|
|
84
|
-
* @memberof FrontendCartResource
|
|
85
|
-
*/
|
|
86
|
-
expiryDate: Date;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {Date}
|
|
90
|
-
* @memberof FrontendCartResource
|
|
91
|
-
*/
|
|
92
|
-
checkoutCompletedAt?: Date | null;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {Date}
|
|
96
|
-
* @memberof FrontendCartResource
|
|
97
|
-
*/
|
|
98
|
-
createdAt?: Date | null;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {Date}
|
|
102
|
-
* @memberof FrontendCartResource
|
|
103
|
-
*/
|
|
104
|
-
updatedAt?: Date | null;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {string}
|
|
108
|
-
* @memberof FrontendCartResource
|
|
109
|
-
*/
|
|
110
|
-
shippingType?: string | null;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {boolean}
|
|
114
|
-
* @memberof FrontendCartResource
|
|
115
|
-
*/
|
|
116
|
-
useAsBillingAddress: boolean;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {SiteLiteResource}
|
|
120
|
-
* @memberof FrontendCartResource
|
|
121
|
-
*/
|
|
122
|
-
site: SiteLiteResource | null;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {CustomerListResource}
|
|
126
|
-
* @memberof FrontendCartResource
|
|
127
|
-
*/
|
|
128
|
-
customer: CustomerListResource | null;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {Array<LineItemListResource>}
|
|
132
|
-
* @memberof FrontendCartResource
|
|
133
|
-
*/
|
|
134
|
-
lineItems: Array<LineItemListResource> | null;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {object}
|
|
138
|
-
* @memberof FrontendCartResource
|
|
139
|
-
*/
|
|
140
|
-
coupons: object;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {AddressResource}
|
|
144
|
-
* @memberof FrontendCartResource
|
|
145
|
-
*/
|
|
146
|
-
shippingAddress: AddressResource | null;
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @type {AddressResource}
|
|
150
|
-
* @memberof FrontendCartResource
|
|
151
|
-
*/
|
|
152
|
-
billingAddress: AddressResource | null;
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @type {number}
|
|
156
|
-
* @memberof FrontendCartResource
|
|
157
|
-
*/
|
|
158
|
-
subtotal: number;
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {number}
|
|
162
|
-
* @memberof FrontendCartResource
|
|
163
|
-
*/
|
|
164
|
-
discountPreview: number;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @type {number}
|
|
168
|
-
* @memberof FrontendCartResource
|
|
169
|
-
*/
|
|
170
|
-
totalSubtotalDiscount: number;
|
|
171
|
-
/**
|
|
172
|
-
*
|
|
173
|
-
* @type {number}
|
|
174
|
-
* @memberof FrontendCartResource
|
|
175
|
-
*/
|
|
176
|
-
totalShippingDiscount: number;
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @type {number}
|
|
180
|
-
* @memberof FrontendCartResource
|
|
181
|
-
*/
|
|
182
|
-
shippingEstimate: number;
|
|
183
|
-
/**
|
|
184
|
-
*
|
|
185
|
-
* @type {number}
|
|
186
|
-
* @memberof FrontendCartResource
|
|
187
|
-
*/
|
|
188
|
-
insuranceEstimate: number;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {string}
|
|
192
|
-
* @memberof FrontendCartResource
|
|
193
|
-
*/
|
|
194
|
-
status: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Check if a given object implements the FrontendCartResource interface.
|
|
199
|
-
*/
|
|
200
|
-
export function instanceOfFrontendCartResource(value: object): value is FrontendCartResource {
|
|
201
|
-
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
202
|
-
if (!('source' in value) || value['source'] === undefined) return false;
|
|
203
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
204
|
-
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
205
|
-
if (!('site' in value) || value['site'] === undefined) return false;
|
|
206
|
-
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
207
|
-
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
208
|
-
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
209
|
-
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
210
|
-
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
211
|
-
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
212
|
-
if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
|
|
213
|
-
if (!('totalSubtotalDiscount' in value) || value['totalSubtotalDiscount'] === undefined) return false;
|
|
214
|
-
if (!('totalShippingDiscount' in value) || value['totalShippingDiscount'] === undefined) return false;
|
|
215
|
-
if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined) return false;
|
|
216
|
-
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
|
|
217
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
218
|
-
return true;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export function FrontendCartResourceFromJSON(json: any): FrontendCartResource {
|
|
222
|
-
return FrontendCartResourceFromJSONTyped(json, false);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResource {
|
|
226
|
-
if (json == null) {
|
|
227
|
-
return json;
|
|
228
|
-
}
|
|
229
|
-
return {
|
|
230
|
-
|
|
231
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
232
|
-
'siteId': json['site_id'],
|
|
233
|
-
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
234
|
-
'source': json['source'],
|
|
235
|
-
'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
|
|
236
|
-
'expiryDate': (new Date(json['expiry_date'])),
|
|
237
|
-
'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
|
|
238
|
-
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
239
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
240
|
-
'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
|
|
241
|
-
'useAsBillingAddress': json['use_as_billing_address'],
|
|
242
|
-
'site': SiteLiteResourceFromJSON(json['site']),
|
|
243
|
-
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
244
|
-
'lineItems': (json['line_items'] == null ? null : (json['line_items'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
245
|
-
'coupons': json['coupons'],
|
|
246
|
-
'shippingAddress': AddressResourceFromJSON(json['shipping_address']),
|
|
247
|
-
'billingAddress': AddressResourceFromJSON(json['billing_address']),
|
|
248
|
-
'subtotal': json['subtotal'],
|
|
249
|
-
'discountPreview': json['discount_preview'],
|
|
250
|
-
'totalSubtotalDiscount': json['total_subtotal_discount'],
|
|
251
|
-
'totalShippingDiscount': json['total_shipping_discount'],
|
|
252
|
-
'shippingEstimate': json['shipping_estimate'],
|
|
253
|
-
'insuranceEstimate': json['insurance_estimate'],
|
|
254
|
-
'status': json['status'],
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export function FrontendCartResourceToJSON(json: any): FrontendCartResource {
|
|
259
|
-
return FrontendCartResourceToJSONTyped(json, false);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | null, ignoreDiscriminator: boolean = false): any {
|
|
263
|
-
if (value == null) {
|
|
264
|
-
return value;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
return {
|
|
268
|
-
|
|
269
|
-
'id': value['id'],
|
|
270
|
-
'site_id': value['siteId'],
|
|
271
|
-
'customer_id': value['customerId'],
|
|
272
|
-
'source': value['source'],
|
|
273
|
-
'session_token': value['sessionToken'],
|
|
274
|
-
'expiry_date': value['expiryDate'].toISOString(),
|
|
275
|
-
'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
276
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
277
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
278
|
-
'shipping_type': value['shippingType'],
|
|
279
|
-
'use_as_billing_address': value['useAsBillingAddress'],
|
|
280
|
-
'site': SiteLiteResourceToJSON(value['site']),
|
|
281
|
-
'customer': CustomerListResourceToJSON(value['customer']),
|
|
282
|
-
'line_items': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
283
|
-
'coupons': value['coupons'],
|
|
284
|
-
'shipping_address': AddressResourceToJSON(value['shippingAddress']),
|
|
285
|
-
'billing_address': AddressResourceToJSON(value['billingAddress']),
|
|
286
|
-
'subtotal': value['subtotal'],
|
|
287
|
-
'discount_preview': value['discountPreview'],
|
|
288
|
-
'total_subtotal_discount': value['totalSubtotalDiscount'],
|
|
289
|
-
'total_shipping_discount': value['totalShippingDiscount'],
|
|
290
|
-
'shipping_estimate': value['shippingEstimate'],
|
|
291
|
-
'insurance_estimate': value['insuranceEstimate'],
|
|
292
|
-
'status': value['status'],
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { FrontendCartResource } from './FrontendCartResource';
|
|
17
|
-
import {
|
|
18
|
-
FrontendCartResourceFromJSON,
|
|
19
|
-
FrontendCartResourceFromJSONTyped,
|
|
20
|
-
FrontendCartResourceToJSON,
|
|
21
|
-
FrontendCartResourceToJSONTyped,
|
|
22
|
-
} from './FrontendCartResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface FrontendCartResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface FrontendCartResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<FrontendCartResource>}
|
|
33
|
-
* @memberof FrontendCartResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<FrontendCartResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfFrontendCartResourceArrayResponse(value: object): value is FrontendCartResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function FrontendCartResourceArrayResponseFromJSON(json: any): FrontendCartResourceArrayResponse {
|
|
46
|
-
return FrontendCartResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function FrontendCartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FrontendCartResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function FrontendCartResourceArrayResponseToJSON(json: any): FrontendCartResourceArrayResponse {
|
|
60
|
-
return FrontendCartResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function FrontendCartResourceArrayResponseToJSONTyped(value?: FrontendCartResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(FrontendCartResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|