@digital8/lighting-illusions-ts-sdk 0.0.1945 → 0.0.1946
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 +146 -2
- package/README.md +102 -3
- package/dist/apis/CartsApi.d.ts +215 -0
- package/dist/apis/CartsApi.js +814 -0
- package/dist/apis/CustomersApi.d.ts +83 -0
- package/dist/apis/CustomersApi.js +320 -0
- package/dist/apis/OrdersApi.d.ts +213 -0
- package/dist/apis/OrdersApi.js +811 -0
- package/dist/apis/TransactionsApi.d.ts +69 -0
- package/dist/apis/TransactionsApi.js +262 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/AddressResource.d.ts +19 -1
- package/dist/models/AddressResource.js +13 -1
- package/dist/models/AddressType.d.ts +25 -0
- package/dist/models/AddressType.js +51 -0
- package/dist/models/AdminOrderResource.d.ts +268 -0
- package/dist/models/AdminOrderResource.js +191 -0
- package/dist/models/AdminOrderResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminOrderResourceArrayResponse.js +50 -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/AttachCouponOrderRequest.d.ts +32 -0
- package/dist/models/AttachCouponOrderRequest.js +51 -0
- package/dist/models/AttachItemCartRequest.d.ts +44 -0
- package/dist/models/AttachItemCartRequest.js +57 -0
- package/dist/models/AttachItemOrderRequest.d.ts +44 -0
- package/dist/models/AttachItemOrderRequest.js +57 -0
- package/dist/models/CartCouponResource.d.ts +50 -0
- package/dist/models/CartCouponResource.js +63 -0
- package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponResourceArrayResponse.js +50 -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 +229 -0
- package/dist/models/CartResource.js +166 -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/DetachCouponCartRequest.d.ts +32 -0
- package/dist/models/DetachCouponCartRequest.js +51 -0
- package/dist/models/DetachCouponOrderRequest.d.ts +32 -0
- package/dist/models/DetachCouponOrderRequest.js +51 -0
- package/dist/models/DiscountType.d.ts +26 -0
- package/dist/models/DiscountType.js +52 -0
- package/dist/models/DiscountValueType.d.ts +25 -0
- package/dist/models/DiscountValueType.js +51 -0
- package/dist/models/ExternalApiSyncStatus.d.ts +0 -1
- package/dist/models/ExternalApiSyncStatus.js +1 -2
- package/dist/models/GetAllOrderRequest.d.ts +105 -0
- package/dist/models/GetAllOrderRequest.js +85 -0
- 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/IndexCustomerRequest.js +83 -0
- package/dist/models/IndexOrderRequest.d.ts +141 -0
- package/dist/models/IndexOrderRequest.js +97 -0
- package/dist/models/IndexTransactionRequest.d.ts +127 -0
- package/dist/models/IndexTransactionRequest.js +91 -0
- 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/LineItemDiscountResource.d.ts +50 -0
- package/dist/models/LineItemDiscountResource.js +63 -0
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +33 -0
- package/dist/models/LineItemDiscountResourceArrayResponse.js +50 -0
- package/dist/models/LineItemListResource.d.ts +82 -0
- package/dist/models/LineItemListResource.js +83 -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/OrderListResource.d.ts +126 -0
- package/dist/models/OrderListResource.js +105 -0
- package/dist/models/OrderListResourceArrayResponse.d.ts +33 -0
- package/dist/models/OrderListResourceArrayResponse.js +50 -0
- package/dist/models/OrderLiteResource.d.ts +62 -0
- package/dist/models/OrderLiteResource.js +67 -0
- package/dist/models/OrderLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/OrderLiteResourceArrayResponse.js +50 -0
- package/dist/models/OrderStatusWithCountResource.d.ts +50 -0
- package/dist/models/OrderStatusWithCountResource.js +63 -0
- package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +33 -0
- package/dist/models/OrderStatusWithCountResourceArrayResponse.js +50 -0
- 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/PaginatedOrderListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedOrderListResourceResponse.js +57 -0
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +30 -0
- package/dist/models/PaymentMethod.js +56 -0
- package/dist/models/PaymentSource.d.ts +26 -0
- package/dist/models/PaymentSource.js +52 -0
- package/dist/models/PaymentStatus.d.ts +25 -0
- package/dist/models/PaymentStatus.js +51 -0
- package/dist/models/ProductChildCartLiteResource.d.ts +88 -0
- package/dist/models/ProductChildCartLiteResource.js +89 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
- package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
- package/dist/models/RefundTransactionRequest.d.ts +38 -0
- package/dist/models/RefundTransactionRequest.js +53 -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 +80 -0
- package/dist/models/StoreCartRequestShippingAddress.js +65 -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 +6 -2
- package/dist/models/StoreListResource.d.ts +0 -12
- package/dist/models/StoreListResource.js +4 -12
- 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 +1 -13
- package/dist/models/StoreResource.js +8 -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/StoreTransactionRequest.d.ts +81 -0
- package/dist/models/StoreTransactionRequest.js +78 -0
- package/dist/models/TransactionLiteResource.d.ts +74 -0
- package/dist/models/TransactionLiteResource.js +77 -0
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionLiteResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +122 -0
- package/dist/models/TransactionResource.js +99 -0
- package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionResourceArrayResponse.js +50 -0
- package/dist/models/TransactionType.d.ts +25 -0
- package/dist/models/TransactionType.js +51 -0
- 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/UpdateItemOrderRequest.d.ts +38 -0
- package/dist/models/UpdateItemOrderRequest.js +53 -0
- package/dist/models/UpdateMenuRequest.d.ts +1 -0
- package/dist/models/UpdateMenuRequest.js +2 -1
- package/dist/models/UpdateOrderRequest.d.ts +111 -0
- package/dist/models/UpdateOrderRequest.js +99 -0
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +80 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +67 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
- package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
- 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 +69 -1
- package/dist/models/index.js +69 -1
- package/docs/AddressResource.md +6 -0
- package/docs/{StoreStockType.md → AddressType.md} +4 -4
- package/docs/AdminOrderResource.md +112 -0
- package/docs/AdminOrderResourceArrayResponse.md +34 -0
- 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/AttachCouponCartRequest.md +34 -0
- package/docs/AttachCouponOrderRequest.md +34 -0
- package/docs/AttachItemCartRequest.md +38 -0
- package/docs/AttachItemOrderRequest.md +38 -0
- package/docs/CartCouponResource.md +40 -0
- package/docs/CartCouponResourceArrayResponse.md +34 -0
- package/docs/CartListResource.md +66 -0
- package/docs/CartListResourceArrayResponse.md +34 -0
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartResource.md +98 -0
- package/docs/CartResourceArrayResponse.md +34 -0
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +821 -0
- package/docs/CustomerListResource.md +46 -0
- package/docs/CustomerListResourceArrayResponse.md +34 -0
- package/docs/CustomerResource.md +46 -0
- package/docs/CustomerResourceArrayResponse.md +34 -0
- package/docs/CustomersApi.md +275 -0
- package/docs/DetachCouponCartRequest.md +34 -0
- package/docs/DetachCouponOrderRequest.md +34 -0
- package/docs/DiscountType.md +32 -0
- package/docs/DiscountValueType.md +32 -0
- package/docs/GetAllOrderRequest.md +52 -0
- package/docs/IndexCartRequest.md +66 -0
- package/docs/IndexCustomerRequest.md +50 -0
- package/docs/IndexOrderRequest.md +64 -0
- package/docs/IndexTransactionRequest.md +60 -0
- package/docs/LiAddressResource.md +52 -0
- package/docs/LiAddressResourceArrayResponse.md +34 -0
- package/docs/LineItemDiscountResource.md +40 -0
- package/docs/LineItemDiscountResourceArrayResponse.md +34 -0
- package/docs/LineItemListResource.md +50 -0
- package/docs/LineItemListResourceArrayResponse.md +34 -0
- package/docs/OrderListResource.md +64 -0
- package/docs/OrderListResourceArrayResponse.md +34 -0
- package/docs/OrderLiteResource.md +44 -0
- package/docs/OrderLiteResourceArrayResponse.md +34 -0
- package/docs/OrderStatusWithCountResource.md +40 -0
- package/docs/OrderStatusWithCountResourceArrayResponse.md +34 -0
- package/docs/OrdersApi.md +813 -0
- package/docs/PaginatedCartListResourceResponse.md +36 -0
- package/docs/PaginatedCustomerListResourceResponse.md +36 -0
- package/docs/PaginatedOrderListResourceResponse.md +36 -0
- package/docs/PaginatedTransactionResourceResponse.md +36 -0
- package/docs/PaymentMethod.md +32 -0
- package/docs/PaymentSource.md +32 -0
- package/docs/PaymentStatus.md +32 -0
- package/docs/ProductChildCartLiteResource.md +52 -0
- package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailLiteResource.md +2 -0
- package/docs/RefundTransactionRequest.md +36 -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/StoreCartRequestCustomer.md +40 -0
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +50 -0
- package/docs/StoreCustomerRequest.md +42 -0
- 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/StoreTransactionRequest.md +46 -0
- package/docs/TransactionLiteResource.md +48 -0
- package/docs/TransactionLiteResourceArrayResponse.md +34 -0
- package/docs/TransactionResource.md +64 -0
- package/docs/TransactionResourceArrayResponse.md +34 -0
- package/docs/TransactionType.md +32 -0
- package/docs/TransactionsApi.md +209 -0
- 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/UpdateItemOrderRequest.md +36 -0
- package/docs/UpdateOrderRequest.md +52 -0
- package/docs/UpdateOrderRequestBillingAddress.md +50 -0
- package/docs/UpdateOrderRequestShippingAddress.md +50 -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 +693 -0
- package/src/apis/CustomersApi.ts +237 -0
- package/src/apis/OrdersApi.ts +686 -0
- package/src/apis/TransactionsApi.ts +193 -0
- package/src/apis/index.ts +4 -0
- package/src/models/AddressResource.ts +29 -2
- package/src/models/AddressType.ts +53 -0
- package/src/models/AdminOrderResource.ts +423 -0
- package/src/models/AdminOrderResourceArrayResponse.ts +73 -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/AttachCouponOrderRequest.ts +66 -0
- package/src/models/AttachItemCartRequest.ts +83 -0
- package/src/models/AttachItemOrderRequest.ts +83 -0
- package/src/models/CartCouponResource.ts +93 -0
- package/src/models/CartCouponResourceArrayResponse.ts +73 -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 +381 -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/DetachCouponCartRequest.ts +66 -0
- package/src/models/DetachCouponOrderRequest.ts +66 -0
- package/src/models/DiscountType.ts +54 -0
- package/src/models/DiscountValueType.ts +53 -0
- package/src/models/ExternalApiSyncStatus.ts +1 -2
- package/src/models/GetAllOrderRequest.ts +160 -0
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/IndexCustomerRequest.ts +152 -0
- package/src/models/IndexOrderRequest.ts +208 -0
- package/src/models/IndexTransactionRequest.ts +190 -0
- package/src/models/LiAddressResource.ts +145 -0
- package/src/models/LiAddressResourceArrayResponse.ts +73 -0
- package/src/models/LineItemDiscountResource.ts +93 -0
- package/src/models/LineItemDiscountResourceArrayResponse.ts +73 -0
- package/src/models/LineItemListResource.ts +152 -0
- package/src/models/LineItemListResourceArrayResponse.ts +73 -0
- package/src/models/MenuPosition.ts +2 -1
- package/src/models/OrderListResource.ts +225 -0
- package/src/models/OrderListResourceArrayResponse.ts +73 -0
- package/src/models/OrderLiteResource.ts +109 -0
- package/src/models/OrderLiteResourceArrayResponse.ts +73 -0
- package/src/models/OrderStatusWithCountResource.ts +93 -0
- package/src/models/OrderStatusWithCountResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
- package/src/models/PaginatedOrderListResourceResponse.ts +90 -0
- package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +58 -0
- package/src/models/PaymentSource.ts +54 -0
- package/src/models/PaymentStatus.ts +53 -0
- package/src/models/ProductChildCartLiteResource.ts +162 -0
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
- package/src/models/RefundTransactionRequest.ts +74 -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 +129 -0
- package/src/models/StoreCustomerRequest.ts +101 -0
- package/src/models/StoreFrontendResource.ts +6 -4
- package/src/models/StoreListResource.ts +4 -22
- 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 +9 -26
- 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/StoreTransactionRequest.ts +131 -0
- package/src/models/TransactionLiteResource.ts +128 -0
- package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +195 -0
- package/src/models/TransactionResourceArrayResponse.ts +73 -0
- package/src/models/TransactionType.ts +53 -0
- 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/UpdateItemOrderRequest.ts +74 -0
- package/src/models/UpdateMenuRequest.ts +2 -1
- package/src/models/UpdateOrderRequest.ts +183 -0
- package/src/models/UpdateOrderRequestBillingAddress.ts +130 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
- 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 +69 -1
- package/dist/models/StoreStockType.d.ts +0 -25
- package/dist/models/StoreStockType.js +0 -51
- package/src/models/StoreStockType.ts +0 -53
|
@@ -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.instanceOfPaginatedOrderListResourceResponse = instanceOfPaginatedOrderListResourceResponse;
|
|
17
|
+
exports.PaginatedOrderListResourceResponseFromJSON = PaginatedOrderListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedOrderListResourceResponseFromJSONTyped = PaginatedOrderListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedOrderListResourceResponseToJSON = PaginatedOrderListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedOrderListResourceResponseToJSONTyped = PaginatedOrderListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var OrderListResource_1 = require("./OrderListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedOrderListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedOrderListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedOrderListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedOrderListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedOrderListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(OrderListResource_1.OrderListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedOrderListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedOrderListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedOrderListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(OrderListResource_1.OrderListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { TransactionResource } from './TransactionResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedTransactionResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedTransactionResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<TransactionResource>}
|
|
23
|
+
* @memberof PaginatedTransactionResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<TransactionResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedTransactionResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedTransactionResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedTransactionResourceResponse(value: object): value is PaginatedTransactionResourceResponse;
|
|
37
|
+
export declare function PaginatedTransactionResourceResponseFromJSON(json: any): PaginatedTransactionResourceResponse;
|
|
38
|
+
export declare function PaginatedTransactionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionResourceResponse;
|
|
39
|
+
export declare function PaginatedTransactionResourceResponseToJSON(json: any): PaginatedTransactionResourceResponse;
|
|
40
|
+
export declare function PaginatedTransactionResourceResponseToJSONTyped(value?: PaginatedTransactionResourceResponse | 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.instanceOfPaginatedTransactionResourceResponse = instanceOfPaginatedTransactionResourceResponse;
|
|
17
|
+
exports.PaginatedTransactionResourceResponseFromJSON = PaginatedTransactionResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedTransactionResourceResponseFromJSONTyped = PaginatedTransactionResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedTransactionResourceResponseToJSON = PaginatedTransactionResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedTransactionResourceResponseToJSONTyped = PaginatedTransactionResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var TransactionResource_1 = require("./TransactionResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedTransactionResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedTransactionResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedTransactionResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedTransactionResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedTransactionResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(TransactionResource_1.TransactionResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedTransactionResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedTransactionResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedTransactionResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(TransactionResource_1.TransactionResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 PaymentMethod: {
|
|
17
|
+
readonly BankDeposit: "bank_deposit";
|
|
18
|
+
readonly Visa: "visa";
|
|
19
|
+
readonly Mastercard: "mastercard";
|
|
20
|
+
readonly AmericanExpress: "american_express";
|
|
21
|
+
readonly GooglePay: "google_pay";
|
|
22
|
+
readonly PayPal: "pay_pal";
|
|
23
|
+
readonly ApplePay: "apple_pay";
|
|
24
|
+
};
|
|
25
|
+
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
26
|
+
export declare function instanceOfPaymentMethod(value: any): boolean;
|
|
27
|
+
export declare function PaymentMethodFromJSON(json: any): PaymentMethod;
|
|
28
|
+
export declare function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethod;
|
|
29
|
+
export declare function PaymentMethodToJSON(value?: PaymentMethod | null): any;
|
|
30
|
+
export declare function PaymentMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentMethod;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.PaymentMethod = void 0;
|
|
17
|
+
exports.instanceOfPaymentMethod = instanceOfPaymentMethod;
|
|
18
|
+
exports.PaymentMethodFromJSON = PaymentMethodFromJSON;
|
|
19
|
+
exports.PaymentMethodFromJSONTyped = PaymentMethodFromJSONTyped;
|
|
20
|
+
exports.PaymentMethodToJSON = PaymentMethodToJSON;
|
|
21
|
+
exports.PaymentMethodToJSONTyped = PaymentMethodToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PaymentMethod = {
|
|
27
|
+
BankDeposit: 'bank_deposit',
|
|
28
|
+
Visa: 'visa',
|
|
29
|
+
Mastercard: 'mastercard',
|
|
30
|
+
AmericanExpress: 'american_express',
|
|
31
|
+
GooglePay: 'google_pay',
|
|
32
|
+
PayPal: 'pay_pal',
|
|
33
|
+
ApplePay: 'apple_pay'
|
|
34
|
+
};
|
|
35
|
+
function instanceOfPaymentMethod(value) {
|
|
36
|
+
for (var key in exports.PaymentMethod) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(exports.PaymentMethod, key)) {
|
|
38
|
+
if (exports.PaymentMethod[key] === value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
function PaymentMethodFromJSON(json) {
|
|
46
|
+
return PaymentMethodFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
function PaymentMethodToJSON(value) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
function PaymentMethodToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 PaymentSource: {
|
|
17
|
+
readonly Checkout: "checkout";
|
|
18
|
+
readonly ExpressCheckout: "express_checkout";
|
|
19
|
+
readonly AdminPortal: "admin_portal";
|
|
20
|
+
};
|
|
21
|
+
export type PaymentSource = typeof PaymentSource[keyof typeof PaymentSource];
|
|
22
|
+
export declare function instanceOfPaymentSource(value: any): boolean;
|
|
23
|
+
export declare function PaymentSourceFromJSON(json: any): PaymentSource;
|
|
24
|
+
export declare function PaymentSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSource;
|
|
25
|
+
export declare function PaymentSourceToJSON(value?: PaymentSource | null): any;
|
|
26
|
+
export declare function PaymentSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentSource;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.PaymentSource = void 0;
|
|
17
|
+
exports.instanceOfPaymentSource = instanceOfPaymentSource;
|
|
18
|
+
exports.PaymentSourceFromJSON = PaymentSourceFromJSON;
|
|
19
|
+
exports.PaymentSourceFromJSONTyped = PaymentSourceFromJSONTyped;
|
|
20
|
+
exports.PaymentSourceToJSON = PaymentSourceToJSON;
|
|
21
|
+
exports.PaymentSourceToJSONTyped = PaymentSourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PaymentSource = {
|
|
27
|
+
Checkout: 'checkout',
|
|
28
|
+
ExpressCheckout: 'express_checkout',
|
|
29
|
+
AdminPortal: 'admin_portal'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfPaymentSource(value) {
|
|
32
|
+
for (var key in exports.PaymentSource) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.PaymentSource, key)) {
|
|
34
|
+
if (exports.PaymentSource[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function PaymentSourceFromJSON(json) {
|
|
42
|
+
return PaymentSourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PaymentSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function PaymentSourceToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function PaymentSourceToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 PaymentStatus: {
|
|
17
|
+
readonly Success: "success";
|
|
18
|
+
readonly Failure: "failure";
|
|
19
|
+
};
|
|
20
|
+
export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
|
|
21
|
+
export declare function instanceOfPaymentStatus(value: any): boolean;
|
|
22
|
+
export declare function PaymentStatusFromJSON(json: any): PaymentStatus;
|
|
23
|
+
export declare function PaymentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentStatus;
|
|
24
|
+
export declare function PaymentStatusToJSON(value?: PaymentStatus | null): any;
|
|
25
|
+
export declare function PaymentStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentStatus;
|
|
@@ -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.PaymentStatus = void 0;
|
|
17
|
+
exports.instanceOfPaymentStatus = instanceOfPaymentStatus;
|
|
18
|
+
exports.PaymentStatusFromJSON = PaymentStatusFromJSON;
|
|
19
|
+
exports.PaymentStatusFromJSONTyped = PaymentStatusFromJSONTyped;
|
|
20
|
+
exports.PaymentStatusToJSON = PaymentStatusToJSON;
|
|
21
|
+
exports.PaymentStatusToJSONTyped = PaymentStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PaymentStatus = {
|
|
27
|
+
Success: 'success',
|
|
28
|
+
Failure: 'failure'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfPaymentStatus(value) {
|
|
31
|
+
for (var key in exports.PaymentStatus) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.PaymentStatus, key)) {
|
|
33
|
+
if (exports.PaymentStatus[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function PaymentStatusFromJSON(json) {
|
|
41
|
+
return PaymentStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PaymentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function PaymentStatusToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function PaymentStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { LabelResource } from './LabelResource';
|
|
13
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProductChildCartLiteResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductChildCartLiteResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductChildCartLiteResource
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ProductChildCartLiteResource
|
|
30
|
+
*/
|
|
31
|
+
parentId: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProductChildCartLiteResource
|
|
36
|
+
*/
|
|
37
|
+
sku: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ProductChildCartLiteResource
|
|
42
|
+
*/
|
|
43
|
+
model: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ProductChildCartLiteResource
|
|
48
|
+
*/
|
|
49
|
+
modelNumber: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProductChildCartLiteResource
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof ProductChildCartLiteResource
|
|
60
|
+
*/
|
|
61
|
+
stock: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof ProductChildCartLiteResource
|
|
66
|
+
*/
|
|
67
|
+
salePrice: number;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {AssetLiteResource}
|
|
71
|
+
* @memberof ProductChildCartLiteResource
|
|
72
|
+
*/
|
|
73
|
+
thumbnail: AssetLiteResource | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {LabelResource}
|
|
77
|
+
* @memberof ProductChildCartLiteResource
|
|
78
|
+
*/
|
|
79
|
+
label: LabelResource | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource;
|
|
85
|
+
export declare function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource;
|
|
86
|
+
export declare function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource;
|
|
87
|
+
export declare function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource;
|
|
88
|
+
export declare function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,89 @@
|
|
|
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.instanceOfProductChildCartLiteResource = instanceOfProductChildCartLiteResource;
|
|
17
|
+
exports.ProductChildCartLiteResourceFromJSON = ProductChildCartLiteResourceFromJSON;
|
|
18
|
+
exports.ProductChildCartLiteResourceFromJSONTyped = ProductChildCartLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildCartLiteResourceToJSON = ProductChildCartLiteResourceToJSON;
|
|
20
|
+
exports.ProductChildCartLiteResourceToJSONTyped = ProductChildCartLiteResourceToJSONTyped;
|
|
21
|
+
var LabelResource_1 = require("./LabelResource");
|
|
22
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfProductChildCartLiteResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('modelNumber' in value) || value['modelNumber'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('stock' in value) || value['stock'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function ProductChildCartLiteResourceFromJSON(json) {
|
|
50
|
+
return ProductChildCartLiteResourceFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ProductChildCartLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'parentId': json['parent_id'],
|
|
59
|
+
'sku': json['sku'],
|
|
60
|
+
'model': json['model'],
|
|
61
|
+
'modelNumber': json['model_number'],
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'stock': json['stock'],
|
|
64
|
+
'salePrice': json['sale_price'],
|
|
65
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
66
|
+
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function ProductChildCartLiteResourceToJSON(json) {
|
|
70
|
+
return ProductChildCartLiteResourceToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function ProductChildCartLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
73
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'parent_id': value['parentId'],
|
|
80
|
+
'sku': value['sku'],
|
|
81
|
+
'model': value['model'],
|
|
82
|
+
'model_number': value['modelNumber'],
|
|
83
|
+
'name': value['name'],
|
|
84
|
+
'stock': value['stock'],
|
|
85
|
+
'sale_price': value['salePrice'],
|
|
86
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
87
|
+
'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildCartLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildCartLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildCartLiteResource>}
|
|
22
|
+
* @memberof ProductChildCartLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildCartLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | 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.instanceOfProductChildCartLiteResourceArrayResponse = instanceOfProductChildCartLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductChildCartLiteResourceArrayResponseFromJSON = ProductChildCartLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildCartLiteResourceArrayResponseFromJSONTyped = ProductChildCartLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildCartLiteResourceArrayResponseToJSON = ProductChildCartLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildCartLiteResourceArrayResponseToJSONTyped = ProductChildCartLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildCartLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildCartLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildCartLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildCartLiteResourceArrayResponseToJSONTyped(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(ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|