@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 OrderLineOptionValueData {
|
|
4
|
+
name: string | null;
|
|
5
|
+
price: number | null;
|
|
6
|
+
value: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<OrderLineOptionValueData> = {}) {
|
|
9
|
+
this.name = data.name || null;
|
|
10
|
+
this.price =
|
|
11
|
+
data.price !== undefined && data.price !== null ? data.price : null;
|
|
12
|
+
this.value = data.value || "";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class OrderLineOptionValue extends OrderLineOptionValueData {}
|
|
17
|
+
export type PartialOrderLineOptionValue = Partial<OrderLineOptionValue>;
|
|
18
|
+
export type ReadOnlyOrderLineOptionValue = DeepReadonly<OrderLineOptionValue>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { OrderLineVariantBrandData } from "./OrderLineVariantBrand";
|
|
3
|
+
import { OrderLineVariantCategoryData } from "./OrderLineVariantCategory";
|
|
4
|
+
import { OrderLineVariantPriceData } from "./OrderLineVariantPrice";
|
|
5
|
+
import { OrderLineVariantVariantValuesData } from "./OrderLineVariantVariantValues";
|
|
6
|
+
|
|
7
|
+
export class OrderLineVariantData {
|
|
8
|
+
barcodeList: string[] | null;
|
|
9
|
+
brand: OrderLineVariantBrandData | null;
|
|
10
|
+
categories: OrderLineVariantCategoryData[] | null;
|
|
11
|
+
id: string | null;
|
|
12
|
+
mainImageId: string | null;
|
|
13
|
+
name: string;
|
|
14
|
+
prices: OrderLineVariantPriceData[] | null;
|
|
15
|
+
productId: string | null;
|
|
16
|
+
sku: string | null;
|
|
17
|
+
slug: string | null;
|
|
18
|
+
tagIds: string[] | null;
|
|
19
|
+
taxValue: number | null;
|
|
20
|
+
type: number | null;
|
|
21
|
+
variantValues: OrderLineVariantVariantValuesData[] | null;
|
|
22
|
+
weight: number | null;
|
|
23
|
+
|
|
24
|
+
constructor(data: Partial<OrderLineVariantData> = {}) {
|
|
25
|
+
this.barcodeList = data.barcodeList || null;
|
|
26
|
+
this.brand = data.brand ? new OrderLineVariantBrandData(data.brand) : null;
|
|
27
|
+
this.categories = data.categories
|
|
28
|
+
? data.categories.map((o) => new OrderLineVariantCategoryData(o))
|
|
29
|
+
: null;
|
|
30
|
+
this.id = data.id || null;
|
|
31
|
+
this.mainImageId = data.mainImageId || null;
|
|
32
|
+
this.name = data.name || "";
|
|
33
|
+
this.prices = data.prices
|
|
34
|
+
? data.prices.map((o) => new OrderLineVariantPriceData(o))
|
|
35
|
+
: null;
|
|
36
|
+
this.productId = data.productId || null;
|
|
37
|
+
this.sku = data.sku || null;
|
|
38
|
+
this.slug = data.slug || null;
|
|
39
|
+
this.tagIds = data.tagIds || null;
|
|
40
|
+
this.taxValue =
|
|
41
|
+
data.taxValue !== undefined && data.taxValue !== null
|
|
42
|
+
? data.taxValue
|
|
43
|
+
: null;
|
|
44
|
+
this.type =
|
|
45
|
+
data.type !== undefined && data.type !== null ? data.type : null;
|
|
46
|
+
this.variantValues = data.variantValues
|
|
47
|
+
? data.variantValues.map((o) => new OrderLineVariantVariantValuesData(o))
|
|
48
|
+
: null;
|
|
49
|
+
this.weight =
|
|
50
|
+
data.weight !== undefined && data.weight !== null ? data.weight : null;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class OrderLineVariant extends OrderLineVariantData {}
|
|
55
|
+
export type PartialOrderLineVariant = Partial<OrderLineVariant>;
|
|
56
|
+
export type ReadOnlyOrderLineVariant = DeepReadonly<OrderLineVariant>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderLineVariantBrandData {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<OrderLineVariantBrandData> = {}) {
|
|
8
|
+
this.id = data.id || "";
|
|
9
|
+
this.name = data.name || "";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class OrderLineVariantBrand extends OrderLineVariantBrandData {}
|
|
14
|
+
export type PartialOrderLineVariantBrand = Partial<OrderLineVariantBrand>;
|
|
15
|
+
export type ReadOnlyOrderLineVariantBrand = DeepReadonly<OrderLineVariantBrand>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { OrderLineVariantCategoryPathData } from "./OrderLineVariantCategoryPath";
|
|
3
|
+
|
|
4
|
+
export class OrderLineVariantCategoryData {
|
|
5
|
+
categoryPath: OrderLineVariantCategoryPathData[] | null;
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<OrderLineVariantCategoryData> = {}) {
|
|
10
|
+
this.categoryPath = data.categoryPath
|
|
11
|
+
? data.categoryPath.map((o) => new OrderLineVariantCategoryPathData(o))
|
|
12
|
+
: null;
|
|
13
|
+
this.id = data.id || "";
|
|
14
|
+
this.name = data.name || "";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class OrderLineVariantCategory extends OrderLineVariantCategoryData {}
|
|
19
|
+
export type PartialOrderLineVariantCategory = Partial<OrderLineVariantCategory>;
|
|
20
|
+
export type ReadOnlyOrderLineVariantCategory =
|
|
21
|
+
DeepReadonly<OrderLineVariantCategory>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderLineVariantCategoryPathData {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<OrderLineVariantCategoryPathData> = {}) {
|
|
8
|
+
this.id = data.id || "";
|
|
9
|
+
this.name = data.name || "";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class OrderLineVariantCategoryPath extends OrderLineVariantCategoryPathData {}
|
|
14
|
+
export type PartialOrderLineVariantCategoryPath =
|
|
15
|
+
Partial<OrderLineVariantCategoryPath>;
|
|
16
|
+
export type ReadOnlyOrderLineVariantCategoryPath =
|
|
17
|
+
DeepReadonly<OrderLineVariantCategoryPath>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderLineVariantPriceData {
|
|
4
|
+
buyPrice: number | null;
|
|
5
|
+
currency: string | null;
|
|
6
|
+
discountPrice: number | null;
|
|
7
|
+
priceListId: string | null;
|
|
8
|
+
sellPrice: number;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<OrderLineVariantPriceData> = {}) {
|
|
11
|
+
this.buyPrice =
|
|
12
|
+
data.buyPrice !== undefined && data.buyPrice !== null
|
|
13
|
+
? data.buyPrice
|
|
14
|
+
: null;
|
|
15
|
+
this.currency = data.currency || null;
|
|
16
|
+
this.discountPrice =
|
|
17
|
+
data.discountPrice !== undefined && data.discountPrice !== null
|
|
18
|
+
? data.discountPrice
|
|
19
|
+
: null;
|
|
20
|
+
this.priceListId = data.priceListId || null;
|
|
21
|
+
this.sellPrice = data.sellPrice || 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class OrderLineVariantPrice extends OrderLineVariantPriceData {}
|
|
26
|
+
export type PartialOrderLineVariantPrice = Partial<OrderLineVariantPrice>;
|
|
27
|
+
export type ReadOnlyOrderLineVariantPrice = DeepReadonly<OrderLineVariantPrice>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderLineVariantVariantValuesData {
|
|
4
|
+
order: number;
|
|
5
|
+
variantTypeId: string;
|
|
6
|
+
variantTypeName: string | null;
|
|
7
|
+
variantValueId: string;
|
|
8
|
+
variantValueName: string | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<OrderLineVariantVariantValuesData> = {}) {
|
|
11
|
+
this.order = data.order || 0;
|
|
12
|
+
this.variantTypeId = data.variantTypeId || "";
|
|
13
|
+
this.variantTypeName = data.variantTypeName || null;
|
|
14
|
+
this.variantValueId = data.variantValueId || "";
|
|
15
|
+
this.variantValueName = data.variantValueName || null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class OrderLineVariantVariantValues extends OrderLineVariantVariantValuesData {}
|
|
20
|
+
export type PartialOrderLineVariantVariantValues =
|
|
21
|
+
Partial<OrderLineVariantVariantValues>;
|
|
22
|
+
export type ReadOnlyOrderLineVariantVariantValues =
|
|
23
|
+
DeepReadonly<OrderLineVariantVariantValues>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { OrderPackageFulfillStatusEnum } from "../types";
|
|
4
|
+
import { TrackingInfoData } from "./TrackingInfo";
|
|
5
|
+
|
|
6
|
+
export class OrderPackageData extends BaseModelData {
|
|
7
|
+
errorMessage: string | null;
|
|
8
|
+
note: string | null;
|
|
9
|
+
orderLineItemIds: string[];
|
|
10
|
+
orderPackageFulfillStatus: OrderPackageFulfillStatusEnum;
|
|
11
|
+
orderPackageNumber: string;
|
|
12
|
+
stockLocationId: string;
|
|
13
|
+
trackingInfo: TrackingInfoData | null;
|
|
14
|
+
|
|
15
|
+
constructor(data: Partial<OrderPackageData> = {}) {
|
|
16
|
+
super(data);
|
|
17
|
+
|
|
18
|
+
this.errorMessage = data.errorMessage || null;
|
|
19
|
+
this.note = data.note || null;
|
|
20
|
+
this.orderLineItemIds = data.orderLineItemIds || [];
|
|
21
|
+
this.orderPackageFulfillStatus =
|
|
22
|
+
data.orderPackageFulfillStatus || OrderPackageFulfillStatusEnum.CANCELLED;
|
|
23
|
+
this.orderPackageNumber = data.orderPackageNumber || "";
|
|
24
|
+
this.stockLocationId = data.stockLocationId || "";
|
|
25
|
+
this.trackingInfo = data.trackingInfo
|
|
26
|
+
? new TrackingInfoData(data.trackingInfo)
|
|
27
|
+
: null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class OrderPackage extends OrderPackageData {}
|
|
32
|
+
export type PartialOrderPackage = Partial<OrderPackage>;
|
|
33
|
+
export type ReadOnlyOrderPackage = DeepReadonly<OrderPackage>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { PaymentMethodTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class OrderPaymentMethodData {
|
|
5
|
+
paymentGatewayCode: string | null;
|
|
6
|
+
paymentGatewayId: string | null;
|
|
7
|
+
paymentGatewayName: string | null;
|
|
8
|
+
price: number;
|
|
9
|
+
type: PaymentMethodTypeEnum;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<OrderPaymentMethodData> = {}) {
|
|
12
|
+
this.paymentGatewayCode = data.paymentGatewayCode || null;
|
|
13
|
+
this.paymentGatewayId = data.paymentGatewayId || null;
|
|
14
|
+
this.paymentGatewayName = data.paymentGatewayName || null;
|
|
15
|
+
this.price = data.price || 0;
|
|
16
|
+
this.type = data.type || PaymentMethodTypeEnum.APP_PAYMENT;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class OrderPaymentMethod extends OrderPaymentMethodData {}
|
|
21
|
+
export type PartialOrderPaymentMethod = Partial<OrderPaymentMethod>;
|
|
22
|
+
export type ReadOnlyOrderPaymentMethod = DeepReadonly<OrderPaymentMethod>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderRefundOrderLineInputData {
|
|
4
|
+
orderLineItemId: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<OrderRefundOrderLineInputData> = {}) {
|
|
8
|
+
this.orderLineItemId = data.orderLineItemId || "";
|
|
9
|
+
this.quantity = data.quantity || 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class OrderRefundOrderLineInput extends OrderRefundOrderLineInputData {}
|
|
14
|
+
export type PartialOrderRefundOrderLineInput =
|
|
15
|
+
Partial<OrderRefundOrderLineInput>;
|
|
16
|
+
export type ReadOnlyOrderRefundOrderLineInput =
|
|
17
|
+
DeepReadonly<OrderRefundOrderLineInput>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { OrderRefundOrderLineInputData } from "./OrderRefundOrderLineInput";
|
|
3
|
+
|
|
4
|
+
export class OrderRefundRequestInputData {
|
|
5
|
+
orderId: string;
|
|
6
|
+
orderLineItems: OrderRefundOrderLineInputData[];
|
|
7
|
+
reason: string | null;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<OrderRefundRequestInputData> = {}) {
|
|
10
|
+
this.orderId = data.orderId || "";
|
|
11
|
+
this.orderLineItems = data.orderLineItems
|
|
12
|
+
? data.orderLineItems.map((o) => new OrderRefundOrderLineInputData(o))
|
|
13
|
+
: [];
|
|
14
|
+
this.reason = data.reason || null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class OrderRefundRequestInput extends OrderRefundRequestInputData {}
|
|
19
|
+
export type PartialOrderRefundRequestInput = Partial<OrderRefundRequestInput>;
|
|
20
|
+
export type ReadOnlyOrderRefundRequestInput =
|
|
21
|
+
DeepReadonly<OrderRefundRequestInput>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class OrderRefundSettingsData extends BaseModelData {
|
|
5
|
+
autoApprove: boolean;
|
|
6
|
+
isActiveRefundSection: boolean;
|
|
7
|
+
orderRefundDayLimit: number | null;
|
|
8
|
+
refundDesc: string;
|
|
9
|
+
storefrontId: string | null;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<OrderRefundSettingsData> = {}) {
|
|
12
|
+
super(data);
|
|
13
|
+
|
|
14
|
+
this.autoApprove = data.autoApprove || false;
|
|
15
|
+
this.isActiveRefundSection = data.isActiveRefundSection || false;
|
|
16
|
+
this.orderRefundDayLimit =
|
|
17
|
+
data.orderRefundDayLimit !== undefined &&
|
|
18
|
+
data.orderRefundDayLimit !== null
|
|
19
|
+
? data.orderRefundDayLimit
|
|
20
|
+
: null;
|
|
21
|
+
this.refundDesc = data.refundDesc || "";
|
|
22
|
+
this.storefrontId = data.storefrontId || null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class OrderRefundSettings extends OrderRefundSettingsData {}
|
|
27
|
+
export type PartialOrderRefundSettings = Partial<OrderRefundSettings>;
|
|
28
|
+
export type ReadOnlyOrderRefundSettings = DeepReadonly<OrderRefundSettings>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { PaymentMethodTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class OrderShippingLineData {
|
|
5
|
+
finalPrice: number;
|
|
6
|
+
isRefunded: boolean | null;
|
|
7
|
+
paymentMethod: PaymentMethodTypeEnum | null;
|
|
8
|
+
price: number;
|
|
9
|
+
shippingSettingsId: string | null;
|
|
10
|
+
shippingZoneRateId: string | null;
|
|
11
|
+
taxValue: number | null;
|
|
12
|
+
title: string;
|
|
13
|
+
|
|
14
|
+
constructor(data: Partial<OrderShippingLineData> = {}) {
|
|
15
|
+
this.finalPrice = data.finalPrice || 0;
|
|
16
|
+
this.isRefunded =
|
|
17
|
+
data.isRefunded !== undefined && data.isRefunded !== null
|
|
18
|
+
? data.isRefunded
|
|
19
|
+
: null;
|
|
20
|
+
this.paymentMethod = data.paymentMethod || null;
|
|
21
|
+
this.price = data.price || 0;
|
|
22
|
+
this.shippingSettingsId = data.shippingSettingsId || null;
|
|
23
|
+
this.shippingZoneRateId = data.shippingZoneRateId || null;
|
|
24
|
+
this.taxValue =
|
|
25
|
+
data.taxValue !== undefined && data.taxValue !== null
|
|
26
|
+
? data.taxValue
|
|
27
|
+
: null;
|
|
28
|
+
this.title = data.title || "";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class OrderShippingLine extends OrderShippingLineData {}
|
|
33
|
+
export type PartialOrderShippingLine = Partial<OrderShippingLine>;
|
|
34
|
+
export type ReadOnlyOrderShippingLine = DeepReadonly<OrderShippingLine>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { OrderStorefrontRoutingDynamicCurrencySettingsData } from "./OrderStorefrontRoutingDynamicCurrencySettings";
|
|
3
|
+
|
|
4
|
+
export class OrderStorefrontRoutingData {
|
|
5
|
+
domain: string | null;
|
|
6
|
+
dynamicCurrencySettings: OrderStorefrontRoutingDynamicCurrencySettingsData | null;
|
|
7
|
+
id: string;
|
|
8
|
+
locale: string | null;
|
|
9
|
+
path: string | null;
|
|
10
|
+
priceListId: string | null;
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<OrderStorefrontRoutingData> = {}) {
|
|
13
|
+
this.domain = data.domain || null;
|
|
14
|
+
this.dynamicCurrencySettings = data.dynamicCurrencySettings
|
|
15
|
+
? new OrderStorefrontRoutingDynamicCurrencySettingsData(
|
|
16
|
+
data.dynamicCurrencySettings
|
|
17
|
+
)
|
|
18
|
+
: null;
|
|
19
|
+
this.id = data.id || "";
|
|
20
|
+
this.locale = data.locale || null;
|
|
21
|
+
this.path = data.path || null;
|
|
22
|
+
this.priceListId = data.priceListId || null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class OrderStorefrontRouting extends OrderStorefrontRoutingData {}
|
|
27
|
+
export type PartialOrderStorefrontRouting = Partial<OrderStorefrontRouting>;
|
|
28
|
+
export type ReadOnlyOrderStorefrontRouting =
|
|
29
|
+
DeepReadonly<OrderStorefrontRouting>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderStorefrontRoutingDynamicCurrencySettingsData {
|
|
4
|
+
roundingFormat: string | null;
|
|
5
|
+
targetCurrencyCode: string;
|
|
6
|
+
|
|
7
|
+
constructor(
|
|
8
|
+
data: Partial<OrderStorefrontRoutingDynamicCurrencySettingsData> = {}
|
|
9
|
+
) {
|
|
10
|
+
this.roundingFormat = data.roundingFormat || null;
|
|
11
|
+
this.targetCurrencyCode = data.targetCurrencyCode || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class OrderStorefrontRoutingDynamicCurrencySettings extends OrderStorefrontRoutingDynamicCurrencySettingsData {}
|
|
16
|
+
export type PartialOrderStorefrontRoutingDynamicCurrencySettings =
|
|
17
|
+
Partial<OrderStorefrontRoutingDynamicCurrencySettings>;
|
|
18
|
+
export type ReadOnlyOrderStorefrontRoutingDynamicCurrencySettings =
|
|
19
|
+
DeepReadonly<OrderStorefrontRoutingDynamicCurrencySettings>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class OrderTaxLineData {
|
|
4
|
+
price: number;
|
|
5
|
+
rate: number;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<OrderTaxLineData> = {}) {
|
|
8
|
+
this.price = data.price || 0;
|
|
9
|
+
this.rate = data.rate || 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class OrderTaxLine extends OrderTaxLineData {}
|
|
14
|
+
export type PartialOrderTaxLine = Partial<OrderTaxLine>;
|
|
15
|
+
export type ReadOnlyOrderTaxLine = DeepReadonly<OrderTaxLine>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class PaginationInputData {
|
|
4
|
+
limit: number | null;
|
|
5
|
+
page: number | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<PaginationInputData> = {}) {
|
|
8
|
+
this.limit =
|
|
9
|
+
data.limit !== undefined && data.limit !== null ? data.limit : null;
|
|
10
|
+
this.page =
|
|
11
|
+
data.page !== undefined && data.page !== null ? data.page : null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class PaginationInput extends PaginationInputData {}
|
|
16
|
+
export type PartialPaginationInput = Partial<PaginationInput>;
|
|
17
|
+
export type ReadOnlyPaginationInput = DeepReadonly<PaginationInput>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { PaymentMethodEnum, PaymentGatewayTypeEnum } from "../types";
|
|
4
|
+
import { AdditionalPriceData } from "./AdditionalPrice";
|
|
5
|
+
import { PaymentGatewayPaymentMethodData } from "./PaymentGatewayPaymentMethod";
|
|
6
|
+
import { PaymentGatewaySettingsData } from "./PaymentGatewaySettings";
|
|
7
|
+
import { PaymentGatewayTranslationData } from "./PaymentGatewayTranslation";
|
|
8
|
+
|
|
9
|
+
export class PaymentGatewayData extends BaseModelData {
|
|
10
|
+
additionalPrices: AdditionalPriceData[] | null;
|
|
11
|
+
availableCountries: string[] | null;
|
|
12
|
+
code: string;
|
|
13
|
+
description: string | null;
|
|
14
|
+
logoUrl: string | null;
|
|
15
|
+
masterPassClientId: string | null;
|
|
16
|
+
name: string;
|
|
17
|
+
paymentGatewayProviderId: string | null;
|
|
18
|
+
paymentMethodType: PaymentMethodEnum;
|
|
19
|
+
paymentMethods: PaymentGatewayPaymentMethodData[];
|
|
20
|
+
settings: PaymentGatewaySettingsData[] | null;
|
|
21
|
+
supportedCurrencies: string[] | null;
|
|
22
|
+
testMode: boolean | null;
|
|
23
|
+
translations: PaymentGatewayTranslationData[] | null;
|
|
24
|
+
type: PaymentGatewayTypeEnum;
|
|
25
|
+
|
|
26
|
+
constructor(data: Partial<PaymentGatewayData> = {}) {
|
|
27
|
+
super(data);
|
|
28
|
+
|
|
29
|
+
this.additionalPrices = data.additionalPrices
|
|
30
|
+
? data.additionalPrices.map((a) => new AdditionalPriceData(a))
|
|
31
|
+
: null;
|
|
32
|
+
this.availableCountries = data.availableCountries || null;
|
|
33
|
+
this.code = data.code || "";
|
|
34
|
+
this.description = data.description || null;
|
|
35
|
+
this.logoUrl = data.logoUrl || null;
|
|
36
|
+
this.masterPassClientId = data.masterPassClientId || null;
|
|
37
|
+
this.name = data.name || "";
|
|
38
|
+
this.paymentGatewayProviderId = data.paymentGatewayProviderId || null;
|
|
39
|
+
this.paymentMethodType =
|
|
40
|
+
data.paymentMethodType || PaymentMethodEnum.APP_PAYMENT;
|
|
41
|
+
this.paymentMethods = data.paymentMethods
|
|
42
|
+
? data.paymentMethods.map((p) => new PaymentGatewayPaymentMethodData(p))
|
|
43
|
+
: [];
|
|
44
|
+
this.settings = data.settings
|
|
45
|
+
? data.settings.map((p) => new PaymentGatewaySettingsData(p))
|
|
46
|
+
: null;
|
|
47
|
+
this.supportedCurrencies = data.supportedCurrencies || null;
|
|
48
|
+
this.testMode =
|
|
49
|
+
data.testMode !== undefined && data.testMode !== null
|
|
50
|
+
? data.testMode
|
|
51
|
+
: null;
|
|
52
|
+
this.translations = data.translations
|
|
53
|
+
? data.translations.map((p) => new PaymentGatewayTranslationData(p))
|
|
54
|
+
: null;
|
|
55
|
+
this.type = data.type || PaymentGatewayTypeEnum.EXTERNAL;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class PaymentGateway extends PaymentGatewayData {}
|
|
60
|
+
export type PartialPaymentGateway = Partial<PaymentGateway>;
|
|
61
|
+
export type ReadOnlyPaymentGateway = DeepReadonly<PaymentGateway>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class PaymentGatewayPaymentMethodData {
|
|
4
|
+
logoUrl: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<PaymentGatewayPaymentMethodData> = {}) {
|
|
8
|
+
this.logoUrl = data.logoUrl || null;
|
|
9
|
+
this.name = data.name || "";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class PaymentGatewayPaymentMethod extends PaymentGatewayPaymentMethodData {}
|
|
14
|
+
export type PartialPaymentGatewayPaymentMethod =
|
|
15
|
+
Partial<PaymentGatewayPaymentMethod>;
|
|
16
|
+
export type ReadOnlyPaymentGatewayPaymentMethod =
|
|
17
|
+
DeepReadonly<PaymentGatewayPaymentMethod>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { PaymentGatewaySettingsTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class PaymentGatewaySettingsData {
|
|
5
|
+
label: string;
|
|
6
|
+
order: number;
|
|
7
|
+
type: PaymentGatewaySettingsTypeEnum;
|
|
8
|
+
value: string | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<PaymentGatewaySettingsData> = {}) {
|
|
11
|
+
this.label = data.label || "";
|
|
12
|
+
this.order = data.order || 0;
|
|
13
|
+
this.type = data.type || PaymentGatewaySettingsTypeEnum.NUMBER;
|
|
14
|
+
this.value = data.value || null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class PaymentGatewaySettings extends PaymentGatewaySettingsData {}
|
|
19
|
+
export type PartialPaymentGatewaySettings = Partial<PaymentGatewaySettings>;
|
|
20
|
+
export type ReadOnlyPaymentGatewaySettings =
|
|
21
|
+
DeepReadonly<PaymentGatewaySettings>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class PaymentGatewayTranslationData {
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<PaymentGatewayTranslationData> = {}) {
|
|
9
|
+
this.description = data.description || null;
|
|
10
|
+
this.locale = data.locale || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class PaymentGatewayTranslation extends PaymentGatewayTranslationData {}
|
|
16
|
+
export type PartialPaymentGatewayTranslation =
|
|
17
|
+
Partial<PaymentGatewayTranslation>;
|
|
18
|
+
export type ReadOnlyPaymentGatewayTranslation =
|
|
19
|
+
DeepReadonly<PaymentGatewayTranslation>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class PaymentMethodDetailInputData {
|
|
4
|
+
cardHolderName: string;
|
|
5
|
+
cardNumber: string;
|
|
6
|
+
cvv: string;
|
|
7
|
+
expiredMonth: number;
|
|
8
|
+
expiredYear: number;
|
|
9
|
+
installmentCount: number;
|
|
10
|
+
threeDSecure: boolean;
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<PaymentMethodDetailInputData> = {}) {
|
|
13
|
+
this.cardHolderName = data.cardHolderName || "";
|
|
14
|
+
this.cardNumber = data.cardNumber || "";
|
|
15
|
+
this.cvv = data.cvv || "";
|
|
16
|
+
this.expiredMonth = data.expiredMonth || 0;
|
|
17
|
+
this.expiredYear = data.expiredYear || 0;
|
|
18
|
+
this.installmentCount = data.installmentCount || 0;
|
|
19
|
+
this.threeDSecure = data.threeDSecure || false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class PaymentMethodDetailInput extends PaymentMethodDetailInputData {}
|
|
24
|
+
export type PartialPaymentMethodDetailInput = Partial<PaymentMethodDetailInput>;
|
|
25
|
+
export type ReadOnlyPaymentMethodDetailInput =
|
|
26
|
+
DeepReadonly<PaymentMethodDetailInput>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { ProductTypeEnum } from "../types";
|
|
4
|
+
import { ProductAttributeValueData } from "./ProductAttributeValue";
|
|
5
|
+
import { HTMLMetaDataData } from "./HTMLMetaData";
|
|
6
|
+
import { ProductVariantTypeData } from "./ProductVariantType";
|
|
7
|
+
import { ProductTranslationData } from "./ProductTranslation";
|
|
8
|
+
import { VariantData } from "./Variant";
|
|
9
|
+
|
|
10
|
+
export class ProductData extends BaseModelData {
|
|
11
|
+
attributes: ProductAttributeValueData[] | null;
|
|
12
|
+
brandId: string | null;
|
|
13
|
+
categoryIds: string[] | null;
|
|
14
|
+
description: string | null;
|
|
15
|
+
groupVariantsByVariantTypeId: string | null;
|
|
16
|
+
maxQuantityPerCart: number | null;
|
|
17
|
+
metaData: HTMLMetaDataData | null;
|
|
18
|
+
name: string;
|
|
19
|
+
productOptionSetId: string | null;
|
|
20
|
+
productVariantTypes: ProductVariantTypeData[] | null;
|
|
21
|
+
salesChannelIds: string[] | null;
|
|
22
|
+
shortDescription: string | null;
|
|
23
|
+
tagIds: string[] | null;
|
|
24
|
+
translations: ProductTranslationData[] | null;
|
|
25
|
+
type: ProductTypeEnum;
|
|
26
|
+
variants: VariantData[];
|
|
27
|
+
vendorId: string | null;
|
|
28
|
+
weight: number | null;
|
|
29
|
+
|
|
30
|
+
constructor(data: Partial<ProductData> = {}) {
|
|
31
|
+
super(data);
|
|
32
|
+
|
|
33
|
+
this.attributes = data.attributes
|
|
34
|
+
? data.attributes.map((p) => new ProductAttributeValueData(p))
|
|
35
|
+
: null;
|
|
36
|
+
this.brandId = data.brandId || null;
|
|
37
|
+
this.categoryIds = data.categoryIds || null;
|
|
38
|
+
this.description = data.description || null;
|
|
39
|
+
this.groupVariantsByVariantTypeId =
|
|
40
|
+
data.groupVariantsByVariantTypeId || null;
|
|
41
|
+
this.maxQuantityPerCart =
|
|
42
|
+
data.maxQuantityPerCart !== undefined && data.maxQuantityPerCart !== null
|
|
43
|
+
? data.maxQuantityPerCart
|
|
44
|
+
: null;
|
|
45
|
+
this.metaData = data.metaData ? new HTMLMetaDataData(data.metaData) : null;
|
|
46
|
+
this.name = data.name || "";
|
|
47
|
+
this.productOptionSetId = data.productOptionSetId || null;
|
|
48
|
+
this.productVariantTypes = data.productVariantTypes
|
|
49
|
+
? data.productVariantTypes.map((p) => new ProductVariantTypeData(p))
|
|
50
|
+
: null;
|
|
51
|
+
this.salesChannelIds = data.salesChannelIds || null;
|
|
52
|
+
this.shortDescription = data.shortDescription || null;
|
|
53
|
+
this.tagIds = data.tagIds || null;
|
|
54
|
+
this.translations = data.translations
|
|
55
|
+
? data.translations.map((p) => new ProductTranslationData(p))
|
|
56
|
+
: null;
|
|
57
|
+
this.type = data.type || ProductTypeEnum.DIGITAL;
|
|
58
|
+
this.variants = data.variants
|
|
59
|
+
? data.variants.map((v) => new VariantData(v))
|
|
60
|
+
: [];
|
|
61
|
+
this.vendorId = data.vendorId || null;
|
|
62
|
+
this.weight =
|
|
63
|
+
data.weight !== undefined && data.weight !== null ? data.weight : null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export class Product extends ProductData {}
|
|
68
|
+
export type PartialProduct = Partial<Product>;
|
|
69
|
+
export type ReadOnlyProduct = DeepReadonly<Product>;
|