@digital8/lighting-illusions-ts-sdk 0.0.1947 → 0.0.1949
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/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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 +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -13
- package/dist/models/StoreListResource.js +6 -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 +2 -14
- package/dist/models/StoreResource.js +7 -19
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +7 -5
- 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/StoreSpecialDateResource.md +1 -1
- 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/AddressFrontendResource.ts +3 -2
- 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/ExternalApiLogResource.ts +2 -3
- 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 +3 -2
- package/src/models/StoreListResource.ts +7 -24
- 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 -29
- package/src/models/StoreSpecialDateResource.ts +8 -7
- 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
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`tagLine` | string
|
|
16
16
|
`email` | string
|
|
17
17
|
`website` | string
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`openingHours` | string
|
|
21
19
|
|
|
22
20
|
## Example
|
|
@@ -35,8 +33,6 @@ const example = {
|
|
|
35
33
|
"tagLine": null,
|
|
36
34
|
"email": null,
|
|
37
35
|
"website": null,
|
|
38
|
-
"netsuiteId": null,
|
|
39
|
-
"displayNetsuiteId": null,
|
|
40
36
|
"openingHours": null,
|
|
41
37
|
} satisfies StoreListResource
|
|
42
38
|
|
|
@@ -14,8 +14,6 @@ Name | Type
|
|
|
14
14
|
`altText` | string
|
|
15
15
|
`mimeType` | string
|
|
16
16
|
`fileId` | number
|
|
17
|
-
`isExternal` | boolean
|
|
18
|
-
`externalUrl` | string
|
|
19
17
|
|
|
20
18
|
## Example
|
|
21
19
|
|
|
@@ -32,8 +30,6 @@ const example = {
|
|
|
32
30
|
"altText": null,
|
|
33
31
|
"mimeType": null,
|
|
34
32
|
"fileId": null,
|
|
35
|
-
"isExternal": null,
|
|
36
|
-
"externalUrl": null,
|
|
37
33
|
} satisfies StoreOverlayTemplateAssetRequest
|
|
38
34
|
|
|
39
35
|
console.log(example)
|
|
@@ -19,8 +19,6 @@ Name | Type
|
|
|
19
19
|
`altText` | string
|
|
20
20
|
`mimeType` | string
|
|
21
21
|
`fileId` | number
|
|
22
|
-
`isExternal` | boolean
|
|
23
|
-
`externalUrl` | string
|
|
24
22
|
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
25
23
|
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
26
24
|
|
|
@@ -44,8 +42,6 @@ const example = {
|
|
|
44
42
|
"altText": null,
|
|
45
43
|
"mimeType": null,
|
|
46
44
|
"fileId": null,
|
|
47
|
-
"isExternal": null,
|
|
48
|
-
"externalUrl": null,
|
|
49
45
|
"seo": null,
|
|
50
46
|
"descriptions": null,
|
|
51
47
|
} satisfies StoreProductCategoryRequest
|
|
@@ -9,8 +9,6 @@ Name | Type
|
|
|
9
9
|
`altText` | string
|
|
10
10
|
`mimeType` | string
|
|
11
11
|
`fileId` | number
|
|
12
|
-
`isExternal` | boolean
|
|
13
|
-
`externalUrl` | string
|
|
14
12
|
`isLifestyleImage` | boolean
|
|
15
13
|
`index` | number
|
|
16
14
|
`overlayTemplateIds` | Array<number>
|
|
@@ -25,8 +23,6 @@ const example = {
|
|
|
25
23
|
"altText": null,
|
|
26
24
|
"mimeType": null,
|
|
27
25
|
"fileId": null,
|
|
28
|
-
"isExternal": null,
|
|
29
|
-
"externalUrl": null,
|
|
30
26
|
"isLifestyleImage": null,
|
|
31
27
|
"index": null,
|
|
32
28
|
"overlayTemplateIds": null,
|
package/docs/StoreResource.md
CHANGED
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`tagLine` | string
|
|
16
16
|
`email` | string
|
|
17
17
|
`website` | string
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`openingHours` | string
|
|
21
19
|
`suppliers` | [Array<SupplierLiteResource>](SupplierLiteResource.md)
|
|
22
20
|
`address` | [AddressResource](AddressResource.md)
|
|
@@ -38,8 +36,6 @@ const example = {
|
|
|
38
36
|
"tagLine": null,
|
|
39
37
|
"email": null,
|
|
40
38
|
"website": null,
|
|
41
|
-
"netsuiteId": null,
|
|
42
|
-
"displayNetsuiteId": null,
|
|
43
39
|
"openingHours": null,
|
|
44
40
|
"suppliers": null,
|
|
45
41
|
"address": null,
|
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`email` | string
|
|
16
16
|
`website` | string
|
|
17
17
|
`openingHours` | Array<string | null>
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`supplierIds` | Array<number>
|
|
21
19
|
`specialDates` | [Array<StoreStoreRequestSpecialDatesInner>](StoreStoreRequestSpecialDatesInner.md)
|
|
22
20
|
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
@@ -37,8 +35,6 @@ const example = {
|
|
|
37
35
|
"email": null,
|
|
38
36
|
"website": null,
|
|
39
37
|
"openingHours": null,
|
|
40
|
-
"netsuiteId": null,
|
|
41
|
-
"displayNetsuiteId": null,
|
|
42
38
|
"supplierIds": null,
|
|
43
39
|
"specialDates": null,
|
|
44
40
|
"address": null,
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`addresseeName` | string
|
|
9
10
|
`company` | string
|
|
10
11
|
`line1` | string
|
|
11
12
|
`line2` | string
|
|
@@ -21,6 +22,7 @@ import type { StoreStoreRequestAddress } from '@digital8/lighting-illusions-ts-s
|
|
|
21
22
|
|
|
22
23
|
// TODO: Update the object below with actual values
|
|
23
24
|
const example = {
|
|
25
|
+
"addresseeName": null,
|
|
24
26
|
"company": null,
|
|
25
27
|
"line1": null,
|
|
26
28
|
"line2": null,
|
|
@@ -13,8 +13,6 @@ Name | Type
|
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`fileId` | number
|
|
16
|
-
`isExternal` | boolean
|
|
17
|
-
`externalUrl` | string
|
|
18
16
|
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
19
17
|
|
|
20
18
|
## Example
|
|
@@ -31,8 +29,6 @@ const example = {
|
|
|
31
29
|
"altText": null,
|
|
32
30
|
"mimeType": null,
|
|
33
31
|
"fileId": null,
|
|
34
|
-
"isExternal": null,
|
|
35
|
-
"externalUrl": null,
|
|
36
32
|
"descriptions": null,
|
|
37
33
|
} satisfies StoreSupplierRequest
|
|
38
34
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreTransactionRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`cartId` | number
|
|
10
|
+
`orderId` | number
|
|
11
|
+
`amount` | number
|
|
12
|
+
`surcharge` | number
|
|
13
|
+
`paymentMethod` | string
|
|
14
|
+
`nonce` | string
|
|
15
|
+
`deviceData` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { StoreTransactionRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"cartId": null,
|
|
25
|
+
"orderId": null,
|
|
26
|
+
"amount": null,
|
|
27
|
+
"surcharge": null,
|
|
28
|
+
"paymentMethod": null,
|
|
29
|
+
"nonce": null,
|
|
30
|
+
"deviceData": null,
|
|
31
|
+
} satisfies StoreTransactionRequest
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreTransactionRequest
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`paymentMethod` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`status` | string
|
|
12
|
+
`amount` | number
|
|
13
|
+
`surcharge` | number
|
|
14
|
+
`totalAmount` | number
|
|
15
|
+
`reference` | string
|
|
16
|
+
`createdAt` | Date
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { TransactionLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"paymentMethod": null,
|
|
26
|
+
"type": null,
|
|
27
|
+
"status": null,
|
|
28
|
+
"amount": null,
|
|
29
|
+
"surcharge": null,
|
|
30
|
+
"totalAmount": null,
|
|
31
|
+
"reference": null,
|
|
32
|
+
"createdAt": null,
|
|
33
|
+
} satisfies TransactionLiteResource
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionLiteResource
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { TransactionLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies TransactionLiteResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionLiteResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`paymentSource` | string
|
|
10
|
+
`paymentMethod` | string
|
|
11
|
+
`type` | string
|
|
12
|
+
`status` | string
|
|
13
|
+
`amount` | number
|
|
14
|
+
`surcharge` | number
|
|
15
|
+
`totalAmount` | number
|
|
16
|
+
`refundedAmount` | number
|
|
17
|
+
`unrefundedAmount` | number
|
|
18
|
+
`reference` | string
|
|
19
|
+
`description` | string
|
|
20
|
+
`extendedData` | string
|
|
21
|
+
`riskScore` | string
|
|
22
|
+
`fraudDecision` | string
|
|
23
|
+
`refundedTransactionId` | number
|
|
24
|
+
`createdAt` | Date
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import type { TransactionResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
30
|
+
|
|
31
|
+
// TODO: Update the object below with actual values
|
|
32
|
+
const example = {
|
|
33
|
+
"paymentSource": null,
|
|
34
|
+
"paymentMethod": null,
|
|
35
|
+
"type": null,
|
|
36
|
+
"status": null,
|
|
37
|
+
"amount": null,
|
|
38
|
+
"surcharge": null,
|
|
39
|
+
"totalAmount": null,
|
|
40
|
+
"refundedAmount": null,
|
|
41
|
+
"unrefundedAmount": null,
|
|
42
|
+
"reference": null,
|
|
43
|
+
"description": null,
|
|
44
|
+
"extendedData": null,
|
|
45
|
+
"riskScore": null,
|
|
46
|
+
"fraudDecision": null,
|
|
47
|
+
"refundedTransactionId": null,
|
|
48
|
+
"createdAt": null,
|
|
49
|
+
} satisfies TransactionResource
|
|
50
|
+
|
|
51
|
+
console.log(example)
|
|
52
|
+
|
|
53
|
+
// Convert the instance to a JSON string
|
|
54
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
55
|
+
console.log(exampleJSON)
|
|
56
|
+
|
|
57
|
+
// Parse the JSON string back to an object
|
|
58
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionResource
|
|
59
|
+
console.log(exampleParsed)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TransactionResource>](TransactionResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { TransactionResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies TransactionResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { TransactionType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies TransactionType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# TransactionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**indexTransaction**](TransactionsApi.md#indextransactionoperation) | **POST** /admin-api/transactions/list | Auto-generated: indexTransaction |
|
|
8
|
+
| [**refundTransaction**](TransactionsApi.md#refundtransactionoperation) | **POST** /admin-api/transactions/{transaction}/refund | Auto-generated: refundTransaction |
|
|
9
|
+
| [**storeTransaction**](TransactionsApi.md#storetransactionoperation) | **POST** /admin-api/transactions/create | Auto-generated: storeTransaction |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## indexTransaction
|
|
14
|
+
|
|
15
|
+
> PaginatedTransactionResourceResponse indexTransaction(indexTransactionRequest)
|
|
16
|
+
|
|
17
|
+
Auto-generated: indexTransaction
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
TransactionsApi,
|
|
25
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
26
|
+
import type { IndexTransactionOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
30
|
+
const api = new TransactionsApi();
|
|
31
|
+
|
|
32
|
+
const body = {
|
|
33
|
+
// IndexTransactionRequest (optional)
|
|
34
|
+
indexTransactionRequest: ...,
|
|
35
|
+
} satisfies IndexTransactionOperationRequest;
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
const data = await api.indexTransaction(body);
|
|
39
|
+
console.log(data);
|
|
40
|
+
} catch (error) {
|
|
41
|
+
console.error(error);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Run the test
|
|
46
|
+
example().catch(console.error);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
| Name | Type | Description | Notes |
|
|
53
|
+
|------------- | ------------- | ------------- | -------------|
|
|
54
|
+
| **indexTransactionRequest** | [IndexTransactionRequest](IndexTransactionRequest.md) | | [Optional] |
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
[**PaginatedTransactionResourceResponse**](PaginatedTransactionResourceResponse.md)
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
No authorization required
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: `application/json`
|
|
67
|
+
- **Accept**: `application/json`
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### HTTP response details
|
|
71
|
+
| Status code | Description | Response headers |
|
|
72
|
+
|-------------|-------------|------------------|
|
|
73
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TransactionResource[]>> | - |
|
|
74
|
+
|
|
75
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## refundTransaction
|
|
79
|
+
|
|
80
|
+
> TransactionResource refundTransaction(transaction, refundTransactionRequest)
|
|
81
|
+
|
|
82
|
+
Auto-generated: refundTransaction
|
|
83
|
+
|
|
84
|
+
### Example
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
import {
|
|
88
|
+
Configuration,
|
|
89
|
+
TransactionsApi,
|
|
90
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
91
|
+
import type { RefundTransactionOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
92
|
+
|
|
93
|
+
async function example() {
|
|
94
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
95
|
+
const api = new TransactionsApi();
|
|
96
|
+
|
|
97
|
+
const body = {
|
|
98
|
+
// number | The id of the transaction
|
|
99
|
+
transaction: 56,
|
|
100
|
+
// RefundTransactionRequest (optional)
|
|
101
|
+
refundTransactionRequest: ...,
|
|
102
|
+
} satisfies RefundTransactionOperationRequest;
|
|
103
|
+
|
|
104
|
+
try {
|
|
105
|
+
const data = await api.refundTransaction(body);
|
|
106
|
+
console.log(data);
|
|
107
|
+
} catch (error) {
|
|
108
|
+
console.error(error);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Run the test
|
|
113
|
+
example().catch(console.error);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Parameters
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
| Name | Type | Description | Notes |
|
|
120
|
+
|------------- | ------------- | ------------- | -------------|
|
|
121
|
+
| **transaction** | `number` | The id of the transaction | [Defaults to `undefined`] |
|
|
122
|
+
| **refundTransactionRequest** | [RefundTransactionRequest](RefundTransactionRequest.md) | | [Optional] |
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
[**TransactionResource**](TransactionResource.md)
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
No authorization required
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: `application/json`
|
|
135
|
+
- **Accept**: `application/json`
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### HTTP response details
|
|
139
|
+
| Status code | Description | Response headers |
|
|
140
|
+
|-------------|-------------|------------------|
|
|
141
|
+
| **200** | Successful resource response | - |
|
|
142
|
+
|
|
143
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## storeTransaction
|
|
147
|
+
|
|
148
|
+
> GenericResponse storeTransaction(storeTransactionRequest)
|
|
149
|
+
|
|
150
|
+
Auto-generated: storeTransaction
|
|
151
|
+
|
|
152
|
+
### Example
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import {
|
|
156
|
+
Configuration,
|
|
157
|
+
TransactionsApi,
|
|
158
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
159
|
+
import type { StoreTransactionOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
160
|
+
|
|
161
|
+
async function example() {
|
|
162
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
163
|
+
const api = new TransactionsApi();
|
|
164
|
+
|
|
165
|
+
const body = {
|
|
166
|
+
// StoreTransactionRequest (optional)
|
|
167
|
+
storeTransactionRequest: ...,
|
|
168
|
+
} satisfies StoreTransactionOperationRequest;
|
|
169
|
+
|
|
170
|
+
try {
|
|
171
|
+
const data = await api.storeTransaction(body);
|
|
172
|
+
console.log(data);
|
|
173
|
+
} catch (error) {
|
|
174
|
+
console.error(error);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Run the test
|
|
179
|
+
example().catch(console.error);
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Parameters
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
| Name | Type | Description | Notes |
|
|
186
|
+
|------------- | ------------- | ------------- | -------------|
|
|
187
|
+
| **storeTransactionRequest** | [StoreTransactionRequest](StoreTransactionRequest.md) | | [Optional] |
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
[**GenericResponse**](GenericResponse.md)
|
|
192
|
+
|
|
193
|
+
### Authorization
|
|
194
|
+
|
|
195
|
+
No authorization required
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: `application/json`
|
|
200
|
+
- **Accept**: `application/json`
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### HTTP response details
|
|
204
|
+
| Status code | Description | Response headers |
|
|
205
|
+
|-------------|-------------|------------------|
|
|
206
|
+
| **200** | \\JsonResponse<array{transaction: \\TransactionResource|null, order_id: int|null}> | - |
|
|
207
|
+
|
|
208
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
209
|
+
|
|
@@ -9,8 +9,6 @@ Name | Type
|
|
|
9
9
|
`altText` | string
|
|
10
10
|
`mimeType` | string
|
|
11
11
|
`fileId` | number
|
|
12
|
-
`isExternal` | boolean
|
|
13
|
-
`externalUrl` | string
|
|
14
12
|
`isLifestyleImage` | boolean
|
|
15
13
|
`index` | number
|
|
16
14
|
`overlayTemplateIds` | Array<number>
|
|
@@ -25,8 +23,6 @@ const example = {
|
|
|
25
23
|
"altText": null,
|
|
26
24
|
"mimeType": null,
|
|
27
25
|
"fileId": null,
|
|
28
|
-
"isExternal": null,
|
|
29
|
-
"externalUrl": null,
|
|
30
26
|
"isLifestyleImage": null,
|
|
31
27
|
"index": null,
|
|
32
28
|
"overlayTemplateIds": null,
|