@digital8/lighting-illusions-ts-sdk 0.0.2056 → 0.0.2057
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 +36 -16
- package/README.md +24 -13
- package/dist/apis/CartsApi.d.ts +8 -8
- package/dist/apis/CartsApi.js +8 -8
- package/dist/apis/CustomersApi.d.ts +17 -0
- package/dist/apis/CustomersApi.js +62 -0
- package/dist/apis/OrdersApi.d.ts +23 -8
- package/dist/apis/OrdersApi.js +69 -10
- package/dist/apis/ProductApi.d.ts +0 -16
- package/dist/apis/ProductApi.js +0 -59
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressResource.d.ts +0 -6
- package/dist/models/AddressResource.js +0 -2
- package/dist/models/AdminNoteResource.d.ts +12 -0
- package/dist/models/AdminNoteResource.js +8 -0
- package/dist/models/AdminOrderResource.d.ts +22 -4
- package/dist/models/AdminOrderResource.js +18 -6
- package/dist/models/AttachCartCouponRequest.d.ts +32 -0
- package/dist/models/AttachCartCouponRequest.js +51 -0
- package/dist/models/AttachCartItemRequest.d.ts +44 -0
- package/dist/models/{AttachLineItemRequest.js → AttachCartItemRequest.js} +13 -13
- package/dist/models/AttachOrderCouponRequest.d.ts +32 -0
- package/dist/models/AttachOrderCouponRequest.js +51 -0
- package/dist/models/AttachOrderLineItemRequest.d.ts +44 -0
- package/dist/models/AttachOrderLineItemRequest.js +57 -0
- 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/CartListResource.d.ts +48 -0
- package/dist/models/CartListResource.js +26 -0
- package/dist/models/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/CreateTransactionRequest.d.ts +0 -6
- package/dist/models/CreateTransactionRequest.js +0 -2
- package/dist/models/CustomerListResource.d.ts +7 -0
- package/dist/models/CustomerListResource.js +5 -0
- package/dist/models/DetachCartCouponRequest.d.ts +32 -0
- package/dist/models/DetachCartCouponRequest.js +51 -0
- package/dist/models/DetachOrderCouponRequest.d.ts +32 -0
- package/dist/models/DetachOrderCouponRequest.js +51 -0
- package/dist/models/FrontendCartResource.d.ts +144 -0
- package/dist/models/FrontendCartResource.js +121 -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/FrontendOrderResource.d.ts +174 -0
- package/dist/models/FrontendOrderResource.js +139 -0
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
- package/dist/models/PaymentSource.d.ts +1 -0
- package/dist/models/PaymentSource.js +2 -1
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/SearchCartsRequest.d.ts +0 -1
- package/dist/models/SearchCartsRequest.js +1 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/TransactionLiteResource.d.ts +0 -12
- package/dist/models/TransactionLiteResource.js +0 -4
- package/dist/models/UpdateCartItemRequest.d.ts +38 -0
- package/dist/models/{UpdateLineItemRequest.js → UpdateCartItemRequest.js} +13 -13
- package/dist/models/UpdateCustomerRequest.d.ts +56 -0
- package/dist/models/UpdateCustomerRequest.js +63 -0
- package/dist/models/UpdateOrderLineItemRequest.d.ts +38 -0
- package/dist/models/UpdateOrderLineItemRequest.js +53 -0
- package/dist/models/UpdateOrderRequest.d.ts +0 -6
- package/dist/models/UpdateOrderRequest.js +0 -2
- package/dist/models/index.d.ts +18 -8
- package/dist/models/index.js +18 -8
- package/docs/AddressResource.md +0 -2
- package/docs/AdminNoteResource.md +4 -0
- package/docs/AdminOrderResource.md +9 -3
- package/docs/{AttachCouponRequest.md → AttachCartCouponRequest.md} +4 -4
- package/docs/{AttachLineItemRequest.md → AttachCartItemRequest.md} +4 -4
- package/docs/{SkuSearchProductChildRequest.md → AttachOrderCouponRequest.md} +6 -8
- package/docs/AttachOrderLineItemRequest.md +38 -0
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +16 -0
- package/docs/CartResource.md +3 -3
- package/docs/CartsApi.md +16 -16
- package/docs/CreateTransactionRequest.md +0 -2
- package/docs/CustomerListResource.md +2 -0
- package/docs/CustomersApi.md +69 -0
- package/docs/{DetachCouponRequest.md → DetachCartCouponRequest.md} +4 -4
- package/docs/DetachOrderCouponRequest.md +34 -0
- package/docs/FrontendCartResource.md +70 -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/FrontendOrderResource.md +80 -0
- package/docs/FrontendOrderResourceArrayResponse.md +34 -0
- package/docs/OrdersApi.md +84 -18
- package/docs/ProductApi.md +0 -66
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/TransactionLiteResource.md +0 -4
- package/docs/TransactionsApi.md +3 -3
- package/docs/{UpdateLineItemRequest.md → UpdateCartItemRequest.md} +4 -4
- package/docs/UpdateCustomerRequest.md +42 -0
- package/docs/UpdateOrderLineItemRequest.md +36 -0
- package/docs/UpdateOrderRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +25 -25
- package/src/apis/CustomersApi.ts +58 -0
- package/src/apis/OrdersApi.ts +75 -26
- package/src/apis/ProductApi.ts +0 -49
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressResource.ts +0 -8
- package/src/models/AdminNoteResource.ts +18 -0
- package/src/models/AdminOrderResource.ts +42 -15
- package/src/models/AttachCartCouponRequest.ts +66 -0
- package/src/models/{AttachLineItemRequest.ts → AttachCartItemRequest.ts} +13 -13
- package/src/models/AttachOrderCouponRequest.ts +66 -0
- package/src/models/AttachOrderLineItemRequest.ts +83 -0
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +69 -0
- package/src/models/CartResource.ts +15 -15
- package/src/models/CreateTransactionRequest.ts +0 -8
- package/src/models/CustomerListResource.ts +16 -0
- package/src/models/DetachCartCouponRequest.ts +66 -0
- package/src/models/DetachOrderCouponRequest.ts +66 -0
- package/src/models/FrontendCartResource.ts +254 -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/FrontendOrderResource.ts +298 -0
- package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
- package/src/models/PaymentSource.ts +2 -1
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/SearchCartsRequest.ts +1 -2
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/TransactionLiteResource.ts +0 -16
- package/src/models/{UpdateLineItemRequest.ts → UpdateCartItemRequest.ts} +12 -12
- package/src/models/UpdateCustomerRequest.ts +100 -0
- package/src/models/UpdateOrderLineItemRequest.ts +74 -0
- package/src/models/UpdateOrderRequest.ts +0 -8
- package/src/models/index.ts +18 -8
- package/dist/models/AttachCouponRequest.d.ts +0 -32
- package/dist/models/AttachCouponRequest.js +0 -51
- package/dist/models/AttachLineItemRequest.d.ts +0 -44
- package/dist/models/DetachCouponRequest.d.ts +0 -32
- package/dist/models/DetachCouponRequest.js +0 -51
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
- package/dist/models/SkuSearchProductChildRequest.js +0 -55
- package/dist/models/TransactionListResource.d.ts +0 -116
- package/dist/models/TransactionListResource.js +0 -97
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/UpdateLineItemRequest.d.ts +0 -38
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/TransactionListResource.md +0 -62
- package/src/models/AttachCouponRequest.ts +0 -66
- package/src/models/DetachCouponRequest.ts +0 -66
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/SkuSearchProductChildRequest.ts +0 -75
- package/src/models/TransactionListResource.ts +0 -187
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,66 @@
|
|
|
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 DetachCartCouponRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DetachCartCouponRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof DetachCartCouponRequest
|
|
26
|
+
*/
|
|
27
|
+
couponIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DetachCartCouponRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDetachCartCouponRequest(value: object): value is DetachCartCouponRequest {
|
|
34
|
+
if (!('couponIds' in value) || value['couponIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DetachCartCouponRequestFromJSON(json: any): DetachCartCouponRequest {
|
|
39
|
+
return DetachCartCouponRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DetachCartCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCartCouponRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'couponIds': json['coupon_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DetachCartCouponRequestToJSON(json: any): DetachCartCouponRequest {
|
|
53
|
+
return DetachCartCouponRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DetachCartCouponRequestToJSONTyped(value?: DetachCartCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'coupon_ids': value['couponIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 DetachOrderCouponRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DetachOrderCouponRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DetachOrderCouponRequest
|
|
26
|
+
*/
|
|
27
|
+
couponId: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DetachOrderCouponRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDetachOrderCouponRequest(value: object): value is DetachOrderCouponRequest {
|
|
34
|
+
if (!('couponId' in value) || value['couponId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DetachOrderCouponRequestFromJSON(json: any): DetachOrderCouponRequest {
|
|
39
|
+
return DetachOrderCouponRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DetachOrderCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachOrderCouponRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'couponId': json['coupon_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DetachOrderCouponRequestToJSON(json: any): DetachOrderCouponRequest {
|
|
53
|
+
return DetachOrderCouponRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DetachOrderCouponRequestToJSONTyped(value?: DetachOrderCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'coupon_id': value['couponId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,254 @@
|
|
|
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 { FrontendLineItemResource } from './FrontendLineItemResource';
|
|
17
|
+
import {
|
|
18
|
+
FrontendLineItemResourceFromJSON,
|
|
19
|
+
FrontendLineItemResourceFromJSONTyped,
|
|
20
|
+
FrontendLineItemResourceToJSON,
|
|
21
|
+
FrontendLineItemResourceToJSONTyped,
|
|
22
|
+
} from './FrontendLineItemResource';
|
|
23
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
24
|
+
import {
|
|
25
|
+
CustomerListResourceFromJSON,
|
|
26
|
+
CustomerListResourceFromJSONTyped,
|
|
27
|
+
CustomerListResourceToJSON,
|
|
28
|
+
CustomerListResourceToJSONTyped,
|
|
29
|
+
} from './CustomerListResource';
|
|
30
|
+
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
31
|
+
import {
|
|
32
|
+
FrontendCartResourceCouponsInnerFromJSON,
|
|
33
|
+
FrontendCartResourceCouponsInnerFromJSONTyped,
|
|
34
|
+
FrontendCartResourceCouponsInnerToJSON,
|
|
35
|
+
FrontendCartResourceCouponsInnerToJSONTyped,
|
|
36
|
+
} from './FrontendCartResourceCouponsInner';
|
|
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 {string}
|
|
60
|
+
* @memberof FrontendCartResource
|
|
61
|
+
*/
|
|
62
|
+
lifecycleStatus: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof FrontendCartResource
|
|
67
|
+
*/
|
|
68
|
+
siteId: number;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof FrontendCartResource
|
|
73
|
+
*/
|
|
74
|
+
sessionToken?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof FrontendCartResource
|
|
79
|
+
*/
|
|
80
|
+
guestEmail?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {CustomerListResource}
|
|
84
|
+
* @memberof FrontendCartResource
|
|
85
|
+
*/
|
|
86
|
+
customer: CustomerListResource | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof FrontendCartResource
|
|
91
|
+
*/
|
|
92
|
+
shippingType: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {AddressResource}
|
|
96
|
+
* @memberof FrontendCartResource
|
|
97
|
+
*/
|
|
98
|
+
shippingAddress: AddressResource | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {AddressResource}
|
|
102
|
+
* @memberof FrontendCartResource
|
|
103
|
+
*/
|
|
104
|
+
billingAddress: AddressResource | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<FrontendLineItemResource>}
|
|
108
|
+
* @memberof FrontendCartResource
|
|
109
|
+
*/
|
|
110
|
+
lineItems: Array<FrontendLineItemResource> | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Array<FrontendCartResourceCouponsInner>}
|
|
114
|
+
* @memberof FrontendCartResource
|
|
115
|
+
*/
|
|
116
|
+
coupons: Array<FrontendCartResourceCouponsInner>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof FrontendCartResource
|
|
121
|
+
*/
|
|
122
|
+
subtotal: number;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof FrontendCartResource
|
|
127
|
+
*/
|
|
128
|
+
promotionalDiscount: number;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {number}
|
|
132
|
+
* @memberof FrontendCartResource
|
|
133
|
+
*/
|
|
134
|
+
couponSubtotalDiscount: number;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @memberof FrontendCartResource
|
|
139
|
+
*/
|
|
140
|
+
couponShippingDiscount: number;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @memberof FrontendCartResource
|
|
145
|
+
*/
|
|
146
|
+
shipping: number;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof FrontendCartResource
|
|
151
|
+
*/
|
|
152
|
+
transitInsurance: number;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {number}
|
|
156
|
+
* @memberof FrontendCartResource
|
|
157
|
+
*/
|
|
158
|
+
gst: number;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {number}
|
|
162
|
+
* @memberof FrontendCartResource
|
|
163
|
+
*/
|
|
164
|
+
grandTotal: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Check if a given object implements the FrontendCartResource interface.
|
|
169
|
+
*/
|
|
170
|
+
export function instanceOfFrontendCartResource(value: object): value is FrontendCartResource {
|
|
171
|
+
if (!('lifecycleStatus' in value) || value['lifecycleStatus'] === undefined) return false;
|
|
172
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
173
|
+
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
174
|
+
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
175
|
+
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
176
|
+
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
177
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
178
|
+
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
179
|
+
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
180
|
+
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
|
|
181
|
+
if (!('couponSubtotalDiscount' in value) || value['couponSubtotalDiscount'] === undefined) return false;
|
|
182
|
+
if (!('couponShippingDiscount' in value) || value['couponShippingDiscount'] === undefined) return false;
|
|
183
|
+
if (!('shipping' in value) || value['shipping'] === undefined) return false;
|
|
184
|
+
if (!('transitInsurance' in value) || value['transitInsurance'] === undefined) return false;
|
|
185
|
+
if (!('gst' in value) || value['gst'] === undefined) return false;
|
|
186
|
+
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function FrontendCartResourceFromJSON(json: any): FrontendCartResource {
|
|
191
|
+
return FrontendCartResourceFromJSONTyped(json, false);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResource {
|
|
195
|
+
if (json == null) {
|
|
196
|
+
return json;
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
|
|
200
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
201
|
+
'lifecycleStatus': json['lifecycleStatus'],
|
|
202
|
+
'siteId': json['siteId'],
|
|
203
|
+
'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
|
|
204
|
+
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
205
|
+
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
206
|
+
'shippingType': json['shippingType'],
|
|
207
|
+
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
208
|
+
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
209
|
+
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
210
|
+
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
211
|
+
'subtotal': json['subtotal'],
|
|
212
|
+
'promotionalDiscount': json['promotionalDiscount'],
|
|
213
|
+
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
214
|
+
'couponShippingDiscount': json['couponShippingDiscount'],
|
|
215
|
+
'shipping': json['shipping'],
|
|
216
|
+
'transitInsurance': json['transitInsurance'],
|
|
217
|
+
'gst': json['gst'],
|
|
218
|
+
'grandTotal': json['grandTotal'],
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export function FrontendCartResourceToJSON(json: any): FrontendCartResource {
|
|
223
|
+
return FrontendCartResourceToJSONTyped(json, false);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | null, ignoreDiscriminator: boolean = false): any {
|
|
227
|
+
if (value == null) {
|
|
228
|
+
return value;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return {
|
|
232
|
+
|
|
233
|
+
'id': value['id'],
|
|
234
|
+
'lifecycleStatus': value['lifecycleStatus'],
|
|
235
|
+
'siteId': value['siteId'],
|
|
236
|
+
'sessionToken': value['sessionToken'],
|
|
237
|
+
'guestEmail': value['guestEmail'],
|
|
238
|
+
'customer': CustomerListResourceToJSON(value['customer']),
|
|
239
|
+
'shippingType': value['shippingType'],
|
|
240
|
+
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
241
|
+
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
242
|
+
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
243
|
+
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
244
|
+
'subtotal': value['subtotal'],
|
|
245
|
+
'promotionalDiscount': value['promotionalDiscount'],
|
|
246
|
+
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
247
|
+
'couponShippingDiscount': value['couponShippingDiscount'],
|
|
248
|
+
'shipping': value['shipping'],
|
|
249
|
+
'transitInsurance': value['transitInsurance'],
|
|
250
|
+
'gst': value['gst'],
|
|
251
|
+
'grandTotal': value['grandTotal'],
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 FrontendCartResourceCouponsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface FrontendCartResourceCouponsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
26
|
+
*/
|
|
27
|
+
id?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
32
|
+
*/
|
|
33
|
+
code?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
44
|
+
*/
|
|
45
|
+
discount?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
50
|
+
*/
|
|
51
|
+
appliesTo?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the FrontendCartResourceCouponsInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfFrontendCartResourceCouponsInner(value: object): value is FrontendCartResourceCouponsInner {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function FrontendCartResourceCouponsInnerFromJSON(json: any): FrontendCartResourceCouponsInner {
|
|
62
|
+
return FrontendCartResourceCouponsInnerFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function FrontendCartResourceCouponsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceCouponsInner {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
72
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
73
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
74
|
+
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
75
|
+
'appliesTo': json['appliesTo'] == null ? undefined : json['appliesTo'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function FrontendCartResourceCouponsInnerToJSON(json: any): FrontendCartResourceCouponsInner {
|
|
80
|
+
return FrontendCartResourceCouponsInnerToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function FrontendCartResourceCouponsInnerToJSONTyped(value?: FrontendCartResourceCouponsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'code': value['code'],
|
|
92
|
+
'name': value['name'],
|
|
93
|
+
'discount': value['discount'],
|
|
94
|
+
'appliesTo': value['appliesTo'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,145 @@
|
|
|
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 { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductChildLineItemLiteResourceFromJSON,
|
|
19
|
+
ProductChildLineItemLiteResourceFromJSONTyped,
|
|
20
|
+
ProductChildLineItemLiteResourceToJSON,
|
|
21
|
+
ProductChildLineItemLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildLineItemLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FrontendLineItemResource
|
|
28
|
+
*/
|
|
29
|
+
export interface FrontendLineItemResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof FrontendLineItemResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof FrontendLineItemResource
|
|
40
|
+
*/
|
|
41
|
+
quantity: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof FrontendLineItemResource
|
|
46
|
+
*/
|
|
47
|
+
productPrice: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof FrontendLineItemResource
|
|
52
|
+
*/
|
|
53
|
+
subtotalAmount: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof FrontendLineItemResource
|
|
58
|
+
*/
|
|
59
|
+
totalAmount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof FrontendLineItemResource
|
|
64
|
+
*/
|
|
65
|
+
promotionalSaving: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof FrontendLineItemResource
|
|
70
|
+
*/
|
|
71
|
+
isAvailable: boolean;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof FrontendLineItemResource
|
|
76
|
+
*/
|
|
77
|
+
isInStock: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {ProductChildLineItemLiteResource}
|
|
81
|
+
* @memberof FrontendLineItemResource
|
|
82
|
+
*/
|
|
83
|
+
productChild: ProductChildLineItemLiteResource | null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the FrontendLineItemResource interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfFrontendLineItemResource(value: object): value is FrontendLineItemResource {
|
|
90
|
+
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
91
|
+
if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
|
|
92
|
+
if (!('subtotalAmount' in value) || value['subtotalAmount'] === undefined) return false;
|
|
93
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
94
|
+
if (!('promotionalSaving' in value) || value['promotionalSaving'] === undefined) return false;
|
|
95
|
+
if (!('isAvailable' in value) || value['isAvailable'] === undefined) return false;
|
|
96
|
+
if (!('isInStock' in value) || value['isInStock'] === undefined) return false;
|
|
97
|
+
if (!('productChild' in value) || value['productChild'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function FrontendLineItemResourceFromJSON(json: any): FrontendLineItemResource {
|
|
102
|
+
return FrontendLineItemResourceFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function FrontendLineItemResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendLineItemResource {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
112
|
+
'quantity': json['quantity'],
|
|
113
|
+
'productPrice': json['productPrice'],
|
|
114
|
+
'subtotalAmount': json['subtotalAmount'],
|
|
115
|
+
'totalAmount': json['totalAmount'],
|
|
116
|
+
'promotionalSaving': json['promotionalSaving'],
|
|
117
|
+
'isAvailable': json['isAvailable'],
|
|
118
|
+
'isInStock': json['isInStock'],
|
|
119
|
+
'productChild': ProductChildLineItemLiteResourceFromJSON(json['productChild']),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function FrontendLineItemResourceToJSON(json: any): FrontendLineItemResource {
|
|
124
|
+
return FrontendLineItemResourceToJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function FrontendLineItemResourceToJSONTyped(value?: FrontendLineItemResource | null, ignoreDiscriminator: boolean = false): any {
|
|
128
|
+
if (value == null) {
|
|
129
|
+
return value;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
|
|
134
|
+
'id': value['id'],
|
|
135
|
+
'quantity': value['quantity'],
|
|
136
|
+
'productPrice': value['productPrice'],
|
|
137
|
+
'subtotalAmount': value['subtotalAmount'],
|
|
138
|
+
'totalAmount': value['totalAmount'],
|
|
139
|
+
'promotionalSaving': value['promotionalSaving'],
|
|
140
|
+
'isAvailable': value['isAvailable'],
|
|
141
|
+
'isInStock': value['isInStock'],
|
|
142
|
+
'productChild': ProductChildLineItemLiteResourceToJSON(value['productChild']),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|