@ikas/storefront-models 4.0.0-alpha.78 → 4.0.0-alpha.8
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-cjs/_virtual/_tslib.js +1 -0
- package/build-cjs/index.d.ts +0 -16
- package/build-cjs/index.js +2 -1
- package/build-cjs/models/base/init.js +1 -0
- package/build-cjs/models/blog/category/init.js +1 -0
- package/build-cjs/models/blog/init.js +1 -0
- package/build-cjs/models/blog/meta-data/index.js +1 -0
- package/build-cjs/models/brand/index.js +1 -0
- package/build-cjs/models/brand/init.js +1 -0
- package/build-cjs/models/campaign-offer/index.js +1 -0
- package/build-cjs/models/campaign-offer/product/index.js +1 -0
- package/build-cjs/models/cart/available-shipping-method/index.js +1 -0
- package/build-cjs/models/cart/campaign-offer/index.js +1 -0
- package/build-cjs/models/category/index.js +1 -0
- package/build-cjs/models/category/init.js +2 -1
- package/build-cjs/models/category/init.js.map +1 -1
- package/build-cjs/models/category/path-item/index.d.ts +0 -2
- package/build-cjs/models/checkout-settings/index.js +1 -0
- package/build-cjs/models/checkout-settings/price/index.d.ts +0 -1
- package/build-cjs/models/country/index.d.ts +0 -2
- package/build-cjs/models/customer/attribute/index.js +1 -0
- package/build-cjs/models/customer/attribute/init.js +1 -0
- package/build-cjs/models/customer/attribute/sales-channel/index.js +1 -0
- package/build-cjs/models/customer/index.js +1 -0
- package/build-cjs/models/customer/review/index.js +1 -0
- package/build-cjs/models/customer/review/init.js +1 -0
- package/build-cjs/models/html-meta-data/index.js +1 -0
- package/build-cjs/models/html-meta-data/init.js +1 -0
- package/build-cjs/models/merchant-settings/index.d.ts +0 -3
- package/build-cjs/models/merchant-settings/index.js +1 -0
- package/build-cjs/models/merchant-settings/index.js.map +1 -1
- package/build-cjs/models/merchant-settings/init.js +1 -0
- package/build-cjs/models/order/adjustment/index.js +1 -0
- package/build-cjs/models/order/index.d.ts +1 -3
- package/build-cjs/models/order/index.js +2 -1
- package/build-cjs/models/order/index.js.map +1 -1
- package/build-cjs/models/order/invoice/index.js +1 -0
- package/build-cjs/models/order/line-item/index.d.ts +0 -3
- package/build-cjs/models/order/line-item/index.js +1 -0
- package/build-cjs/models/order/line-item/index.js.map +1 -1
- package/build-cjs/models/order/line-item/variant/index.d.ts +0 -4
- package/build-cjs/models/order/line-item/variant/price/index.d.ts +0 -1
- package/build-cjs/models/order/package/index.js +1 -0
- package/build-cjs/models/order/transaction/index.d.ts +1 -1
- package/build-cjs/models/order/transaction/index.js +1 -0
- package/build-cjs/models/order/transaction/index.js.map +1 -1
- package/build-cjs/models/order/transaction/payment-method-detail/index.js +1 -0
- package/build-cjs/models/payment-gateway/additional-price/index.js +1 -0
- package/build-cjs/models/payment-gateway/index.js +1 -0
- package/build-cjs/models/payment-gateway/init.js +1 -0
- package/build-cjs/models/payment-gateway/settings/index.js +1 -0
- package/build-cjs/models/product/attribute/index.d.ts +1 -3
- package/build-cjs/models/product/attribute/index.js +2 -1
- package/build-cjs/models/product/attribute/index.js.map +1 -1
- package/build-cjs/models/product/attribute/init.js +1 -0
- package/build-cjs/models/product/attribute-value/init.js +1 -0
- package/build-cjs/models/product/campaign/data/index.js +1 -0
- package/build-cjs/models/product/campaign/filter/index.js +1 -0
- package/build-cjs/models/product/filter/index.d.ts +1 -3
- package/build-cjs/models/product/filter/index.js +2 -1
- package/build-cjs/models/product/filter/index.js.map +1 -1
- package/build-cjs/models/product/image/init.js +1 -0
- package/build-cjs/models/product/index.d.ts +0 -2
- package/build-cjs/models/product/index.js +1 -0
- package/build-cjs/models/product/index.js.map +1 -1
- package/build-cjs/models/product/init.js +1 -0
- package/build-cjs/models/product/option-set/init.js +1 -0
- package/build-cjs/models/product/option-set/option/index.js +1 -0
- package/build-cjs/models/product/option-set/option/init.js +1 -0
- package/build-cjs/models/product/variant/index.d.ts +0 -2
- package/build-cjs/models/product/variant/init.js +1 -0
- package/build-cjs/models/product/variant/price/index.d.ts +0 -2
- package/build-cjs/models/product/variant-type/index.d.ts +0 -1
- package/build-cjs/models/product/variant-type/init.js +1 -0
- package/build-cjs/models/raffle/index.d.ts +3 -9
- package/build-cjs/models/raffle/index.js +2 -1
- package/build-cjs/models/raffle/index.js.map +1 -1
- package/build-cjs/models/raffle/init.js +1 -0
- package/build-cjs/models/stock-location/index.js +1 -0
- package/build-cjs/models/storefront/index.d.ts +0 -4
- package/build-cjs/models/storefront/index.js +1 -0
- package/build-cjs/models/storefront/index.js.map +1 -1
- package/build-cjs/models/storefront/routing/index.d.ts +0 -2
- package/build-cjs/models/storefront/theme/index.js +1 -0
- package/build-cjs/models/storefront/theme-localization/index.d.ts +0 -2
- package/build-cjs/models/theme-json/component/index.d.ts +3 -4
- package/build-cjs/models/theme-json/component/prop/index.d.ts +3 -4
- package/build-cjs/models/theme-json/component/prop/index.js +1 -0
- package/build-cjs/models/theme-json/page/index.js +1 -0
- package/build-cjs/models/theme-json/settings/index.js +1 -0
- package/build-cjs/models/variant-type/index.js +1 -0
- package/build-cjs/models/variant-type/init.js +1 -0
- package/build-cjs/models/variant-type/variant-value/init.js +1 -0
- package/package.json +3 -9
- package/{build/index.d.ts → src/index.ts} +213 -172
- package/src/models/base/index.ts +6 -0
- package/src/models/base/init.ts +14 -0
- package/{build/models/blog/category/index.d.ts → src/models/blog/category/index.ts} +11 -9
- package/src/models/blog/category/init.ts +33 -0
- package/{build/models/blog/tag/index.d.ts → src/models/blog/content/index.ts} +5 -4
- package/src/models/blog/index.ts +26 -0
- package/src/models/blog/init.ts +7 -0
- package/src/models/blog/meta-data/index.ts +16 -0
- package/src/models/blog/tag/index.ts +5 -0
- package/src/models/blog/writer/index.ts +4 -0
- package/src/models/brand/index.ts +26 -0
- package/src/models/brand/init.ts +27 -0
- package/src/models/brand/translation/index.ts +5 -0
- package/src/models/campaign-offer/index.ts +43 -0
- package/src/models/campaign-offer/product/index.ts +27 -0
- package/src/models/cart/available-shipping-method/index.ts +13 -0
- package/src/models/cart/campaign-offer/index.ts +24 -0
- package/src/models/cart/index.ts +12 -0
- package/src/models/category/index.ts +30 -0
- package/src/models/category/init.ts +33 -0
- package/src/models/category/path-item/index.ts +9 -0
- package/src/models/category/translations/index.ts +5 -0
- package/src/models/checkout/index.ts +3 -0
- package/src/models/checkout-settings/index.ts +24 -0
- package/src/models/checkout-settings/option/index.ts +4 -0
- package/src/models/checkout-settings/price/index.ts +4 -0
- package/src/models/city/index.ts +11 -0
- package/src/models/contact-form/index.ts +7 -0
- package/src/models/country/index.ts +15 -0
- package/src/models/customer/address/city/index.ts +5 -0
- package/src/models/customer/address/country/index.ts +7 -0
- package/src/models/customer/address/district/index.ts +5 -0
- package/src/models/customer/address/index.tsx +27 -0
- package/src/models/customer/address/state/index.ts +5 -0
- package/src/models/customer/attribute/index.ts +22 -0
- package/src/models/customer/attribute/init.ts +34 -0
- package/src/models/customer/attribute/option/index.ts +7 -0
- package/src/models/customer/attribute/sales-channel/index.ts +18 -0
- package/src/models/customer/attribute/translation/index.ts +8 -0
- package/src/models/customer/attribute/translation/option/index.ts +4 -0
- package/src/models/customer/attribute/value/index.ts +12 -0
- package/src/models/customer/index.ts +48 -0
- package/src/models/customer/review/index.ts +28 -0
- package/src/models/customer/review/init.ts +7 -0
- package/src/models/customer/review/settings/index.ts +4 -0
- package/src/models/customer/review/summary/index.ts +9 -0
- package/src/models/customer/review/summary/star/index.ts +4 -0
- package/src/models/district/index.ts +11 -0
- package/src/models/favorite-product/index.ts +6 -0
- package/src/models/filter-category/index.ts +9 -0
- package/src/models/html-meta-data/index.ts +28 -0
- package/src/models/html-meta-data/init.ts +27 -0
- package/src/models/html-meta-data/translations/index.ts +5 -0
- package/src/models/image/index.ts +4 -0
- package/src/models/last-viewed-product/index.ts +4 -0
- package/src/models/merchant-settings/index.ts +25 -0
- package/src/models/merchant-settings/init.ts +7 -0
- package/src/models/order/address/city/index.ts +5 -0
- package/src/models/order/address/country/index.ts +7 -0
- package/src/models/order/address/district/index.ts +5 -0
- package/src/models/order/address/index.ts +25 -0
- package/src/models/order/address/state/index.ts +5 -0
- package/src/models/order/adjustment/applied-order-line/index.ts +6 -0
- package/src/models/order/adjustment/index.ts +24 -0
- package/src/models/order/customer/index.ts +9 -0
- package/src/models/order/gift-line/index.ts +4 -0
- package/src/models/order/index.ts +90 -0
- package/src/models/order/invoice/index.ts +15 -0
- package/src/models/order/line-item/discount/index.ts +10 -0
- package/src/models/order/line-item/index.ts +34 -0
- package/src/models/order/line-item/option/index.ts +10 -0
- package/src/models/order/line-item/option/value/index.ts +5 -0
- package/src/models/order/line-item/variant/brand/index.ts +4 -0
- package/src/models/order/line-item/variant/category/index.ts +10 -0
- package/src/models/order/line-item/variant/index.ts +26 -0
- package/src/models/order/line-item/variant/price/index.ts +7 -0
- package/src/models/order/line-item/variant/value/index.ts +7 -0
- package/src/models/order/package/index.ts +28 -0
- package/src/models/order/package/tracking-info/index.ts +7 -0
- package/src/models/order/payment-method/index.ts +9 -0
- package/src/models/order/refund/index.ts +6 -0
- package/src/models/order/refund/line-item/index.ts +4 -0
- package/src/models/order/refund/settings/index.ts +5 -0
- package/src/models/order/shipping-line/index.ts +12 -0
- package/src/models/order/tax-line/index.ts +4 -0
- package/src/models/order/transaction/error/index.ts +5 -0
- package/src/models/order/transaction/index.ts +39 -0
- package/src/models/order/transaction/payment-method-detail/index.ts +25 -0
- package/src/models/order/transaction/payment-method-detail/installment-price/index.ts +7 -0
- package/src/models/payment-gateway/additional-price/index.ts +16 -0
- package/src/models/payment-gateway/index.ts +47 -0
- package/src/models/payment-gateway/init.ts +26 -0
- package/src/models/payment-gateway/settings/index.ts +12 -0
- package/src/models/payment-gateway/translation/index.ts +5 -0
- package/src/models/product/attribute/index.ts +24 -0
- package/src/models/product/attribute/init.ts +34 -0
- package/src/models/product/attribute/option/index.ts +4 -0
- package/src/models/product/attribute/table-cell/index.ts +4 -0
- package/src/models/product/attribute/table-template/index.ts +6 -0
- package/src/models/product/attribute/translation/index.ts +11 -0
- package/src/models/product/attribute-value/index.ts +26 -0
- package/src/models/product/attribute-value/init.ts +7 -0
- package/src/models/product/back-in-stock-settings/index.ts +3 -0
- package/src/models/product/campaign/data/index.ts +43 -0
- package/src/models/product/campaign/filter/index.ts +12 -0
- package/src/models/product/campaign/index.ts +6 -0
- package/src/models/product/campaign/product-buyx-then-gety/index.ts +19 -0
- package/src/models/product/campaign/product-campaign-date-range-field/index.ts +4 -0
- package/src/models/product/campaign/product-fixed-discount/index.ts +13 -0
- package/src/models/product/filter/index.ts +96 -0
- package/src/models/product/image/index.ts +10 -0
- package/src/models/product/image/init.ts +7 -0
- package/src/models/product/index.ts +43 -0
- package/src/models/product/init.ts +16 -0
- package/src/models/product/option-set/index.ts +25 -0
- package/src/models/product/option-set/init.ts +77 -0
- package/src/models/product/option-set/option/index.ts +81 -0
- package/src/models/product/option-set/option/init.ts +13 -0
- package/src/models/product/tag/index.ts +4 -0
- package/src/models/product/variant/index.ts +20 -0
- package/src/models/product/variant/init.ts +10 -0
- package/src/models/product/variant/price/index.ts +7 -0
- package/src/models/product/variant-type/index.ts +6 -0
- package/src/models/product/variant-type/init.ts +15 -0
- package/src/models/raffle/index.ts +70 -0
- package/src/models/raffle/init.ts +6 -0
- package/src/models/sales-channel/index.ts +17 -0
- package/src/models/state/index.ts +7 -0
- package/src/models/stock-location/address/city/index.ts +5 -0
- package/src/models/stock-location/address/country/index.ts +5 -0
- package/src/models/stock-location/address/district/index.ts +5 -0
- package/src/models/stock-location/address/index.ts +14 -0
- package/src/models/stock-location/address/state/index.ts +5 -0
- package/src/models/stock-location/available/index.ts +9 -0
- package/src/models/stock-location/index.ts +26 -0
- package/src/models/storefront/domain/index.ts +7 -0
- package/src/models/storefront/index.ts +30 -0
- package/src/models/storefront/localization/index.tsx +6 -0
- package/src/models/storefront/routing/dynamic-currency/index.ts +4 -0
- package/src/models/storefront/routing/index.tsx +11 -0
- package/src/models/storefront/theme/index.tsx +13 -0
- package/src/models/storefront/theme-localization/index.tsx +13 -0
- package/src/models/theme-json/component/index.ts +19 -0
- package/src/models/theme-json/component/prop/index.ts +65 -0
- package/src/models/theme-json/custom-data/index.ts +46 -0
- package/src/models/theme-json/index.ts +12 -0
- package/src/models/theme-json/page/component/index.ts +11 -0
- package/src/models/theme-json/page/index.ts +46 -0
- package/src/models/theme-json/settings/color/index.ts +13 -0
- package/src/models/theme-json/settings/favicon/index.ts +3 -0
- package/src/models/theme-json/settings/font-family/index.ts +4 -0
- package/src/models/theme-json/settings/index.ts +16 -0
- package/src/models/variant-type/index.ts +25 -0
- package/src/models/variant-type/init.ts +37 -0
- package/src/models/variant-type/variant-value/index.ts +12 -0
- package/src/models/variant-type/variant-value/init.ts +5 -0
- package/build/_virtual/_tslib.js +0 -1
- package/build/index.js +0 -1
- package/build/models/base/index.d.ts +0 -6
- package/build/models/base/init.d.ts +0 -6
- package/build/models/base/init.js +0 -1
- package/build/models/blog/category/init.d.ts +0 -11
- package/build/models/blog/category/init.js +0 -1
- package/build/models/blog/content/index.d.ts +0 -4
- package/build/models/blog/index.d.ts +0 -24
- package/build/models/blog/init.d.ts +0 -2
- package/build/models/blog/init.js +0 -1
- package/build/models/blog/meta-data/index.d.ts +0 -14
- package/build/models/blog/meta-data/index.js +0 -1
- package/build/models/blog/writer/index.d.ts +0 -4
- package/build/models/brand/index.d.ts +0 -23
- package/build/models/brand/index.js +0 -1
- package/build/models/brand/init.d.ts +0 -2
- package/build/models/brand/init.js +0 -1
- package/build/models/brand/translation/index.d.ts +0 -5
- package/build/models/campaign-offer/index.d.ts +0 -37
- package/build/models/campaign-offer/index.js +0 -1
- package/build/models/campaign-offer/product/index.d.ts +0 -24
- package/build/models/campaign-offer/product/index.js +0 -1
- package/build/models/cart/available-shipping-method/index.d.ts +0 -12
- package/build/models/cart/available-shipping-method/index.js +0 -1
- package/build/models/cart/campaign-offer/index.d.ts +0 -19
- package/build/models/cart/campaign-offer/index.js +0 -1
- package/build/models/cart/index.d.ts +0 -11
- package/build/models/category/index.d.ts +0 -27
- package/build/models/category/index.js +0 -1
- package/build/models/category/init.d.ts +0 -2
- package/build/models/category/init.js +0 -1
- package/build/models/category/path-item/index.d.ts +0 -10
- package/build/models/category/path-item/init.d.ts +0 -2
- package/build/models/category/path-item/init.js +0 -1
- package/build/models/category/translations/index.d.ts +0 -5
- package/build/models/checkout/index.d.ts +0 -2
- package/build/models/checkout-settings/index.d.ts +0 -22
- package/build/models/checkout-settings/index.js +0 -1
- package/build/models/checkout-settings/option/index.d.ts +0 -4
- package/build/models/checkout-settings/price/index.d.ts +0 -5
- package/build/models/city/index.d.ts +0 -10
- package/build/models/contact-form/index.d.ts +0 -7
- package/build/models/country/index.d.ts +0 -16
- package/build/models/country/init.d.ts +0 -2
- package/build/models/country/init.js +0 -1
- package/build/models/country/location-translations/index.d.ts +0 -5
- package/build/models/customer/address/city/index.d.ts +0 -5
- package/build/models/customer/address/country/index.d.ts +0 -7
- package/build/models/customer/address/district/index.d.ts +0 -5
- package/build/models/customer/address/index.d.ts +0 -25
- package/build/models/customer/address/state/index.d.ts +0 -5
- package/build/models/customer/attribute/index.d.ts +0 -20
- package/build/models/customer/attribute/index.js +0 -1
- package/build/models/customer/attribute/init.d.ts +0 -2
- package/build/models/customer/attribute/init.js +0 -1
- package/build/models/customer/attribute/option/index.d.ts +0 -7
- package/build/models/customer/attribute/sales-channel/index.d.ts +0 -16
- package/build/models/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/customer/attribute/translation/index.d.ts +0 -7
- package/build/models/customer/attribute/translation/option/index.d.ts +0 -4
- package/build/models/customer/attribute/value/index.d.ts +0 -9
- package/build/models/customer/index.d.ts +0 -43
- package/build/models/customer/index.js +0 -1
- package/build/models/customer/review/index.d.ts +0 -24
- package/build/models/customer/review/index.js +0 -1
- package/build/models/customer/review/init.d.ts +0 -2
- package/build/models/customer/review/init.js +0 -1
- package/build/models/customer/review/settings/index.d.ts +0 -4
- package/build/models/customer/review/summary/index.d.ts +0 -8
- package/build/models/customer/review/summary/star/index.d.ts +0 -4
- package/build/models/customer-settings/index.d.ts +0 -7
- package/build/models/district/index.d.ts +0 -10
- package/build/models/favorite-product/index.d.ts +0 -5
- package/build/models/filter-category/index.d.ts +0 -8
- package/build/models/html-meta-data/index.d.ts +0 -25
- package/build/models/html-meta-data/index.js +0 -1
- package/build/models/html-meta-data/init.d.ts +0 -3
- package/build/models/html-meta-data/init.js +0 -1
- package/build/models/html-meta-data/translations/index.d.ts +0 -5
- package/build/models/image/index.d.ts +0 -4
- package/build/models/last-viewed-product/index.d.ts +0 -4
- package/build/models/merchant-settings/address/city/index.d.ts +0 -5
- package/build/models/merchant-settings/address/country/index.d.ts +0 -7
- package/build/models/merchant-settings/address/district/index.d.ts +0 -5
- package/build/models/merchant-settings/address/index.d.ts +0 -21
- package/build/models/merchant-settings/address/state/index.d.ts +0 -5
- package/build/models/merchant-settings/address/type/index.d.ts +0 -4
- package/build/models/merchant-settings/address/type/index.js +0 -1
- package/build/models/merchant-settings/index.d.ts +0 -24
- package/build/models/merchant-settings/index.js +0 -1
- package/build/models/merchant-settings/init.d.ts +0 -2
- package/build/models/merchant-settings/init.js +0 -1
- package/build/models/order/address/city/index.d.ts +0 -5
- package/build/models/order/address/country/index.d.ts +0 -7
- package/build/models/order/address/district/index.d.ts +0 -5
- package/build/models/order/address/index.d.ts +0 -22
- package/build/models/order/address/state/index.d.ts +0 -5
- package/build/models/order/adjustment/applied-order-line/index.d.ts +0 -6
- package/build/models/order/adjustment/index.d.ts +0 -21
- package/build/models/order/adjustment/index.js +0 -1
- package/build/models/order/customer/index.d.ts +0 -9
- package/build/models/order/gift-line/index.d.ts +0 -4
- package/build/models/order/index.d.ts +0 -86
- package/build/models/order/index.js +0 -1
- package/build/models/order/invoice/index.d.ts +0 -14
- package/build/models/order/invoice/index.js +0 -1
- package/build/models/order/line-item/base-unit/index.d.ts +0 -20
- package/build/models/order/line-item/base-unit/index.js +0 -1
- package/build/models/order/line-item/base-unit/unit-type/index.d.ts +0 -4
- package/build/models/order/line-item/discount/index.d.ts +0 -9
- package/build/models/order/line-item/index.d.ts +0 -35
- package/build/models/order/line-item/index.js +0 -1
- package/build/models/order/line-item/option/index.d.ts +0 -9
- package/build/models/order/line-item/option/value/index.d.ts +0 -5
- package/build/models/order/line-item/variant/brand/index.d.ts +0 -4
- package/build/models/order/line-item/variant/category/index.d.ts +0 -9
- package/build/models/order/line-item/variant/index.d.ts +0 -27
- package/build/models/order/line-item/variant/price/index.d.ts +0 -8
- package/build/models/order/line-item/variant/unit/index.d.ts +0 -5
- package/build/models/order/line-item/variant/value/index.d.ts +0 -7
- package/build/models/order/package/index.d.ts +0 -26
- package/build/models/order/package/index.js +0 -1
- package/build/models/order/package/tracking-info/index.d.ts +0 -7
- package/build/models/order/payment-method/index.d.ts +0 -8
- package/build/models/order/refund/index.d.ts +0 -5
- package/build/models/order/refund/line-item/index.d.ts +0 -4
- package/build/models/order/refund/settings/index.d.ts +0 -5
- package/build/models/order/shipping-line/index.d.ts +0 -11
- package/build/models/order/tax-line/index.d.ts +0 -4
- package/build/models/order/transaction/error/index.d.ts +0 -5
- package/build/models/order/transaction/index.d.ts +0 -34
- package/build/models/order/transaction/index.js +0 -1
- package/build/models/order/transaction/payment-method-detail/index.d.ts +0 -22
- package/build/models/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -7
- package/build/models/payment-gateway/additional-price/index.d.ts +0 -14
- package/build/models/payment-gateway/additional-price/index.js +0 -1
- package/build/models/payment-gateway/index.d.ts +0 -42
- package/build/models/payment-gateway/index.js +0 -1
- package/build/models/payment-gateway/init.d.ts +0 -2
- package/build/models/payment-gateway/init.js +0 -1
- package/build/models/payment-gateway/settings/index.d.ts +0 -11
- package/build/models/payment-gateway/settings/index.js +0 -1
- package/build/models/payment-gateway/translation/index.d.ts +0 -5
- package/build/models/product/attribute/index.d.ts +0 -24
- package/build/models/product/attribute/index.js +0 -1
- package/build/models/product/attribute/init.d.ts +0 -2
- package/build/models/product/attribute/init.js +0 -1
- package/build/models/product/attribute/option/index.d.ts +0 -4
- package/build/models/product/attribute/table-cell/index.d.ts +0 -4
- package/build/models/product/attribute/table-template/index.d.ts +0 -5
- package/build/models/product/attribute/translation/index.d.ts +0 -10
- package/build/models/product/attribute-value/index.d.ts +0 -21
- package/build/models/product/attribute-value/init.d.ts +0 -2
- package/build/models/product/attribute-value/init.js +0 -1
- package/build/models/product/back-in-stock-settings/index.d.ts +0 -3
- package/build/models/product/base-unit/index.d.ts +0 -10
- package/build/models/product/campaign/data/index.d.ts +0 -39
- package/build/models/product/campaign/data/index.js +0 -1
- package/build/models/product/campaign/filter/index.d.ts +0 -11
- package/build/models/product/campaign/filter/index.js +0 -1
- package/build/models/product/campaign/index.d.ts +0 -5
- package/build/models/product/campaign/product-buyx-then-gety/index.d.ts +0 -16
- package/build/models/product/campaign/product-campaign-date-range-field/index.d.ts +0 -4
- package/build/models/product/campaign/product-fixed-discount/index.d.ts +0 -11
- package/build/models/product/filter/index.d.ts +0 -83
- package/build/models/product/filter/index.js +0 -1
- package/build/models/product/image/index.d.ts +0 -8
- package/build/models/product/image/init.d.ts +0 -2
- package/build/models/product/image/init.js +0 -1
- package/build/models/product/index.d.ts +0 -41
- package/build/models/product/index.js +0 -1
- package/build/models/product/init.d.ts +0 -2
- package/build/models/product/init.js +0 -1
- package/build/models/product/option-set/index.d.ts +0 -21
- package/build/models/product/option-set/init.d.ts +0 -6
- package/build/models/product/option-set/init.js +0 -1
- package/build/models/product/option-set/option/index.d.ts +0 -70
- package/build/models/product/option-set/option/index.js +0 -1
- package/build/models/product/option-set/option/init.d.ts +0 -2
- package/build/models/product/option-set/option/init.js +0 -1
- package/build/models/product/tag/index.d.ts +0 -4
- package/build/models/product/variant/index.d.ts +0 -21
- package/build/models/product/variant/init.d.ts +0 -2
- package/build/models/product/variant/init.js +0 -1
- package/build/models/product/variant/price/index.d.ts +0 -9
- package/build/models/product/variant/unit/index.d.ts +0 -5
- package/build/models/product/variant-type/index.d.ts +0 -6
- package/build/models/product/variant-type/init.d.ts +0 -2
- package/build/models/product/variant-type/init.js +0 -1
- package/build/models/product-option-file/index.d.ts +0 -5
- package/build/models/raffle/index.d.ts +0 -68
- package/build/models/raffle/index.js +0 -1
- package/build/models/raffle/init.d.ts +0 -2
- package/build/models/raffle/init.js +0 -1
- package/build/models/sales-channel/index.d.ts +0 -15
- package/build/models/state/index.d.ts +0 -6
- package/build/models/stock-location/address/city/index.d.ts +0 -5
- package/build/models/stock-location/address/country/index.d.ts +0 -5
- package/build/models/stock-location/address/district/index.d.ts +0 -5
- package/build/models/stock-location/address/index.d.ts +0 -13
- package/build/models/stock-location/address/state/index.d.ts +0 -5
- package/build/models/stock-location/available/index.d.ts +0 -8
- package/build/models/stock-location/index.d.ts +0 -23
- package/build/models/stock-location/index.js +0 -1
- package/build/models/storefront/domain/index.d.ts +0 -7
- package/build/models/storefront/index.d.ts +0 -30
- package/build/models/storefront/index.js +0 -1
- package/build/models/storefront/localization/index.d.ts +0 -6
- package/build/models/storefront/meta-templates/index.d.ts +0 -14
- package/build/models/storefront/meta-templates/index.js +0 -1
- package/build/models/storefront/routing/dynamic-currency/index.d.ts +0 -4
- package/build/models/storefront/routing/index.d.ts +0 -12
- package/build/models/storefront/theme/index.d.ts +0 -12
- package/build/models/storefront/theme/index.js +0 -1
- package/build/models/storefront/theme-localization/index.d.ts +0 -13
- package/build/models/theme-json/component/index.d.ts +0 -18
- package/build/models/theme-json/component/prop/index.d.ts +0 -61
- package/build/models/theme-json/component/prop/index.js +0 -1
- package/build/models/theme-json/custom-data/index.d.ts +0 -37
- package/build/models/theme-json/index.d.ts +0 -11
- package/build/models/theme-json/page/component/index.d.ts +0 -5
- package/build/models/theme-json/page/index.d.ts +0 -43
- package/build/models/theme-json/page/index.js +0 -1
- package/build/models/theme-json/settings/color/index.d.ts +0 -12
- package/build/models/theme-json/settings/favicon/index.d.ts +0 -3
- package/build/models/theme-json/settings/font-family/index.d.ts +0 -4
- package/build/models/theme-json/settings/index.d.ts +0 -14
- package/build/models/theme-json/settings/index.js +0 -1
- package/build/models/variant-type/index.d.ts +0 -21
- package/build/models/variant-type/index.js +0 -1
- package/build/models/variant-type/init.d.ts +0 -2
- package/build/models/variant-type/init.js +0 -1
- package/build/models/variant-type/variant-value/index.d.ts +0 -9
- package/build/models/variant-type/variant-value/init.d.ts +0 -2
- package/build/models/variant-type/variant-value/init.js +0 -1
- package/build-cjs/models/category/path-item/init.d.ts +0 -2
- package/build-cjs/models/category/path-item/init.js +0 -1
- package/build-cjs/models/category/path-item/init.js.map +0 -1
- package/build-cjs/models/country/init.d.ts +0 -2
- package/build-cjs/models/country/init.js +0 -1
- package/build-cjs/models/country/init.js.map +0 -1
- package/build-cjs/models/country/location-translations/index.d.ts +0 -5
- package/build-cjs/models/customer-settings/index.d.ts +0 -7
- package/build-cjs/models/merchant-settings/address/city/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/country/index.d.ts +0 -7
- package/build-cjs/models/merchant-settings/address/district/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/index.d.ts +0 -21
- package/build-cjs/models/merchant-settings/address/state/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/type/index.d.ts +0 -4
- package/build-cjs/models/merchant-settings/address/type/index.js +0 -1
- package/build-cjs/models/merchant-settings/address/type/index.js.map +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.d.ts +0 -20
- package/build-cjs/models/order/line-item/base-unit/index.js +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.js.map +0 -1
- package/build-cjs/models/order/line-item/base-unit/unit-type/index.d.ts +0 -4
- package/build-cjs/models/order/line-item/variant/unit/index.d.ts +0 -5
- package/build-cjs/models/product/base-unit/index.d.ts +0 -10
- package/build-cjs/models/product/variant/unit/index.d.ts +0 -5
- package/build-cjs/models/product-option-file/index.d.ts +0 -5
- package/build-cjs/models/storefront/meta-templates/index.d.ts +0 -14
- package/build-cjs/models/storefront/meta-templates/index.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IkasImage } from "../image";
|
|
2
|
+
|
|
3
|
+
export type IkasMerchantSettings = {
|
|
4
|
+
currencyFormats: IkasMerchantSettingsCurrencyFormat[] | null;
|
|
5
|
+
logoId: string | null;
|
|
6
|
+
merchantId: string;
|
|
7
|
+
merchantName: string;
|
|
8
|
+
|
|
9
|
+
// Extra
|
|
10
|
+
logo?: IkasImage | null;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type IkasMerchantSettingsCurrencyFormat = {
|
|
14
|
+
currencyCode: string;
|
|
15
|
+
decimalSeparator: string;
|
|
16
|
+
symbol: string;
|
|
17
|
+
symbolPosition: IkasMerchantSettingsCurrencyFormatSymbolPosition;
|
|
18
|
+
thousandSeparator: string;
|
|
19
|
+
omitZeroDecimal: boolean;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
enum IkasMerchantSettingsCurrencyFormatSymbolPosition {
|
|
23
|
+
LEFT = "LEFT",
|
|
24
|
+
RIGHT = "RIGHT",
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IkasCheckoutSettings } from "../../checkout-settings";
|
|
2
|
+
import { IkasOrderAddressCity } from "./city";
|
|
3
|
+
import { IkasOrderAddressCountry } from "./country";
|
|
4
|
+
import { IkasOrderAddressDistrict } from "./district";
|
|
5
|
+
import { IkasOrderAddressState } from "./state";
|
|
6
|
+
|
|
7
|
+
export type IkasOrderAddress = {
|
|
8
|
+
addressLine1: string;
|
|
9
|
+
addressLine2: string | null;
|
|
10
|
+
company: string | null;
|
|
11
|
+
firstName: string;
|
|
12
|
+
id: string | null;
|
|
13
|
+
identityNumber: string | null;
|
|
14
|
+
isDefault: boolean;
|
|
15
|
+
lastName: string;
|
|
16
|
+
phone: string | null;
|
|
17
|
+
postalCode: string | null;
|
|
18
|
+
taxNumber: string | null;
|
|
19
|
+
taxOffice: string | null;
|
|
20
|
+
|
|
21
|
+
country: IkasOrderAddressCountry | null;
|
|
22
|
+
state: IkasOrderAddressState | null;
|
|
23
|
+
city: IkasOrderAddressCity | null;
|
|
24
|
+
district: IkasOrderAddressDistrict | null;
|
|
25
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IkasCampaignType } from "../../../models/product/campaign/data";
|
|
2
|
+
import { IkasOrderAdjustmentAppliedOrderLine } from "./applied-order-line";
|
|
3
|
+
|
|
4
|
+
export type IkasOrderAdjustment = {
|
|
5
|
+
amount: number;
|
|
6
|
+
appliedOrderLines: IkasOrderAdjustmentAppliedOrderLine[] | null;
|
|
7
|
+
campaignId: string | null;
|
|
8
|
+
couponId: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
order: number;
|
|
11
|
+
amountType: IkasAmountType;
|
|
12
|
+
type: IkasAdjustmentType;
|
|
13
|
+
campaignType: IkasCampaignType | null;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export enum IkasAmountType {
|
|
17
|
+
AMOUNT = "AMOUNT",
|
|
18
|
+
RATIO = "RATIO",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum IkasAdjustmentType {
|
|
22
|
+
DECREMENT = "DECREMENT",
|
|
23
|
+
INCREMENT = "INCREMENT",
|
|
24
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { IkasOrderAddress } from "./address";
|
|
2
|
+
import { IkasOrderShippingLine } from "./shipping-line";
|
|
3
|
+
import { IkasOrderLineItem } from "./line-item";
|
|
4
|
+
import { IkasOrderCustomer } from "./customer";
|
|
5
|
+
import { IkasOrderGiftPackageLine } from "./gift-line";
|
|
6
|
+
import { IkasInvoice } from "./invoice";
|
|
7
|
+
import { IkasOrderPaymentMethod } from "./payment-method";
|
|
8
|
+
import { IkasOrderAdjustment } from "./adjustment";
|
|
9
|
+
import { IkasOrderPackage } from "./package";
|
|
10
|
+
import { IkasOrderTaxLine } from "./tax-line";
|
|
11
|
+
import { IkasBaseModel } from "../base";
|
|
12
|
+
|
|
13
|
+
export type IkasOrder = {
|
|
14
|
+
billingAddress: IkasOrderAddress | null;
|
|
15
|
+
cancelReason: IkasOrderCancelReason | null;
|
|
16
|
+
cancelledAt: number | null;
|
|
17
|
+
currencyCode: string;
|
|
18
|
+
customer: IkasOrderCustomer | null;
|
|
19
|
+
customerId: string | null;
|
|
20
|
+
giftPackageLines: IkasOrderGiftPackageLine[] | null;
|
|
21
|
+
giftPackageNote: string | null;
|
|
22
|
+
invoices: IkasInvoice[] | null;
|
|
23
|
+
isGiftPackage: boolean | null;
|
|
24
|
+
note: string | null;
|
|
25
|
+
orderAdjustments: IkasOrderAdjustment[] | null;
|
|
26
|
+
orderLineItems: IkasOrderLineItem[];
|
|
27
|
+
orderNumber: string | null;
|
|
28
|
+
orderPackageStatus: IkasOrderPackageStatus | null;
|
|
29
|
+
orderPackages: IkasOrderPackage[] | null;
|
|
30
|
+
orderPaymentStatus: IkasOrderPaymentStatus | null;
|
|
31
|
+
orderedAt: number | null;
|
|
32
|
+
paymentMethods: IkasOrderPaymentMethod[] | null;
|
|
33
|
+
shippingAddress: IkasOrderAddress | null;
|
|
34
|
+
shippingLines: IkasOrderShippingLine[] | null;
|
|
35
|
+
shippingMethod: IkasOrderShippingMethod;
|
|
36
|
+
status: IkasOrderStatus;
|
|
37
|
+
taxLines: IkasOrderTaxLine[] | null;
|
|
38
|
+
totalFinalPrice: number;
|
|
39
|
+
totalPrice: number;
|
|
40
|
+
} & IkasBaseModel;
|
|
41
|
+
|
|
42
|
+
export enum IkasOrderCancelReason {
|
|
43
|
+
CUSTOMER = "CUSTOMER",
|
|
44
|
+
DECLINED = "DECLINED",
|
|
45
|
+
INVENTORY = "INVENTORY",
|
|
46
|
+
OTHER = "OTHER",
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export enum IkasOrderPackageStatus {
|
|
50
|
+
CANCELLED = "CANCELLED",
|
|
51
|
+
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
52
|
+
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
53
|
+
DELIVERED = "DELIVERED",
|
|
54
|
+
FULFILLED = "FULFILLED",
|
|
55
|
+
PARTIALLY_CANCELLED = "PARTIALLY_CANCELLED",
|
|
56
|
+
PARTIALLY_DELIVERED = "PARTIALLY_DELIVERED",
|
|
57
|
+
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
58
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
59
|
+
READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
|
|
60
|
+
READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
|
|
61
|
+
REFUNDED = "REFUNDED",
|
|
62
|
+
REFUND_REJECTED = "REFUND_REJECTED",
|
|
63
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
64
|
+
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
65
|
+
UNABLE_TO_DELIVER = "UNABLE_TO_DELIVER",
|
|
66
|
+
UNFULFILLED = "UNFULFILLED",
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export enum IkasOrderPaymentStatus {
|
|
70
|
+
PAID = "PAID",
|
|
71
|
+
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
72
|
+
WAITING = "WAITING",
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export enum IkasOrderStatus {
|
|
76
|
+
CANCELLED = "CANCELLED",
|
|
77
|
+
CREATED = "CREATED",
|
|
78
|
+
DRAFT = "DRAFT",
|
|
79
|
+
PARTIALLY_CANCELLED = "PARTIALLY_CANCELLED",
|
|
80
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
81
|
+
REFUNDED = "REFUNDED",
|
|
82
|
+
REFUND_REJECTED = "REFUND_REJECTED",
|
|
83
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export enum IkasOrderShippingMethod {
|
|
87
|
+
CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
|
|
88
|
+
NO_SHIPMENT = "NO_SHIPMENT",
|
|
89
|
+
SHIPMENT = "SHIPMENT",
|
|
90
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type IkasInvoice = {
|
|
2
|
+
appId: string;
|
|
3
|
+
appName: string;
|
|
4
|
+
createdAt: number | null;
|
|
5
|
+
id: string;
|
|
6
|
+
invoiceNumber: string;
|
|
7
|
+
storeAppId: string;
|
|
8
|
+
type: IkasInvoiceType;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export enum IkasInvoiceType {
|
|
12
|
+
COMPANY = "COMPANY",
|
|
13
|
+
INDIVIDUAL = "INDIVIDUAL",
|
|
14
|
+
OTHER = "OTHER",
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IkasAmountType } from "../../adjustment";
|
|
2
|
+
|
|
3
|
+
export type IkasOrderLineDiscount = {
|
|
4
|
+
amount: number;
|
|
5
|
+
amountType: IkasAmountType;
|
|
6
|
+
campaignOfferId: string | null;
|
|
7
|
+
campaignOfferProductId: string | null;
|
|
8
|
+
maxApplicableQuantity: number | null;
|
|
9
|
+
reason: string | null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IkasOrderLineDiscount } from "./discount";
|
|
2
|
+
import { IkasOrderLineVariant } from "./variant";
|
|
3
|
+
import { IkasOrderLineItemOption } from "./option";
|
|
4
|
+
import { IkasBaseModel } from "../../base";
|
|
5
|
+
|
|
6
|
+
export type IkasOrderLineItem = {
|
|
7
|
+
currencyCode: string | null;
|
|
8
|
+
discount: IkasOrderLineDiscount | null;
|
|
9
|
+
discountPrice: number | null;
|
|
10
|
+
finalPrice: number | null;
|
|
11
|
+
options: IkasOrderLineItemOption[] | null;
|
|
12
|
+
originalOrderLineItemId: string | null;
|
|
13
|
+
price: number;
|
|
14
|
+
quantity: number;
|
|
15
|
+
status: IkasOrderLineItemStatus;
|
|
16
|
+
statusUpdatedAt: number | null;
|
|
17
|
+
stockLocationId: string | null;
|
|
18
|
+
taxValue: number | null;
|
|
19
|
+
variant: IkasOrderLineVariant;
|
|
20
|
+
orderedAt: number;
|
|
21
|
+
} & IkasBaseModel;
|
|
22
|
+
|
|
23
|
+
export enum IkasOrderLineItemStatus {
|
|
24
|
+
CANCELLED = "CANCELLED",
|
|
25
|
+
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
26
|
+
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
27
|
+
DELIVERED = "DELIVERED",
|
|
28
|
+
FULFILLED = "FULFILLED",
|
|
29
|
+
REFUNDED = "REFUNDED",
|
|
30
|
+
REFUND_REJECTED = "REFUND_REJECTED",
|
|
31
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
32
|
+
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
33
|
+
UNFULFILLED = "UNFULFILLED",
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IkasProductOptionType } from "../../../product/option-set/option";
|
|
2
|
+
import { IkasOrderLineItemOptionValue } from "./value";
|
|
3
|
+
|
|
4
|
+
export type IkasOrderLineItemOption = {
|
|
5
|
+
name: string;
|
|
6
|
+
productOptionId: string;
|
|
7
|
+
productOptionsSetId: string;
|
|
8
|
+
type: IkasProductOptionType;
|
|
9
|
+
values: IkasOrderLineItemOptionValue[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IkasOrderLineVariantVariantValue } from "./value";
|
|
2
|
+
import { IkasOrderLineVariantBrand } from "./brand";
|
|
3
|
+
import { IkasOrderLineVariantCategory } from "./category";
|
|
4
|
+
import { IkasOrderLineVariantPrice } from "./price";
|
|
5
|
+
import { IkasImage } from "../../../image";
|
|
6
|
+
|
|
7
|
+
export type IkasOrderLineVariant = {
|
|
8
|
+
barcodeList: string[] | null;
|
|
9
|
+
brand: IkasOrderLineVariantBrand | null;
|
|
10
|
+
categories: IkasOrderLineVariantCategory[] | null;
|
|
11
|
+
id: string | null;
|
|
12
|
+
mainImageId: string | null;
|
|
13
|
+
name: string;
|
|
14
|
+
prices: IkasOrderLineVariantPrice[] | null;
|
|
15
|
+
productId: string | null;
|
|
16
|
+
sku: string | null;
|
|
17
|
+
slug: string | null;
|
|
18
|
+
tagIds: string[] | null;
|
|
19
|
+
taxValue: number | null;
|
|
20
|
+
type: number | null;
|
|
21
|
+
weight: number | null;
|
|
22
|
+
variantValues: IkasOrderLineVariantVariantValue[] | null;
|
|
23
|
+
|
|
24
|
+
// Extra
|
|
25
|
+
mainImage?: IkasImage | null;
|
|
26
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IkasBaseModel } from "../../base";
|
|
2
|
+
import { IkasTrackingInfo } from "./tracking-info";
|
|
3
|
+
|
|
4
|
+
export type IkasOrderPackage = {
|
|
5
|
+
errorMessage: string | null;
|
|
6
|
+
note: string | null;
|
|
7
|
+
orderLineItemIds: string[];
|
|
8
|
+
orderPackageFulfillStatus: IkasOrderPackageFullfillStatus;
|
|
9
|
+
orderPackageNumber: string;
|
|
10
|
+
stockLocationId: string;
|
|
11
|
+
trackingInfo: IkasTrackingInfo | null;
|
|
12
|
+
} & IkasBaseModel;
|
|
13
|
+
|
|
14
|
+
export enum IkasOrderPackageFullfillStatus {
|
|
15
|
+
CANCELLED = "CANCELLED",
|
|
16
|
+
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
17
|
+
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
18
|
+
DELIVERED = "DELIVERED",
|
|
19
|
+
ERROR = "ERROR",
|
|
20
|
+
FULFILLED = "FULFILLED",
|
|
21
|
+
READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
|
|
22
|
+
READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
|
|
23
|
+
REFUNDED = "REFUNDED",
|
|
24
|
+
REFUND_REJECTED = "REFUND_REJECTED",
|
|
25
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
26
|
+
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
27
|
+
UNABLE_TO_DELIVER = "UNABLE_TO_DELIVER",
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasPaymentMethodType } from "../../payment-gateway";
|
|
2
|
+
|
|
3
|
+
export type IkasOrderPaymentMethod = {
|
|
4
|
+
paymentGatewayCode: string | null;
|
|
5
|
+
paymentGatewayId: string | null;
|
|
6
|
+
paymentGatewayName: string | null;
|
|
7
|
+
price: number;
|
|
8
|
+
type: IkasPaymentMethodType;
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IkasPaymentMethodType } from "../../payment-gateway";
|
|
2
|
+
|
|
3
|
+
export type IkasOrderShippingLine = {
|
|
4
|
+
finalPrice: number;
|
|
5
|
+
isRefunded: boolean | null;
|
|
6
|
+
paymentMethod: IkasPaymentMethodType | null;
|
|
7
|
+
price: number;
|
|
8
|
+
shippingSettingsId: string | null;
|
|
9
|
+
shippingZoneRateId: string | null;
|
|
10
|
+
taxValue: number | null;
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IkasPaymentMethodType } from "../../payment-gateway";
|
|
2
|
+
import { IkasTransactionError } from "./error";
|
|
3
|
+
import { IkasTransactionPaymentMethodDetail } from "./payment-method-detail";
|
|
4
|
+
|
|
5
|
+
export type IkasOrderTransaction = {
|
|
6
|
+
amount: number | null;
|
|
7
|
+
checkoutId: string | null;
|
|
8
|
+
createdAt: number | null;
|
|
9
|
+
currencyCode: string | null;
|
|
10
|
+
customerId: string | null;
|
|
11
|
+
error: IkasTransactionError | null;
|
|
12
|
+
id: string | null;
|
|
13
|
+
orderId: string | null;
|
|
14
|
+
paymentGatewayId: string | null;
|
|
15
|
+
paymentGatewayName: string | null;
|
|
16
|
+
paymentMethod: IkasPaymentMethodType | null;
|
|
17
|
+
paymentMethodDetail: IkasTransactionPaymentMethodDetail | null;
|
|
18
|
+
processedAt: number | null;
|
|
19
|
+
refundReason: string | null;
|
|
20
|
+
status: IkasTransactionStatus | null;
|
|
21
|
+
type: IkasTransactionType | null;
|
|
22
|
+
updatedAt: number | null;
|
|
23
|
+
|
|
24
|
+
// Extra
|
|
25
|
+
currencySymbol?: string | null;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export enum IkasTransactionStatus {
|
|
29
|
+
AUTHORIZED = "AUTHORIZED",
|
|
30
|
+
FAILED = "FAILED",
|
|
31
|
+
PENDING = "PENDING",
|
|
32
|
+
SUCCESS = "SUCCESS",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum IkasTransactionType {
|
|
36
|
+
REFUND = "REFUND",
|
|
37
|
+
SALE = "SALE",
|
|
38
|
+
VOID = "VOID",
|
|
39
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IkasTransactionInstallmentPrice } from "./installment-price";
|
|
2
|
+
|
|
3
|
+
export type IkasTransactionPaymentMethodDetail = {
|
|
4
|
+
bankName: string | null;
|
|
5
|
+
binNumber: string;
|
|
6
|
+
cardAssociation: IkasTransactionCardAssociation | null;
|
|
7
|
+
cardFamily: string | null;
|
|
8
|
+
cardType: IkasTransactionCardType | null;
|
|
9
|
+
installment: IkasTransactionInstallmentPrice | null;
|
|
10
|
+
lastFourDigits: string;
|
|
11
|
+
threeDSecure: boolean | null;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export enum IkasTransactionCardAssociation {
|
|
15
|
+
AMERICAN_EXPRESS = "AMERICAN_EXPRESS",
|
|
16
|
+
MASTER_CARD = "MASTER_CARD",
|
|
17
|
+
TROY = "TROY",
|
|
18
|
+
VISA = "VISA",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum IkasTransactionCardType {
|
|
22
|
+
CREDIT = "CREDIT",
|
|
23
|
+
DEBIT = "DEBIT",
|
|
24
|
+
PREPAID = "PREPAID",
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type IkasPaymentGatewayAdditionalPrice = {
|
|
2
|
+
amount: number;
|
|
3
|
+
amountType: IkasPaymentGatewayTransactionFeeType;
|
|
4
|
+
name: string;
|
|
5
|
+
type: IkasPaymentGatewayAdditionalPriceType;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export enum IkasPaymentGatewayTransactionFeeType {
|
|
9
|
+
AMOUNT = "AMOUNT",
|
|
10
|
+
RATIO = "RATIO",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum IkasPaymentGatewayAdditionalPriceType {
|
|
14
|
+
DECREMENT = "DECREMENT",
|
|
15
|
+
INCREMENT = "INCREMENT",
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IkasPaymentGatewayAdditionalPrice } from "./additional-price";
|
|
2
|
+
import { IkasBaseModel } from "../base";
|
|
3
|
+
import { IkasPaymentGatewayTranslation } from "./translation";
|
|
4
|
+
import { IkasPaymentGatewaySettings } from "./settings";
|
|
5
|
+
|
|
6
|
+
export type IkasPaymentGateway = {
|
|
7
|
+
additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;
|
|
8
|
+
availableCountries: string[] | null;
|
|
9
|
+
code: string;
|
|
10
|
+
description: string | null;
|
|
11
|
+
logoUrl: string | null;
|
|
12
|
+
masterPassClientId: string | null;
|
|
13
|
+
name: string;
|
|
14
|
+
paymentGatewayProviderId: string | null;
|
|
15
|
+
supportedCurrencies: string[] | null;
|
|
16
|
+
testMode: boolean | null;
|
|
17
|
+
type: IkasPaymentGatewayType;
|
|
18
|
+
paymentMethods: IkasPaymentMethod[];
|
|
19
|
+
paymentMethodType: IkasPaymentMethodType;
|
|
20
|
+
settings?: IkasPaymentGatewaySettings[] | null;
|
|
21
|
+
|
|
22
|
+
translations?: IkasPaymentGatewayTranslation[] | null;
|
|
23
|
+
} & IkasBaseModel;
|
|
24
|
+
|
|
25
|
+
export enum IkasPaymentMethodType {
|
|
26
|
+
APP_PAYMENT = "APP_PAYMENT",
|
|
27
|
+
BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
|
|
28
|
+
CASH = "CASH",
|
|
29
|
+
CASH_ON_DELIVERY = "CASH_ON_DELIVERY",
|
|
30
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
31
|
+
CREDIT_CARD_ON_DELIVERY = "CREDIT_CARD_ON_DELIVERY",
|
|
32
|
+
GIFT_CARD = "GIFT_CARD",
|
|
33
|
+
MONEY_ORDER = "MONEY_ORDER",
|
|
34
|
+
OTHER = "OTHER",
|
|
35
|
+
WALLET = "WALLET",
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type IkasPaymentMethod = {
|
|
39
|
+
name: string;
|
|
40
|
+
logoUrl: string | null;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export enum IkasPaymentGatewayType {
|
|
44
|
+
EXTERNAL = "EXTERNAL",
|
|
45
|
+
INTERNAL = "INTERNAL",
|
|
46
|
+
THIRD_PARTY = "THIRD_PARTY",
|
|
47
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IkasPaymentGateway } from ".";
|
|
2
|
+
import { IkasPaymentGatewayTranslation } from "./translation";
|
|
3
|
+
|
|
4
|
+
export function initIkasPaymentGateway(
|
|
5
|
+
paymentGateway: IkasPaymentGateway,
|
|
6
|
+
locale: string | null
|
|
7
|
+
) {
|
|
8
|
+
if (paymentGateway.translations && locale) {
|
|
9
|
+
setTranslations(paymentGateway, paymentGateway.translations, locale);
|
|
10
|
+
delete paymentGateway.translations;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function setTranslations(
|
|
15
|
+
paymentGateway: IkasPaymentGateway,
|
|
16
|
+
translations: IkasPaymentGatewayTranslation[],
|
|
17
|
+
locale: string
|
|
18
|
+
) {
|
|
19
|
+
if (translations && translations.some((t) => t.locale === locale)) {
|
|
20
|
+
const localeTranslations = translations.find((t) => t.locale === locale);
|
|
21
|
+
|
|
22
|
+
if (localeTranslations?.name) paymentGateway.name = localeTranslations.name;
|
|
23
|
+
if (localeTranslations?.description)
|
|
24
|
+
paymentGateway.description = localeTranslations.description;
|
|
25
|
+
}
|
|
26
|
+
}
|