@ikas/storefront-api 4.0.0-alpha.10
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/package.json +42 -0
- package/src/__api/models/AbandonedCartFlow.ts +34 -0
- package/src/__api/models/AbandonedCartFlowCustomerFilter.ts +25 -0
- package/src/__api/models/AddItemToCartInput.ts +29 -0
- package/src/__api/models/AdditionalPrice.ts +24 -0
- package/src/__api/models/ApplicableProductFilterValue.ts +23 -0
- package/src/__api/models/AppliedProduct.ts +15 -0
- package/src/__api/models/AppliedProductInput.ts +15 -0
- package/src/__api/models/AvailableShippingMethod.ts +24 -0
- package/src/__api/models/Blog.ts +55 -0
- package/src/__api/models/BlogCategory.ts +23 -0
- package/src/__api/models/BlogCategoryPaginationResponse.ts +24 -0
- package/src/__api/models/BlogContent.ts +20 -0
- package/src/__api/models/BlogMetadata.ts +32 -0
- package/src/__api/models/BlogMetadataPaginationResponse.ts +24 -0
- package/src/__api/models/BlogMetadataTargetTypeEnumFilter.ts +22 -0
- package/src/__api/models/BlogPaginationResponse.ts +23 -0
- package/src/__api/models/BlogTag.ts +16 -0
- package/src/__api/models/BlogWriter.ts +15 -0
- package/src/__api/models/BooleanFilterInput.ts +13 -0
- package/src/__api/models/BuyX.ts +20 -0
- package/src/__api/models/BuyXThenGetY.ts +22 -0
- package/src/__api/models/Campaign.ts +75 -0
- package/src/__api/models/CampaignDateRangeField.ts +16 -0
- package/src/__api/models/CampaignFilter.ts +16 -0
- package/src/__api/models/CampaignMinMaxRangeField.ts +16 -0
- package/src/__api/models/CampaignOffer.ts +50 -0
- package/src/__api/models/CampaignOfferProduct.ts +49 -0
- package/src/__api/models/CampaignOfferProductTranslation.ts +19 -0
- package/src/__api/models/CampaignOfferTriggerSettings.ts +19 -0
- package/src/__api/models/Cart.ts +61 -0
- package/src/__api/models/CartCampaignOffer.ts +31 -0
- package/src/__api/models/CartLineItemInput.ts +20 -0
- package/src/__api/models/CartLineOptionInput.ts +17 -0
- package/src/__api/models/CartLineVariantInput.ts +15 -0
- package/src/__api/models/CartStorefrontRouting.ts +28 -0
- package/src/__api/models/CartStorefrontRoutingDynamicCurrencySettings.ts +19 -0
- package/src/__api/models/CartV2.ts +159 -0
- package/src/__api/models/CartV2CampaignOffer.ts +36 -0
- package/src/__api/models/Category.ts +58 -0
- package/src/__api/models/CategoryCondition.ts +17 -0
- package/src/__api/models/CategoryFilterInput.ts +15 -0
- package/src/__api/models/CategoryPaginationResponse.ts +24 -0
- package/src/__api/models/CategoryPathFilterInput.ts +14 -0
- package/src/__api/models/CategoryPathItem.ts +33 -0
- package/src/__api/models/CategoryTranslation.ts +17 -0
- package/src/__api/models/CheckStocksLineInput.ts +17 -0
- package/src/__api/models/CheckStocksLineResponse.ts +18 -0
- package/src/__api/models/CheckStocksResponse.ts +16 -0
- package/src/__api/models/Checkout.ts +102 -0
- package/src/__api/models/CheckoutCustomer.ts +39 -0
- package/src/__api/models/CheckoutCustomerInput.ts +25 -0
- package/src/__api/models/CheckoutOption.ts +15 -0
- package/src/__api/models/CheckoutSettings.ts +62 -0
- package/src/__api/models/CheckoutSettingsPrice.ts +15 -0
- package/src/__api/models/City.ts +29 -0
- package/src/__api/models/Country.ts +41 -0
- package/src/__api/models/CreateCustomerEmailSubscriptionInput.ts +22 -0
- package/src/__api/models/CreateCustomerReviewInput.ts +38 -0
- package/src/__api/models/CreateSaleTransactionMasterPassPaymentMethodDetail.ts +19 -0
- package/src/__api/models/CreateSaleTransactionWithCartInput.ts +29 -0
- package/src/__api/models/CreateSaleTransactionWithCheckoutInput.ts +29 -0
- package/src/__api/models/CreateStripePaymentIntentResponse.ts +21 -0
- package/src/__api/models/CurrencyRate.ts +23 -0
- package/src/__api/models/CurrencyRateData.ts +15 -0
- package/src/__api/models/Customer.ts +81 -0
- package/src/__api/models/CustomerAddress.ts +64 -0
- package/src/__api/models/CustomerAddressCity.ts +17 -0
- package/src/__api/models/CustomerAddressCityInput.ts +18 -0
- package/src/__api/models/CustomerAddressCountry.ts +22 -0
- package/src/__api/models/CustomerAddressCountryInput.ts +23 -0
- package/src/__api/models/CustomerAddressDistrict.ts +18 -0
- package/src/__api/models/CustomerAddressDistrictInput.ts +19 -0
- package/src/__api/models/CustomerAddressState.ts +17 -0
- package/src/__api/models/CustomerAddressStateInput.ts +19 -0
- package/src/__api/models/CustomerAttribute.ts +36 -0
- package/src/__api/models/CustomerAttributeOption.ts +17 -0
- package/src/__api/models/CustomerAttributeOptionTranslation.ts +17 -0
- package/src/__api/models/CustomerAttributeSalesChannel.ts +28 -0
- package/src/__api/models/CustomerAttributeTranslation.ts +24 -0
- package/src/__api/models/CustomerAttributeValue.ts +18 -0
- package/src/__api/models/CustomerAttributeValueInput.ts +19 -0
- package/src/__api/models/CustomerCheckResponse.ts +13 -0
- package/src/__api/models/CustomerFavoriteProduct.ts +19 -0
- package/src/__api/models/CustomerLoginResponse.ts +18 -0
- package/src/__api/models/CustomerRefreshTokenResponse.ts +17 -0
- package/src/__api/models/CustomerReview.ts +43 -0
- package/src/__api/models/CustomerReviewSFPaginationResponse.ts +26 -0
- package/src/__api/models/CustomerReviewSummary.ts +25 -0
- package/src/__api/models/CustomerReviewSummaryPaginationResponse.ts +26 -0
- package/src/__api/models/CustomerReviewSummaryStar.ts +17 -0
- package/src/__api/models/DateFilterInput.ts +27 -0
- package/src/__api/models/District.ts +29 -0
- package/src/__api/models/FixedDiscount.ts +28 -0
- package/src/__api/models/GetAvailableStockLocation.ts +25 -0
- package/src/__api/models/GetAvailableStockLocationAddress.ts +36 -0
- package/src/__api/models/GetAvailableStockLocationAddressCity.ts +19 -0
- package/src/__api/models/GetAvailableStockLocationsResponse.ts +18 -0
- package/src/__api/models/GetOrderLineFile.ts +13 -0
- package/src/__api/models/GetProductCampaignsInput.ts +18 -0
- package/src/__api/models/GetProductCampaignsResponse.ts +20 -0
- package/src/__api/models/GetProductOptionFileUrl.ts +18 -0
- package/src/__api/models/GetVariantStockLocation.ts +21 -0
- package/src/__api/models/GetVariantStockLocationListResponse.ts +18 -0
- package/src/__api/models/GetY.ts +26 -0
- package/src/__api/models/HTMLMetaData.ts +44 -0
- package/src/__api/models/HTMLMetaDataOverride.ts +21 -0
- package/src/__api/models/HTMLMetaDataTargetTypeEnumFilter.ts +22 -0
- package/src/__api/models/HTMLMetaDataTranslation.ts +18 -0
- package/src/__api/models/Invoice.ts +26 -0
- package/src/__api/models/ListCustomerReviewInput.ts +14 -0
- package/src/__api/models/LocationTranslations.ts +15 -0
- package/src/__api/models/MasterPassTokenResponse.ts +18 -0
- package/src/__api/models/MerchantAddress.ts +48 -0
- package/src/__api/models/MerchantAddressCity.ts +17 -0
- package/src/__api/models/MerchantAddressCountry.ts +18 -0
- package/src/__api/models/MerchantAddressDistrict.ts +18 -0
- package/src/__api/models/MerchantAddressState.ts +17 -0
- package/src/__api/models/MerchantSettings.ts +32 -0
- package/src/__api/models/MerchantSettingsCurrencyFormat.ts +27 -0
- package/src/__api/models/OrderAddress.ts +53 -0
- package/src/__api/models/OrderAddressCity.ts +17 -0
- package/src/__api/models/OrderAddressCityInput.ts +17 -0
- package/src/__api/models/OrderAddressCountry.ts +21 -0
- package/src/__api/models/OrderAddressCountryInput.ts +22 -0
- package/src/__api/models/OrderAddressDistrict.ts +17 -0
- package/src/__api/models/OrderAddressDistrictInput.ts +19 -0
- package/src/__api/models/OrderAddressInput.ts +53 -0
- package/src/__api/models/OrderAddressState.ts +17 -0
- package/src/__api/models/OrderAddressStateInput.ts +18 -0
- package/src/__api/models/OrderAdjustment.ts +35 -0
- package/src/__api/models/OrderAdjustmentAppliedOrderLine.ts +24 -0
- package/src/__api/models/OrderAdjustmentInput.ts +26 -0
- package/src/__api/models/OrderCurrencyRate.ts +17 -0
- package/src/__api/models/OrderCustomer.ts +34 -0
- package/src/__api/models/OrderGiftPackageLine.ts +18 -0
- package/src/__api/models/OrderLineDiscount.ts +28 -0
- package/src/__api/models/OrderLineItem.ts +59 -0
- package/src/__api/models/OrderLineOption.ts +25 -0
- package/src/__api/models/OrderLineOptionValue.ts +18 -0
- package/src/__api/models/OrderLineVariant.ts +56 -0
- package/src/__api/models/OrderLineVariantBrand.ts +15 -0
- package/src/__api/models/OrderLineVariantCategory.ts +21 -0
- package/src/__api/models/OrderLineVariantCategoryPath.ts +17 -0
- package/src/__api/models/OrderLineVariantPrice.ts +27 -0
- package/src/__api/models/OrderLineVariantVariantValues.ts +23 -0
- package/src/__api/models/OrderPackage.ts +33 -0
- package/src/__api/models/OrderPaymentMethod.ts +22 -0
- package/src/__api/models/OrderRefundOrderLineInput.ts +17 -0
- package/src/__api/models/OrderRefundRequestInput.ts +21 -0
- package/src/__api/models/OrderRefundSettings.ts +28 -0
- package/src/__api/models/OrderShippingLine.ts +34 -0
- package/src/__api/models/OrderStorefrontRouting.ts +29 -0
- package/src/__api/models/OrderStorefrontRoutingDynamicCurrencySettings.ts +19 -0
- package/src/__api/models/OrderTaxLine.ts +15 -0
- package/src/__api/models/PaginationInput.ts +17 -0
- package/src/__api/models/PaymentGateway.ts +61 -0
- package/src/__api/models/PaymentGatewayPaymentMethod.ts +17 -0
- package/src/__api/models/PaymentGatewaySettings.ts +21 -0
- package/src/__api/models/PaymentGatewayTranslation.ts +19 -0
- package/src/__api/models/PaymentMethodDetailInput.ts +26 -0
- package/src/__api/models/Product.ts +69 -0
- package/src/__api/models/ProductAttribute.ts +36 -0
- package/src/__api/models/ProductAttributeOption.ts +17 -0
- package/src/__api/models/ProductAttributeOptionTranslation.ts +17 -0
- package/src/__api/models/ProductAttributeTableCellData.ts +17 -0
- package/src/__api/models/ProductAttributeTableTemplate.ts +22 -0
- package/src/__api/models/ProductAttributeTranslation.ts +24 -0
- package/src/__api/models/ProductAttributeValue.ts +19 -0
- package/src/__api/models/ProductBackInStockRemind.ts +25 -0
- package/src/__api/models/ProductBackInStockRemindInput.ts +19 -0
- package/src/__api/models/ProductBrand.ts +33 -0
- package/src/__api/models/ProductBrandPaginationResponse.ts +24 -0
- package/src/__api/models/ProductBrandTranslation.ts +18 -0
- package/src/__api/models/ProductFacetCount.ts +18 -0
- package/src/__api/models/ProductFacetCountValue.ts +16 -0
- package/src/__api/models/ProductFilterData.ts +21 -0
- package/src/__api/models/ProductFilterDataFilter.ts +49 -0
- package/src/__api/models/ProductFilterSettings.ts +25 -0
- package/src/__api/models/ProductImage.ts +20 -0
- package/src/__api/models/ProductItem.ts +18 -0
- package/src/__api/models/ProductItemInput.ts +18 -0
- package/src/__api/models/ProductLastViewed.ts +21 -0
- package/src/__api/models/ProductLastViewedInput.ts +22 -0
- package/src/__api/models/ProductOption.ts +62 -0
- package/src/__api/models/ProductOptionDateSettings.ts +29 -0
- package/src/__api/models/ProductOptionFileSettings.ts +25 -0
- package/src/__api/models/ProductOptionSelectSettings.ts +31 -0
- package/src/__api/models/ProductOptionSelectValue.ts +33 -0
- package/src/__api/models/ProductOptionSelectValueOtherPrice.ts +17 -0
- package/src/__api/models/ProductOptionSelectValueTranslations.ts +17 -0
- package/src/__api/models/ProductOptionSet.ts +26 -0
- package/src/__api/models/ProductOptionSetTranslations.ts +20 -0
- package/src/__api/models/ProductOptionTextSettings.ts +17 -0
- package/src/__api/models/ProductOptionTranslations.ts +24 -0
- package/src/__api/models/ProductPaginationResponse.ts +24 -0
- package/src/__api/models/ProductPrice.ts +27 -0
- package/src/__api/models/ProductSearchResponse.ts +31 -0
- package/src/__api/models/ProductStockLocation.ts +22 -0
- package/src/__api/models/ProductTagTranslation.ts +17 -0
- package/src/__api/models/ProductTranslation.ts +17 -0
- package/src/__api/models/ProductVariantType.ts +17 -0
- package/src/__api/models/Raffle.ts +49 -0
- package/src/__api/models/RaffleDateRangeField.ts +15 -0
- package/src/__api/models/RaffleMetadata.ts +32 -0
- package/src/__api/models/RaffleMetadataTargetTypeEnumFilter.ts +22 -0
- package/src/__api/models/RafflePaginationResponse.ts +23 -0
- package/src/__api/models/RaffleParticipants.ts +52 -0
- package/src/__api/models/RaffleParticipantsInput.ts +32 -0
- package/src/__api/models/RaffleParticipantsUpdateInput.ts +24 -0
- package/src/__api/models/RaffleVariantInformation.ts +16 -0
- package/src/__api/models/RetrieveInstallmentInfoInput.ts +19 -0
- package/src/__api/models/RetrieveInstallmentInfoResponse.ts +36 -0
- package/src/__api/models/SaveCartInput.ts +50 -0
- package/src/__api/models/SaveCheckoutInput.ts +56 -0
- package/src/__api/models/SaveItemToCartInput.ts +35 -0
- package/src/__api/models/SaveMyCustomerAddressInput.ts +63 -0
- package/src/__api/models/SaveMyCustomerInput.ts +30 -0
- package/src/__api/models/SearchCategory.ts +27 -0
- package/src/__api/models/SearchCategoryPath.ts +22 -0
- package/src/__api/models/SearchDynamicCurrencySettings.ts +17 -0
- package/src/__api/models/SearchHTMLMetaData.ts +36 -0
- package/src/__api/models/SearchHTMLMetaDataOverride.ts +23 -0
- package/src/__api/models/SearchInput.ts +64 -0
- package/src/__api/models/SearchInputFacetListInput.ts +20 -0
- package/src/__api/models/SearchInputFilterListInput.ts +27 -0
- package/src/__api/models/SearchInputOrderByInput.ts +17 -0
- package/src/__api/models/SearchProduct.ts +72 -0
- package/src/__api/models/SearchProductAttribute.ts +28 -0
- package/src/__api/models/SearchProductAttributeOption.ts +17 -0
- package/src/__api/models/SearchProductAttributeTableCellData.ts +17 -0
- package/src/__api/models/SearchProductAttributeTableTemplate.ts +22 -0
- package/src/__api/models/SearchProductAttributeValue.ts +27 -0
- package/src/__api/models/SearchProductBrand.ts +22 -0
- package/src/__api/models/SearchProductImage.ts +21 -0
- package/src/__api/models/SearchProductPrice.ts +27 -0
- package/src/__api/models/SearchProductStockLocation.ts +17 -0
- package/src/__api/models/SearchProductTag.ts +20 -0
- package/src/__api/models/SearchProductVariantType.ts +21 -0
- package/src/__api/models/SearchVariant.ts +58 -0
- package/src/__api/models/SearchVariantType.ts +27 -0
- package/src/__api/models/SearchVariantValue.ts +19 -0
- package/src/__api/models/SearchVariationValueRelation.ts +17 -0
- package/src/__api/models/SocialLoginSettings.ts +18 -0
- package/src/__api/models/State.ts +20 -0
- package/src/__api/models/StockLocation.ts +36 -0
- package/src/__api/models/StockLocationAddress.ts +35 -0
- package/src/__api/models/StockLocationAddressCity.ts +18 -0
- package/src/__api/models/StockLocationAddressCountry.ts +19 -0
- package/src/__api/models/StockLocationAddressDistrict.ts +19 -0
- package/src/__api/models/StockLocationAddressState.ts +19 -0
- package/src/__api/models/Storefront.ts +66 -0
- package/src/__api/models/StorefrontDomain.ts +25 -0
- package/src/__api/models/StorefrontDynamicCurrencySettings.ts +17 -0
- package/src/__api/models/StorefrontLocalization.ts +21 -0
- package/src/__api/models/StorefrontOrder.ts +116 -0
- package/src/__api/models/StorefrontRouting.ts +29 -0
- package/src/__api/models/StorefrontTheme.ts +25 -0
- package/src/__api/models/StorefrontTransaction.ts +53 -0
- package/src/__api/models/StringFilterInput.ts +21 -0
- package/src/__api/models/Town.ts +21 -0
- package/src/__api/models/TrackingInfo.ts +24 -0
- package/src/__api/models/TransactionError.ts +17 -0
- package/src/__api/models/TransactionInstallmentPrice.ts +36 -0
- package/src/__api/models/TransactionPaymentMethodDetail.ts +39 -0
- package/src/__api/models/TransactionResponse.ts +26 -0
- package/src/__api/models/UpdateCartCampaignOfferInput.ts +25 -0
- package/src/__api/models/Variant.ts +58 -0
- package/src/__api/models/VariantStock.ts +15 -0
- package/src/__api/models/VariantType.ts +29 -0
- package/src/__api/models/VariantTypeTranslation.ts +21 -0
- package/src/__api/models/VariantValue.ts +20 -0
- package/src/__api/models/VariantValueRelation.ts +15 -0
- package/src/__api/models/VariantValueTranslation.ts +16 -0
- package/src/__api/models/_base.ts +26 -0
- package/src/__api/mutations/activateCustomer.ts +38 -0
- package/src/__api/mutations/addCouponCodeToCheckout.ts +259 -0
- package/src/__api/mutations/addItemToCart.ts +284 -0
- package/src/__api/mutations/createCustomerEmailSubscription.ts +111 -0
- package/src/__api/mutations/createCustomerReview.ts +66 -0
- package/src/__api/mutations/createOrderRefundRequest.ts +240 -0
- package/src/__api/mutations/createSaleTransactionWithCart.ts +62 -0
- package/src/__api/mutations/createSaleTransactionWithCheckout.ts +62 -0
- package/src/__api/mutations/createStripePaymentIntent.ts +57 -0
- package/src/__api/mutations/customerForgotPassword.ts +41 -0
- package/src/__api/mutations/customerLogin.ts +113 -0
- package/src/__api/mutations/customerRecoverPassword.ts +44 -0
- package/src/__api/mutations/customerRefreshToken.ts +52 -0
- package/src/__api/mutations/deleteRaffleParticipantsList.ts +38 -0
- package/src/__api/mutations/getOrderLineFile.ts +39 -0
- package/src/__api/mutations/registerCustomer.ts +131 -0
- package/src/__api/mutations/retrieveInstallmentInfo.ts +65 -0
- package/src/__api/mutations/saveCart.ts +284 -0
- package/src/__api/mutations/saveCartCouponCode.ts +287 -0
- package/src/__api/mutations/saveCheckout.ts +256 -0
- package/src/__api/mutations/saveFavoriteProduct.ts +41 -0
- package/src/__api/mutations/saveItemToCart.ts +136 -0
- package/src/__api/mutations/saveLastViewedProducts.ts +62 -0
- package/src/__api/mutations/saveMyCustomer.ts +108 -0
- package/src/__api/mutations/saveProductBackInStockRemind.ts +63 -0
- package/src/__api/mutations/saveRaffleParticipant.ts +69 -0
- package/src/__api/mutations/sendContactFormToMerchant.ts +53 -0
- package/src/__api/mutations/updateCartCampaignOffer.ts +284 -0
- package/src/__api/mutations/updateRaffleParticipant.ts +72 -0
- package/src/__api/queries/checkCustomerEmail.ts +54 -0
- package/src/__api/queries/checkStocks.ts +53 -0
- package/src/__api/queries/customerSocialLogin.ts +113 -0
- package/src/__api/queries/getAvailableShippingCountries.ts +41 -0
- package/src/__api/queries/getAvailableStockLocations.ts +75 -0
- package/src/__api/queries/getCart.ts +142 -0
- package/src/__api/queries/getCartById.ts +287 -0
- package/src/__api/queries/getCheckoutByCartId.ts +256 -0
- package/src/__api/queries/getCheckoutById.ts +256 -0
- package/src/__api/queries/getCurrencyRate.ts +56 -0
- package/src/__api/queries/getCustomerOrders.ts +237 -0
- package/src/__api/queries/getLastViewedProducts.ts +62 -0
- package/src/__api/queries/getMasterPassRequestToken.ts +62 -0
- package/src/__api/queries/getMyCountry.ts +26 -0
- package/src/__api/queries/getMyCustomer.ts +95 -0
- package/src/__api/queries/getOrder.ts +237 -0
- package/src/__api/queries/getOrderByEmail.ts +240 -0
- package/src/__api/queries/getProductCampaigns.ts +92 -0
- package/src/__api/queries/getProductFilterData.ts +211 -0
- package/src/__api/queries/getProductOptionFileUrl.ts +59 -0
- package/src/__api/queries/getRaffleParticipants.ts +59 -0
- package/src/__api/queries/getRafflesByCustomerId.ts +74 -0
- package/src/__api/queries/getRelatedProducts.ts +60 -0
- package/src/__api/queries/getStorefront.ts +103 -0
- package/src/__api/queries/getStorefrontSettings.ts +26 -0
- package/src/__api/queries/getVariantStockLocations.ts +74 -0
- package/src/__api/queries/isFavoriteProduct.ts +38 -0
- package/src/__api/queries/listBlog.ts +136 -0
- package/src/__api/queries/listBlogCategory.ts +92 -0
- package/src/__api/queries/listBlogMetadata.ts +90 -0
- package/src/__api/queries/listCampaignOffer.ts +76 -0
- package/src/__api/queries/listCategory.ts +151 -0
- package/src/__api/queries/listCheckoutSettings.ts +75 -0
- package/src/__api/queries/listCity.ts +74 -0
- package/src/__api/queries/listCountry.ts +80 -0
- package/src/__api/queries/listCustomerAttribute.ts +62 -0
- package/src/__api/queries/listCustomerReviewSummary.ts +71 -0
- package/src/__api/queries/listCustomerReviews.ts +90 -0
- package/src/__api/queries/listDistrict.ts +77 -0
- package/src/__api/queries/listFavoriteProducts.ts +44 -0
- package/src/__api/queries/listHTMLMetaData.ts +88 -0
- package/src/__api/queries/listMerchantSettings.ts +90 -0
- package/src/__api/queries/listOrderRefundSettings.ts +73 -0
- package/src/__api/queries/listOrderTransactions.ts +89 -0
- package/src/__api/queries/listPaymentGateway.ts +85 -0
- package/src/__api/queries/listProduct.ts +156 -0
- package/src/__api/queries/listProductAttribute.ts +81 -0
- package/src/__api/queries/listProductBackInStockRemind.ts +79 -0
- package/src/__api/queries/listProductBrand.ts +110 -0
- package/src/__api/queries/listProductOptionSet.ts +105 -0
- package/src/__api/queries/listProductStockLocation.ts +62 -0
- package/src/__api/queries/listRaffle.ts +108 -0
- package/src/__api/queries/listRaffleMetadata.ts +83 -0
- package/src/__api/queries/listState.ts +67 -0
- package/src/__api/queries/listStockLocation.ts +76 -0
- package/src/__api/queries/listTown.ts +67 -0
- package/src/__api/queries/listVariantType.ts +74 -0
- package/src/__api/queries/searchProducts.ts +171 -0
- package/src/__api/types/index.ts +3047 -0
- package/src/api/blog/index.ts +70 -0
- package/src/api/brand/index.ts +27 -0
- package/src/api/cart/index.ts +113 -0
- package/src/api/category/index.ts +25 -0
- package/src/api/checkout/index.ts +121 -0
- package/src/api/customer/index.ts +380 -0
- package/src/api/file-upload/index.ts +38 -0
- package/src/api/html-meta-data/index.ts +25 -0
- package/src/api/location/index.ts +64 -0
- package/src/api/masterpass/index.ts +12 -0
- package/src/api/merchant/index.ts +24 -0
- package/src/api/product/index.ts +354 -0
- package/src/api/raffle/index.ts +80 -0
- package/src/api/storefront/index.ts +30 -0
- package/src/index.ts +68 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class MerchantAddressCountryData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<MerchantAddressCountryData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class MerchantAddressCountry extends MerchantAddressCountryData {}
|
|
16
|
+
export type PartialMerchantAddressCountry = Partial<MerchantAddressCountry>;
|
|
17
|
+
export type ReadOnlyMerchantAddressCountry =
|
|
18
|
+
DeepReadonly<MerchantAddressCountry>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class MerchantAddressDistrictData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<MerchantAddressDistrictData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class MerchantAddressDistrict extends MerchantAddressDistrictData {}
|
|
16
|
+
export type PartialMerchantAddressDistrict = Partial<MerchantAddressDistrict>;
|
|
17
|
+
export type ReadOnlyMerchantAddressDistrict =
|
|
18
|
+
DeepReadonly<MerchantAddressDistrict>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class MerchantAddressStateData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<MerchantAddressStateData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class MerchantAddressState extends MerchantAddressStateData {}
|
|
16
|
+
export type PartialMerchantAddressState = Partial<MerchantAddressState>;
|
|
17
|
+
export type ReadOnlyMerchantAddressState = DeepReadonly<MerchantAddressState>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { MerchantAddressData } from "./MerchantAddress";
|
|
4
|
+
import { MerchantSettingsCurrencyFormatData } from "./MerchantSettingsCurrencyFormat";
|
|
5
|
+
|
|
6
|
+
export class MerchantSettingsData extends BaseModelData {
|
|
7
|
+
address: MerchantAddressData | null;
|
|
8
|
+
currencyFormats: MerchantSettingsCurrencyFormatData[] | null;
|
|
9
|
+
logoId: string | null;
|
|
10
|
+
merchantId: string;
|
|
11
|
+
merchantName: string;
|
|
12
|
+
phone: string | null;
|
|
13
|
+
|
|
14
|
+
constructor(data: Partial<MerchantSettingsData> = {}) {
|
|
15
|
+
super(data);
|
|
16
|
+
|
|
17
|
+
this.address = data.address ? new MerchantAddressData(data.address) : null;
|
|
18
|
+
this.currencyFormats = data.currencyFormats
|
|
19
|
+
? data.currencyFormats.map(
|
|
20
|
+
(m) => new MerchantSettingsCurrencyFormatData(m)
|
|
21
|
+
)
|
|
22
|
+
: null;
|
|
23
|
+
this.logoId = data.logoId || null;
|
|
24
|
+
this.merchantId = data.merchantId || "";
|
|
25
|
+
this.merchantName = data.merchantName || "";
|
|
26
|
+
this.phone = data.phone || null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class MerchantSettings extends MerchantSettingsData {}
|
|
31
|
+
export type PartialMerchantSettings = Partial<MerchantSettings>;
|
|
32
|
+
export type ReadOnlyMerchantSettings = DeepReadonly<MerchantSettings>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CurrencyFormatSymbolPosition } from "../types";
|
|
3
|
+
|
|
4
|
+
export class MerchantSettingsCurrencyFormatData {
|
|
5
|
+
currencyCode: string;
|
|
6
|
+
decimalSeparator: string;
|
|
7
|
+
omitZeroDecimal: boolean;
|
|
8
|
+
symbol: string;
|
|
9
|
+
symbolPosition: CurrencyFormatSymbolPosition;
|
|
10
|
+
thousandSeparator: string;
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<MerchantSettingsCurrencyFormatData> = {}) {
|
|
13
|
+
this.currencyCode = data.currencyCode || "";
|
|
14
|
+
this.decimalSeparator = data.decimalSeparator || "";
|
|
15
|
+
this.omitZeroDecimal = data.omitZeroDecimal || false;
|
|
16
|
+
this.symbol = data.symbol || "";
|
|
17
|
+
this.symbolPosition =
|
|
18
|
+
data.symbolPosition || CurrencyFormatSymbolPosition.LEFT;
|
|
19
|
+
this.thousandSeparator = data.thousandSeparator || "";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class MerchantSettingsCurrencyFormat extends MerchantSettingsCurrencyFormatData {}
|
|
24
|
+
export type PartialMerchantSettingsCurrencyFormat =
|
|
25
|
+
Partial<MerchantSettingsCurrencyFormat>;
|
|
26
|
+
export type ReadOnlyMerchantSettingsCurrencyFormat =
|
|
27
|
+
DeepReadonly<MerchantSettingsCurrencyFormat>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { OrderAddressCityData } from "./OrderAddressCity";
|
|
3
|
+
import { OrderAddressCountryData } from "./OrderAddressCountry";
|
|
4
|
+
import { OrderAddressDistrictData } from "./OrderAddressDistrict";
|
|
5
|
+
import { OrderAddressStateData } from "./OrderAddressState";
|
|
6
|
+
|
|
7
|
+
export class OrderAddressData {
|
|
8
|
+
addressLine1: string;
|
|
9
|
+
addressLine2: string | null;
|
|
10
|
+
city: OrderAddressCityData;
|
|
11
|
+
company: string | null;
|
|
12
|
+
country: OrderAddressCountryData;
|
|
13
|
+
district: OrderAddressDistrictData | null;
|
|
14
|
+
firstName: string;
|
|
15
|
+
id: string | null;
|
|
16
|
+
identityNumber: string | null;
|
|
17
|
+
isDefault: boolean;
|
|
18
|
+
lastName: string;
|
|
19
|
+
phone: string | null;
|
|
20
|
+
postalCode: string | null;
|
|
21
|
+
state: OrderAddressStateData | null;
|
|
22
|
+
taxNumber: string | null;
|
|
23
|
+
taxOffice: string | null;
|
|
24
|
+
|
|
25
|
+
constructor(data: Partial<OrderAddressData> = {}) {
|
|
26
|
+
this.addressLine1 = data.addressLine1 || "";
|
|
27
|
+
this.addressLine2 = data.addressLine2 || null;
|
|
28
|
+
this.city = data.city
|
|
29
|
+
? new OrderAddressCityData(data.city)
|
|
30
|
+
: new OrderAddressCityData();
|
|
31
|
+
this.company = data.company || null;
|
|
32
|
+
this.country = data.country
|
|
33
|
+
? new OrderAddressCountryData(data.country)
|
|
34
|
+
: new OrderAddressCountryData();
|
|
35
|
+
this.district = data.district
|
|
36
|
+
? new OrderAddressDistrictData(data.district)
|
|
37
|
+
: null;
|
|
38
|
+
this.firstName = data.firstName || "";
|
|
39
|
+
this.id = data.id || null;
|
|
40
|
+
this.identityNumber = data.identityNumber || null;
|
|
41
|
+
this.isDefault = data.isDefault || false;
|
|
42
|
+
this.lastName = data.lastName || "";
|
|
43
|
+
this.phone = data.phone || null;
|
|
44
|
+
this.postalCode = data.postalCode || null;
|
|
45
|
+
this.state = data.state ? new OrderAddressStateData(data.state) : null;
|
|
46
|
+
this.taxNumber = data.taxNumber || null;
|
|
47
|
+
this.taxOffice = data.taxOffice || null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class OrderAddress extends OrderAddressData {}
|
|
52
|
+
export type PartialOrderAddress = Partial<OrderAddress>;
|
|
53
|
+
export type ReadOnlyOrderAddress = DeepReadonly<OrderAddress>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressCityData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderAddressCityData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderAddressCity extends OrderAddressCityData {}
|
|
16
|
+
export type PartialOrderAddressCity = Partial<OrderAddressCity>;
|
|
17
|
+
export type ReadOnlyOrderAddressCity = DeepReadonly<OrderAddressCity>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressCityInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderAddressCityInputData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderAddressCityInput extends OrderAddressCityInputData {}
|
|
16
|
+
export type PartialOrderAddressCityInput = Partial<OrderAddressCityInput>;
|
|
17
|
+
export type ReadOnlyOrderAddressCityInput = DeepReadonly<OrderAddressCityInput>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressCountryData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
iso2: string | null;
|
|
7
|
+
iso3: string | null;
|
|
8
|
+
name: string;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<OrderAddressCountryData> = {}) {
|
|
11
|
+
this.code = data.code || null;
|
|
12
|
+
this.id = data.id || null;
|
|
13
|
+
this.iso2 = data.iso2 || null;
|
|
14
|
+
this.iso3 = data.iso3 || null;
|
|
15
|
+
this.name = data.name || "";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class OrderAddressCountry extends OrderAddressCountryData {}
|
|
20
|
+
export type PartialOrderAddressCountry = Partial<OrderAddressCountry>;
|
|
21
|
+
export type ReadOnlyOrderAddressCountry = DeepReadonly<OrderAddressCountry>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressCountryInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
iso2: string | null;
|
|
7
|
+
iso3: string | null;
|
|
8
|
+
name: string;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<OrderAddressCountryInputData> = {}) {
|
|
11
|
+
this.code = data.code || null;
|
|
12
|
+
this.id = data.id || null;
|
|
13
|
+
this.iso2 = data.iso2 || null;
|
|
14
|
+
this.iso3 = data.iso3 || null;
|
|
15
|
+
this.name = data.name || "";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class OrderAddressCountryInput extends OrderAddressCountryInputData {}
|
|
20
|
+
export type PartialOrderAddressCountryInput = Partial<OrderAddressCountryInput>;
|
|
21
|
+
export type ReadOnlyOrderAddressCountryInput =
|
|
22
|
+
DeepReadonly<OrderAddressCountryInput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressDistrictData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderAddressDistrictData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderAddressDistrict extends OrderAddressDistrictData {}
|
|
16
|
+
export type PartialOrderAddressDistrict = Partial<OrderAddressDistrict>;
|
|
17
|
+
export type ReadOnlyOrderAddressDistrict = DeepReadonly<OrderAddressDistrict>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressDistrictInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderAddressDistrictInputData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderAddressDistrictInput extends OrderAddressDistrictInputData {}
|
|
16
|
+
export type PartialOrderAddressDistrictInput =
|
|
17
|
+
Partial<OrderAddressDistrictInput>;
|
|
18
|
+
export type ReadOnlyOrderAddressDistrictInput =
|
|
19
|
+
DeepReadonly<OrderAddressDistrictInput>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { OrderAddressCityInputData } from "./OrderAddressCityInput";
|
|
3
|
+
import { OrderAddressCountryInputData } from "./OrderAddressCountryInput";
|
|
4
|
+
import { OrderAddressDistrictInputData } from "./OrderAddressDistrictInput";
|
|
5
|
+
import { OrderAddressStateInputData } from "./OrderAddressStateInput";
|
|
6
|
+
|
|
7
|
+
export class OrderAddressInputData {
|
|
8
|
+
addressLine1: string;
|
|
9
|
+
addressLine2: string | null;
|
|
10
|
+
city: OrderAddressCityInputData;
|
|
11
|
+
company: string | null;
|
|
12
|
+
country: OrderAddressCountryInputData;
|
|
13
|
+
district: OrderAddressDistrictInputData | null;
|
|
14
|
+
firstName: string;
|
|
15
|
+
id: string | null;
|
|
16
|
+
identityNumber: string | null;
|
|
17
|
+
isDefault: boolean;
|
|
18
|
+
lastName: string;
|
|
19
|
+
phone: string | null;
|
|
20
|
+
postalCode: string | null;
|
|
21
|
+
state: OrderAddressStateInputData | null;
|
|
22
|
+
taxNumber: string | null;
|
|
23
|
+
taxOffice: string | null;
|
|
24
|
+
|
|
25
|
+
constructor(data: Partial<OrderAddressInputData> = {}) {
|
|
26
|
+
this.addressLine1 = data.addressLine1 || "";
|
|
27
|
+
this.addressLine2 = data.addressLine2 || null;
|
|
28
|
+
this.city = data.city
|
|
29
|
+
? new OrderAddressCityInputData(data.city)
|
|
30
|
+
: new OrderAddressCityInputData();
|
|
31
|
+
this.company = data.company || null;
|
|
32
|
+
this.country = data.country
|
|
33
|
+
? new OrderAddressCountryInputData(data.country)
|
|
34
|
+
: new OrderAddressCountryInputData();
|
|
35
|
+
this.district = data.district
|
|
36
|
+
? new OrderAddressDistrictInputData(data.district)
|
|
37
|
+
: null;
|
|
38
|
+
this.firstName = data.firstName || "";
|
|
39
|
+
this.id = data.id || null;
|
|
40
|
+
this.identityNumber = data.identityNumber || null;
|
|
41
|
+
this.isDefault = data.isDefault || false;
|
|
42
|
+
this.lastName = data.lastName || "";
|
|
43
|
+
this.phone = data.phone || null;
|
|
44
|
+
this.postalCode = data.postalCode || null;
|
|
45
|
+
this.state = data.state ? new OrderAddressStateInputData(data.state) : null;
|
|
46
|
+
this.taxNumber = data.taxNumber || null;
|
|
47
|
+
this.taxOffice = data.taxOffice || null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class OrderAddressInput extends OrderAddressInputData {}
|
|
52
|
+
export type PartialOrderAddressInput = Partial<OrderAddressInput>;
|
|
53
|
+
export type ReadOnlyOrderAddressInput = DeepReadonly<OrderAddressInput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressStateData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderAddressStateData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderAddressState extends OrderAddressStateData {}
|
|
16
|
+
export type PartialOrderAddressState = Partial<OrderAddressState>;
|
|
17
|
+
export type ReadOnlyOrderAddressState = DeepReadonly<OrderAddressState>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAddressStateInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderAddressStateInputData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderAddressStateInput extends OrderAddressStateInputData {}
|
|
16
|
+
export type PartialOrderAddressStateInput = Partial<OrderAddressStateInput>;
|
|
17
|
+
export type ReadOnlyOrderAddressStateInput =
|
|
18
|
+
DeepReadonly<OrderAddressStateInput>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { AmountTypeEnum, CampaignTypeEnum, AdjustmentEnum } from "../types";
|
|
3
|
+
import { OrderAdjustmentAppliedOrderLineData } from "./OrderAdjustmentAppliedOrderLine";
|
|
4
|
+
|
|
5
|
+
export class OrderAdjustmentData {
|
|
6
|
+
amount: number;
|
|
7
|
+
amountType: AmountTypeEnum;
|
|
8
|
+
appliedOrderLines: OrderAdjustmentAppliedOrderLineData[] | null;
|
|
9
|
+
campaignId: string | null;
|
|
10
|
+
campaignType: CampaignTypeEnum | null;
|
|
11
|
+
couponId: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
order: number;
|
|
14
|
+
type: AdjustmentEnum;
|
|
15
|
+
|
|
16
|
+
constructor(data: Partial<OrderAdjustmentData> = {}) {
|
|
17
|
+
this.amount = data.amount || 0;
|
|
18
|
+
this.amountType = data.amountType || AmountTypeEnum.AMOUNT;
|
|
19
|
+
this.appliedOrderLines = data.appliedOrderLines
|
|
20
|
+
? data.appliedOrderLines.map(
|
|
21
|
+
(o) => new OrderAdjustmentAppliedOrderLineData(o)
|
|
22
|
+
)
|
|
23
|
+
: null;
|
|
24
|
+
this.campaignId = data.campaignId || null;
|
|
25
|
+
this.campaignType = data.campaignType || null;
|
|
26
|
+
this.couponId = data.couponId || null;
|
|
27
|
+
this.name = data.name || "";
|
|
28
|
+
this.order = data.order || 0;
|
|
29
|
+
this.type = data.type || AdjustmentEnum.DECREMENT;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class OrderAdjustment extends OrderAdjustmentData {}
|
|
34
|
+
export type PartialOrderAdjustment = Partial<OrderAdjustment>;
|
|
35
|
+
export type ReadOnlyOrderAdjustment = DeepReadonly<OrderAdjustment>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderAdjustmentAppliedOrderLineData {
|
|
4
|
+
amount: number;
|
|
5
|
+
appliedQuantity: number;
|
|
6
|
+
isAutoCreated: boolean | null;
|
|
7
|
+
orderLineId: string;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<OrderAdjustmentAppliedOrderLineData> = {}) {
|
|
10
|
+
this.amount = data.amount || 0;
|
|
11
|
+
this.appliedQuantity = data.appliedQuantity || 0;
|
|
12
|
+
this.isAutoCreated =
|
|
13
|
+
data.isAutoCreated !== undefined && data.isAutoCreated !== null
|
|
14
|
+
? data.isAutoCreated
|
|
15
|
+
: null;
|
|
16
|
+
this.orderLineId = data.orderLineId || "";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class OrderAdjustmentAppliedOrderLine extends OrderAdjustmentAppliedOrderLineData {}
|
|
21
|
+
export type PartialOrderAdjustmentAppliedOrderLine =
|
|
22
|
+
Partial<OrderAdjustmentAppliedOrderLine>;
|
|
23
|
+
export type ReadOnlyOrderAdjustmentAppliedOrderLine =
|
|
24
|
+
DeepReadonly<OrderAdjustmentAppliedOrderLine>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { AmountTypeEnum, AdjustmentEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class OrderAdjustmentInputData {
|
|
5
|
+
amount: number;
|
|
6
|
+
amountType: AmountTypeEnum;
|
|
7
|
+
campaignId: string | null;
|
|
8
|
+
couponId: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
order: number;
|
|
11
|
+
type: AdjustmentEnum;
|
|
12
|
+
|
|
13
|
+
constructor(data: Partial<OrderAdjustmentInputData> = {}) {
|
|
14
|
+
this.amount = data.amount || 0;
|
|
15
|
+
this.amountType = data.amountType || AmountTypeEnum.AMOUNT;
|
|
16
|
+
this.campaignId = data.campaignId || null;
|
|
17
|
+
this.couponId = data.couponId || null;
|
|
18
|
+
this.name = data.name || "";
|
|
19
|
+
this.order = data.order || 0;
|
|
20
|
+
this.type = data.type || AdjustmentEnum.DECREMENT;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class OrderAdjustmentInput extends OrderAdjustmentInputData {}
|
|
25
|
+
export type PartialOrderAdjustmentInput = Partial<OrderAdjustmentInput>;
|
|
26
|
+
export type ReadOnlyOrderAdjustmentInput = DeepReadonly<OrderAdjustmentInput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderCurrencyRateData {
|
|
4
|
+
code: string;
|
|
5
|
+
originalRate: number;
|
|
6
|
+
rate: number;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderCurrencyRateData> = {}) {
|
|
9
|
+
this.code = data.code || "";
|
|
10
|
+
this.originalRate = data.originalRate || 0;
|
|
11
|
+
this.rate = data.rate || 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderCurrencyRate extends OrderCurrencyRateData {}
|
|
16
|
+
export type PartialOrderCurrencyRate = Partial<OrderCurrencyRate>;
|
|
17
|
+
export type ReadOnlyOrderCurrencyRate = DeepReadonly<OrderCurrencyRate>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderCustomerData {
|
|
4
|
+
email: string | null;
|
|
5
|
+
firstName: string | null;
|
|
6
|
+
fullName: string | null;
|
|
7
|
+
id: string | null;
|
|
8
|
+
isGuestCheckout: boolean | null;
|
|
9
|
+
lastName: string | null;
|
|
10
|
+
notificationsAccepted: boolean | null;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
|
|
13
|
+
constructor(data: Partial<OrderCustomerData> = {}) {
|
|
14
|
+
this.email = data.email || null;
|
|
15
|
+
this.firstName = data.firstName || null;
|
|
16
|
+
this.fullName = data.fullName || null;
|
|
17
|
+
this.id = data.id || null;
|
|
18
|
+
this.isGuestCheckout =
|
|
19
|
+
data.isGuestCheckout !== undefined && data.isGuestCheckout !== null
|
|
20
|
+
? data.isGuestCheckout
|
|
21
|
+
: null;
|
|
22
|
+
this.lastName = data.lastName || null;
|
|
23
|
+
this.notificationsAccepted =
|
|
24
|
+
data.notificationsAccepted !== undefined &&
|
|
25
|
+
data.notificationsAccepted !== null
|
|
26
|
+
? data.notificationsAccepted
|
|
27
|
+
: null;
|
|
28
|
+
this.phone = data.phone || null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class OrderCustomer extends OrderCustomerData {}
|
|
33
|
+
export type PartialOrderCustomer = Partial<OrderCustomer>;
|
|
34
|
+
export type ReadOnlyOrderCustomer = DeepReadonly<OrderCustomer>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderGiftPackageLineData {
|
|
4
|
+
price: number;
|
|
5
|
+
taxValue: number | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<OrderGiftPackageLineData> = {}) {
|
|
8
|
+
this.price = data.price || 0;
|
|
9
|
+
this.taxValue =
|
|
10
|
+
data.taxValue !== undefined && data.taxValue !== null
|
|
11
|
+
? data.taxValue
|
|
12
|
+
: null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class OrderGiftPackageLine extends OrderGiftPackageLineData {}
|
|
17
|
+
export type PartialOrderGiftPackageLine = Partial<OrderGiftPackageLine>;
|
|
18
|
+
export type ReadOnlyOrderGiftPackageLine = DeepReadonly<OrderGiftPackageLine>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { AmountTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class OrderLineDiscountData {
|
|
5
|
+
amount: number;
|
|
6
|
+
amountType: AmountTypeEnum;
|
|
7
|
+
campaignOfferId: string | null;
|
|
8
|
+
campaignOfferProductId: string | null;
|
|
9
|
+
maxApplicableQuantity: number | null;
|
|
10
|
+
reason: string | null;
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<OrderLineDiscountData> = {}) {
|
|
13
|
+
this.amount = data.amount || 0;
|
|
14
|
+
this.amountType = data.amountType || AmountTypeEnum.AMOUNT;
|
|
15
|
+
this.campaignOfferId = data.campaignOfferId || null;
|
|
16
|
+
this.campaignOfferProductId = data.campaignOfferProductId || null;
|
|
17
|
+
this.maxApplicableQuantity =
|
|
18
|
+
data.maxApplicableQuantity !== undefined &&
|
|
19
|
+
data.maxApplicableQuantity !== null
|
|
20
|
+
? data.maxApplicableQuantity
|
|
21
|
+
: null;
|
|
22
|
+
this.reason = data.reason || null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class OrderLineDiscount extends OrderLineDiscountData {}
|
|
27
|
+
export type PartialOrderLineDiscount = Partial<OrderLineDiscount>;
|
|
28
|
+
export type ReadOnlyOrderLineDiscount = DeepReadonly<OrderLineDiscount>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { OrderLineItemStatusEnum } from "../types";
|
|
4
|
+
import { OrderLineDiscountData } from "./OrderLineDiscount";
|
|
5
|
+
import { OrderLineOptionData } from "./OrderLineOption";
|
|
6
|
+
import { OrderLineVariantData } from "./OrderLineVariant";
|
|
7
|
+
|
|
8
|
+
export class OrderLineItemData extends BaseModelData {
|
|
9
|
+
currencyCode: string | null;
|
|
10
|
+
discount: OrderLineDiscountData | null;
|
|
11
|
+
discountPrice: number | null;
|
|
12
|
+
finalPrice: number | null;
|
|
13
|
+
options: OrderLineOptionData[] | null;
|
|
14
|
+
originalOrderLineItemId: string | null;
|
|
15
|
+
price: number;
|
|
16
|
+
quantity: number;
|
|
17
|
+
status: OrderLineItemStatusEnum;
|
|
18
|
+
statusUpdatedAt: any | null;
|
|
19
|
+
stockLocationId: string | null;
|
|
20
|
+
taxValue: number | null;
|
|
21
|
+
variant: OrderLineVariantData;
|
|
22
|
+
|
|
23
|
+
constructor(data: Partial<OrderLineItemData> = {}) {
|
|
24
|
+
super(data);
|
|
25
|
+
|
|
26
|
+
this.currencyCode = data.currencyCode || null;
|
|
27
|
+
this.discount = data.discount
|
|
28
|
+
? new OrderLineDiscountData(data.discount)
|
|
29
|
+
: null;
|
|
30
|
+
this.discountPrice =
|
|
31
|
+
data.discountPrice !== undefined && data.discountPrice !== null
|
|
32
|
+
? data.discountPrice
|
|
33
|
+
: null;
|
|
34
|
+
this.finalPrice =
|
|
35
|
+
data.finalPrice !== undefined && data.finalPrice !== null
|
|
36
|
+
? data.finalPrice
|
|
37
|
+
: null;
|
|
38
|
+
this.options = data.options
|
|
39
|
+
? data.options.map((o) => new OrderLineOptionData(o))
|
|
40
|
+
: null;
|
|
41
|
+
this.originalOrderLineItemId = data.originalOrderLineItemId || null;
|
|
42
|
+
this.price = data.price || 0;
|
|
43
|
+
this.quantity = data.quantity || 0;
|
|
44
|
+
this.status = data.status || OrderLineItemStatusEnum.CANCELLED;
|
|
45
|
+
this.statusUpdatedAt = data.statusUpdatedAt || null;
|
|
46
|
+
this.stockLocationId = data.stockLocationId || null;
|
|
47
|
+
this.taxValue =
|
|
48
|
+
data.taxValue !== undefined && data.taxValue !== null
|
|
49
|
+
? data.taxValue
|
|
50
|
+
: null;
|
|
51
|
+
this.variant = data.variant
|
|
52
|
+
? new OrderLineVariantData(data.variant)
|
|
53
|
+
: new OrderLineVariantData();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class OrderLineItem extends OrderLineItemData {}
|
|
58
|
+
export type PartialOrderLineItem = Partial<OrderLineItem>;
|
|
59
|
+
export type ReadOnlyOrderLineItem = DeepReadonly<OrderLineItem>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductOptionTypeEnum } from "../types";
|
|
3
|
+
import { OrderLineOptionValueData } from "./OrderLineOptionValue";
|
|
4
|
+
|
|
5
|
+
export class OrderLineOptionData {
|
|
6
|
+
name: string;
|
|
7
|
+
productOptionId: string;
|
|
8
|
+
productOptionsSetId: string;
|
|
9
|
+
type: ProductOptionTypeEnum;
|
|
10
|
+
values: OrderLineOptionValueData[];
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<OrderLineOptionData> = {}) {
|
|
13
|
+
this.name = data.name || "";
|
|
14
|
+
this.productOptionId = data.productOptionId || "";
|
|
15
|
+
this.productOptionsSetId = data.productOptionsSetId || "";
|
|
16
|
+
this.type = data.type || ProductOptionTypeEnum.CHECKBOX;
|
|
17
|
+
this.values = data.values
|
|
18
|
+
? data.values.map((o) => new OrderLineOptionValueData(o))
|
|
19
|
+
: [];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class OrderLineOption extends OrderLineOptionData {}
|
|
24
|
+
export type PartialOrderLineOption = Partial<OrderLineOption>;
|
|
25
|
+
export type ReadOnlyOrderLineOption = DeepReadonly<OrderLineOption>;
|