@digital8/lighting-illusions-ts-sdk 0.0.1895 → 0.0.1897
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 +64 -50
- package/README.md +47 -34
- package/dist/apis/CartsApi.d.ts +190 -0
- package/dist/apis/CartsApi.js +747 -0
- package/dist/apis/CustomersApi.d.ts +79 -0
- package/dist/apis/CustomersApi.js +316 -0
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/models/AddressResource.d.ts +13 -1
- package/dist/models/AddressResource.js +9 -1
- package/dist/models/AddressType.d.ts +25 -0
- package/dist/models/AddressType.js +51 -0
- package/dist/models/AssetFrontendResource.d.ts +0 -12
- package/dist/models/AssetFrontendResource.js +0 -6
- package/dist/models/AssetLiteResource.d.ts +2 -14
- package/dist/models/AssetLiteResource.js +0 -6
- package/dist/models/AssetResource.d.ts +2 -14
- package/dist/models/AssetResource.js +0 -6
- package/dist/models/AssetWithOverlayLinkResource.d.ts +2 -14
- package/dist/models/AssetWithOverlayLinkResource.js +0 -6
- package/dist/models/AttachCouponCartRequest.d.ts +32 -0
- package/dist/models/AttachCouponCartRequest.js +51 -0
- package/dist/models/AttachItemCartRequest.d.ts +44 -0
- package/dist/models/AttachItemCartRequest.js +57 -0
- package/dist/models/CartListResource.d.ts +131 -0
- package/dist/models/CartListResource.js +104 -0
- package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartListResourceArrayResponse.js +50 -0
- package/dist/models/CartOrderSource.d.ts +29 -0
- package/dist/models/CartOrderSource.js +55 -0
- package/dist/models/CartResource.d.ts +192 -0
- package/dist/models/CartResource.js +141 -0
- package/dist/models/CartResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartResourceArrayResponse.js +50 -0
- package/dist/models/CartStatus.d.ts +26 -0
- package/dist/models/CartStatus.js +52 -0
- package/dist/models/CustomerListResource.d.ts +70 -0
- package/dist/models/CustomerListResource.js +75 -0
- package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerListResourceArrayResponse.js +50 -0
- package/dist/models/CustomerResource.d.ts +70 -0
- package/dist/models/CustomerResource.js +75 -0
- package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/ExternalApiSyncStatus.d.ts +0 -1
- package/dist/models/ExternalApiSyncStatus.js +1 -2
- package/dist/models/IndexCartRequest.d.ts +154 -0
- package/dist/models/IndexCartRequest.js +105 -0
- package/dist/models/IndexCustomerRequest.d.ts +99 -0
- package/dist/models/{IndexReviewRequest.js → IndexCustomerRequest.js} +20 -23
- package/dist/models/LiAddressResource.d.ts +86 -0
- package/dist/models/LiAddressResource.js +83 -0
- package/dist/models/LiAddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/LiAddressResourceArrayResponse.js +50 -0
- package/dist/models/LineItemListResource.d.ts +51 -0
- package/dist/models/LineItemListResource.js +62 -0
- package/dist/models/LineItemListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LineItemListResourceArrayResponse.js +50 -0
- package/dist/models/MenuPosition.d.ts +1 -0
- package/dist/models/MenuPosition.js +2 -1
- package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCartListResourceResponse.js +57 -0
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/ProductChildLiteResource.d.ts +0 -6
- package/dist/models/ProductChildLiteResource.js +0 -4
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
- package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
- package/dist/models/ShippingType.d.ts +28 -0
- package/dist/models/ShippingType.js +54 -0
- package/dist/models/SitePaymentConfigResource.d.ts +6 -0
- package/dist/models/SitePaymentConfigResource.js +4 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +2 -14
- package/dist/models/StoreAssetForAssetableRequest.js +6 -6
- package/dist/models/StoreCartRequest.d.ts +160 -0
- package/dist/models/StoreCartRequest.js +112 -0
- package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
- package/dist/models/StoreCartRequestCustomer.js +55 -0
- package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
- package/dist/models/StoreCartRequestItemsInner.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
- package/dist/models/StoreCartRequestShippingAddress.js +63 -0
- package/dist/models/StoreCustomerRequest.d.ts +56 -0
- package/dist/models/StoreCustomerRequest.js +65 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -13
- package/dist/models/StoreListResource.js +5 -15
- package/dist/models/StoreMenuRequest.d.ts +1 -0
- package/dist/models/StoreMenuRequest.js +2 -1
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +2 -14
- package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
- package/dist/models/StoreProductCategoryRequest.d.ts +0 -12
- package/dist/models/StoreProductCategoryRequest.js +0 -4
- package/dist/models/StoreProductChildRequestAssetsInner.d.ts +2 -14
- package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
- package/dist/models/StoreResource.d.ts +0 -12
- package/dist/models/StoreResource.js +6 -14
- package/dist/models/StoreSpecialDateResource.js +4 -4
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/StoreStoreRequestAddress.d.ts +6 -0
- package/dist/models/StoreStoreRequestAddress.js +2 -0
- package/dist/models/StoreSupplierRequest.d.ts +2 -14
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateAssetForAssetableRequest.d.ts +0 -12
- package/dist/models/UpdateAssetForAssetableRequest.js +0 -4
- package/dist/models/UpdateCartRequest.d.ts +135 -0
- package/dist/models/UpdateCartRequest.js +99 -0
- package/dist/models/UpdateCustomerRequest.d.ts +56 -0
- package/dist/models/UpdateCustomerRequest.js +63 -0
- package/dist/models/UpdateItemCartRequest.d.ts +38 -0
- package/dist/models/UpdateItemCartRequest.js +53 -0
- package/dist/models/UpdateMenuRequest.d.ts +1 -0
- package/dist/models/UpdateMenuRequest.js +2 -1
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +2 -14
- package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
- package/dist/models/UpdateProductCategoryRequest.d.ts +0 -12
- package/dist/models/UpdateProductCategoryRequest.js +0 -4
- package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +2 -14
- package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
- package/dist/models/UpdateSiteRequest.d.ts +6 -0
- package/dist/models/UpdateSiteRequest.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +0 -12
- package/dist/models/UpdateStoreRequest.js +0 -4
- package/dist/models/UpdateSupplierRequest.d.ts +2 -14
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +30 -24
- package/dist/models/index.js +30 -24
- package/docs/AddressResource.md +4 -0
- package/docs/{StoreStockType.md → AddressType.md} +4 -4
- package/docs/AssetFrontendResource.md +0 -4
- package/docs/AssetLiteResource.md +1 -5
- package/docs/AssetResource.md +1 -5
- package/docs/AssetWithOverlayLinkResource.md +1 -5
- package/docs/{ReviewLiteResource.md → AttachCouponCartRequest.md} +6 -10
- package/docs/{AdminUserLiteResourceArrayResponse.md → AttachItemCartRequest.md} +10 -6
- package/docs/CartListResource.md +66 -0
- package/docs/{ReviewLiteResourceArrayResponse.md → CartListResourceArrayResponse.md} +5 -5
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartResource.md +86 -0
- package/docs/{ReviewResourceArrayResponse.md → CartResourceArrayResponse.md} +5 -5
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +755 -0
- package/docs/CustomerListResource.md +46 -0
- package/docs/{CustomerLiteResourceArrayResponse.md → CustomerListResourceArrayResponse.md} +5 -5
- package/docs/CustomerResource.md +46 -0
- package/docs/{ReviewListResourceArrayResponse.md → CustomerResourceArrayResponse.md} +5 -5
- package/docs/CustomersApi.md +275 -0
- package/docs/IndexCartRequest.md +66 -0
- package/docs/{IndexReviewRequest.md → IndexCustomerRequest.md} +4 -8
- package/docs/LiAddressResource.md +52 -0
- package/docs/LiAddressResourceArrayResponse.md +34 -0
- package/docs/{ReviewPublicResource.md → LineItemListResource.md} +10 -16
- package/docs/{ReviewPublicResourceArrayResponse.md → LineItemListResourceArrayResponse.md} +5 -5
- package/docs/{PaginatedReviewResourceResponse.md → PaginatedCartListResourceResponse.md} +5 -5
- package/docs/{PaginatedReviewLiteResourceResponse.md → PaginatedCustomerListResourceResponse.md} +5 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductChildLiteResource.md +0 -2
- package/docs/ProductChildSiteDetailLiteResource.md +2 -0
- package/docs/ShippingType.md +32 -0
- package/docs/SitePaymentConfigResource.md +2 -0
- package/docs/StoreAssetForAssetableRequest.md +0 -4
- package/docs/StoreCartRequest.md +68 -0
- package/docs/{AdminUserLiteResource.md → StoreCartRequestCustomer.md} +6 -6
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +48 -0
- package/docs/{CustomerLiteResource.md → StoreCustomerRequest.md} +8 -6
- package/docs/StoreListResource.md +0 -4
- package/docs/StoreOverlayTemplateAssetRequest.md +0 -4
- package/docs/StoreProductCategoryRequest.md +0 -4
- package/docs/StoreProductChildRequestAssetsInner.md +0 -4
- package/docs/StoreResource.md +0 -4
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/StoreStoreRequestAddress.md +2 -0
- package/docs/StoreSupplierRequest.md +0 -4
- package/docs/UpdateAssetForAssetableRequest.md +0 -4
- package/docs/UpdateCartRequest.md +60 -0
- package/docs/UpdateCustomerRequest.md +42 -0
- package/docs/UpdateItemCartRequest.md +36 -0
- package/docs/UpdateOverlayTemplateAssetRequest.md +0 -4
- package/docs/UpdateProductCategoryRequest.md +0 -4
- package/docs/UpdateProductChildRequestAssetsInner.md +0 -4
- package/docs/UpdateSiteRequest.md +2 -0
- package/docs/UpdateStoreRequest.md +0 -4
- package/docs/UpdateSupplierRequest.md +0 -4
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +626 -0
- package/src/apis/CustomersApi.ts +232 -0
- package/src/apis/index.ts +2 -1
- package/src/models/AddressResource.ts +20 -2
- package/src/models/AddressType.ts +53 -0
- package/src/models/AssetFrontendResource.ts +0 -17
- package/src/models/AssetLiteResource.ts +2 -19
- package/src/models/AssetResource.ts +2 -19
- package/src/models/AssetWithOverlayLinkResource.ts +2 -19
- package/src/models/AttachCouponCartRequest.ts +66 -0
- package/src/models/AttachItemCartRequest.ts +83 -0
- package/src/models/CartListResource.ts +225 -0
- package/src/models/CartListResourceArrayResponse.ts +73 -0
- package/src/models/CartOrderSource.ts +57 -0
- package/src/models/CartResource.ts +320 -0
- package/src/models/CartResourceArrayResponse.ts +73 -0
- package/src/models/CartStatus.ts +54 -0
- package/src/models/CustomerListResource.ts +134 -0
- package/src/models/CustomerListResourceArrayResponse.ts +73 -0
- package/src/models/CustomerResource.ts +134 -0
- package/src/models/CustomerResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/ExternalApiSyncStatus.ts +1 -2
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/{IndexReviewRequest.ts → IndexCustomerRequest.ts} +31 -46
- package/src/models/LiAddressResource.ts +145 -0
- package/src/models/LiAddressResourceArrayResponse.ts +73 -0
- package/src/models/LineItemListResource.ts +100 -0
- package/src/models/LineItemListResourceArrayResponse.ts +73 -0
- package/src/models/MenuPosition.ts +2 -1
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +0 -9
- package/src/models/ProductChildLiteResource.ts +0 -9
- package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
- package/src/models/ShippingType.ts +56 -0
- package/src/models/SitePaymentConfigResource.ts +9 -0
- package/src/models/StoreAssetForAssetableRequest.ts +6 -20
- package/src/models/StoreCartRequest.ts +252 -0
- package/src/models/StoreCartRequestCustomer.ts +89 -0
- package/src/models/StoreCartRequestItemsInner.ts +83 -0
- package/src/models/StoreCartRequestShippingAddress.ts +121 -0
- package/src/models/StoreCustomerRequest.ts +101 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +6 -25
- package/src/models/StoreMenuRequest.ts +2 -1
- package/src/models/StoreOverlayTemplateAssetRequest.ts +6 -20
- package/src/models/StoreProductCategoryRequest.ts +0 -16
- package/src/models/StoreProductChildRequestAssetsInner.ts +6 -20
- package/src/models/StoreResource.ts +6 -24
- package/src/models/StoreSpecialDateResource.ts +4 -4
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/StoreStoreRequestAddress.ts +8 -0
- package/src/models/StoreSupplierRequest.ts +6 -20
- package/src/models/UpdateAssetForAssetableRequest.ts +0 -16
- package/src/models/UpdateCartRequest.ts +211 -0
- package/src/models/UpdateCustomerRequest.ts +100 -0
- package/src/models/UpdateItemCartRequest.ts +74 -0
- package/src/models/UpdateMenuRequest.ts +2 -1
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +6 -20
- package/src/models/UpdateProductCategoryRequest.ts +0 -16
- package/src/models/UpdateProductChildRequestAssetsInner.ts +6 -20
- package/src/models/UpdateSiteRequest.ts +9 -0
- package/src/models/UpdateStoreRequest.ts +0 -16
- package/src/models/UpdateSupplierRequest.ts +6 -20
- package/src/models/index.ts +30 -24
- package/dist/apis/ReviewApi.d.ts +0 -139
- package/dist/apis/ReviewApi.js +0 -566
- package/dist/models/AdminUserLiteResource.d.ts +0 -50
- package/dist/models/AdminUserLiteResource.js +0 -61
- package/dist/models/AdminUserLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminUserLiteResourceArrayResponse.js +0 -50
- package/dist/models/CustomerLiteResource.d.ts +0 -50
- package/dist/models/CustomerLiteResource.js +0 -61
- package/dist/models/CustomerLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerLiteResourceArrayResponse.js +0 -50
- package/dist/models/CustomerReviewableItemFrontendResource.d.ts +0 -44
- package/dist/models/CustomerReviewableItemFrontendResource.js +0 -59
- package/dist/models/CustomerReviewableItemFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerReviewableItemFrontendResourceArrayResponse.js +0 -50
- package/dist/models/IndexReviewRequest.d.ts +0 -110
- package/dist/models/PaginatedCustomerReviewableItemFrontendResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCustomerReviewableItemFrontendResourceResponse.js +0 -57
- package/dist/models/PaginatedReviewListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewListResourceResponse.js +0 -57
- package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedReviewResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewResourceResponse.js +0 -57
- package/dist/models/ProductReviewsResource.d.ts +0 -63
- package/dist/models/ProductReviewsResource.js +0 -70
- package/dist/models/ProductReviewsResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductReviewsResourceArrayResponse.js +0 -50
- package/dist/models/ReviewListResource.d.ts +0 -94
- package/dist/models/ReviewListResource.js +0 -87
- package/dist/models/ReviewListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewListResourceArrayResponse.js +0 -50
- package/dist/models/ReviewLiteResource.d.ts +0 -44
- package/dist/models/ReviewLiteResource.js +0 -59
- package/dist/models/ReviewLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewLiteResourceArrayResponse.js +0 -50
- package/dist/models/ReviewPublicResource.d.ts +0 -68
- package/dist/models/ReviewPublicResource.js +0 -73
- package/dist/models/ReviewPublicResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewPublicResourceArrayResponse.js +0 -50
- package/dist/models/ReviewResource.d.ts +0 -126
- package/dist/models/ReviewResource.js +0 -107
- package/dist/models/ReviewResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewResourceArrayResponse.js +0 -50
- package/dist/models/StoreReviewRequest.d.ts +0 -80
- package/dist/models/StoreReviewRequest.js +0 -79
- package/dist/models/StoreStockType.d.ts +0 -25
- package/dist/models/StoreStockType.js +0 -51
- package/dist/models/UpdateReviewRequest.d.ts +0 -68
- package/dist/models/UpdateReviewRequest.js +0 -71
- package/docs/CustomerReviewableItemFrontendResource.md +0 -38
- package/docs/CustomerReviewableItemFrontendResourceArrayResponse.md +0 -34
- package/docs/PaginatedCustomerReviewableItemFrontendResourceResponse.md +0 -36
- package/docs/PaginatedReviewListResourceResponse.md +0 -36
- package/docs/ProductReviewsResource.md +0 -44
- package/docs/ProductReviewsResourceArrayResponse.md +0 -34
- package/docs/ReviewApi.md +0 -539
- package/docs/ReviewListResource.md +0 -54
- package/docs/ReviewResource.md +0 -64
- package/docs/StoreReviewRequest.md +0 -50
- package/docs/UpdateReviewRequest.md +0 -46
- package/src/apis/ReviewApi.ts +0 -444
- package/src/models/AdminUserLiteResource.ts +0 -92
- package/src/models/AdminUserLiteResourceArrayResponse.ts +0 -73
- package/src/models/CustomerLiteResource.ts +0 -92
- package/src/models/CustomerLiteResourceArrayResponse.ts +0 -73
- package/src/models/CustomerReviewableItemFrontendResource.ts +0 -84
- package/src/models/CustomerReviewableItemFrontendResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedCustomerReviewableItemFrontendResourceResponse.ts +0 -90
- package/src/models/PaginatedReviewListResourceResponse.ts +0 -90
- package/src/models/PaginatedReviewLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedReviewResourceResponse.ts +0 -90
- package/src/models/ProductReviewsResource.ts +0 -118
- package/src/models/ProductReviewsResourceArrayResponse.ts +0 -73
- package/src/models/ReviewListResource.ts +0 -168
- package/src/models/ReviewListResourceArrayResponse.ts +0 -73
- package/src/models/ReviewLiteResource.ts +0 -84
- package/src/models/ReviewLiteResourceArrayResponse.ts +0 -73
- package/src/models/ReviewPublicResource.ts +0 -119
- package/src/models/ReviewPublicResourceArrayResponse.ts +0 -73
- package/src/models/ReviewResource.ts +0 -226
- package/src/models/ReviewResourceArrayResponse.ts +0 -73
- package/src/models/StoreReviewRequest.ts +0 -136
- package/src/models/StoreStockType.ts +0 -53
- package/src/models/UpdateReviewRequest.ts +0 -118
|
@@ -54,10 +54,10 @@ export interface AssetResource {
|
|
|
54
54
|
index: number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {string}
|
|
58
58
|
* @memberof AssetResource
|
|
59
59
|
*/
|
|
60
|
-
fileId?:
|
|
60
|
+
fileId?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {boolean}
|
|
@@ -70,18 +70,6 @@ export interface AssetResource {
|
|
|
70
70
|
* @memberof AssetResource
|
|
71
71
|
*/
|
|
72
72
|
isLifestyle: boolean;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {boolean}
|
|
76
|
-
* @memberof AssetResource
|
|
77
|
-
*/
|
|
78
|
-
isExternal: boolean;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof AssetResource
|
|
83
|
-
*/
|
|
84
|
-
externalUrl?: string | null;
|
|
85
73
|
/**
|
|
86
74
|
*
|
|
87
75
|
* @type {Array<OverlayTemplateLiteResource>}
|
|
@@ -39,8 +39,6 @@ function instanceOfAssetResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('isLifestyle' in value) || value['isLifestyle'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
if (!('overlayTemplates' in value) || value['overlayTemplates'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
return true;
|
|
@@ -62,8 +60,6 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
60
|
'fileId': json['fileId'] == null ? undefined : json['fileId'],
|
|
63
61
|
'isThumbnail': json['isThumbnail'],
|
|
64
62
|
'isLifestyle': json['isLifestyle'],
|
|
65
|
-
'isExternal': json['isExternal'],
|
|
66
|
-
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
67
63
|
'overlayTemplates': (json['overlayTemplates'] == null ? null : json['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceFromJSON)),
|
|
68
64
|
};
|
|
69
65
|
}
|
|
@@ -85,8 +81,6 @@ function AssetResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
81
|
'fileId': value['fileId'],
|
|
86
82
|
'isThumbnail': value['isThumbnail'],
|
|
87
83
|
'isLifestyle': value['isLifestyle'],
|
|
88
|
-
'isExternal': value['isExternal'],
|
|
89
|
-
'externalUrl': value['externalUrl'],
|
|
90
84
|
'overlayTemplates': (value['overlayTemplates'] == null ? null : value['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceToJSON)),
|
|
91
85
|
};
|
|
92
86
|
}
|
|
@@ -54,10 +54,10 @@ export interface AssetWithOverlayLinkResource {
|
|
|
54
54
|
index: number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {string}
|
|
58
58
|
* @memberof AssetWithOverlayLinkResource
|
|
59
59
|
*/
|
|
60
|
-
fileId?:
|
|
60
|
+
fileId?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {boolean}
|
|
@@ -70,18 +70,6 @@ export interface AssetWithOverlayLinkResource {
|
|
|
70
70
|
* @memberof AssetWithOverlayLinkResource
|
|
71
71
|
*/
|
|
72
72
|
isLifestyle: boolean;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {boolean}
|
|
76
|
-
* @memberof AssetWithOverlayLinkResource
|
|
77
|
-
*/
|
|
78
|
-
isExternal: boolean;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof AssetWithOverlayLinkResource
|
|
83
|
-
*/
|
|
84
|
-
externalUrl?: string | null;
|
|
85
73
|
/**
|
|
86
74
|
*
|
|
87
75
|
* @type {Array<OverlayTemplateLiteResource>}
|
|
@@ -39,8 +39,6 @@ function instanceOfAssetWithOverlayLinkResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('isLifestyle' in value) || value['isLifestyle'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
if (!('overlayTemplates' in value) || value['overlayTemplates'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
if (!('isLinkedToOverlayTemplate' in value) || value['isLinkedToOverlayTemplate'] === undefined)
|
|
@@ -64,8 +62,6 @@ function AssetWithOverlayLinkResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'fileId': json['fileId'] == null ? undefined : json['fileId'],
|
|
65
63
|
'isThumbnail': json['isThumbnail'],
|
|
66
64
|
'isLifestyle': json['isLifestyle'],
|
|
67
|
-
'isExternal': json['isExternal'],
|
|
68
|
-
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
69
65
|
'overlayTemplates': (json['overlayTemplates'] == null ? null : json['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceFromJSON)),
|
|
70
66
|
'isLinkedToOverlayTemplate': json['isLinkedToOverlayTemplate'],
|
|
71
67
|
};
|
|
@@ -88,8 +84,6 @@ function AssetWithOverlayLinkResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
84
|
'fileId': value['fileId'],
|
|
89
85
|
'isThumbnail': value['isThumbnail'],
|
|
90
86
|
'isLifestyle': value['isLifestyle'],
|
|
91
|
-
'isExternal': value['isExternal'],
|
|
92
|
-
'externalUrl': value['externalUrl'],
|
|
93
87
|
'overlayTemplates': (value['overlayTemplates'] == null ? null : value['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceToJSON)),
|
|
94
88
|
'isLinkedToOverlayTemplate': value['isLinkedToOverlayTemplate'],
|
|
95
89
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AttachCouponCartRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachCouponCartRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AttachCouponCartRequest
|
|
22
|
+
*/
|
|
23
|
+
couponCode: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachCouponCartRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachCouponCartRequest(value: object): value is AttachCouponCartRequest;
|
|
29
|
+
export declare function AttachCouponCartRequestFromJSON(json: any): AttachCouponCartRequest;
|
|
30
|
+
export declare function AttachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponCartRequest;
|
|
31
|
+
export declare function AttachCouponCartRequestToJSON(json: any): AttachCouponCartRequest;
|
|
32
|
+
export declare function AttachCouponCartRequestToJSONTyped(value?: AttachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAttachCouponCartRequest = instanceOfAttachCouponCartRequest;
|
|
17
|
+
exports.AttachCouponCartRequestFromJSON = AttachCouponCartRequestFromJSON;
|
|
18
|
+
exports.AttachCouponCartRequestFromJSONTyped = AttachCouponCartRequestFromJSONTyped;
|
|
19
|
+
exports.AttachCouponCartRequestToJSON = AttachCouponCartRequestToJSON;
|
|
20
|
+
exports.AttachCouponCartRequestToJSONTyped = AttachCouponCartRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachCouponCartRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachCouponCartRequest(value) {
|
|
25
|
+
if (!('couponCode' in value) || value['couponCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachCouponCartRequestFromJSON(json) {
|
|
30
|
+
return AttachCouponCartRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'couponCode': json['coupon_code'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AttachCouponCartRequestToJSON(json) {
|
|
41
|
+
return AttachCouponCartRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AttachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'coupon_code': value['couponCode'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AttachItemCartRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachItemCartRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AttachItemCartRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AttachItemCartRequest
|
|
28
|
+
*/
|
|
29
|
+
quantity: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AttachItemCartRequest
|
|
34
|
+
*/
|
|
35
|
+
productPrice?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AttachItemCartRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAttachItemCartRequest(value: object): value is AttachItemCartRequest;
|
|
41
|
+
export declare function AttachItemCartRequestFromJSON(json: any): AttachItemCartRequest;
|
|
42
|
+
export declare function AttachItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachItemCartRequest;
|
|
43
|
+
export declare function AttachItemCartRequestToJSON(json: any): AttachItemCartRequest;
|
|
44
|
+
export declare function AttachItemCartRequestToJSONTyped(value?: AttachItemCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAttachItemCartRequest = instanceOfAttachItemCartRequest;
|
|
17
|
+
exports.AttachItemCartRequestFromJSON = AttachItemCartRequestFromJSON;
|
|
18
|
+
exports.AttachItemCartRequestFromJSONTyped = AttachItemCartRequestFromJSONTyped;
|
|
19
|
+
exports.AttachItemCartRequestToJSON = AttachItemCartRequestToJSON;
|
|
20
|
+
exports.AttachItemCartRequestToJSONTyped = AttachItemCartRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachItemCartRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachItemCartRequest(value) {
|
|
25
|
+
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AttachItemCartRequestFromJSON(json) {
|
|
32
|
+
return AttachItemCartRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AttachItemCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'productChildId': json['product_child_id'],
|
|
40
|
+
'quantity': json['quantity'],
|
|
41
|
+
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AttachItemCartRequestToJSON(json) {
|
|
45
|
+
return AttachItemCartRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AttachItemCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'product_child_id': value['productChildId'],
|
|
54
|
+
'quantity': value['quantity'],
|
|
55
|
+
'product_price': value['productPrice'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CartListResource
|
|
19
|
+
*/
|
|
20
|
+
export interface CartListResource {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof CartListResource
|
|
25
|
+
*/
|
|
26
|
+
id?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CartListResource
|
|
31
|
+
*/
|
|
32
|
+
guestEmail?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof CartListResource
|
|
37
|
+
*/
|
|
38
|
+
source: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof CartListResource
|
|
43
|
+
*/
|
|
44
|
+
shippingType?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof CartListResource
|
|
49
|
+
*/
|
|
50
|
+
shippingSubtotal?: number | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof CartListResource
|
|
55
|
+
*/
|
|
56
|
+
overrideShipping: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof CartListResource
|
|
61
|
+
*/
|
|
62
|
+
insuranceAmount?: number | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof CartListResource
|
|
67
|
+
*/
|
|
68
|
+
overrideInsurance: boolean;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof CartListResource
|
|
73
|
+
*/
|
|
74
|
+
useAsBillingAddress: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof CartListResource
|
|
79
|
+
*/
|
|
80
|
+
expiryDate: Date;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof CartListResource
|
|
85
|
+
*/
|
|
86
|
+
checkoutCompletedAt?: Date | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof CartListResource
|
|
91
|
+
*/
|
|
92
|
+
createdAt?: Date | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {SiteLiteResource}
|
|
96
|
+
* @memberof CartListResource
|
|
97
|
+
*/
|
|
98
|
+
site: SiteLiteResource | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {CustomerListResource}
|
|
102
|
+
* @memberof CartListResource
|
|
103
|
+
*/
|
|
104
|
+
customer: CustomerListResource | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<LineItemListResource>}
|
|
108
|
+
* @memberof CartListResource
|
|
109
|
+
*/
|
|
110
|
+
lineItems: Array<LineItemListResource> | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {number}
|
|
114
|
+
* @memberof CartListResource
|
|
115
|
+
*/
|
|
116
|
+
subtotal: number;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof CartListResource
|
|
121
|
+
*/
|
|
122
|
+
status: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Check if a given object implements the CartListResource interface.
|
|
126
|
+
*/
|
|
127
|
+
export declare function instanceOfCartListResource(value: object): value is CartListResource;
|
|
128
|
+
export declare function CartListResourceFromJSON(json: any): CartListResource;
|
|
129
|
+
export declare function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResource;
|
|
130
|
+
export declare function CartListResourceToJSON(json: any): CartListResource;
|
|
131
|
+
export declare function CartListResourceToJSONTyped(value?: CartListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,104 @@
|
|
|
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.instanceOfCartListResource = instanceOfCartListResource;
|
|
17
|
+
exports.CartListResourceFromJSON = CartListResourceFromJSON;
|
|
18
|
+
exports.CartListResourceFromJSONTyped = CartListResourceFromJSONTyped;
|
|
19
|
+
exports.CartListResourceToJSON = CartListResourceToJSON;
|
|
20
|
+
exports.CartListResourceToJSONTyped = CartListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CartListResource interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfCartListResource(value) {
|
|
28
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function CartListResourceFromJSON(json) {
|
|
51
|
+
return CartListResourceFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
59
|
+
'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
|
|
60
|
+
'source': json['source'],
|
|
61
|
+
'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
|
|
62
|
+
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
63
|
+
'overrideShipping': json['override_shipping'],
|
|
64
|
+
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
65
|
+
'overrideInsurance': json['override_insurance'],
|
|
66
|
+
'useAsBillingAddress': json['use_as_billing_address'],
|
|
67
|
+
'expiryDate': (new Date(json['expiry_date'])),
|
|
68
|
+
'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
|
|
69
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
70
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
71
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
72
|
+
'lineItems': (json['line_items'] == null ? null : json['line_items'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
73
|
+
'subtotal': json['subtotal'],
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function CartListResourceToJSON(json) {
|
|
78
|
+
return CartListResourceToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
81
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'guest_email': value['guestEmail'],
|
|
88
|
+
'source': value['source'],
|
|
89
|
+
'shipping_type': value['shippingType'],
|
|
90
|
+
'shipping_subtotal': value['shippingSubtotal'],
|
|
91
|
+
'override_shipping': value['overrideShipping'],
|
|
92
|
+
'insurance_amount': value['insuranceAmount'],
|
|
93
|
+
'override_insurance': value['overrideInsurance'],
|
|
94
|
+
'use_as_billing_address': value['useAsBillingAddress'],
|
|
95
|
+
'expiry_date': value['expiryDate'].toISOString(),
|
|
96
|
+
'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
97
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
98
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
99
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
100
|
+
'line_items': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
101
|
+
'subtotal': value['subtotal'],
|
|
102
|
+
'status': value['status'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { CartListResource } from './CartListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CartListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CartListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CartListResource>}
|
|
22
|
+
* @memberof CartListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CartListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CartListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCartListResourceArrayResponse(value: object): value is CartListResourceArrayResponse;
|
|
30
|
+
export declare function CartListResourceArrayResponseFromJSON(json: any): CartListResourceArrayResponse;
|
|
31
|
+
export declare function CartListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResourceArrayResponse;
|
|
32
|
+
export declare function CartListResourceArrayResponseToJSON(json: any): CartListResourceArrayResponse;
|
|
33
|
+
export declare function CartListResourceArrayResponseToJSONTyped(value?: CartListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfCartListResourceArrayResponse = instanceOfCartListResourceArrayResponse;
|
|
17
|
+
exports.CartListResourceArrayResponseFromJSON = CartListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CartListResourceArrayResponseFromJSONTyped = CartListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CartListResourceArrayResponseToJSON = CartListResourceArrayResponseToJSON;
|
|
20
|
+
exports.CartListResourceArrayResponseToJSONTyped = CartListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CartListResource_1 = require("./CartListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CartListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCartListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CartListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CartListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CartListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CartListResource_1.CartListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CartListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CartListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CartListResourceArrayResponseToJSONTyped(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(CartListResource_1.CartListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const CartOrderSource: {
|
|
17
|
+
readonly Checkout: "checkout";
|
|
18
|
+
readonly Admin: "admin";
|
|
19
|
+
readonly Phone: "phone";
|
|
20
|
+
readonly Email: "email";
|
|
21
|
+
readonly Ebay: "ebay";
|
|
22
|
+
readonly InStore: "in_store";
|
|
23
|
+
};
|
|
24
|
+
export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
|
|
25
|
+
export declare function instanceOfCartOrderSource(value: any): boolean;
|
|
26
|
+
export declare function CartOrderSourceFromJSON(json: any): CartOrderSource;
|
|
27
|
+
export declare function CartOrderSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartOrderSource;
|
|
28
|
+
export declare function CartOrderSourceToJSON(value?: CartOrderSource | null): any;
|
|
29
|
+
export declare function CartOrderSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): CartOrderSource;
|