@digital8/lighting-illusions-ts-sdk 0.0.2123 → 0.0.2125
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 +14 -0
- package/README.md +9 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderLineItemResource.d.ts +1 -8
- package/dist/models/AdminOrderLineItemResource.js +1 -8
- package/dist/models/CartCouponLiteResource.d.ts +56 -0
- package/dist/models/CartCouponLiteResource.js +67 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResource.d.ts +138 -0
- package/dist/models/FrontendCartResource.js +119 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
- package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
- package/dist/models/FrontendLineItemResource.d.ts +81 -0
- package/dist/models/FrontendLineItemResource.js +82 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/OrderListResource.d.ts +2 -8
- package/dist/models/OrderListResource.js +3 -7
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/AdminOrderLineItemResource.md +0 -2
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResource.md +68 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +50 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/OrderListResource.md +2 -4
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderLineItemResource.ts +2 -19
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResource.ts +246 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
- package/src/models/FrontendLineItemResource.ts +145 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/OrderListResource.ts +5 -14
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/index.ts +7 -0
package/dist/models/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from './BlogFrontendResource';
|
|
|
59
59
|
export * from './BlogFrontendResourceArrayResponse';
|
|
60
60
|
export * from './BlogResource';
|
|
61
61
|
export * from './BlogResourceArrayResponse';
|
|
62
|
+
export * from './CartCouponLiteResource';
|
|
63
|
+
export * from './CartCouponLiteResourceArrayResponse';
|
|
62
64
|
export * from './CartCouponResource';
|
|
63
65
|
export * from './CartCouponResourceArrayResponse';
|
|
64
66
|
export * from './CartListResource';
|
|
@@ -164,10 +166,15 @@ export * from './ExternalApiLogResource';
|
|
|
164
166
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
165
167
|
export * from './ExternalApiProvider';
|
|
166
168
|
export * from './ExternalApiSyncStatus';
|
|
169
|
+
export * from './FrontendCartResource';
|
|
170
|
+
export * from './FrontendCartResourceArrayResponse';
|
|
171
|
+
export * from './FrontendCartResourceCouponsInner';
|
|
167
172
|
export * from './FrontendComponentLiteResource';
|
|
168
173
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
169
174
|
export * from './FrontendComponentResource';
|
|
170
175
|
export * from './FrontendComponentResourceArrayResponse';
|
|
176
|
+
export * from './FrontendLineItemResource';
|
|
177
|
+
export * from './FrontendLineItemResourceArrayResponse';
|
|
171
178
|
export * from './GenericResponse';
|
|
172
179
|
export * from './GetUniqueEndpointsRequest';
|
|
173
180
|
export * from './GlobalSearchCategoryResource';
|
package/dist/models/index.js
CHANGED
|
@@ -77,6 +77,8 @@ __exportStar(require("./BlogFrontendResource"), exports);
|
|
|
77
77
|
__exportStar(require("./BlogFrontendResourceArrayResponse"), exports);
|
|
78
78
|
__exportStar(require("./BlogResource"), exports);
|
|
79
79
|
__exportStar(require("./BlogResourceArrayResponse"), exports);
|
|
80
|
+
__exportStar(require("./CartCouponLiteResource"), exports);
|
|
81
|
+
__exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
|
|
80
82
|
__exportStar(require("./CartCouponResource"), exports);
|
|
81
83
|
__exportStar(require("./CartCouponResourceArrayResponse"), exports);
|
|
82
84
|
__exportStar(require("./CartListResource"), exports);
|
|
@@ -182,10 +184,15 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
182
184
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
183
185
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
184
186
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
187
|
+
__exportStar(require("./FrontendCartResource"), exports);
|
|
188
|
+
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
189
|
+
__exportStar(require("./FrontendCartResourceCouponsInner"), exports);
|
|
185
190
|
__exportStar(require("./FrontendComponentLiteResource"), exports);
|
|
186
191
|
__exportStar(require("./FrontendComponentLiteResourceArrayResponse"), exports);
|
|
187
192
|
__exportStar(require("./FrontendComponentResource"), exports);
|
|
188
193
|
__exportStar(require("./FrontendComponentResourceArrayResponse"), exports);
|
|
194
|
+
__exportStar(require("./FrontendLineItemResource"), exports);
|
|
195
|
+
__exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
|
|
189
196
|
__exportStar(require("./GenericResponse"), exports);
|
|
190
197
|
__exportStar(require("./GetUniqueEndpointsRequest"), exports);
|
|
191
198
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`quantity` | number
|
|
11
11
|
`productPrice` | number
|
|
12
12
|
`labelId` | number
|
|
13
|
-
`label` | [LabelLiteResource](LabelLiteResource.md)
|
|
14
13
|
`productDiscount` | number
|
|
15
14
|
`totalDiscount` | number
|
|
16
15
|
`lineSubtotal` | number
|
|
@@ -34,7 +33,6 @@ const example = {
|
|
|
34
33
|
"quantity": null,
|
|
35
34
|
"productPrice": null,
|
|
36
35
|
"labelId": null,
|
|
37
|
-
"label": null,
|
|
38
36
|
"productDiscount": null,
|
|
39
37
|
"totalDiscount": null,
|
|
40
38
|
"lineSubtotal": null,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# CartCouponLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`code` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`discount` | number
|
|
13
|
+
`appliesTo` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { CartCouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"code": null,
|
|
24
|
+
"name": null,
|
|
25
|
+
"discount": null,
|
|
26
|
+
"appliesTo": null,
|
|
27
|
+
} satisfies CartCouponLiteResource
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as CartCouponLiteResource
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CartCouponLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CartCouponLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CartCouponLiteResourceArrayResponse
|
|
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 CartCouponLiteResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendCartResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`lifecycleStatus` | string
|
|
11
|
+
`siteId` | number
|
|
12
|
+
`sessionToken` | string
|
|
13
|
+
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
14
|
+
`shippingType` | string
|
|
15
|
+
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
16
|
+
`billingAddress` | [AddressResource](AddressResource.md)
|
|
17
|
+
`lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
18
|
+
`coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
|
|
19
|
+
`subtotal` | number
|
|
20
|
+
`promotionalDiscount` | number
|
|
21
|
+
`couponSubtotalDiscount` | number
|
|
22
|
+
`couponShippingDiscount` | number
|
|
23
|
+
`shipping` | number
|
|
24
|
+
`transitInsurance` | number
|
|
25
|
+
`gst` | number
|
|
26
|
+
`grandTotal` | number
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
32
|
+
|
|
33
|
+
// TODO: Update the object below with actual values
|
|
34
|
+
const example = {
|
|
35
|
+
"id": null,
|
|
36
|
+
"lifecycleStatus": null,
|
|
37
|
+
"siteId": null,
|
|
38
|
+
"sessionToken": null,
|
|
39
|
+
"customer": null,
|
|
40
|
+
"shippingType": null,
|
|
41
|
+
"shippingAddress": null,
|
|
42
|
+
"billingAddress": null,
|
|
43
|
+
"lineItems": null,
|
|
44
|
+
"coupons": null,
|
|
45
|
+
"subtotal": null,
|
|
46
|
+
"promotionalDiscount": null,
|
|
47
|
+
"couponSubtotalDiscount": null,
|
|
48
|
+
"couponShippingDiscount": null,
|
|
49
|
+
"shipping": null,
|
|
50
|
+
"transitInsurance": null,
|
|
51
|
+
"gst": null,
|
|
52
|
+
"grandTotal": null,
|
|
53
|
+
} satisfies FrontendCartResource
|
|
54
|
+
|
|
55
|
+
console.log(example)
|
|
56
|
+
|
|
57
|
+
// Convert the instance to a JSON string
|
|
58
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
59
|
+
console.log(exampleJSON)
|
|
60
|
+
|
|
61
|
+
// Parse the JSON string back to an object
|
|
62
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
|
|
63
|
+
console.log(exampleParsed)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
67
|
+
|
|
68
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendCartResourceCouponsInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`code` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`discount` | number
|
|
13
|
+
`appliesTo` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { FrontendCartResourceCouponsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"code": null,
|
|
24
|
+
"name": null,
|
|
25
|
+
"discount": null,
|
|
26
|
+
"appliesTo": null,
|
|
27
|
+
} satisfies FrontendCartResourceCouponsInner
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceCouponsInner
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendLineItemResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`productPrice` | number
|
|
12
|
+
`subtotalAmount` | number
|
|
13
|
+
`totalAmount` | number
|
|
14
|
+
`promotionalSaving` | number
|
|
15
|
+
`isAvailable` | boolean
|
|
16
|
+
`isInStock` | boolean
|
|
17
|
+
`productChild` | [ProductChildLineItemLiteResource](ProductChildLineItemLiteResource.md)
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { FrontendLineItemResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"quantity": null,
|
|
28
|
+
"productPrice": null,
|
|
29
|
+
"subtotalAmount": null,
|
|
30
|
+
"totalAmount": null,
|
|
31
|
+
"promotionalSaving": null,
|
|
32
|
+
"isAvailable": null,
|
|
33
|
+
"isInStock": null,
|
|
34
|
+
"productChild": null,
|
|
35
|
+
} satisfies FrontendLineItemResource
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResource
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendLineItemResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { FrontendLineItemResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies FrontendLineItemResourceArrayResponse
|
|
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 FrontendLineItemResourceArrayResponse
|
|
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
|
+
|
|
@@ -17,8 +17,7 @@ Name | Type
|
|
|
17
17
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
18
18
|
`status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
|
|
19
19
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
20
|
-
`
|
|
21
|
-
`transactionsCount` | number
|
|
20
|
+
`transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
22
21
|
|
|
23
22
|
## Example
|
|
24
23
|
|
|
@@ -38,8 +37,7 @@ const example = {
|
|
|
38
37
|
"customer": null,
|
|
39
38
|
"status": null,
|
|
40
39
|
"lineItems": null,
|
|
41
|
-
"
|
|
42
|
-
"transactionsCount": null,
|
|
40
|
+
"transactions": null,
|
|
43
41
|
} satisfies OrderListResource
|
|
44
42
|
|
|
45
43
|
console.log(example)
|
|
@@ -12,6 +12,9 @@ Name | Type
|
|
|
12
12
|
`model` | string
|
|
13
13
|
`modelNumber` | string
|
|
14
14
|
`name` | string
|
|
15
|
+
`parentName` | string
|
|
16
|
+
`variantName` | string
|
|
17
|
+
`slug` | string
|
|
15
18
|
`stock` | number
|
|
16
19
|
`salePrice` | number
|
|
17
20
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
@@ -30,6 +33,9 @@ const example = {
|
|
|
30
33
|
"model": null,
|
|
31
34
|
"modelNumber": null,
|
|
32
35
|
"name": null,
|
|
36
|
+
"parentName": null,
|
|
37
|
+
"variantName": null,
|
|
38
|
+
"slug": null,
|
|
33
39
|
"stock": null,
|
|
34
40
|
"salePrice": null,
|
|
35
41
|
"thumbnail": null,
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,7 +73,6 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
77
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
78
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -93,7 +92,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
92
|
}
|
|
94
93
|
return {
|
|
95
94
|
|
|
96
|
-
'company': json['company'],
|
|
95
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
97
96
|
'line1': json['line1'],
|
|
98
97
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
99
98
|
'postcode': json['postcode'],
|
|
@@ -48,7 +48,7 @@ export interface AddressResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -98,6 +98,7 @@ export interface AddressResource {
|
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
101
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
102
103
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
103
104
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -121,7 +122,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
121
122
|
'type': json['type'] == null ? undefined : json['type'],
|
|
122
123
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
123
124
|
'addresseeName': json['addresseeName'],
|
|
124
|
-
'company': json['company']
|
|
125
|
+
'company': json['company'],
|
|
125
126
|
'line1': json['line1'],
|
|
126
127
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
127
128
|
'postcode': json['postcode'],
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { LabelLiteResource } from './LabelLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
LabelLiteResourceFromJSON,
|
|
19
|
-
LabelLiteResourceFromJSONTyped,
|
|
20
|
-
LabelLiteResourceToJSON,
|
|
21
|
-
LabelLiteResourceToJSONTyped,
|
|
22
|
-
} from './LabelLiteResource';
|
|
23
16
|
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
24
17
|
import {
|
|
25
18
|
ProductChildLineItemLiteResourceFromJSON,
|
|
@@ -57,13 +50,7 @@ export interface AdminOrderLineItemResource {
|
|
|
57
50
|
* @type {number}
|
|
58
51
|
* @memberof AdminOrderLineItemResource
|
|
59
52
|
*/
|
|
60
|
-
labelId
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {LabelLiteResource}
|
|
64
|
-
* @memberof AdminOrderLineItemResource
|
|
65
|
-
*/
|
|
66
|
-
label: LabelLiteResource | null;
|
|
53
|
+
labelId?: number | null;
|
|
67
54
|
/**
|
|
68
55
|
*
|
|
69
56
|
* @type {number}
|
|
@@ -139,8 +126,6 @@ export function instanceOfAdminOrderLineItemResource(value: object): value is Ad
|
|
|
139
126
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
140
127
|
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
141
128
|
if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
|
|
142
|
-
if (!('labelId' in value) || value['labelId'] === undefined) return false;
|
|
143
|
-
if (!('label' in value) || value['label'] === undefined) return false;
|
|
144
129
|
if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
|
|
145
130
|
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
|
|
146
131
|
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
|
|
@@ -168,8 +153,7 @@ export function AdminOrderLineItemResourceFromJSONTyped(json: any, ignoreDiscrim
|
|
|
168
153
|
'id': json['id'],
|
|
169
154
|
'quantity': json['quantity'],
|
|
170
155
|
'productPrice': json['productPrice'],
|
|
171
|
-
'labelId': json['labelId'],
|
|
172
|
-
'label': LabelLiteResourceFromJSON(json['label']),
|
|
156
|
+
'labelId': json['labelId'] == null ? undefined : json['labelId'],
|
|
173
157
|
'productDiscount': json['productDiscount'],
|
|
174
158
|
'totalDiscount': json['totalDiscount'],
|
|
175
159
|
'lineSubtotal': json['lineSubtotal'],
|
|
@@ -199,7 +183,6 @@ export function AdminOrderLineItemResourceToJSONTyped(value?: AdminOrderLineItem
|
|
|
199
183
|
'quantity': value['quantity'],
|
|
200
184
|
'productPrice': value['productPrice'],
|
|
201
185
|
'labelId': value['labelId'],
|
|
202
|
-
'label': LabelLiteResourceToJSON(value['label']),
|
|
203
186
|
'productDiscount': value['productDiscount'],
|
|
204
187
|
'totalDiscount': value['totalDiscount'],
|
|
205
188
|
'lineSubtotal': value['lineSubtotal'],
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CartCouponLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface CartCouponLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CartCouponLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CartCouponLiteResource
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CartCouponLiteResource
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CartCouponLiteResource
|
|
44
|
+
*/
|
|
45
|
+
discount: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CartCouponLiteResource
|
|
50
|
+
*/
|
|
51
|
+
appliesTo: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CartCouponLiteResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCartCouponLiteResource(value: object): value is CartCouponLiteResource {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
62
|
+
if (!('appliesTo' in value) || value['appliesTo'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function CartCouponLiteResourceFromJSON(json: any): CartCouponLiteResource {
|
|
67
|
+
return CartCouponLiteResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CartCouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'code': json['code'],
|
|
78
|
+
'name': json['name'],
|
|
79
|
+
'discount': json['discount'],
|
|
80
|
+
'appliesTo': json['appliesTo'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CartCouponLiteResourceToJSON(json: any): CartCouponLiteResource {
|
|
85
|
+
return CartCouponLiteResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CartCouponLiteResourceToJSONTyped(value?: CartCouponLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'code': value['code'],
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'discount': value['discount'],
|
|
99
|
+
'appliesTo': value['appliesTo'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|