@ikas/storefront 4.0.0-alpha.50 → 4.0.0-alpha.52
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/build/_virtual/_commonjsHelpers.js +1 -0
- package/build/_virtual/axios.js +1 -0
- package/build/_virtual/index.js +1 -0
- package/build/_virtual/index2.js +1 -0
- package/build/_virtual/index3.js +1 -0
- package/build/_virtual/index4.js +1 -0
- package/build/_virtual/react-is.development.js +1 -0
- package/build/_virtual/react-is.production.min.js +1 -0
- package/build/_virtual/react-stripe.umd.js +1 -0
- package/build/analytics/analytics.d.ts +37 -0
- package/build/analytics/analytics.js +1 -0
- package/build/analytics/events.d.ts +37 -0
- package/build/analytics/events.js +1 -0
- package/build/analytics/facebookPixel.d.ts +15 -0
- package/build/analytics/facebookPixel.js +1 -0
- package/build/analytics/googleAnalytics.d.ts +13 -0
- package/build/analytics/googleAnalytics.js +1 -0
- package/build/analytics/googleTagManager.d.ts +203 -0
- package/build/analytics/googleTagManager.js +1 -0
- package/build/analytics/googleUniversal.d.ts +9 -0
- package/build/analytics/googleUniversal.js +1 -0
- package/build/analytics/head/index.d.ts +7 -0
- package/build/analytics/head/index.js +1 -0
- package/build/analytics/ikas.d.ts +134 -0
- package/build/analytics/ikas.js +1 -0
- package/build/analytics/index.d.ts +2 -0
- package/build/analytics/tiktokPixel.d.ts +13 -0
- package/build/analytics/tiktokPixel.js +1 -0
- package/build/components/checkout/components/address-form/index.d.ts +3 -0
- package/build/components/checkout/components/address-form/index.js +1 -0
- package/build/components/checkout/components/address-form/model.d.ts +87 -0
- package/build/components/checkout/components/address-form/model.js +1 -0
- package/build/components/checkout/components/button/index.d.ts +13 -0
- package/build/components/checkout/components/button/index.js +1 -0
- package/build/components/checkout/components/button/style.module.scss.js +1 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +10 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -0
- package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -0
- package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/index.js +1 -0
- package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -0
- package/build/components/checkout/components/checkbox/check.d.ts +6 -0
- package/build/components/checkout/components/checkbox/check.js +1 -0
- package/build/components/checkout/components/checkbox/index.d.ts +10 -0
- package/build/components/checkout/components/checkbox/index.js +1 -0
- package/build/components/checkout/components/checkbox/style.module.scss.js +1 -0
- package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
- package/build/components/checkout/components/credit-card-form/index.js +1 -0
- package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
- package/build/components/checkout/components/credit-card-form/model.js +1 -0
- package/build/components/checkout/components/credit-card-form/style.module.scss.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.js +1 -0
- package/build/components/checkout/components/customer-addresses/index.d.ts +19 -0
- package/build/components/checkout/components/customer-addresses/index.js +1 -0
- package/build/components/checkout/components/customer-addresses/model.d.ts +21 -0
- package/build/components/checkout/components/customer-addresses/model.js +1 -0
- package/build/components/checkout/components/customer-addresses/style.module.scss.js +1 -0
- package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +10 -0
- package/build/components/checkout/components/delivery-methods/icon-button/index.js +1 -0
- package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/delivery-methods/icons/box.d.ts +6 -0
- package/build/components/checkout/components/delivery-methods/icons/box.js +1 -0
- package/build/components/checkout/components/delivery-methods/icons/store.d.ts +6 -0
- package/build/components/checkout/components/delivery-methods/icons/store.js +1 -0
- package/build/components/checkout/components/delivery-methods/index.d.ts +7 -0
- package/build/components/checkout/components/delivery-methods/index.js +1 -0
- package/build/components/checkout/components/delivery-methods/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -0
- package/build/components/checkout/components/error/index.d.ts +7 -0
- package/build/components/checkout/components/error/index.js +1 -0
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +3 -0
- package/build/components/checkout/components/error/no-shipping-error/index.js +1 -0
- package/build/components/checkout/components/error/payment-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/payment-error/index.js +1 -0
- package/build/components/checkout/components/error/stock-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/stock-error/index.js +1 -0
- package/build/components/checkout/components/error/stock-error/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/unknown-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/unknown-error/index.js +1 -0
- package/build/components/checkout/components/expandable-section/index.d.ts +6 -0
- package/build/components/checkout/components/expandable-section/index.js +1 -0
- package/build/components/checkout/components/expandable-section/style.module.scss.js +1 -0
- package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
- package/build/components/checkout/components/form-item/caret-down.js +1 -0
- package/build/components/checkout/components/form-item/index.d.ts +3 -0
- package/build/components/checkout/components/form-item/index.js +1 -0
- package/build/components/checkout/components/form-item/model.d.ts +61 -0
- package/build/components/checkout/components/form-item/model.js +1 -0
- package/build/components/checkout/components/form-item/style.module.scss.js +1 -0
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +2 -0
- package/build/components/checkout/components/fullscreen-loading/index.js +1 -0
- package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +1 -0
- package/build/components/checkout/components/input-with-button/index.d.ts +11 -0
- package/build/components/checkout/components/input-with-button/index.js +1 -0
- package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +8 -0
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -0
- package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal/index.d.ts +11 -0
- package/build/components/checkout/components/master-pass/modal/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +9 -0
- package/build/components/checkout/components/master-pass/modal-response/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-success/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/success.js +1 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +2 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +1 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +3 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +1 -0
- package/build/components/checkout/components/modal/index.d.ts +8 -0
- package/build/components/checkout/components/modal/index.js +1 -0
- package/build/components/checkout/components/modal/style.module.scss.js +1 -0
- package/build/components/checkout/components/modal/useEscape.d.ts +5 -0
- package/build/components/checkout/components/modal/useEscape.js +1 -0
- package/build/components/checkout/components/notification-box/index.d.ts +9 -0
- package/build/components/checkout/components/notification-box/index.js +1 -0
- package/build/components/checkout/components/notification-box/style.module.scss.js +1 -0
- package/build/components/checkout/components/offer-product/index.d.ts +8 -0
- package/build/components/checkout/components/offer-product/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +6 -0
- package/build/components/checkout/components/offer-product/select/arrows.js +1 -0
- package/build/components/checkout/components/offer-product/select/index.d.ts +11 -0
- package/build/components/checkout/components/offer-product/select/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +1 -0
- package/build/components/checkout/components/offer-product/style.module.scss.js +1 -0
- package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +2 -0
- package/build/components/checkout/components/phone-number-input/compare-strings.js +1 -0
- package/build/components/checkout/components/phone-number-input/get-countries.d.ts +7 -0
- package/build/components/checkout/components/phone-number-input/get-countries.js +1 -0
- package/build/components/checkout/components/phone-number-input/index.d.ts +10 -0
- package/build/components/checkout/components/phone-number-input/index.js +1 -0
- package/build/components/checkout/components/phone-number-input/style.module.scss.js +1 -0
- package/build/components/checkout/components/select-box/index.d.ts +13 -0
- package/build/components/checkout/components/select-box/index.js +1 -0
- package/build/components/checkout/components/select-box/style.module.scss.js +1 -0
- package/build/components/checkout/components/step-container/index.d.ts +15 -0
- package/build/components/checkout/components/step-container/index.js +1 -0
- package/build/components/checkout/components/step-container/style.module.scss.js +1 -0
- package/build/components/checkout/components/stripe/checkout-form.d.ts +8 -0
- package/build/components/checkout/components/stripe/checkout-form.js +1 -0
- package/build/components/checkout/components/stripe/index.d.ts +9 -0
- package/build/components/checkout/components/stripe/index.js +1 -0
- package/build/components/checkout/components/stripe/style.module.scss.js +1 -0
- package/build/components/checkout/components/svg/arrow-down.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-down.js +1 -0
- package/build/components/checkout/components/svg/arrow-left.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-right.d.ts +6 -0
- package/build/components/checkout/components/svg/cross.d.ts +6 -0
- package/build/components/checkout/components/svg/cross.js +1 -0
- package/build/components/checkout/components/svg/discount.d.ts +6 -0
- package/build/components/checkout/components/svg/external.d.ts +6 -0
- package/build/components/checkout/components/svg/external.js +1 -0
- package/build/components/checkout/components/svg/gift.d.ts +7 -0
- package/build/components/checkout/components/svg/gift.js +1 -0
- package/build/components/checkout/components/svg/ikas.d.ts +6 -0
- package/build/components/checkout/components/svg/ikas.js +1 -0
- package/build/components/checkout/components/svg/lock.d.ts +6 -0
- package/build/components/checkout/components/svg/lock.js +1 -0
- package/build/components/checkout/components/svg/shopping-cart.d.ts +6 -0
- package/build/components/checkout/components/svg/success-circle.d.ts +6 -0
- package/build/components/checkout/components/svg/success-circle.js +1 -0
- package/build/components/checkout/components/svg/tag.d.ts +6 -0
- package/build/components/checkout/components/svg/warning.d.ts +6 -0
- package/build/components/checkout/components/svg/warning.js +1 -0
- package/build/components/checkout/components/toggle/index.d.ts +10 -0
- package/build/components/checkout/components/toggle/index.js +1 -0
- package/build/components/checkout/components/toggle/style.module.scss.js +1 -0
- package/build/components/checkout/components/tooltip/index.d.ts +8 -0
- package/build/components/checkout/components/tooltip/index.js +1 -0
- package/build/components/checkout/components/tooltip/style.module.scss.js +1 -0
- package/build/components/checkout/index.d.ts +32 -0
- package/build/components/checkout/index.js +1 -0
- package/build/components/checkout/model.d.ts +161 -0
- package/build/components/checkout/model.js +1 -0
- package/build/components/checkout/modelMasterPass.d.ts +201 -0
- package/build/components/checkout/modelMasterPass.js +1 -0
- package/build/components/checkout/steps/step-info/index.d.ts +7 -0
- package/build/components/checkout/steps/step-info/index.js +1 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -0
- package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
- package/build/components/checkout/steps/step-shipping/index.js +1 -0
- package/build/components/checkout/steps/step-shipping/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-success/index.d.ts +7 -0
- package/build/components/checkout/steps/step-success/index.js +1 -0
- package/build/components/checkout/steps/step-success/style.module.scss.js +1 -0
- package/build/components/checkout/style.module.scss.js +1 -0
- package/build/components/checkout/styles/common.module.scss.js +1 -0
- package/build/components/image/index.d.ts +10 -0
- package/build/components/image/index.js +1 -0
- package/build/components/index.d.ts +5 -0
- package/build/components/link/index.d.ts +16 -0
- package/build/components/link/index.js +1 -0
- package/build/components/page/ThemeComponent.d.ts +21 -0
- package/build/components/page/ThemeComponent.js +1 -0
- package/build/components/page/head.d.ts +15 -0
- package/build/components/page/head.js +1 -0
- package/build/components/page/index.d.ts +21 -0
- package/build/components/page/index.js +1 -0
- package/build/components/page-editor/ThemeComponentEditor.d.ts +32 -0
- package/build/components/page-editor/ThemeComponentEditor.js +1 -0
- package/build/components/page-editor/error/index.d.ts +4 -0
- package/build/components/page-editor/error/index.js +1 -0
- package/build/components/page-editor/index.d.ts +4 -0
- package/build/components/page-editor/index.js +1 -0
- package/build/components/page-editor/loader/index.d.ts +6 -0
- package/build/components/page-editor/loader/index.js +1 -0
- package/build/components/page-editor/loader/style.module.scss.js +1 -0
- package/build/components/page-editor/model.d.ts +75 -0
- package/build/components/page-editor/model.js +1 -0
- package/build/index.d.ts +6 -0
- package/build/index.js +1 -0
- package/build/models/data/base/index.d.ts +8 -0
- package/build/models/data/base/index.js +1 -0
- package/build/models/data/blog/category/index.d.ts +12 -0
- package/build/models/data/blog/category/index.js +1 -0
- package/build/models/data/blog/content/index.d.ts +6 -0
- package/build/models/data/blog/content/index.js +1 -0
- package/build/models/data/blog/index.d.ts +27 -0
- package/build/models/data/blog/index.js +1 -0
- package/build/models/data/blog/meta-data/index.d.ts +16 -0
- package/build/models/data/blog/meta-data/index.js +1 -0
- package/build/models/data/blog/tag/index.d.ts +6 -0
- package/build/models/data/blog/tag/index.js +1 -0
- package/build/models/data/blog/writer/index.d.ts +6 -0
- package/build/models/data/blog/writer/index.js +1 -0
- package/build/models/data/brand/index.d.ts +26 -0
- package/build/models/data/brand/index.js +1 -0
- package/build/models/data/brand/translation/index.d.ts +7 -0
- package/build/models/data/brand/translation/index.js +1 -0
- package/build/models/data/campaign-offer/index.d.ts +21 -0
- package/build/models/data/campaign-offer/index.js +1 -0
- package/build/models/data/campaign-offer/product/index.d.ts +24 -0
- package/build/models/data/campaign-offer/product/index.js +1 -0
- package/build/models/data/cart/available-shipping-method/index.d.ts +10 -0
- package/build/models/data/cart/available-shipping-method/index.js +1 -0
- package/build/models/data/cart/campaign-offer/index.d.ts +16 -0
- package/build/models/data/cart/campaign-offer/index.js +1 -0
- package/build/models/data/cart/index.d.ts +13 -0
- package/build/models/data/cart/index.js +1 -0
- package/build/models/data/category/index.d.ts +22 -0
- package/build/models/data/category/index.js +1 -0
- package/build/models/data/category/path-item/index.d.ts +14 -0
- package/build/models/data/category/path-item/index.js +1 -0
- package/build/models/data/category/translations/index.d.ts +7 -0
- package/build/models/data/category/translations/index.js +1 -0
- package/build/models/data/checkout/index.d.ts +22 -0
- package/build/models/data/checkout/index.js +1 -0
- package/build/models/data/checkout-settings/index.d.ts +20 -0
- package/build/models/data/checkout-settings/index.js +1 -0
- package/build/models/data/checkout-settings/option/index.d.ts +6 -0
- package/build/models/data/checkout-settings/option/index.js +1 -0
- package/build/models/data/checkout-settings/price/index.d.ts +7 -0
- package/build/models/data/checkout-settings/price/index.js +1 -0
- package/build/models/data/city/index.d.ts +12 -0
- package/build/models/data/city/index.js +1 -0
- package/build/models/data/contact-form/index.d.ts +9 -0
- package/build/models/data/contact-form/index.js +1 -0
- package/build/models/data/country/index.d.ts +18 -0
- package/build/models/data/country/index.js +1 -0
- package/build/models/data/country/location-translations/index.d.ts +7 -0
- package/build/models/data/customer/address/city/index.d.ts +7 -0
- package/build/models/data/customer/address/city/index.js +1 -0
- package/build/models/data/customer/address/country/index.d.ts +9 -0
- package/build/models/data/customer/address/country/index.js +1 -0
- package/build/models/data/customer/address/district/index.d.ts +7 -0
- package/build/models/data/customer/address/district/index.js +1 -0
- package/build/models/data/customer/address/index.d.ts +40 -0
- package/build/models/data/customer/address/index.js +1 -0
- package/build/models/data/customer/address/state/index.d.ts +7 -0
- package/build/models/data/customer/address/state/index.js +1 -0
- package/build/models/data/customer/attribute/index.d.ts +17 -0
- package/build/models/data/customer/attribute/index.js +1 -0
- package/build/models/data/customer/attribute/option/index.d.ts +9 -0
- package/build/models/data/customer/attribute/option/index.js +1 -0
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +8 -0
- package/build/models/data/customer/attribute/sales-channel/index.js +1 -0
- package/build/models/data/customer/attribute/translation/index.d.ts +9 -0
- package/build/models/data/customer/attribute/translation/index.js +1 -0
- package/build/models/data/customer/attribute/translation/option/index.d.ts +6 -0
- package/build/models/data/customer/attribute/translation/option/index.js +1 -0
- package/build/models/data/customer/attribute/value/index.d.ts +11 -0
- package/build/models/data/customer/attribute/value/index.js +1 -0
- package/build/models/data/customer/index.d.ts +38 -0
- package/build/models/data/customer/index.js +1 -0
- package/build/models/data/customer/review/index.d.ts +22 -0
- package/build/models/data/customer/review/index.js +1 -0
- package/build/models/data/customer/review/settings/index.d.ts +6 -0
- package/build/models/data/customer/review/settings/index.js +1 -0
- package/build/models/data/customer/review/summary/index.d.ts +10 -0
- package/build/models/data/customer/review/summary/index.js +1 -0
- package/build/models/data/customer/review/summary/star/index.d.ts +6 -0
- package/build/models/data/customer/review/summary/star/index.js +1 -0
- package/build/models/data/district/index.d.ts +12 -0
- package/build/models/data/district/index.js +1 -0
- package/build/models/data/favorite-product/index.d.ts +7 -0
- package/build/models/data/favorite-product/index.js +1 -0
- package/build/models/data/filter-category/index.d.ts +12 -0
- package/build/models/data/filter-category/index.js +1 -0
- package/build/models/data/html-meta-data/index.d.ts +28 -0
- package/build/models/data/html-meta-data/index.js +1 -0
- package/build/models/data/html-meta-data/translations/index.d.ts +7 -0
- package/build/models/data/html-meta-data/translations/index.js +1 -0
- package/build/models/data/image/index.d.ts +9 -0
- package/build/models/data/image/index.js +1 -0
- package/build/models/data/index.d.ts +136 -0
- package/build/models/data/last-viewed-product/index.d.ts +6 -0
- package/build/models/data/last-viewed-product/index.js +1 -0
- package/build/models/data/merchant-settings/index.d.ts +12 -0
- package/build/models/data/merchant-settings/index.js +1 -0
- package/build/models/data/order/address/city/index.d.ts +7 -0
- package/build/models/data/order/address/city/index.js +1 -0
- package/build/models/data/order/address/country/index.d.ts +9 -0
- package/build/models/data/order/address/country/index.js +1 -0
- package/build/models/data/order/address/district/index.d.ts +7 -0
- package/build/models/data/order/address/district/index.js +1 -0
- package/build/models/data/order/address/index.d.ts +37 -0
- package/build/models/data/order/address/index.js +1 -0
- package/build/models/data/order/address/state/index.d.ts +7 -0
- package/build/models/data/order/address/state/index.js +1 -0
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +8 -0
- package/build/models/data/order/adjustment/applied-order-line/index.js +1 -0
- package/build/models/data/order/adjustment/index.d.ts +15 -0
- package/build/models/data/order/adjustment/index.js +1 -0
- package/build/models/data/order/customer/index.d.ts +11 -0
- package/build/models/data/order/customer/index.js +1 -0
- package/build/models/data/order/gift-line/index.d.ts +6 -0
- package/build/models/data/order/gift-line/index.js +1 -0
- package/build/models/data/order/index.d.ts +67 -0
- package/build/models/data/order/index.js +1 -0
- package/build/models/data/order/invoice/index.d.ts +12 -0
- package/build/models/data/order/invoice/index.js +1 -0
- package/build/models/data/order/line-item/base-unit/index.d.ts +9 -0
- package/build/models/data/order/line-item/base-unit/index.js +1 -0
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +6 -0
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +1 -0
- package/build/models/data/order/line-item/discount/index.d.ts +11 -0
- package/build/models/data/order/line-item/discount/index.js +1 -0
- package/build/models/data/order/line-item/index.d.ts +45 -0
- package/build/models/data/order/line-item/index.js +1 -0
- package/build/models/data/order/line-item/option/index.d.ts +10 -0
- package/build/models/data/order/line-item/option/index.js +1 -0
- package/build/models/data/order/line-item/option/value/index.d.ts +7 -0
- package/build/models/data/order/line-item/option/value/index.js +1 -0
- package/build/models/data/order/line-item/variant/brand/index.d.ts +6 -0
- package/build/models/data/order/line-item/variant/brand/index.js +1 -0
- package/build/models/data/order/line-item/variant/category/index.d.ts +12 -0
- package/build/models/data/order/line-item/variant/category/index.js +1 -0
- package/build/models/data/order/line-item/variant/index.d.ts +30 -0
- package/build/models/data/order/line-item/variant/index.js +1 -0
- package/build/models/data/order/line-item/variant/price/index.d.ts +10 -0
- package/build/models/data/order/line-item/variant/price/index.js +1 -0
- package/build/models/data/order/line-item/variant/unit/index.d.ts +6 -0
- package/build/models/data/order/line-item/variant/unit/index.js +1 -0
- package/build/models/data/order/line-item/variant/value/index.d.ts +11 -0
- package/build/models/data/order/line-item/variant/value/index.js +1 -0
- package/build/models/data/order/package/index.d.ts +14 -0
- package/build/models/data/order/package/index.js +1 -0
- package/build/models/data/order/package/tracking-info/index.d.ts +9 -0
- package/build/models/data/order/package/tracking-info/index.js +1 -0
- package/build/models/data/order/payment-method/index.d.ts +9 -0
- package/build/models/data/order/payment-method/index.js +1 -0
- package/build/models/data/order/refund/index.d.ts +7 -0
- package/build/models/data/order/refund/index.js +1 -0
- package/build/models/data/order/refund/line-item/index.d.ts +6 -0
- package/build/models/data/order/refund/line-item/index.js +1 -0
- package/build/models/data/order/refund/settings/index.d.ts +7 -0
- package/build/models/data/order/refund/settings/index.js +1 -0
- package/build/models/data/order/shipping-line/index.d.ts +12 -0
- package/build/models/data/order/shipping-line/index.js +1 -0
- package/build/models/data/order/tax-line/index.d.ts +6 -0
- package/build/models/data/order/tax-line/index.js +1 -0
- package/build/models/data/order/transaction/error/index.d.ts +7 -0
- package/build/models/data/order/transaction/error/index.js +1 -0
- package/build/models/data/order/transaction/index.d.ts +25 -0
- package/build/models/data/order/transaction/index.js +1 -0
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +13 -0
- package/build/models/data/order/transaction/payment-method-detail/index.js +1 -0
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +9 -0
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +1 -0
- package/build/models/data/payment-gateway/additional-price/index.d.ts +9 -0
- package/build/models/data/payment-gateway/additional-price/index.js +1 -0
- package/build/models/data/payment-gateway/index.d.ts +31 -0
- package/build/models/data/payment-gateway/index.js +1 -0
- package/build/models/data/payment-gateway/settings/index.d.ts +10 -0
- package/build/models/data/payment-gateway/settings/index.js +1 -0
- package/build/models/data/payment-gateway/translation/index.d.ts +7 -0
- package/build/models/data/payment-gateway/translation/index.js +1 -0
- package/build/models/data/product/attribute/index.d.ts +15 -0
- package/build/models/data/product/attribute/index.js +1 -0
- package/build/models/data/product/attribute/option/index.d.ts +6 -0
- package/build/models/data/product/attribute/option/index.js +1 -0
- package/build/models/data/product/attribute/table-cell/index.d.ts +6 -0
- package/build/models/data/product/attribute/table-cell/index.js +1 -0
- package/build/models/data/product/attribute/table-template/index.d.ts +7 -0
- package/build/models/data/product/attribute/table-template/index.js +1 -0
- package/build/models/data/product/attribute/translation/index.d.ts +13 -0
- package/build/models/data/product/attribute/translation/index.js +1 -0
- package/build/models/data/product/attribute-value/index.d.ts +28 -0
- package/build/models/data/product/attribute-value/index.js +1 -0
- package/build/models/data/product/back-in-stock-settings/index.d.ts +5 -0
- package/build/models/data/product/back-in-stock-settings/index.js +1 -0
- package/build/models/data/product/base-unit/index.d.ts +12 -0
- package/build/models/data/product/base-unit/index.js +1 -0
- package/build/models/data/product/campaign/data/index.d.ts +27 -0
- package/build/models/data/product/campaign/data/index.js +1 -0
- package/build/models/data/product/campaign/filter/index.d.ts +7 -0
- package/build/models/data/product/campaign/filter/index.js +1 -0
- package/build/models/data/product/campaign/index.d.ts +7 -0
- package/build/models/data/product/campaign/index.js +1 -0
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +20 -0
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +1 -0
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +6 -0
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +1 -0
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +14 -0
- package/build/models/data/product/campaign/product-fixed-discount/index.js +1 -0
- package/build/models/data/product/filter/index.d.ts +84 -0
- package/build/models/data/product/filter/index.js +1 -0
- package/build/models/data/product/image/index.d.ts +10 -0
- package/build/models/data/product/image/index.js +1 -0
- package/build/models/data/product/index.d.ts +62 -0
- package/build/models/data/product/index.js +1 -0
- package/build/models/data/product/option-set/index.d.ts +29 -0
- package/build/models/data/product/option-set/index.js +1 -0
- package/build/models/data/product/option-set/option/index.d.ts +72 -0
- package/build/models/data/product/option-set/option/index.js +1 -0
- package/build/models/data/product/tag/index.d.ts +6 -0
- package/build/models/data/product/tag/index.js +1 -0
- package/build/models/data/product/variant/index.d.ts +31 -0
- package/build/models/data/product/variant/index.js +1 -0
- package/build/models/data/product/variant/price/index.d.ts +19 -0
- package/build/models/data/product/variant/price/index.js +1 -0
- package/build/models/data/product/variant/unit/index.d.ts +6 -0
- package/build/models/data/product/variant/unit/index.js +1 -0
- package/build/models/data/product/variant-type/index.d.ts +8 -0
- package/build/models/data/product/variant-type/index.js +1 -0
- package/build/models/data/product/variant-type/init.d.ts +2 -0
- package/build/models/data/raffle/index.d.ts +63 -0
- package/build/models/data/raffle/index.js +1 -0
- package/build/models/data/sales-channel/index.d.ts +19 -0
- package/build/models/data/sales-channel/index.js +1 -0
- package/build/models/data/state/index.d.ts +8 -0
- package/build/models/data/state/index.js +1 -0
- package/build/models/data/stock-location/address/city/index.d.ts +7 -0
- package/build/models/data/stock-location/address/city/index.js +1 -0
- package/build/models/data/stock-location/address/country/index.d.ts +7 -0
- package/build/models/data/stock-location/address/country/index.js +1 -0
- package/build/models/data/stock-location/address/district/index.d.ts +7 -0
- package/build/models/data/stock-location/address/district/index.js +1 -0
- package/build/models/data/stock-location/address/index.d.ts +15 -0
- package/build/models/data/stock-location/address/index.js +1 -0
- package/build/models/data/stock-location/address/state/index.d.ts +7 -0
- package/build/models/data/stock-location/address/state/index.js +1 -0
- package/build/models/data/stock-location/available/index.d.ts +10 -0
- package/build/models/data/stock-location/available/index.js +1 -0
- package/build/models/data/stock-location/index.d.ts +14 -0
- package/build/models/data/stock-location/index.js +1 -0
- package/build/models/data/storefront/domain/index.d.ts +9 -0
- package/build/models/data/storefront/domain/index.js +1 -0
- package/build/models/data/storefront/index.d.ts +27 -0
- package/build/models/data/storefront/index.js +1 -0
- package/build/models/data/storefront/localization/index.d.ts +8 -0
- package/build/models/data/storefront/localization/index.js +1 -0
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +6 -0
- package/build/models/data/storefront/routing/dynamic-currency/index.js +1 -0
- package/build/models/data/storefront/routing/index.d.ts +14 -0
- package/build/models/data/storefront/routing/index.js +1 -0
- package/build/models/data/storefront/theme/index.d.ts +10 -0
- package/build/models/data/storefront/theme/index.js +1 -0
- package/build/models/data/storefront/theme-localization/index.d.ts +13 -0
- package/build/models/data/storefront/theme-localization/index.js +1 -0
- package/build/models/data/theme-json/component/index.d.ts +20 -0
- package/build/models/data/theme-json/component/index.js +1 -0
- package/build/models/data/theme-json/component/prop/index.d.ts +26 -0
- package/build/models/data/theme-json/component/prop/index.js +1 -0
- package/build/models/data/theme-json/custom-data/index.d.ts +43 -0
- package/build/models/data/theme-json/custom-data/index.js +1 -0
- package/build/models/data/theme-json/index.d.ts +16 -0
- package/build/models/data/theme-json/index.js +1 -0
- package/build/models/data/theme-json/page/component/index.d.ts +7 -0
- package/build/models/data/theme-json/page/component/index.js +1 -0
- package/build/models/data/theme-json/page/index.d.ts +21 -0
- package/build/models/data/theme-json/page/index.js +1 -0
- package/build/models/data/theme-json/settings/color/index.d.ts +15 -0
- package/build/models/data/theme-json/settings/color/index.js +1 -0
- package/build/models/data/theme-json/settings/favicon/index.d.ts +5 -0
- package/build/models/data/theme-json/settings/favicon/index.js +1 -0
- package/build/models/data/theme-json/settings/font-family/index.d.ts +6 -0
- package/build/models/data/theme-json/settings/font-family/index.js +1 -0
- package/build/models/data/theme-json/settings/index.d.ts +13 -0
- package/build/models/data/theme-json/settings/index.js +1 -0
- package/build/models/data/variant-type/index.d.ts +13 -0
- package/build/models/data/variant-type/index.js +1 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +12 -0
- package/build/models/data/variant-type/variant-value/index.js +1 -0
- package/build/models/index.d.ts +2 -0
- package/build/models/ui/blog-category-list/index.d.ts +51 -0
- package/build/models/ui/blog-category-list/index.js +1 -0
- package/build/models/ui/blog-list/index.d.ts +55 -0
- package/build/models/ui/blog-list/index.js +1 -0
- package/build/models/ui/brand-list/index.d.ts +61 -0
- package/build/models/ui/brand-list/index.js +1 -0
- package/build/models/ui/category-list/index.d.ts +61 -0
- package/build/models/ui/category-list/index.js +1 -0
- package/build/models/ui/component-renderer/index.d.ts +7 -0
- package/build/models/ui/component-renderer/index.js +1 -0
- package/build/models/ui/customer-review-list/index.d.ts +43 -0
- package/build/models/ui/customer-review-list/index.js +1 -0
- package/build/models/ui/customer-review-summary-list/index.d.ts +43 -0
- package/build/models/ui/customer-review-summary-list/index.js +1 -0
- package/build/models/ui/index.d.ts +25 -0
- package/build/models/ui/navigation-link/index.d.ts +8 -0
- package/build/models/ui/navigation-link/index.js +1 -0
- package/build/models/ui/product-attribute-detail/index.d.ts +8 -0
- package/build/models/ui/product-attribute-detail/index.js +1 -0
- package/build/models/ui/product-attribute-list/index.d.ts +8 -0
- package/build/models/ui/product-attribute-list/index.js +1 -0
- package/build/models/ui/product-list/index.d.ts +137 -0
- package/build/models/ui/product-list/index.js +1 -0
- package/build/models/ui/raffle-list/index.d.ts +53 -0
- package/build/models/ui/raffle-list/index.js +1 -0
- package/build/models/ui/validator/form/account-info.d.ts +39 -0
- package/build/models/ui/validator/form/account-info.js +1 -0
- package/build/models/ui/validator/form/address.d.ts +75 -0
- package/build/models/ui/validator/form/address.js +1 -0
- package/build/models/ui/validator/form/contact-form.d.ts +42 -0
- package/build/models/ui/validator/form/contact-form.js +1 -0
- package/build/models/ui/validator/form/customer-review.d.ts +34 -0
- package/build/models/ui/validator/form/customer-review.js +1 -0
- package/build/models/ui/validator/form/forgot-password.d.ts +26 -0
- package/build/models/ui/validator/form/forgot-password.js +1 -0
- package/build/models/ui/validator/form/login.d.ts +32 -0
- package/build/models/ui/validator/form/login.js +1 -0
- package/build/models/ui/validator/form/raffle-form.d.ts +62 -0
- package/build/models/ui/validator/form/raffle-form.js +1 -0
- package/build/models/ui/validator/form/recover-password.d.ts +33 -0
- package/build/models/ui/validator/form/recover-password.js +1 -0
- package/build/models/ui/validator/form/register.d.ts +49 -0
- package/build/models/ui/validator/form/register.js +1 -0
- package/build/models/ui/validator/index.d.ts +27 -0
- package/build/models/ui/validator/index.js +1 -0
- package/build/models/ui/validator/rules/index.d.ts +101 -0
- package/build/models/ui/validator/rules/index.js +1 -0
- package/build/page-data-init/index.d.ts +39 -0
- package/build/page-data-init/index.js +1 -0
- package/build/pages/404.d.ts +4 -0
- package/build/pages/404.js +1 -0
- package/build/pages/[slug]/index.d.ts +4 -0
- package/build/pages/_slug_/index.js +1 -0
- package/build/pages/account/addresses.d.ts +4 -0
- package/build/pages/account/addresses.js +1 -0
- package/build/pages/account/favorite-products.d.ts +4 -0
- package/build/pages/account/favorite-products.js +1 -0
- package/build/pages/account/forgot-password.d.ts +4 -0
- package/build/pages/account/forgot-password.js +1 -0
- package/build/pages/account/index.d.ts +4 -0
- package/build/pages/account/index.js +1 -0
- package/build/pages/account/login.d.ts +4 -0
- package/build/pages/account/login.js +1 -0
- package/build/pages/account/orders/[id].d.ts +4 -0
- package/build/pages/account/orders/_id_.js +1 -0
- package/build/pages/account/orders/index.d.ts +4 -0
- package/build/pages/account/orders/index.js +1 -0
- package/build/pages/account/raffles.d.ts +4 -0
- package/build/pages/account/raffles.js +1 -0
- package/build/pages/account/recover-password.d.ts +4 -0
- package/build/pages/account/recover-password.js +1 -0
- package/build/pages/account/register.d.ts +4 -0
- package/build/pages/account/register.js +1 -0
- package/build/pages/blog/[slug].d.ts +4 -0
- package/build/pages/blog/_slug_.js +1 -0
- package/build/pages/blog/index.d.ts +4 -0
- package/build/pages/blog/index.js +1 -0
- package/build/pages/cart.d.ts +4 -0
- package/build/pages/cart.js +1 -0
- package/build/pages/checkout.d.ts +16 -0
- package/build/pages/checkout.js +1 -0
- package/build/pages/editor.d.ts +10 -0
- package/build/pages/editor.js +1 -0
- package/build/pages/home.d.ts +4 -0
- package/build/pages/home.js +1 -0
- package/build/pages/index.d.ts +22 -0
- package/build/pages/pages/[slug].d.ts +4 -0
- package/build/pages/pages/_slug_.js +1 -0
- package/build/pages/raffle/[slug].d.ts +4 -0
- package/build/pages/raffle/_slug_.js +1 -0
- package/build/pages/raffle/index.d.ts +4 -0
- package/build/pages/raffle/index.js +1 -0
- package/build/pages/search.d.ts +4 -0
- package/build/pages/search.js +1 -0
- package/build/store/base.d.ts +44 -0
- package/build/store/base.js +1 -0
- package/build/store/blog/index.d.ts +26 -0
- package/build/store/blog/index.js +1 -0
- package/build/store/brand/index.d.ts +12 -0
- package/build/store/brand/index.js +1 -0
- package/build/store/cart/api.d.ts +10 -0
- package/build/store/cart/api.js +1 -0
- package/build/store/cart/index.d.ts +27 -0
- package/build/store/cart/index.js +1 -0
- package/build/store/category/index.d.ts +12 -0
- package/build/store/category/index.js +1 -0
- package/build/store/checkout/index.d.ts +14 -0
- package/build/store/checkout/index.js +1 -0
- package/build/store/customer/api.d.ts +54 -0
- package/build/store/customer/api.js +1 -0
- package/build/store/customer/index.d.ts +74 -0
- package/build/store/customer/index.js +1 -0
- package/build/store/html-meta-data/index.d.ts +6 -0
- package/build/store/html-meta-data/index.js +1 -0
- package/build/store/index.d.ts +3 -0
- package/build/store/location/index.d.ts +9 -0
- package/build/store/location/index.js +1 -0
- package/build/store/merchant/index.d.ts +6 -0
- package/build/store/product/index.d.ts +36 -0
- package/build/store/product/index.js +1 -0
- package/build/store/raffle/index.d.ts +15 -0
- package/build/store/raffle/index.js +1 -0
- package/build/store/storefront/index.d.ts +5 -0
- package/build/utils/constants.d.ts +2 -0
- package/build/utils/constants.js +1 -0
- package/build/utils/currency.d.ts +7 -0
- package/build/utils/currency.js +1 -0
- package/build/utils/google-fonts.d.ts +2 -0
- package/build/utils/google-fonts.js +1 -0
- package/build/utils/helper.d.ts +4 -0
- package/build/utils/helper.js +1 -0
- package/build/utils/i18n.d.ts +11 -0
- package/build/utils/i18n.js +1 -0
- package/build/utils/index.d.ts +3 -0
- package/package.json +14 -14
- package/src/analytics/analytics.ts +0 -537
- package/src/analytics/events.ts +0 -116
- package/src/analytics/facebookPixel.ts +0 -226
- package/src/analytics/googleAnalytics.ts +0 -227
- package/src/analytics/googleTagManager.ts +0 -341
- package/src/analytics/googleUniversal.ts +0 -146
- package/src/analytics/head/index.tsx +0 -134
- package/src/analytics/ikas.ts +0 -568
- package/src/analytics/index.ts +0 -2
- package/src/analytics/tiktokPixel.ts +0 -223
- package/src/components/checkout/components/address-form/index.tsx +0 -406
- package/src/components/checkout/components/address-form/model.ts +0 -398
- package/src/components/checkout/components/button/index.tsx +0 -44
- package/src/components/checkout/components/button/style.module.scss +0 -103
- package/src/components/checkout/components/cart-summary/cart-item/index.tsx +0 -167
- package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +0 -144
- package/src/components/checkout/components/cart-summary/index.tsx +0 -512
- package/src/components/checkout/components/cart-summary/style.module.scss +0 -296
- package/src/components/checkout/components/checkbox/check.tsx +0 -23
- package/src/components/checkout/components/checkbox/index.tsx +0 -50
- package/src/components/checkout/components/checkbox/style.module.scss +0 -72
- package/src/components/checkout/components/credit-card-form/index.tsx +0 -122
- package/src/components/checkout/components/credit-card-form/model.ts +0 -56
- package/src/components/checkout/components/credit-card-form/style.module.scss +0 -6
- package/src/components/checkout/components/credit-card-form/svg/amex.tsx +0 -30
- package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +0 -38
- package/src/components/checkout/components/credit-card-form/svg/troy.tsx +0 -54
- package/src/components/checkout/components/credit-card-form/svg/visa.tsx +0 -46
- package/src/components/checkout/components/customer-addresses/index.tsx +0 -338
- package/src/components/checkout/components/customer-addresses/model.ts +0 -134
- package/src/components/checkout/components/customer-addresses/style.module.scss +0 -38
- package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +0 -29
- package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +0 -41
- package/src/components/checkout/components/delivery-methods/icons/box.tsx +0 -22
- package/src/components/checkout/components/delivery-methods/icons/store.tsx +0 -22
- package/src/components/checkout/components/delivery-methods/index.tsx +0 -39
- package/src/components/checkout/components/delivery-methods/style.module.scss +0 -4
- package/src/components/checkout/components/error/customer-login-required-error/index.tsx +0 -23
- package/src/components/checkout/components/error/index.tsx +0 -54
- package/src/components/checkout/components/error/no-shipping-error/index.tsx +0 -14
- package/src/components/checkout/components/error/payment-error/index.tsx +0 -21
- package/src/components/checkout/components/error/stock-error/index.tsx +0 -72
- package/src/components/checkout/components/error/stock-error/style.module.scss +0 -11
- package/src/components/checkout/components/error/unknown-error/index.tsx +0 -21
- package/src/components/checkout/components/expandable-section/index.tsx +0 -37
- package/src/components/checkout/components/expandable-section/style.module.scss +0 -29
- package/src/components/checkout/components/form-item/caret-down.tsx +0 -20
- package/src/components/checkout/components/form-item/index.tsx +0 -207
- package/src/components/checkout/components/form-item/model.ts +0 -145
- package/src/components/checkout/components/form-item/style.module.scss +0 -216
- package/src/components/checkout/components/fullscreen-loading/index.tsx +0 -10
- package/src/components/checkout/components/fullscreen-loading/style.module.scss +0 -56
- package/src/components/checkout/components/input-with-button/index.tsx +0 -53
- package/src/components/checkout/components/input-with-button/style.module.scss +0 -104
- package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +0 -162
- package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +0 -15
- package/src/components/checkout/components/master-pass/modal/index.tsx +0 -32
- package/src/components/checkout/components/master-pass/modal/style.module.scss +0 -42
- package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +0 -20
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +0 -62
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +0 -27
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +0 -19
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +0 -41
- package/src/components/checkout/components/master-pass/modal-otp/index.tsx +0 -202
- package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +0 -47
- package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +0 -28
- package/src/components/checkout/components/master-pass/modal-response/index.tsx +0 -24
- package/src/components/checkout/components/master-pass/modal-response/style.module.scss +0 -7
- package/src/components/checkout/components/master-pass/modal-success/index.tsx +0 -54
- package/src/components/checkout/components/master-pass/modal-success/style.module.scss +0 -25
- package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +0 -41
- package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +0 -21
- package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +0 -14
- package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +0 -34
- package/src/components/checkout/components/modal/index.tsx +0 -41
- package/src/components/checkout/components/modal/style.module.scss +0 -68
- package/src/components/checkout/components/modal/useEscape.tsx +0 -20
- package/src/components/checkout/components/notification-box/index.tsx +0 -70
- package/src/components/checkout/components/notification-box/style.module.scss +0 -69
- package/src/components/checkout/components/offer-product/index.tsx +0 -177
- package/src/components/checkout/components/offer-product/select/arrows.tsx +0 -22
- package/src/components/checkout/components/offer-product/select/index.tsx +0 -40
- package/src/components/checkout/components/offer-product/select/style.module.scss +0 -28
- package/src/components/checkout/components/offer-product/style.module.scss +0 -115
- package/src/components/checkout/components/phone-number-input/compare-strings.ts +0 -5
- package/src/components/checkout/components/phone-number-input/get-countries.ts +0 -52
- package/src/components/checkout/components/phone-number-input/index.tsx +0 -125
- package/src/components/checkout/components/phone-number-input/style.module.scss +0 -83
- package/src/components/checkout/components/select-box/index.tsx +0 -60
- package/src/components/checkout/components/select-box/style.module.scss +0 -55
- package/src/components/checkout/components/step-container/index.tsx +0 -107
- package/src/components/checkout/components/step-container/style.module.scss +0 -86
- package/src/components/checkout/components/stripe/checkout-form.tsx +0 -55
- package/src/components/checkout/components/stripe/index.tsx +0 -91
- package/src/components/checkout/components/stripe/style.module.scss +0 -75
- package/src/components/checkout/components/svg/arrow-down.tsx +0 -23
- package/src/components/checkout/components/svg/arrow-left.tsx +0 -23
- package/src/components/checkout/components/svg/arrow-right.tsx +0 -23
- package/src/components/checkout/components/svg/cross.tsx +0 -23
- package/src/components/checkout/components/svg/discount.tsx +0 -34
- package/src/components/checkout/components/svg/external.tsx +0 -101
- package/src/components/checkout/components/svg/gift.tsx +0 -40
- package/src/components/checkout/components/svg/ikas.tsx +0 -39
- package/src/components/checkout/components/svg/lock.tsx +0 -23
- package/src/components/checkout/components/svg/shopping-cart.tsx +0 -23
- package/src/components/checkout/components/svg/success-circle.tsx +0 -26
- package/src/components/checkout/components/svg/tag.tsx +0 -23
- package/src/components/checkout/components/svg/warning.tsx +0 -30
- package/src/components/checkout/components/toggle/index.tsx +0 -51
- package/src/components/checkout/components/toggle/style.module.scss +0 -75
- package/src/components/checkout/components/tooltip/index.tsx +0 -27
- package/src/components/checkout/components/tooltip/style.module.scss +0 -86
- package/src/components/checkout/index.tsx +0 -650
- package/src/components/checkout/model.ts +0 -1589
- package/src/components/checkout/modelMasterPass.ts +0 -1001
- package/src/components/checkout/steps/step-info/index.tsx +0 -91
- package/src/components/checkout/steps/step-payment/billing-address/index.tsx +0 -48
- package/src/components/checkout/steps/step-payment/index.tsx +0 -113
- package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +0 -227
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +0 -56
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +0 -50
- package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +0 -32
- package/src/components/checkout/steps/step-payment/style.module.scss +0 -37
- package/src/components/checkout/steps/step-shipping/index.tsx +0 -131
- package/src/components/checkout/steps/step-shipping/style.module.scss +0 -44
- package/src/components/checkout/steps/step-success/index.tsx +0 -374
- package/src/components/checkout/steps/step-success/style.module.scss +0 -161
- package/src/components/checkout/style.module.scss +0 -366
- package/src/components/checkout/styles/common.module.scss +0 -59
- package/src/components/checkout/styles/variables.scss +0 -40
- package/src/components/image/index.tsx +0 -43
- package/src/components/index.ts +0 -5
- package/src/components/link/index.tsx +0 -26
- package/src/components/page/ThemeComponent.tsx +0 -108
- package/src/components/page/head.tsx +0 -370
- package/src/components/page/index.tsx +0 -220
- package/src/components/page-editor/ThemeComponentEditor.tsx +0 -281
- package/src/components/page-editor/error/index.tsx +0 -18
- package/src/components/page-editor/index.tsx +0 -194
- package/src/components/page-editor/loader/index.tsx +0 -18
- package/src/components/page-editor/loader/style.module.scss +0 -59
- package/src/components/page-editor/model.ts +0 -784
- package/src/index.ts +0 -6
- package/src/models/data/base/index.ts +0 -15
- package/src/models/data/blog/category/index.ts +0 -36
- package/src/models/data/blog/content/index.ts +0 -16
- package/src/models/data/blog/index.ts +0 -75
- package/src/models/data/blog/meta-data/index.ts +0 -39
- package/src/models/data/blog/tag/index.ts +0 -16
- package/src/models/data/blog/writer/index.ts +0 -17
- package/src/models/data/brand/index.ts +0 -58
- package/src/models/data/brand/translation/index.ts +0 -16
- package/src/models/data/campaign-offer/index.ts +0 -79
- package/src/models/data/campaign-offer/product/index.ts +0 -69
- package/src/models/data/cart/available-shipping-method/index.ts +0 -25
- package/src/models/data/cart/campaign-offer/index.ts +0 -54
- package/src/models/data/cart/index.ts +0 -38
- package/src/models/data/category/index.ts +0 -69
- package/src/models/data/category/path-item/index.ts +0 -46
- package/src/models/data/category/translations/index.ts +0 -16
- package/src/models/data/checkout/index.ts +0 -87
- package/src/models/data/checkout-settings/index.ts +0 -63
- package/src/models/data/checkout-settings/option/index.ts +0 -14
- package/src/models/data/checkout-settings/price/index.ts +0 -16
- package/src/models/data/city/index.ts +0 -34
- package/src/models/data/contact-form/index.ts +0 -20
- package/src/models/data/country/index.ts +0 -50
- package/src/models/data/country/location-translations/index.ts +0 -15
- package/src/models/data/customer/address/city/index.ts +0 -16
- package/src/models/data/customer/address/country/index.ts +0 -20
- package/src/models/data/customer/address/district/index.ts +0 -16
- package/src/models/data/customer/address/index.tsx +0 -136
- package/src/models/data/customer/address/state/index.ts +0 -16
- package/src/models/data/customer/attribute/index.ts +0 -61
- package/src/models/data/customer/attribute/option/index.ts +0 -20
- package/src/models/data/customer/attribute/sales-channel/index.ts +0 -24
- package/src/models/data/customer/attribute/translation/index.ts +0 -23
- package/src/models/data/customer/attribute/translation/option/index.ts +0 -16
- package/src/models/data/customer/attribute/value/index.ts +0 -29
- package/src/models/data/customer/index.ts +0 -122
- package/src/models/data/customer/review/index.ts +0 -70
- package/src/models/data/customer/review/settings/index.ts +0 -14
- package/src/models/data/customer/review/summary/index.ts +0 -29
- package/src/models/data/customer/review/summary/star/index.ts +0 -16
- package/src/models/data/district/index.ts +0 -36
- package/src/models/data/favorite-product/index.ts +0 -23
- package/src/models/data/filter-category/index.ts +0 -30
- package/src/models/data/html-meta-data/index.ts +0 -69
- package/src/models/data/html-meta-data/translations/index.ts +0 -16
- package/src/models/data/image/index.ts +0 -33
- package/src/models/data/index.ts +0 -195
- package/src/models/data/last-viewed-product/index.ts +0 -14
- package/src/models/data/merchant-settings/index.ts +0 -35
- package/src/models/data/order/address/city/index.ts +0 -16
- package/src/models/data/order/address/country/index.ts +0 -20
- package/src/models/data/order/address/district/index.ts +0 -16
- package/src/models/data/order/address/index.ts +0 -96
- package/src/models/data/order/address/state/index.ts +0 -16
- package/src/models/data/order/adjustment/applied-order-line/index.ts +0 -20
- package/src/models/data/order/adjustment/index.ts +0 -39
- package/src/models/data/order/customer/index.ts +0 -24
- package/src/models/data/order/gift-line/index.ts +0 -14
- package/src/models/data/order/index.ts +0 -260
- package/src/models/data/order/invoice/index.ts +0 -29
- package/src/models/data/order/line-item/base-unit/index.ts +0 -22
- package/src/models/data/order/line-item/base-unit/unit-type/index.ts +0 -14
- package/src/models/data/order/line-item/discount/index.ts +0 -23
- package/src/models/data/order/line-item/index.ts +0 -211
- package/src/models/data/order/line-item/option/index.ts +0 -24
- package/src/models/data/order/line-item/option/value/index.ts +0 -16
- package/src/models/data/order/line-item/variant/brand/index.ts +0 -14
- package/src/models/data/order/line-item/variant/category/index.ts +0 -36
- package/src/models/data/order/line-item/variant/index.ts +0 -70
- package/src/models/data/order/line-item/variant/price/index.ts +0 -22
- package/src/models/data/order/line-item/variant/unit/index.ts +0 -17
- package/src/models/data/order/line-item/variant/value/index.ts +0 -31
- package/src/models/data/order/package/index.ts +0 -41
- package/src/models/data/order/package/tracking-info/index.ts +0 -20
- package/src/models/data/order/payment-method/index.ts +0 -23
- package/src/models/data/order/refund/index.ts +0 -17
- package/src/models/data/order/refund/line-item/index.ts +0 -16
- package/src/models/data/order/refund/settings/index.ts +0 -16
- package/src/models/data/order/shipping-line/index.ts +0 -29
- package/src/models/data/order/tax-line/index.ts +0 -14
- package/src/models/data/order/transaction/error/index.ts +0 -16
- package/src/models/data/order/transaction/index.ts +0 -55
- package/src/models/data/order/transaction/payment-method-detail/index.ts +0 -33
- package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +0 -22
- package/src/models/data/payment-gateway/additional-price/index.ts +0 -29
- package/src/models/data/payment-gateway/index.ts +0 -90
- package/src/models/data/payment-gateway/settings/index.ts +0 -21
- package/src/models/data/payment-gateway/translation/index.ts +0 -18
- package/src/models/data/product/attribute/index.ts +0 -37
- package/src/models/data/product/attribute/option/index.ts +0 -14
- package/src/models/data/product/attribute/table-cell/index.ts +0 -16
- package/src/models/data/product/attribute/table-template/index.ts +0 -19
- package/src/models/data/product/attribute/translation/index.ts +0 -39
- package/src/models/data/product/attribute-value/index.ts +0 -109
- package/src/models/data/product/back-in-stock-settings/index.ts +0 -14
- package/src/models/data/product/base-unit/index.ts +0 -32
- package/src/models/data/product/campaign/data/index.ts +0 -70
- package/src/models/data/product/campaign/filter/index.ts +0 -19
- package/src/models/data/product/campaign/index.ts +0 -15
- package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +0 -57
- package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +0 -16
- package/src/models/data/product/campaign/product-fixed-discount/index.ts +0 -40
- package/src/models/data/product/filter/index.ts +0 -276
- package/src/models/data/product/image/index.ts +0 -22
- package/src/models/data/product/index.ts +0 -336
- package/src/models/data/product/option-set/index.ts +0 -99
- package/src/models/data/product/option-set/option/index.ts +0 -268
- package/src/models/data/product/tag/index.ts +0 -14
- package/src/models/data/product/variant/index.ts +0 -129
- package/src/models/data/product/variant/price/index.ts +0 -74
- package/src/models/data/product/variant/unit/index.ts +0 -17
- package/src/models/data/product/variant-type/index.ts +0 -19
- package/src/models/data/product/variant-type/init.ts +0 -15
- package/src/models/data/raffle/index.ts +0 -157
- package/src/models/data/sales-channel/index.ts +0 -56
- package/src/models/data/state/index.ts +0 -22
- package/src/models/data/stock-location/address/city/index.ts +0 -16
- package/src/models/data/stock-location/address/country/index.ts +0 -18
- package/src/models/data/stock-location/address/district/index.ts +0 -18
- package/src/models/data/stock-location/address/index.ts +0 -34
- package/src/models/data/stock-location/address/state/index.ts +0 -18
- package/src/models/data/stock-location/available/index.ts +0 -22
- package/src/models/data/stock-location/index.ts +0 -35
- package/src/models/data/storefront/domain/index.ts +0 -20
- package/src/models/data/storefront/index.ts +0 -67
- package/src/models/data/storefront/localization/index.tsx +0 -18
- package/src/models/data/storefront/routing/dynamic-currency/index.ts +0 -16
- package/src/models/data/storefront/routing/index.tsx +0 -29
- package/src/models/data/storefront/theme/index.tsx +0 -25
- package/src/models/data/storefront/theme-localization/index.tsx +0 -31
- package/src/models/data/theme-json/component/index.ts +0 -41
- package/src/models/data/theme-json/component/prop/index.ts +0 -55
- package/src/models/data/theme-json/custom-data/index.ts +0 -132
- package/src/models/data/theme-json/index.ts +0 -210
- package/src/models/data/theme-json/page/component/index.ts +0 -22
- package/src/models/data/theme-json/page/index.ts +0 -54
- package/src/models/data/theme-json/settings/color/index.ts +0 -35
- package/src/models/data/theme-json/settings/favicon/index.ts +0 -12
- package/src/models/data/theme-json/settings/font-family/index.ts +0 -14
- package/src/models/data/theme-json/settings/index.ts +0 -30
- package/src/models/data/variant-type/index.ts +0 -44
- package/src/models/data/variant-type/variant-value/index.ts +0 -32
- package/src/models/index.ts +0 -2
- package/src/models/ui/blog-category-list/index.ts +0 -169
- package/src/models/ui/blog-list/index.ts +0 -175
- package/src/models/ui/brand-list/index.ts +0 -237
- package/src/models/ui/category-list/index.ts +0 -237
- package/src/models/ui/component-renderer/index.ts +0 -9
- package/src/models/ui/customer-review-list/index.ts +0 -173
- package/src/models/ui/customer-review-summary-list/index.ts +0 -175
- package/src/models/ui/index.ts +0 -40
- package/src/models/ui/navigation-link/index.ts +0 -23
- package/src/models/ui/product-attribute-detail/index.ts +0 -29
- package/src/models/ui/product-attribute-list/index.ts +0 -52
- package/src/models/ui/product-list/index.ts +0 -1007
- package/src/models/ui/raffle-list/index.ts +0 -178
- package/src/models/ui/validator/form/account-info.ts +0 -167
- package/src/models/ui/validator/form/address.ts +0 -490
- package/src/models/ui/validator/form/contact-form.ts +0 -177
- package/src/models/ui/validator/form/customer-review.ts +0 -132
- package/src/models/ui/validator/form/forgot-password.ts +0 -96
- package/src/models/ui/validator/form/login.ts +0 -128
- package/src/models/ui/validator/form/raffle-form.ts +0 -289
- package/src/models/ui/validator/form/recover-password.ts +0 -148
- package/src/models/ui/validator/form/register.ts +0 -206
- package/src/models/ui/validator/index.ts +0 -121
- package/src/models/ui/validator/rules/index.ts +0 -311
- package/src/page-data-init/index.ts +0 -659
- package/src/pages/404.tsx +0 -10
- package/src/pages/[slug]/index.tsx +0 -9
- package/src/pages/account/addresses.tsx +0 -10
- package/src/pages/account/favorite-products.tsx +0 -9
- package/src/pages/account/forgot-password.tsx +0 -9
- package/src/pages/account/index.tsx +0 -9
- package/src/pages/account/login.tsx +0 -9
- package/src/pages/account/orders/[id].tsx +0 -9
- package/src/pages/account/orders/index.tsx +0 -9
- package/src/pages/account/raffles.tsx +0 -9
- package/src/pages/account/recover-password.tsx +0 -9
- package/src/pages/account/register.tsx +0 -9
- package/src/pages/blog/[slug].tsx +0 -9
- package/src/pages/blog/index.tsx +0 -9
- package/src/pages/cart.tsx +0 -9
- package/src/pages/checkout.tsx +0 -164
- package/src/pages/editor.tsx +0 -33
- package/src/pages/home.tsx +0 -10
- package/src/pages/index.ts +0 -22
- package/src/pages/pages/[slug].tsx +0 -9
- package/src/pages/raffle/[slug].tsx +0 -9
- package/src/pages/raffle/index.tsx +0 -9
- package/src/pages/search.tsx +0 -9
- package/src/store/base.ts +0 -238
- package/src/store/blog/index.ts +0 -49
- package/src/store/brand/index.ts +0 -16
- package/src/store/cart/api.ts +0 -58
- package/src/store/cart/index.ts +0 -311
- package/src/store/category/index.ts +0 -16
- package/src/store/checkout/index.ts +0 -92
- package/src/store/customer/api.ts +0 -273
- package/src/store/customer/index.ts +0 -648
- package/src/store/html-meta-data/index.ts +0 -16
- package/src/store/index.ts +0 -3
- package/src/store/location/index.ts +0 -56
- package/src/store/merchant/index.ts +0 -16
- package/src/store/product/index.ts +0 -113
- package/src/store/raffle/index.ts +0 -55
- package/src/store/storefront/index.ts +0 -18
- package/src/typings/global.d.ts +0 -7
- package/src/utils/constants.ts +0 -2
- package/src/utils/currency.ts +0 -76
- package/src/utils/google-fonts.ts +0 -52
- package/src/utils/helper.ts +0 -77
- package/src/utils/i18n.ts +0 -126
- package/src/utils/index.ts +0 -3
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { IkasOrderLineVariant as IOrderLineVariant } from "@ikas/storefront-models";
|
|
2
|
-
import { IkasOrderLineItemVariantFunctions } from "@ikas/storefront-model-functions";
|
|
3
|
-
import { IkasImage } from "../../../../../models/data/image";
|
|
4
|
-
import { IkasOrderLineVariantVariantValue } from "./value";
|
|
5
|
-
import { IkasOrderLineVariantBrand } from "./brand";
|
|
6
|
-
import { IkasOrderLineVariantCategory } from "./category";
|
|
7
|
-
import { IkasOrderLineVariantPrice } from "./price";
|
|
8
|
-
import { makeAutoObservable } from "mobx";
|
|
9
|
-
import { IkasOrderLineVariantUnit } from "./unit";
|
|
10
|
-
import { IkasOrderLineBaseUnit } from "../base-unit";
|
|
11
|
-
|
|
12
|
-
export class IkasOrderLineVariant implements IOrderLineVariant {
|
|
13
|
-
barcodeList: string[] | null = null;
|
|
14
|
-
baseUnit: IkasOrderLineBaseUnit | null;
|
|
15
|
-
brand: IkasOrderLineVariantBrand | null = null;
|
|
16
|
-
categories: IkasOrderLineVariantCategory[] | null = null;
|
|
17
|
-
id: string | null = null;
|
|
18
|
-
mainImageId: string | null = null;
|
|
19
|
-
name: string;
|
|
20
|
-
prices: IkasOrderLineVariantPrice[] | null = null;
|
|
21
|
-
productId: string | null = null;
|
|
22
|
-
sku: string | null = null;
|
|
23
|
-
slug: string | null = null;
|
|
24
|
-
tagIds: string[] | null = null;
|
|
25
|
-
taxValue: number | null = null;
|
|
26
|
-
type: number | null = null;
|
|
27
|
-
unit: IkasOrderLineVariantUnit | null;
|
|
28
|
-
weight: number | null = null;
|
|
29
|
-
variantValues: IkasOrderLineVariantVariantValue[] | null = null;
|
|
30
|
-
|
|
31
|
-
// Extra
|
|
32
|
-
mainImage?: IkasImage | null = null;
|
|
33
|
-
|
|
34
|
-
constructor(data: IOrderLineVariant) {
|
|
35
|
-
this.barcodeList = data.barcodeList || null;
|
|
36
|
-
this.baseUnit = data.baseUnit
|
|
37
|
-
? new IkasOrderLineBaseUnit(data.baseUnit)
|
|
38
|
-
: null;
|
|
39
|
-
this.brand = data.brand ? new IkasOrderLineVariantBrand(data.brand) : null;
|
|
40
|
-
this.categories =
|
|
41
|
-
data.categories?.map((c) => new IkasOrderLineVariantCategory(c)) || null;
|
|
42
|
-
this.id = data.id || null;
|
|
43
|
-
this.mainImageId = data.mainImageId || null;
|
|
44
|
-
this.name = data.name;
|
|
45
|
-
this.prices =
|
|
46
|
-
data.prices?.map((p) => new IkasOrderLineVariantPrice(p)) || null;
|
|
47
|
-
this.productId = data.productId || null;
|
|
48
|
-
this.sku = data.sku || null;
|
|
49
|
-
this.slug = data.slug || null;
|
|
50
|
-
this.tagIds = data.tagIds || null;
|
|
51
|
-
this.taxValue = data.taxValue || null;
|
|
52
|
-
this.type = data.type || null;
|
|
53
|
-
this.unit = data.unit ? new IkasOrderLineVariantUnit(data.unit) : null;
|
|
54
|
-
this.weight = data.weight || null;
|
|
55
|
-
this.variantValues =
|
|
56
|
-
data.variantValues?.map(
|
|
57
|
-
(vv) => new IkasOrderLineVariantVariantValue(vv)
|
|
58
|
-
) || null;
|
|
59
|
-
|
|
60
|
-
this.mainImage = data.mainImageId
|
|
61
|
-
? new IkasImage({ id: data.mainImageId, isVideo: false })
|
|
62
|
-
: null;
|
|
63
|
-
|
|
64
|
-
makeAutoObservable(this);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
get href() {
|
|
68
|
-
return IkasOrderLineItemVariantFunctions.getIkasOrderLineVariantHref(this);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IkasOrderLineVariantPrice as IOrderLineVariantPrice } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasOrderLineVariantPrice implements IOrderLineVariantPrice {
|
|
5
|
-
buyPrice: number | null = null;
|
|
6
|
-
currency: string | null = null;
|
|
7
|
-
discountPrice: number | null = null;
|
|
8
|
-
priceListId: string | null = null;
|
|
9
|
-
sellPrice: number;
|
|
10
|
-
unitPrice: number | null;
|
|
11
|
-
|
|
12
|
-
constructor(data: IOrderLineVariantPrice) {
|
|
13
|
-
this.buyPrice = data.buyPrice || null;
|
|
14
|
-
this.currency = data.currency || null;
|
|
15
|
-
this.discountPrice = data.discountPrice || null;
|
|
16
|
-
this.priceListId = data.priceListId || null;
|
|
17
|
-
this.sellPrice = data.sellPrice;
|
|
18
|
-
this.unitPrice = data.unitPrice;
|
|
19
|
-
|
|
20
|
-
makeAutoObservable(this);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasProductUnitType,
|
|
3
|
-
IkasOrderLineVariantUnit as IOrderLineVariantUnit,
|
|
4
|
-
} from "@ikas/storefront-models";
|
|
5
|
-
import { makeAutoObservable } from "mobx";
|
|
6
|
-
|
|
7
|
-
export class IkasOrderLineVariantUnit implements IOrderLineVariantUnit {
|
|
8
|
-
amount: number;
|
|
9
|
-
type: IkasProductUnitType;
|
|
10
|
-
|
|
11
|
-
constructor(data: IOrderLineVariantUnit) {
|
|
12
|
-
this.amount = data.amount;
|
|
13
|
-
this.type = data.type;
|
|
14
|
-
|
|
15
|
-
makeAutoObservable(this);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IkasOrderLineItemVariantValueFunctions } from "@ikas/storefront-model-functions";
|
|
2
|
-
import { IkasOrderLineVariantVariantValue as IOrderLineVariantVariantValue } from "@ikas/storefront-models";
|
|
3
|
-
import { makeAutoObservable } from "mobx";
|
|
4
|
-
|
|
5
|
-
export class IkasOrderLineVariantVariantValue
|
|
6
|
-
implements IOrderLineVariantVariantValue
|
|
7
|
-
{
|
|
8
|
-
order: number;
|
|
9
|
-
variantTypeId: string;
|
|
10
|
-
variantTypeName: string | null = null;
|
|
11
|
-
variantValueId: string;
|
|
12
|
-
variantValueName: string | null = null;
|
|
13
|
-
|
|
14
|
-
constructor(data: IOrderLineVariantVariantValue) {
|
|
15
|
-
this.order = data.order;
|
|
16
|
-
this.variantTypeId = data.variantTypeId;
|
|
17
|
-
this.variantTypeName = data.variantTypeName || null;
|
|
18
|
-
this.variantValueId = data.variantValueId;
|
|
19
|
-
this.variantValueName = data.variantValueName || null;
|
|
20
|
-
|
|
21
|
-
makeAutoObservable(this);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
get variantTypeSlug() {
|
|
25
|
-
return IkasOrderLineItemVariantValueFunctions.getIkasVariantTypeSlug(this);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
get variantNameSlug() {
|
|
29
|
-
return IkasOrderLineItemVariantValueFunctions.getIkasVariantNameSlug(this);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasOrderPackage as IOrderPackage,
|
|
3
|
-
IkasOrderPackageFullfillStatus,
|
|
4
|
-
} from "@ikas/storefront-models";
|
|
5
|
-
import { makeObservable, observable } from "mobx";
|
|
6
|
-
import { IkasBaseModel } from "../../base";
|
|
7
|
-
import { IkasTrackingInfo } from "./tracking-info";
|
|
8
|
-
|
|
9
|
-
export class IkasOrderPackage extends IkasBaseModel implements IOrderPackage {
|
|
10
|
-
errorMessage: string | null = null;
|
|
11
|
-
note: string | null = null;
|
|
12
|
-
orderLineItemIds: string[];
|
|
13
|
-
orderPackageFulfillStatus: IkasOrderPackageFullfillStatus;
|
|
14
|
-
orderPackageNumber: string;
|
|
15
|
-
stockLocationId: string;
|
|
16
|
-
trackingInfo: IkasTrackingInfo | null = null;
|
|
17
|
-
|
|
18
|
-
constructor(data: IOrderPackage) {
|
|
19
|
-
super(data);
|
|
20
|
-
|
|
21
|
-
this.errorMessage = data.errorMessage || null;
|
|
22
|
-
this.note = data.note || null;
|
|
23
|
-
this.orderLineItemIds = data.orderLineItemIds || [];
|
|
24
|
-
this.orderPackageFulfillStatus = data.orderPackageFulfillStatus;
|
|
25
|
-
this.orderPackageNumber = data.orderPackageNumber;
|
|
26
|
-
this.stockLocationId = data.stockLocationId;
|
|
27
|
-
this.trackingInfo = data.trackingInfo || null;
|
|
28
|
-
|
|
29
|
-
makeObservable(this, {
|
|
30
|
-
errorMessage: observable,
|
|
31
|
-
note: observable,
|
|
32
|
-
orderLineItemIds: observable,
|
|
33
|
-
orderPackageFulfillStatus: observable,
|
|
34
|
-
orderPackageNumber: observable,
|
|
35
|
-
stockLocationId: observable,
|
|
36
|
-
trackingInfo: observable,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { IkasOrderPackageFullfillStatus };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IkasTrackingInfo as ITrackingInfo } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasTrackingInfo implements ITrackingInfo {
|
|
5
|
-
barcode: string | null = null;
|
|
6
|
-
cargoCompany: string | null = null;
|
|
7
|
-
isSendNotification: boolean | null = null;
|
|
8
|
-
trackingLink: string | null = null;
|
|
9
|
-
trackingNumber: string | null = null;
|
|
10
|
-
|
|
11
|
-
constructor(data: ITrackingInfo) {
|
|
12
|
-
this.barcode = data.barcode || null;
|
|
13
|
-
this.cargoCompany = data.cargoCompany || null;
|
|
14
|
-
this.isSendNotification = data.isSendNotification || null;
|
|
15
|
-
this.trackingLink = data.trackingLink || null;
|
|
16
|
-
this.trackingNumber = data.trackingNumber || null;
|
|
17
|
-
|
|
18
|
-
makeAutoObservable(this);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasOrderPaymentMethod as IOrderPaymentMethod,
|
|
3
|
-
IkasPaymentMethodType,
|
|
4
|
-
} from "@ikas/storefront-models";
|
|
5
|
-
import { makeAutoObservable } from "mobx";
|
|
6
|
-
|
|
7
|
-
export class IkasOrderPaymentMethod implements IOrderPaymentMethod {
|
|
8
|
-
paymentGatewayCode: string | null = null;
|
|
9
|
-
paymentGatewayId: string | null = null;
|
|
10
|
-
paymentGatewayName: string | null = null;
|
|
11
|
-
price: number;
|
|
12
|
-
type: IkasPaymentMethodType;
|
|
13
|
-
|
|
14
|
-
constructor(data: IOrderPaymentMethod) {
|
|
15
|
-
this.paymentGatewayCode = data.paymentGatewayCode || null;
|
|
16
|
-
this.paymentGatewayId = data.paymentGatewayId || null;
|
|
17
|
-
this.paymentGatewayName = data.paymentGatewayName || null;
|
|
18
|
-
this.price = data.price;
|
|
19
|
-
this.type = data.type;
|
|
20
|
-
|
|
21
|
-
makeAutoObservable(this);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IkasRefund as IRefund } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
import { IkasOrderRefundOrderLineInput } from "./line-item";
|
|
4
|
-
|
|
5
|
-
export class IkasRefund implements IRefund {
|
|
6
|
-
orderId: string;
|
|
7
|
-
orderLineItems: IkasOrderRefundOrderLineInput[];
|
|
8
|
-
|
|
9
|
-
constructor(data: IRefund) {
|
|
10
|
-
this.orderId = data.orderId;
|
|
11
|
-
this.orderLineItems = data.orderLineItems.map(
|
|
12
|
-
(ol) => new IkasOrderRefundOrderLineInput(ol)
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
makeAutoObservable(this);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IkasOrderRefundOrderLineInput as IOrderRefundOrderLineInput } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasOrderRefundOrderLineInput
|
|
5
|
-
implements IOrderRefundOrderLineInput
|
|
6
|
-
{
|
|
7
|
-
orderLineItemId: string;
|
|
8
|
-
quantity: number;
|
|
9
|
-
|
|
10
|
-
constructor(data: IOrderRefundOrderLineInput) {
|
|
11
|
-
this.orderLineItemId = data.orderLineItemId;
|
|
12
|
-
this.quantity = data.quantity;
|
|
13
|
-
|
|
14
|
-
makeAutoObservable(this);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IkasOrderRefundSettings as IOrderRefundSettings } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasOrderRefundSettings implements IOrderRefundSettings {
|
|
5
|
-
isActiveRefundSection: boolean;
|
|
6
|
-
orderRefundDayLimit: number | null = null;
|
|
7
|
-
refundDesc: string;
|
|
8
|
-
|
|
9
|
-
constructor(data: IOrderRefundSettings) {
|
|
10
|
-
this.isActiveRefundSection = data.isActiveRefundSection;
|
|
11
|
-
this.orderRefundDayLimit = data.orderRefundDayLimit;
|
|
12
|
-
this.refundDesc = data.refundDesc;
|
|
13
|
-
|
|
14
|
-
makeAutoObservable(this);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasPaymentMethodType,
|
|
3
|
-
IkasOrderShippingLine as IOrderShippingLine,
|
|
4
|
-
} from "@ikas/storefront-models";
|
|
5
|
-
import { makeAutoObservable } from "mobx";
|
|
6
|
-
|
|
7
|
-
export class IkasOrderShippingLine implements IOrderShippingLine {
|
|
8
|
-
finalPrice: number;
|
|
9
|
-
isRefunded: boolean | null = null;
|
|
10
|
-
paymentMethod: IkasPaymentMethodType | null = null;
|
|
11
|
-
price: number;
|
|
12
|
-
shippingSettingsId: string | null = null;
|
|
13
|
-
shippingZoneRateId: string | null = null;
|
|
14
|
-
taxValue: number | null = null;
|
|
15
|
-
title: string;
|
|
16
|
-
|
|
17
|
-
constructor(data: IOrderShippingLine) {
|
|
18
|
-
this.finalPrice = data.finalPrice;
|
|
19
|
-
this.isRefunded = data.isRefunded || null;
|
|
20
|
-
this.paymentMethod = data.paymentMethod || null;
|
|
21
|
-
this.price = data.price;
|
|
22
|
-
this.shippingSettingsId = data.shippingSettingsId || null;
|
|
23
|
-
this.shippingZoneRateId = data.shippingZoneRateId || null;
|
|
24
|
-
this.taxValue = data.taxValue || null;
|
|
25
|
-
this.title = data.title;
|
|
26
|
-
|
|
27
|
-
makeAutoObservable(this);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IkasOrderTaxLine as IOrderTaxLine } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasOrderTaxLine implements IOrderTaxLine {
|
|
5
|
-
price: number;
|
|
6
|
-
rate: number;
|
|
7
|
-
|
|
8
|
-
constructor(data: IOrderTaxLine) {
|
|
9
|
-
this.price = data.price;
|
|
10
|
-
this.rate = data.rate;
|
|
11
|
-
|
|
12
|
-
makeAutoObservable(this);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IkasTransactionError as ITransactionError } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasTransactionError implements ITransactionError {
|
|
5
|
-
code: string | null = null;
|
|
6
|
-
declineCode: string | null = null;
|
|
7
|
-
message: string | null = null;
|
|
8
|
-
|
|
9
|
-
constructor(data: ITransactionError) {
|
|
10
|
-
this.code = data.code || null;
|
|
11
|
-
this.declineCode = data.declineCode || null;
|
|
12
|
-
this.message = data.message || null;
|
|
13
|
-
|
|
14
|
-
makeAutoObservable(this);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasPaymentMethodType,
|
|
3
|
-
IkasTransactionStatus,
|
|
4
|
-
IkasTransactionType,
|
|
5
|
-
IkasOrderTransaction as IOrderTransaction,
|
|
6
|
-
} from "@ikas/storefront-models";
|
|
7
|
-
import { makeAutoObservable } from "mobx";
|
|
8
|
-
import { IkasTransactionError } from "./error";
|
|
9
|
-
import { IkasTransactionPaymentMethodDetail } from "./payment-method-detail";
|
|
10
|
-
|
|
11
|
-
export class IkasOrderTransaction implements IOrderTransaction {
|
|
12
|
-
amount: number | null;
|
|
13
|
-
checkoutId: string | null;
|
|
14
|
-
createdAt: number | null;
|
|
15
|
-
currencyCode: string | null;
|
|
16
|
-
currencySymbol: string | null;
|
|
17
|
-
customerId: string | null;
|
|
18
|
-
error: IkasTransactionError | null;
|
|
19
|
-
id: string | null;
|
|
20
|
-
orderId: string | null;
|
|
21
|
-
paymentGatewayId: string | null;
|
|
22
|
-
paymentGatewayName: string | null;
|
|
23
|
-
paymentMethod: IkasPaymentMethodType | null;
|
|
24
|
-
paymentMethodDetail: IkasTransactionPaymentMethodDetail | null;
|
|
25
|
-
processedAt: number | null;
|
|
26
|
-
refundReason: string | null;
|
|
27
|
-
status: IkasTransactionStatus | null;
|
|
28
|
-
type: IkasTransactionType | null;
|
|
29
|
-
updatedAt: number | null;
|
|
30
|
-
|
|
31
|
-
constructor(data: IOrderTransaction) {
|
|
32
|
-
this.amount = data.amount || null;
|
|
33
|
-
this.checkoutId = data.checkoutId || null;
|
|
34
|
-
this.createdAt = data.createdAt || null;
|
|
35
|
-
this.currencyCode = data.currencyCode || null;
|
|
36
|
-
this.currencySymbol = data.currencySymbol || null;
|
|
37
|
-
this.customerId = data.customerId || null;
|
|
38
|
-
this.error = data.error ? new IkasTransactionError(data.error) : null;
|
|
39
|
-
this.id = data.id;
|
|
40
|
-
this.orderId = data.orderId;
|
|
41
|
-
this.paymentGatewayId = data.paymentGatewayId;
|
|
42
|
-
this.paymentGatewayName = data.paymentGatewayName;
|
|
43
|
-
this.paymentMethod = data.paymentMethod;
|
|
44
|
-
this.paymentMethodDetail = data.paymentMethodDetail;
|
|
45
|
-
this.processedAt = data.processedAt;
|
|
46
|
-
this.refundReason = data.refundReason;
|
|
47
|
-
this.status = data.status;
|
|
48
|
-
this.type = data.type;
|
|
49
|
-
this.updatedAt = data.updatedAt;
|
|
50
|
-
|
|
51
|
-
makeAutoObservable(this);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { IkasTransactionStatus, IkasTransactionType };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasTransactionCardAssociation,
|
|
3
|
-
IkasTransactionCardType,
|
|
4
|
-
IkasTransactionPaymentMethodDetail as ITransactionPaymentMethodDetail,
|
|
5
|
-
} from "@ikas/storefront-models";
|
|
6
|
-
import { makeAutoObservable } from "mobx";
|
|
7
|
-
import { IkasTransactionInstallmentPrice } from "./installment-price";
|
|
8
|
-
|
|
9
|
-
export class IkasTransactionPaymentMethodDetail
|
|
10
|
-
implements ITransactionPaymentMethodDetail
|
|
11
|
-
{
|
|
12
|
-
bankName: string | null = null;
|
|
13
|
-
binNumber: string;
|
|
14
|
-
cardAssociation: IkasTransactionCardAssociation | null = null;
|
|
15
|
-
cardFamily: string | null = null;
|
|
16
|
-
cardType: IkasTransactionCardType | null = null;
|
|
17
|
-
installment: IkasTransactionInstallmentPrice | null = null;
|
|
18
|
-
lastFourDigits: string;
|
|
19
|
-
threeDSecure: boolean | null = null;
|
|
20
|
-
|
|
21
|
-
constructor(data: ITransactionPaymentMethodDetail) {
|
|
22
|
-
this.bankName = data.bankName || null;
|
|
23
|
-
this.binNumber = data.binNumber;
|
|
24
|
-
this.cardAssociation = data.cardAssociation || null;
|
|
25
|
-
this.cardFamily = data.cardFamily || null;
|
|
26
|
-
this.cardType = data.cardType || null;
|
|
27
|
-
this.installment = data.installment || null;
|
|
28
|
-
this.lastFourDigits = data.lastFourDigits;
|
|
29
|
-
this.threeDSecure = data.threeDSecure || null;
|
|
30
|
-
|
|
31
|
-
makeAutoObservable(this);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IkasTransactionInstallmentPrice as ITransactionInstallmentPrice } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasTransactionInstallmentPrice
|
|
5
|
-
implements ITransactionInstallmentPrice
|
|
6
|
-
{
|
|
7
|
-
installmentCount: number | null = null;
|
|
8
|
-
installmentPrice: number | null = null;
|
|
9
|
-
originalRate: number | null = null;
|
|
10
|
-
rate: number | null = null;
|
|
11
|
-
totalPrice: number | null = null;
|
|
12
|
-
|
|
13
|
-
constructor(data: ITransactionInstallmentPrice) {
|
|
14
|
-
this.installmentCount = data.installmentCount ?? null;
|
|
15
|
-
this.installmentPrice = data.installmentPrice ?? null;
|
|
16
|
-
this.originalRate = data.originalRate ?? null;
|
|
17
|
-
this.rate = data.rate ?? null;
|
|
18
|
-
this.totalPrice = data.totalPrice ?? null;
|
|
19
|
-
|
|
20
|
-
makeAutoObservable(this);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasPaymentGatewayAdditionalPriceType,
|
|
3
|
-
IkasPaymentGatewayTransactionFeeType,
|
|
4
|
-
IkasPaymentGatewayAdditionalPrice as IPaymentGatewayAdditionalPrice,
|
|
5
|
-
} from "@ikas/storefront-models";
|
|
6
|
-
import { makeAutoObservable } from "mobx";
|
|
7
|
-
|
|
8
|
-
export class IkasPaymentGatewayAdditionalPrice
|
|
9
|
-
implements IPaymentGatewayAdditionalPrice
|
|
10
|
-
{
|
|
11
|
-
amount: number;
|
|
12
|
-
amountType: IkasPaymentGatewayTransactionFeeType;
|
|
13
|
-
name: string;
|
|
14
|
-
type: IkasPaymentGatewayAdditionalPriceType;
|
|
15
|
-
|
|
16
|
-
constructor(data: IPaymentGatewayAdditionalPrice) {
|
|
17
|
-
this.amount = data.amount;
|
|
18
|
-
this.amountType = data.amountType;
|
|
19
|
-
this.name = data.name;
|
|
20
|
-
this.type = data.type;
|
|
21
|
-
|
|
22
|
-
makeAutoObservable(this);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
IkasPaymentGatewayAdditionalPriceType,
|
|
28
|
-
IkasPaymentGatewayTransactionFeeType,
|
|
29
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { IkasPaymentGatewayAdditionalPrice } from "./additional-price";
|
|
2
|
-
import { IkasBaseModel } from "../base";
|
|
3
|
-
import { IkasPaymentGatewayTranslation } from "./translation";
|
|
4
|
-
import { IkasPaymentGatewaySettings } from "./settings";
|
|
5
|
-
import {
|
|
6
|
-
IkasPaymentGatewayType,
|
|
7
|
-
IkasPaymentMethod,
|
|
8
|
-
IkasPaymentMethodType,
|
|
9
|
-
IkasPaymentGateway as IPaymentGateway,
|
|
10
|
-
} from "@ikas/storefront-models";
|
|
11
|
-
import { makeObservable, observable } from "mobx";
|
|
12
|
-
import { IkasPaymentGatewayFunctions } from "@ikas/storefront-model-functions";
|
|
13
|
-
import { IkasOrderShippingLine } from "../order/shipping-line";
|
|
14
|
-
|
|
15
|
-
export class IkasPaymentGateway
|
|
16
|
-
extends IkasBaseModel
|
|
17
|
-
implements IPaymentGateway
|
|
18
|
-
{
|
|
19
|
-
additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;
|
|
20
|
-
availableCountries: string[] | null;
|
|
21
|
-
code: string;
|
|
22
|
-
description: string | null;
|
|
23
|
-
logoUrl: string | null;
|
|
24
|
-
masterPassClientId: string | null;
|
|
25
|
-
name: string;
|
|
26
|
-
paymentGatewayProviderId: string | null;
|
|
27
|
-
supportedCurrencies: string[] | null;
|
|
28
|
-
testMode: boolean | null;
|
|
29
|
-
type: IkasPaymentGatewayType;
|
|
30
|
-
paymentMethods: IkasPaymentMethod[];
|
|
31
|
-
paymentMethodType: IkasPaymentMethodType;
|
|
32
|
-
settings?: IkasPaymentGatewaySettings[] | null;
|
|
33
|
-
translations?: IkasPaymentGatewayTranslation[] | null;
|
|
34
|
-
|
|
35
|
-
constructor(data: IPaymentGateway) {
|
|
36
|
-
super(data);
|
|
37
|
-
this.additionalPrices =
|
|
38
|
-
data.additionalPrices?.map(
|
|
39
|
-
(ap) => new IkasPaymentGatewayAdditionalPrice(ap)
|
|
40
|
-
) || null;
|
|
41
|
-
this.availableCountries = data.availableCountries || [];
|
|
42
|
-
this.code = data.code || "";
|
|
43
|
-
this.description = data.description || null;
|
|
44
|
-
this.logoUrl = data.logoUrl || null;
|
|
45
|
-
this.masterPassClientId = data.masterPassClientId || null;
|
|
46
|
-
this.name = data.name || "";
|
|
47
|
-
this.paymentGatewayProviderId = data.paymentGatewayProviderId || null;
|
|
48
|
-
this.supportedCurrencies = data.supportedCurrencies || [];
|
|
49
|
-
this.testMode = data.testMode || null;
|
|
50
|
-
this.type = data.type || IkasPaymentGatewayType.INTERNAL;
|
|
51
|
-
this.paymentMethods = data.paymentMethods || [];
|
|
52
|
-
this.paymentMethodType =
|
|
53
|
-
data.paymentMethodType || IkasPaymentMethodType.OTHER;
|
|
54
|
-
this.settings =
|
|
55
|
-
data.settings?.map((s) => new IkasPaymentGatewaySettings(s)) || null;
|
|
56
|
-
this.translations = data.translations || null;
|
|
57
|
-
|
|
58
|
-
makeObservable(this, {
|
|
59
|
-
additionalPrices: observable,
|
|
60
|
-
availableCountries: observable,
|
|
61
|
-
code: observable,
|
|
62
|
-
description: observable,
|
|
63
|
-
logoUrl: observable,
|
|
64
|
-
masterPassClientId: observable,
|
|
65
|
-
name: observable,
|
|
66
|
-
paymentGatewayProviderId: observable,
|
|
67
|
-
supportedCurrencies: observable,
|
|
68
|
-
testMode: observable,
|
|
69
|
-
type: observable,
|
|
70
|
-
paymentMethods: observable,
|
|
71
|
-
paymentMethodType: observable,
|
|
72
|
-
settings: observable,
|
|
73
|
-
translations: observable,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
getCalculatedAdditionalPrices = (
|
|
78
|
-
totalFinalPrice: number,
|
|
79
|
-
shippingLines: IkasOrderShippingLine[] | null
|
|
80
|
-
) => {
|
|
81
|
-
return IkasPaymentGatewayFunctions.getCalculatedAdditionalPrices(
|
|
82
|
-
this,
|
|
83
|
-
totalFinalPrice,
|
|
84
|
-
shippingLines
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { IkasPaymentGatewayType, IkasPaymentMethodType };
|
|
90
|
-
export type { IkasPaymentMethod };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IkasPaymentGatewaySettingsType } from "@ikas/storefront-models";
|
|
2
|
-
import { IkasPaymentGatewaySettings as IPaymentGatewaySettings } from "@ikas/storefront-models";
|
|
3
|
-
import { makeAutoObservable } from "mobx";
|
|
4
|
-
|
|
5
|
-
export class IkasPaymentGatewaySettings implements IPaymentGatewaySettings {
|
|
6
|
-
label: string;
|
|
7
|
-
order: number;
|
|
8
|
-
type: IkasPaymentGatewaySettingsType;
|
|
9
|
-
value: string | null = null;
|
|
10
|
-
|
|
11
|
-
constructor(data: IPaymentGatewaySettings) {
|
|
12
|
-
this.label = data.label;
|
|
13
|
-
this.order = data.order;
|
|
14
|
-
this.type = data.type;
|
|
15
|
-
this.value = data.value || null;
|
|
16
|
-
|
|
17
|
-
makeAutoObservable(this);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { IkasPaymentGatewaySettingsType };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IkasPaymentGatewayTranslation as IPaymentGatewayTranslation } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasPaymentGatewayTranslation
|
|
5
|
-
implements IPaymentGatewayTranslation
|
|
6
|
-
{
|
|
7
|
-
description: string | null;
|
|
8
|
-
locale: string | null;
|
|
9
|
-
name: string | null;
|
|
10
|
-
|
|
11
|
-
constructor(data: IPaymentGatewayTranslation) {
|
|
12
|
-
this.description = data.description || null;
|
|
13
|
-
this.locale = data.locale || null;
|
|
14
|
-
this.name = data.name || null;
|
|
15
|
-
|
|
16
|
-
makeAutoObservable(this);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IkasProductAttributeTableTemplate } from "./table-template";
|
|
2
|
-
import { IkasProductAttributeOption } from "./option";
|
|
3
|
-
import { IkasProductAttributeTranslation } from "./translation";
|
|
4
|
-
import {
|
|
5
|
-
IkasProductAttributeType,
|
|
6
|
-
IkasProductAttribute as IProductAttribute,
|
|
7
|
-
} from "@ikas/storefront-models";
|
|
8
|
-
import { makeAutoObservable } from "mobx";
|
|
9
|
-
|
|
10
|
-
export class IkasProductAttribute implements IProductAttribute {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
description: string | null = null;
|
|
14
|
-
type: IkasProductAttributeType;
|
|
15
|
-
options: IkasProductAttributeOption[] | null = null;
|
|
16
|
-
tableTemplate: IkasProductAttributeTableTemplate | null = null;
|
|
17
|
-
translations?: IkasProductAttributeTranslation[] | null = null;
|
|
18
|
-
|
|
19
|
-
constructor(data: IProductAttribute) {
|
|
20
|
-
this.id = data.id;
|
|
21
|
-
this.name = data.name;
|
|
22
|
-
this.description = data.description || null;
|
|
23
|
-
this.type = data.type || null;
|
|
24
|
-
this.options =
|
|
25
|
-
data.options?.map((o) => new IkasProductAttributeOption(o)) || null;
|
|
26
|
-
this.tableTemplate = data.tableTemplate
|
|
27
|
-
? new IkasProductAttributeTableTemplate(data.tableTemplate)
|
|
28
|
-
: null;
|
|
29
|
-
this.translations =
|
|
30
|
-
data.translations?.map((t) => new IkasProductAttributeTranslation(t)) ||
|
|
31
|
-
null;
|
|
32
|
-
|
|
33
|
-
makeAutoObservable(this);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { IkasProductAttributeType };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IkasProductAttributeOption as IProductAttributeOption } from "@ikas/storefront-models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
|
|
4
|
-
export class IkasProductAttributeOption implements IProductAttributeOption {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
|
|
8
|
-
constructor(data: IProductAttributeOption) {
|
|
9
|
-
this.id = data.id;
|
|
10
|
-
this.name = data.name;
|
|
11
|
-
|
|
12
|
-
makeAutoObservable(this);
|
|
13
|
-
}
|
|
14
|
-
}
|