@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,24 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CategoryData } from "./Category";
|
|
3
|
+
|
|
4
|
+
export class CategoryPaginationResponseData {
|
|
5
|
+
count: number;
|
|
6
|
+
data: CategoryData[];
|
|
7
|
+
hasNext: boolean;
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<CategoryPaginationResponseData> = {}) {
|
|
12
|
+
this.count = data.count || 0;
|
|
13
|
+
this.data = data.data ? data.data.map((c) => new CategoryData(c)) : [];
|
|
14
|
+
this.hasNext = data.hasNext || false;
|
|
15
|
+
this.limit = data.limit || 0;
|
|
16
|
+
this.page = data.page || 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class CategoryPaginationResponse extends CategoryPaginationResponseData {}
|
|
21
|
+
export type PartialCategoryPaginationResponse =
|
|
22
|
+
Partial<CategoryPaginationResponse>;
|
|
23
|
+
export type ReadOnlyCategoryPaginationResponse =
|
|
24
|
+
DeepReadonly<CategoryPaginationResponse>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CategoryPathFilterInputData {
|
|
4
|
+
in: string[] | null;
|
|
5
|
+
|
|
6
|
+
constructor(data: Partial<CategoryPathFilterInputData> = {}) {
|
|
7
|
+
this.in = data.in || null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class CategoryPathFilterInput extends CategoryPathFilterInputData {}
|
|
12
|
+
export type PartialCategoryPathFilterInput = Partial<CategoryPathFilterInput>;
|
|
13
|
+
export type ReadOnlyCategoryPathFilterInput =
|
|
14
|
+
DeepReadonly<CategoryPathFilterInput>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { HTMLMetaDataData } from "./HTMLMetaData";
|
|
4
|
+
import { CategoryTranslationData } from "./CategoryTranslation";
|
|
5
|
+
|
|
6
|
+
export class CategoryPathItemData extends BaseModelData {
|
|
7
|
+
description: string | null;
|
|
8
|
+
imageId: string | null;
|
|
9
|
+
isAutomated: boolean | null;
|
|
10
|
+
metaData: HTMLMetaDataData | null;
|
|
11
|
+
name: string;
|
|
12
|
+
translations: CategoryTranslationData[] | null;
|
|
13
|
+
|
|
14
|
+
constructor(data: Partial<CategoryPathItemData> = {}) {
|
|
15
|
+
super(data);
|
|
16
|
+
|
|
17
|
+
this.description = data.description || null;
|
|
18
|
+
this.imageId = data.imageId || null;
|
|
19
|
+
this.isAutomated =
|
|
20
|
+
data.isAutomated !== undefined && data.isAutomated !== null
|
|
21
|
+
? data.isAutomated
|
|
22
|
+
: null;
|
|
23
|
+
this.metaData = data.metaData ? new HTMLMetaDataData(data.metaData) : null;
|
|
24
|
+
this.name = data.name || "";
|
|
25
|
+
this.translations = data.translations
|
|
26
|
+
? data.translations.map((c) => new CategoryTranslationData(c))
|
|
27
|
+
: null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class CategoryPathItem extends CategoryPathItemData {}
|
|
32
|
+
export type PartialCategoryPathItem = Partial<CategoryPathItem>;
|
|
33
|
+
export type ReadOnlyCategoryPathItem = DeepReadonly<CategoryPathItem>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CategoryTranslationData {
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CategoryTranslationData> = {}) {
|
|
9
|
+
this.description = data.description || null;
|
|
10
|
+
this.locale = data.locale || "";
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CategoryTranslation extends CategoryTranslationData {}
|
|
16
|
+
export type PartialCategoryTranslation = Partial<CategoryTranslation>;
|
|
17
|
+
export type ReadOnlyCategoryTranslation = DeepReadonly<CategoryTranslation>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CheckStocksLineInputData {
|
|
4
|
+
productId: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
variantId: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CheckStocksLineInputData> = {}) {
|
|
9
|
+
this.productId = data.productId || "";
|
|
10
|
+
this.quantity = data.quantity || 0;
|
|
11
|
+
this.variantId = data.variantId || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CheckStocksLineInput extends CheckStocksLineInputData {}
|
|
16
|
+
export type PartialCheckStocksLineInput = Partial<CheckStocksLineInput>;
|
|
17
|
+
export type ReadOnlyCheckStocksLineInput = DeepReadonly<CheckStocksLineInput>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CheckStocksLineResponseData {
|
|
4
|
+
isAvailable: boolean;
|
|
5
|
+
stockCount: number;
|
|
6
|
+
variantId: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CheckStocksLineResponseData> = {}) {
|
|
9
|
+
this.isAvailable = data.isAvailable || false;
|
|
10
|
+
this.stockCount = data.stockCount || 0;
|
|
11
|
+
this.variantId = data.variantId || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CheckStocksLineResponse extends CheckStocksLineResponseData {}
|
|
16
|
+
export type PartialCheckStocksLineResponse = Partial<CheckStocksLineResponse>;
|
|
17
|
+
export type ReadOnlyCheckStocksLineResponse =
|
|
18
|
+
DeepReadonly<CheckStocksLineResponse>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CheckStocksLineResponseData } from "./CheckStocksLineResponse";
|
|
3
|
+
|
|
4
|
+
export class CheckStocksResponseData {
|
|
5
|
+
lines: CheckStocksLineResponseData[];
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CheckStocksResponseData> = {}) {
|
|
8
|
+
this.lines = data.lines
|
|
9
|
+
? data.lines.map((c) => new CheckStocksLineResponseData(c))
|
|
10
|
+
: [];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class CheckStocksResponse extends CheckStocksResponseData {}
|
|
15
|
+
export type PartialCheckStocksResponse = Partial<CheckStocksResponse>;
|
|
16
|
+
export type ReadOnlyCheckStocksResponse = DeepReadonly<CheckStocksResponse>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import {
|
|
4
|
+
CheckoutRecoveryEmailStatusEnum,
|
|
5
|
+
CheckoutRecoveryStatusEnum,
|
|
6
|
+
ShippingMethodEnum,
|
|
7
|
+
CheckoutStatusEnum,
|
|
8
|
+
} from "../types";
|
|
9
|
+
import { AbandonedCartFlowData } from "./AbandonedCartFlow";
|
|
10
|
+
import { OrderAdjustmentData } from "./OrderAdjustment";
|
|
11
|
+
import { AvailableShippingMethodData } from "./AvailableShippingMethod";
|
|
12
|
+
import { OrderAddressData } from "./OrderAddress";
|
|
13
|
+
import { CartData } from "./Cart";
|
|
14
|
+
import { CheckoutCustomerData } from "./CheckoutCustomer";
|
|
15
|
+
import { OrderGiftPackageLineData } from "./OrderGiftPackageLine";
|
|
16
|
+
import { OrderShippingLineData } from "./OrderShippingLine";
|
|
17
|
+
|
|
18
|
+
export class CheckoutData extends BaseModelData {
|
|
19
|
+
abandonedCheckoutFlows: AbandonedCartFlowData[] | null;
|
|
20
|
+
adjustments: OrderAdjustmentData[] | null;
|
|
21
|
+
availableShippingMethods: AvailableShippingMethodData[] | null;
|
|
22
|
+
billingAddress: OrderAddressData | null;
|
|
23
|
+
cart: CartData | null;
|
|
24
|
+
cartId: string;
|
|
25
|
+
couponCode: string | null;
|
|
26
|
+
customer: CheckoutCustomerData | null;
|
|
27
|
+
giftPackageLines: OrderGiftPackageLineData[] | null;
|
|
28
|
+
giftPackageNote: string | null;
|
|
29
|
+
isGiftPackage: boolean | null;
|
|
30
|
+
merchantId: string;
|
|
31
|
+
note: string | null;
|
|
32
|
+
orderId: string | null;
|
|
33
|
+
orderNumber: string | null;
|
|
34
|
+
orderedAt: any | null;
|
|
35
|
+
recoverEmailStatus: CheckoutRecoveryEmailStatusEnum | null;
|
|
36
|
+
recoveryStatus: CheckoutRecoveryStatusEnum | null;
|
|
37
|
+
shippingAddress: OrderAddressData | null;
|
|
38
|
+
shippingLines: OrderShippingLineData[] | null;
|
|
39
|
+
shippingMethod: ShippingMethodEnum;
|
|
40
|
+
shippingSettingsId: string | null;
|
|
41
|
+
shippingZoneRateId: string | null;
|
|
42
|
+
status: CheckoutStatusEnum;
|
|
43
|
+
stockLocationId: string | null;
|
|
44
|
+
totalFinalPrice: number;
|
|
45
|
+
|
|
46
|
+
constructor(data: Partial<CheckoutData> = {}) {
|
|
47
|
+
super(data);
|
|
48
|
+
|
|
49
|
+
this.abandonedCheckoutFlows = data.abandonedCheckoutFlows
|
|
50
|
+
? data.abandonedCheckoutFlows.map((a) => new AbandonedCartFlowData(a))
|
|
51
|
+
: null;
|
|
52
|
+
this.adjustments = data.adjustments
|
|
53
|
+
? data.adjustments.map((o) => new OrderAdjustmentData(o))
|
|
54
|
+
: null;
|
|
55
|
+
this.availableShippingMethods = data.availableShippingMethods
|
|
56
|
+
? data.availableShippingMethods.map(
|
|
57
|
+
(a) => new AvailableShippingMethodData(a)
|
|
58
|
+
)
|
|
59
|
+
: null;
|
|
60
|
+
this.billingAddress = data.billingAddress
|
|
61
|
+
? new OrderAddressData(data.billingAddress)
|
|
62
|
+
: null;
|
|
63
|
+
this.cart = data.cart ? new CartData(data.cart) : null;
|
|
64
|
+
this.cartId = data.cartId || "";
|
|
65
|
+
this.couponCode = data.couponCode || null;
|
|
66
|
+
this.customer = data.customer
|
|
67
|
+
? new CheckoutCustomerData(data.customer)
|
|
68
|
+
: null;
|
|
69
|
+
this.giftPackageLines = data.giftPackageLines
|
|
70
|
+
? data.giftPackageLines.map((o) => new OrderGiftPackageLineData(o))
|
|
71
|
+
: null;
|
|
72
|
+
this.giftPackageNote = data.giftPackageNote || null;
|
|
73
|
+
this.isGiftPackage =
|
|
74
|
+
data.isGiftPackage !== undefined && data.isGiftPackage !== null
|
|
75
|
+
? data.isGiftPackage
|
|
76
|
+
: null;
|
|
77
|
+
this.merchantId = data.merchantId || "";
|
|
78
|
+
this.note = data.note || null;
|
|
79
|
+
this.orderId = data.orderId || null;
|
|
80
|
+
this.orderNumber = data.orderNumber || null;
|
|
81
|
+
this.orderedAt = data.orderedAt || null;
|
|
82
|
+
this.recoverEmailStatus = data.recoverEmailStatus || null;
|
|
83
|
+
this.recoveryStatus = data.recoveryStatus || null;
|
|
84
|
+
this.shippingAddress = data.shippingAddress
|
|
85
|
+
? new OrderAddressData(data.shippingAddress)
|
|
86
|
+
: null;
|
|
87
|
+
this.shippingLines = data.shippingLines
|
|
88
|
+
? data.shippingLines.map((o) => new OrderShippingLineData(o))
|
|
89
|
+
: null;
|
|
90
|
+
this.shippingMethod =
|
|
91
|
+
data.shippingMethod || ShippingMethodEnum.CLICK_AND_COLLECT;
|
|
92
|
+
this.shippingSettingsId = data.shippingSettingsId || null;
|
|
93
|
+
this.shippingZoneRateId = data.shippingZoneRateId || null;
|
|
94
|
+
this.status = data.status || CheckoutStatusEnum.COMPLETED;
|
|
95
|
+
this.stockLocationId = data.stockLocationId || null;
|
|
96
|
+
this.totalFinalPrice = data.totalFinalPrice || 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export class Checkout extends CheckoutData {}
|
|
101
|
+
export type PartialCheckout = Partial<Checkout>;
|
|
102
|
+
export type ReadOnlyCheckout = DeepReadonly<Checkout>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import {
|
|
3
|
+
CustomerAccountStatusEnum,
|
|
4
|
+
CustomerEmailSubscriptionStatusesEnum,
|
|
5
|
+
} from "../types";
|
|
6
|
+
|
|
7
|
+
export class CheckoutCustomerData {
|
|
8
|
+
accountStatus: CustomerAccountStatusEnum | null;
|
|
9
|
+
customerGroupIds: string[] | null;
|
|
10
|
+
email: string | null;
|
|
11
|
+
firstName: string | null;
|
|
12
|
+
id: string | null;
|
|
13
|
+
identityNumber: string | null;
|
|
14
|
+
lastName: string | null;
|
|
15
|
+
notificationsAccepted: boolean | null;
|
|
16
|
+
phone: string | null;
|
|
17
|
+
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
18
|
+
|
|
19
|
+
constructor(data: Partial<CheckoutCustomerData> = {}) {
|
|
20
|
+
this.accountStatus = data.accountStatus || null;
|
|
21
|
+
this.customerGroupIds = data.customerGroupIds || null;
|
|
22
|
+
this.email = data.email || null;
|
|
23
|
+
this.firstName = data.firstName || null;
|
|
24
|
+
this.id = data.id || null;
|
|
25
|
+
this.identityNumber = data.identityNumber || null;
|
|
26
|
+
this.lastName = data.lastName || null;
|
|
27
|
+
this.notificationsAccepted =
|
|
28
|
+
data.notificationsAccepted !== undefined &&
|
|
29
|
+
data.notificationsAccepted !== null
|
|
30
|
+
? data.notificationsAccepted
|
|
31
|
+
: null;
|
|
32
|
+
this.phone = data.phone || null;
|
|
33
|
+
this.subscriptionStatus = data.subscriptionStatus || null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class CheckoutCustomer extends CheckoutCustomerData {}
|
|
38
|
+
export type PartialCheckoutCustomer = Partial<CheckoutCustomer>;
|
|
39
|
+
export type ReadOnlyCheckoutCustomer = DeepReadonly<CheckoutCustomer>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CheckoutCustomerInputData {
|
|
4
|
+
email: string | null;
|
|
5
|
+
firstName: string | null;
|
|
6
|
+
id: string | null;
|
|
7
|
+
lastName: string | null;
|
|
8
|
+
notificationsAccepted: boolean | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<CheckoutCustomerInputData> = {}) {
|
|
11
|
+
this.email = data.email || null;
|
|
12
|
+
this.firstName = data.firstName || null;
|
|
13
|
+
this.id = data.id || null;
|
|
14
|
+
this.lastName = data.lastName || null;
|
|
15
|
+
this.notificationsAccepted =
|
|
16
|
+
data.notificationsAccepted !== undefined &&
|
|
17
|
+
data.notificationsAccepted !== null
|
|
18
|
+
? data.notificationsAccepted
|
|
19
|
+
: null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class CheckoutCustomerInput extends CheckoutCustomerInputData {}
|
|
24
|
+
export type PartialCheckoutCustomerInput = Partial<CheckoutCustomerInput>;
|
|
25
|
+
export type ReadOnlyCheckoutCustomerInput = DeepReadonly<CheckoutCustomerInput>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CheckoutOptionData {
|
|
4
|
+
name: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CheckoutOptionData> = {}) {
|
|
8
|
+
this.name = data.name || "";
|
|
9
|
+
this.required = data.required || false;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CheckoutOption extends CheckoutOptionData {}
|
|
14
|
+
export type PartialCheckoutOption = Partial<CheckoutOption>;
|
|
15
|
+
export type ReadOnlyCheckoutOption = DeepReadonly<CheckoutOption>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CheckoutRequirementEnum } from "../types";
|
|
4
|
+
import { CheckoutSettingsPriceData } from "./CheckoutSettingsPrice";
|
|
5
|
+
import { CheckoutOptionData } from "./CheckoutOption";
|
|
6
|
+
|
|
7
|
+
export class CheckoutSettingsData extends BaseModelData {
|
|
8
|
+
giftPackagePriceList: CheckoutSettingsPriceData[] | null;
|
|
9
|
+
identityNumberRequirement: CheckoutRequirementEnum;
|
|
10
|
+
isAccountRequired: boolean;
|
|
11
|
+
isGiftPackageEnabled: boolean | null;
|
|
12
|
+
isShowPostalCode: boolean | null;
|
|
13
|
+
isTermsAndConditionsDefaultChecked: boolean | null;
|
|
14
|
+
options: CheckoutOptionData[] | null;
|
|
15
|
+
phoneRequirement: CheckoutRequirementEnum;
|
|
16
|
+
postalCodeRequirement: CheckoutRequirementEnum | null;
|
|
17
|
+
showCheckoutNote: boolean | null;
|
|
18
|
+
showTermsAndConditionsCheckbox: boolean;
|
|
19
|
+
storefrontId: string;
|
|
20
|
+
|
|
21
|
+
constructor(data: Partial<CheckoutSettingsData> = {}) {
|
|
22
|
+
super(data);
|
|
23
|
+
|
|
24
|
+
this.giftPackagePriceList = data.giftPackagePriceList
|
|
25
|
+
? data.giftPackagePriceList.map((c) => new CheckoutSettingsPriceData(c))
|
|
26
|
+
: null;
|
|
27
|
+
this.identityNumberRequirement =
|
|
28
|
+
data.identityNumberRequirement || CheckoutRequirementEnum.INVISIBLE;
|
|
29
|
+
this.isAccountRequired = data.isAccountRequired || false;
|
|
30
|
+
this.isGiftPackageEnabled =
|
|
31
|
+
data.isGiftPackageEnabled !== undefined &&
|
|
32
|
+
data.isGiftPackageEnabled !== null
|
|
33
|
+
? data.isGiftPackageEnabled
|
|
34
|
+
: null;
|
|
35
|
+
this.isShowPostalCode =
|
|
36
|
+
data.isShowPostalCode !== undefined && data.isShowPostalCode !== null
|
|
37
|
+
? data.isShowPostalCode
|
|
38
|
+
: null;
|
|
39
|
+
this.isTermsAndConditionsDefaultChecked =
|
|
40
|
+
data.isTermsAndConditionsDefaultChecked !== undefined &&
|
|
41
|
+
data.isTermsAndConditionsDefaultChecked !== null
|
|
42
|
+
? data.isTermsAndConditionsDefaultChecked
|
|
43
|
+
: null;
|
|
44
|
+
this.options = data.options
|
|
45
|
+
? data.options.map((c) => new CheckoutOptionData(c))
|
|
46
|
+
: null;
|
|
47
|
+
this.phoneRequirement =
|
|
48
|
+
data.phoneRequirement || CheckoutRequirementEnum.INVISIBLE;
|
|
49
|
+
this.postalCodeRequirement = data.postalCodeRequirement || null;
|
|
50
|
+
this.showCheckoutNote =
|
|
51
|
+
data.showCheckoutNote !== undefined && data.showCheckoutNote !== null
|
|
52
|
+
? data.showCheckoutNote
|
|
53
|
+
: null;
|
|
54
|
+
this.showTermsAndConditionsCheckbox =
|
|
55
|
+
data.showTermsAndConditionsCheckbox || false;
|
|
56
|
+
this.storefrontId = data.storefrontId || "";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class CheckoutSettings extends CheckoutSettingsData {}
|
|
61
|
+
export type PartialCheckoutSettings = Partial<CheckoutSettings>;
|
|
62
|
+
export type ReadOnlyCheckoutSettings = DeepReadonly<CheckoutSettings>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CheckoutSettingsPriceData {
|
|
4
|
+
currencyCode: string;
|
|
5
|
+
price: number;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CheckoutSettingsPriceData> = {}) {
|
|
8
|
+
this.currencyCode = data.currencyCode || "";
|
|
9
|
+
this.price = data.price || 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CheckoutSettingsPrice extends CheckoutSettingsPriceData {}
|
|
14
|
+
export type PartialCheckoutSettingsPrice = Partial<CheckoutSettingsPrice>;
|
|
15
|
+
export type ReadOnlyCheckoutSettingsPrice = DeepReadonly<CheckoutSettingsPrice>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class CityData extends BaseModelData {
|
|
5
|
+
cityCode: string | null;
|
|
6
|
+
countryId: string;
|
|
7
|
+
latitude: string | null;
|
|
8
|
+
longitude: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
order: number | null;
|
|
11
|
+
stateId: string;
|
|
12
|
+
|
|
13
|
+
constructor(data: Partial<CityData> = {}) {
|
|
14
|
+
super(data);
|
|
15
|
+
|
|
16
|
+
this.cityCode = data.cityCode || null;
|
|
17
|
+
this.countryId = data.countryId || "";
|
|
18
|
+
this.latitude = data.latitude || null;
|
|
19
|
+
this.longitude = data.longitude || null;
|
|
20
|
+
this.name = data.name || "";
|
|
21
|
+
this.order =
|
|
22
|
+
data.order !== undefined && data.order !== null ? data.order : null;
|
|
23
|
+
this.stateId = data.stateId || "";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class City extends CityData {}
|
|
28
|
+
export type PartialCity = Partial<City>;
|
|
29
|
+
export type ReadOnlyCity = DeepReadonly<City>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { LocationTranslationsData } from "./LocationTranslations";
|
|
4
|
+
|
|
5
|
+
export class CountryData extends BaseModelData {
|
|
6
|
+
capital: string | null;
|
|
7
|
+
currency: string | null;
|
|
8
|
+
emoji: string | null;
|
|
9
|
+
emojiString: string | null;
|
|
10
|
+
iso2: string | null;
|
|
11
|
+
iso3: string | null;
|
|
12
|
+
locationTranslations: LocationTranslationsData;
|
|
13
|
+
name: string;
|
|
14
|
+
native: string | null;
|
|
15
|
+
phoneCode: string | null;
|
|
16
|
+
region: string | null;
|
|
17
|
+
subregion: string | null;
|
|
18
|
+
|
|
19
|
+
constructor(data: Partial<CountryData> = {}) {
|
|
20
|
+
super(data);
|
|
21
|
+
|
|
22
|
+
this.capital = data.capital || null;
|
|
23
|
+
this.currency = data.currency || null;
|
|
24
|
+
this.emoji = data.emoji || null;
|
|
25
|
+
this.emojiString = data.emojiString || null;
|
|
26
|
+
this.iso2 = data.iso2 || null;
|
|
27
|
+
this.iso3 = data.iso3 || null;
|
|
28
|
+
this.locationTranslations = data.locationTranslations
|
|
29
|
+
? new LocationTranslationsData(data.locationTranslations)
|
|
30
|
+
: new LocationTranslationsData();
|
|
31
|
+
this.name = data.name || "";
|
|
32
|
+
this.native = data.native || null;
|
|
33
|
+
this.phoneCode = data.phoneCode || null;
|
|
34
|
+
this.region = data.region || null;
|
|
35
|
+
this.subregion = data.subregion || null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class Country extends CountryData {}
|
|
40
|
+
export type PartialCountry = Partial<Country>;
|
|
41
|
+
export type ReadOnlyCountry = DeepReadonly<Country>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class CreateCustomerEmailSubscriptionInputData extends BaseModelData {
|
|
5
|
+
email: string;
|
|
6
|
+
firstName: string | null;
|
|
7
|
+
lastName: string | null;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<CreateCustomerEmailSubscriptionInputData> = {}) {
|
|
10
|
+
super(data);
|
|
11
|
+
|
|
12
|
+
this.email = data.email || "";
|
|
13
|
+
this.firstName = data.firstName || null;
|
|
14
|
+
this.lastName = data.lastName || null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class CreateCustomerEmailSubscriptionInput extends CreateCustomerEmailSubscriptionInputData {}
|
|
19
|
+
export type PartialCreateCustomerEmailSubscriptionInput =
|
|
20
|
+
Partial<CreateCustomerEmailSubscriptionInput>;
|
|
21
|
+
export type ReadOnlyCreateCustomerEmailSubscriptionInput =
|
|
22
|
+
DeepReadonly<CreateCustomerEmailSubscriptionInput>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class CreateCustomerReviewInputData extends BaseModelData {
|
|
5
|
+
comment: string | null;
|
|
6
|
+
customerId: string | null;
|
|
7
|
+
email: string | null;
|
|
8
|
+
firstName: string | null;
|
|
9
|
+
lastName: string | null;
|
|
10
|
+
orderId: string | null;
|
|
11
|
+
orderNumber: string | null;
|
|
12
|
+
productId: string;
|
|
13
|
+
salesChannelId: string;
|
|
14
|
+
star: number;
|
|
15
|
+
title: string | null;
|
|
16
|
+
|
|
17
|
+
constructor(data: Partial<CreateCustomerReviewInputData> = {}) {
|
|
18
|
+
super(data);
|
|
19
|
+
|
|
20
|
+
this.comment = data.comment || null;
|
|
21
|
+
this.customerId = data.customerId || null;
|
|
22
|
+
this.email = data.email || null;
|
|
23
|
+
this.firstName = data.firstName || null;
|
|
24
|
+
this.lastName = data.lastName || null;
|
|
25
|
+
this.orderId = data.orderId || null;
|
|
26
|
+
this.orderNumber = data.orderNumber || null;
|
|
27
|
+
this.productId = data.productId || "";
|
|
28
|
+
this.salesChannelId = data.salesChannelId || "";
|
|
29
|
+
this.star = data.star || 0;
|
|
30
|
+
this.title = data.title || null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class CreateCustomerReviewInput extends CreateCustomerReviewInputData {}
|
|
35
|
+
export type PartialCreateCustomerReviewInput =
|
|
36
|
+
Partial<CreateCustomerReviewInput>;
|
|
37
|
+
export type ReadOnlyCreateCustomerReviewInput =
|
|
38
|
+
DeepReadonly<CreateCustomerReviewInput>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CreateSaleTransactionMasterPassPaymentMethodDetailData {
|
|
4
|
+
phoneNumber: string | null;
|
|
5
|
+
savedCardName: string | null;
|
|
6
|
+
|
|
7
|
+
constructor(
|
|
8
|
+
data: Partial<CreateSaleTransactionMasterPassPaymentMethodDetailData> = {}
|
|
9
|
+
) {
|
|
10
|
+
this.phoneNumber = data.phoneNumber || null;
|
|
11
|
+
this.savedCardName = data.savedCardName || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CreateSaleTransactionMasterPassPaymentMethodDetail extends CreateSaleTransactionMasterPassPaymentMethodDetailData {}
|
|
16
|
+
export type PartialCreateSaleTransactionMasterPassPaymentMethodDetail =
|
|
17
|
+
Partial<CreateSaleTransactionMasterPassPaymentMethodDetail>;
|
|
18
|
+
export type ReadOnlyCreateSaleTransactionMasterPassPaymentMethodDetail =
|
|
19
|
+
DeepReadonly<CreateSaleTransactionMasterPassPaymentMethodDetail>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CreateSaleTransactionMasterPassPaymentMethodDetailData } from "./CreateSaleTransactionMasterPassPaymentMethodDetail";
|
|
3
|
+
import { PaymentMethodDetailInputData } from "./PaymentMethodDetailInput";
|
|
4
|
+
|
|
5
|
+
export class CreateSaleTransactionWithCartInputData {
|
|
6
|
+
cartId: string;
|
|
7
|
+
masterPassDetail: CreateSaleTransactionMasterPassPaymentMethodDetailData | null;
|
|
8
|
+
paymentGatewayId: string;
|
|
9
|
+
paymentMethodDetail: PaymentMethodDetailInputData | null;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<CreateSaleTransactionWithCartInputData> = {}) {
|
|
12
|
+
this.cartId = data.cartId || "";
|
|
13
|
+
this.masterPassDetail = data.masterPassDetail
|
|
14
|
+
? new CreateSaleTransactionMasterPassPaymentMethodDetailData(
|
|
15
|
+
data.masterPassDetail
|
|
16
|
+
)
|
|
17
|
+
: null;
|
|
18
|
+
this.paymentGatewayId = data.paymentGatewayId || "";
|
|
19
|
+
this.paymentMethodDetail = data.paymentMethodDetail
|
|
20
|
+
? new PaymentMethodDetailInputData(data.paymentMethodDetail)
|
|
21
|
+
: null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class CreateSaleTransactionWithCartInput extends CreateSaleTransactionWithCartInputData {}
|
|
26
|
+
export type PartialCreateSaleTransactionWithCartInput =
|
|
27
|
+
Partial<CreateSaleTransactionWithCartInput>;
|
|
28
|
+
export type ReadOnlyCreateSaleTransactionWithCartInput =
|
|
29
|
+
DeepReadonly<CreateSaleTransactionWithCartInput>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CreateSaleTransactionMasterPassPaymentMethodDetailData } from "./CreateSaleTransactionMasterPassPaymentMethodDetail";
|
|
3
|
+
import { PaymentMethodDetailInputData } from "./PaymentMethodDetailInput";
|
|
4
|
+
|
|
5
|
+
export class CreateSaleTransactionWithCheckoutInputData {
|
|
6
|
+
checkoutId: string;
|
|
7
|
+
masterPassDetail: CreateSaleTransactionMasterPassPaymentMethodDetailData | null;
|
|
8
|
+
paymentGatewayId: string;
|
|
9
|
+
paymentMethodDetail: PaymentMethodDetailInputData | null;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<CreateSaleTransactionWithCheckoutInputData> = {}) {
|
|
12
|
+
this.checkoutId = data.checkoutId || "";
|
|
13
|
+
this.masterPassDetail = data.masterPassDetail
|
|
14
|
+
? new CreateSaleTransactionMasterPassPaymentMethodDetailData(
|
|
15
|
+
data.masterPassDetail
|
|
16
|
+
)
|
|
17
|
+
: null;
|
|
18
|
+
this.paymentGatewayId = data.paymentGatewayId || "";
|
|
19
|
+
this.paymentMethodDetail = data.paymentMethodDetail
|
|
20
|
+
? new PaymentMethodDetailInputData(data.paymentMethodDetail)
|
|
21
|
+
: null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class CreateSaleTransactionWithCheckoutInput extends CreateSaleTransactionWithCheckoutInputData {}
|
|
26
|
+
export type PartialCreateSaleTransactionWithCheckoutInput =
|
|
27
|
+
Partial<CreateSaleTransactionWithCheckoutInput>;
|
|
28
|
+
export type ReadOnlyCreateSaleTransactionWithCheckoutInput =
|
|
29
|
+
DeepReadonly<CreateSaleTransactionWithCheckoutInput>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CreateStripePaymentIntentResponseData {
|
|
4
|
+
accountId: string;
|
|
5
|
+
apiKey: string;
|
|
6
|
+
callbackUrl: string;
|
|
7
|
+
clientSecret: string;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<CreateStripePaymentIntentResponseData> = {}) {
|
|
10
|
+
this.accountId = data.accountId || "";
|
|
11
|
+
this.apiKey = data.apiKey || "";
|
|
12
|
+
this.callbackUrl = data.callbackUrl || "";
|
|
13
|
+
this.clientSecret = data.clientSecret || "";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class CreateStripePaymentIntentResponse extends CreateStripePaymentIntentResponseData {}
|
|
18
|
+
export type PartialCreateStripePaymentIntentResponse =
|
|
19
|
+
Partial<CreateStripePaymentIntentResponse>;
|
|
20
|
+
export type ReadOnlyCreateStripePaymentIntentResponse =
|
|
21
|
+
DeepReadonly<CreateStripePaymentIntentResponse>;
|