@ikas/storefront 6.1.0-beta.38 → 6.1.0-beta.380

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.
Files changed (301) hide show
  1. package/build/analytics/analytics.d.ts +8 -3
  2. package/build/analytics/analytics.js +1 -1
  3. package/build/analytics/events.d.ts +4 -1
  4. package/build/analytics/events.js +1 -1
  5. package/build/analytics/facebookPixel.d.ts +13 -0
  6. package/build/analytics/facebookPixel.js +1 -1
  7. package/build/analytics/googleAnalytics.d.ts +3 -2
  8. package/build/analytics/googleAnalytics.js +1 -1
  9. package/build/analytics/googleTagManager.d.ts +5 -3
  10. package/build/analytics/googleTagManager.js +1 -1
  11. package/build/analytics/head/index.js +1 -1
  12. package/build/analytics/ikasV3.d.ts +2 -1
  13. package/build/analytics/ikasV3.js +1 -1
  14. package/build/analytics/openAiPixel.d.ts +31 -0
  15. package/build/analytics/openAiPixel.js +1 -0
  16. package/build/components/checkout/components/address-form/index.js +1 -1
  17. package/build/components/checkout/components/address-form/model.d.ts +5 -0
  18. package/build/components/checkout/components/address-form/model.js +1 -1
  19. package/build/components/checkout/components/adyen/index.js +1 -1
  20. package/build/components/checkout/components/button/index.d.ts +1 -0
  21. package/build/components/checkout/components/button/index.js +1 -1
  22. package/build/components/checkout/components/button/style.module.scss.js +1 -1
  23. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  24. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -1
  25. package/build/components/checkout/components/cart-summary/index.d.ts +10 -1
  26. package/build/components/checkout/components/cart-summary/index.js +1 -1
  27. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  28. package/build/components/checkout/components/checkbox/index.d.ts +1 -0
  29. package/build/components/checkout/components/checkbox/index.js +1 -1
  30. package/build/components/checkout/components/checkout-load-failed/index.d.ts +14 -0
  31. package/build/components/checkout/components/checkout-load-failed/index.js +1 -0
  32. package/build/components/checkout/components/checkout-load-failed/style.module.scss.js +1 -0
  33. package/build/components/checkout/components/credit-card-form/model.js +1 -1
  34. package/build/components/checkout/components/customer-addresses/index.d.ts +1 -0
  35. package/build/components/checkout/components/customer-addresses/index.js +1 -1
  36. package/build/components/checkout/components/customer-addresses/model.js +1 -1
  37. package/build/components/checkout/components/error/stock-error/index.js +1 -1
  38. package/build/components/checkout/components/form-item/index.js +1 -1
  39. package/build/components/checkout/components/form-item/model.d.ts +5 -3
  40. package/build/components/checkout/components/form-item/model.js +1 -1
  41. package/build/components/checkout/components/form-item/style.module.scss.js +1 -1
  42. package/build/components/checkout/components/hepsipay/index.d.ts +9 -0
  43. package/build/components/checkout/components/hepsipay/index.js +1 -0
  44. package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -1
  45. package/build/components/checkout/components/iyzico/index.d.ts +8 -0
  46. package/build/components/checkout/components/iyzico/index.js +1 -0
  47. package/build/components/checkout/components/modal/index.d.ts +1 -0
  48. package/build/components/checkout/components/modal/index.js +1 -1
  49. package/build/components/checkout/components/modal/style.module.scss.js +1 -1
  50. package/build/components/checkout/components/offer-product/index.js +1 -1
  51. package/build/components/checkout/components/offer-product/style.module.scss.js +1 -1
  52. package/build/components/checkout/components/phone-number-input/index.d.ts +3 -1
  53. package/build/components/checkout/components/phone-number-input/index.js +1 -1
  54. package/build/components/checkout/components/quick-registration/completed.js +1 -1
  55. package/build/components/checkout/components/quick-registration/index.js +1 -1
  56. package/build/components/checkout/components/quick-registration/model.js +1 -1
  57. package/build/components/checkout/components/step-container/index.d.ts +5 -0
  58. package/build/components/checkout/components/step-container/index.js +1 -1
  59. package/build/components/checkout/components/step-container/style.module.scss.js +1 -1
  60. package/build/components/checkout/components/stripe/checkout-form.js +1 -1
  61. package/build/components/checkout/components/stripe-express/index.d.ts +7 -0
  62. package/build/components/checkout/components/stripe-express/index.js +1 -0
  63. package/build/components/checkout/components/stripe-express/style.module.scss.js +1 -0
  64. package/build/components/checkout/components/svg/arrow-loyalty.d.ts +6 -0
  65. package/build/components/checkout/components/svg/arrow-loyalty.js +1 -0
  66. package/build/components/checkout/components/svg/arrow-right-loyalty.d.ts +6 -0
  67. package/build/components/checkout/components/svg/arrow-right-loyalty.js +1 -0
  68. package/build/components/checkout/components/svg/coupon-code-tag.d.ts +6 -0
  69. package/build/components/checkout/components/svg/coupon-code-tag.js +1 -0
  70. package/build/components/checkout/components/svg/credit-balance.d.ts +6 -0
  71. package/build/components/checkout/components/svg/credit-balance.js +1 -0
  72. package/build/components/checkout/components/svg/gift-cart-tag.d.ts +6 -0
  73. package/build/components/checkout/components/svg/gift-cart-tag.js +1 -0
  74. package/build/components/checkout/components/svg/gift-loyalty.d.ts +6 -0
  75. package/build/components/checkout/components/svg/gift-loyalty.js +1 -0
  76. package/build/components/checkout/components/svg/info.d.ts +6 -0
  77. package/build/components/checkout/components/svg/info.js +1 -0
  78. package/build/components/checkout/components/svg/left-arrow-loyalty.d.ts +6 -0
  79. package/build/components/checkout/components/svg/left-arrow-loyalty.js +1 -0
  80. package/build/components/checkout/components/svg/package-loyalty.d.ts +6 -0
  81. package/build/components/checkout/components/svg/package-loyalty.js +1 -0
  82. package/build/components/checkout/components/svg/percentage-loyalty.d.ts +6 -0
  83. package/build/components/checkout/components/svg/percentage-loyalty.js +1 -0
  84. package/build/components/checkout/components/svg/refresh.d.ts +6 -0
  85. package/build/components/checkout/components/svg/refresh.js +1 -0
  86. package/build/components/checkout/components/svg/star-loyalty.d.ts +6 -0
  87. package/build/components/checkout/components/svg/star-loyalty.js +1 -0
  88. package/build/components/checkout/components/svg/store-credit-tag.d.ts +6 -0
  89. package/build/components/checkout/components/svg/store-credit-tag.js +1 -0
  90. package/build/components/checkout/components/svg/subscription.d.ts +6 -0
  91. package/build/components/checkout/components/svg/subscription.js +1 -0
  92. package/build/components/checkout/components/tkpay/index.d.ts +8 -0
  93. package/build/components/checkout/components/tkpay/index.js +1 -0
  94. package/build/components/checkout/index.d.ts +1 -0
  95. package/build/components/checkout/index.js +1 -1
  96. package/build/components/checkout/model.d.ts +139 -8
  97. package/build/components/checkout/model.js +1 -1
  98. package/build/components/checkout/steps/step-info/index.js +1 -1
  99. package/build/components/checkout/steps/step-info/style.module.scss.js +1 -0
  100. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -1
  101. package/build/components/checkout/steps/step-payment/index.js +1 -1
  102. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  103. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/index.d.ts +14 -0
  104. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/index.js +1 -0
  105. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/login-required.d.ts +13 -0
  106. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/login-required.js +1 -0
  107. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/style.module.scss.js +1 -0
  108. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/thy-logo.d.ts +8 -0
  109. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/thy-logo.js +1 -0
  110. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/index.d.ts +7 -0
  111. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/index.js +1 -0
  112. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/style.module.scss.js +1 -0
  113. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -1
  114. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  115. package/build/components/checkout/steps/step-success/index.js +1 -1
  116. package/build/components/checkout/style.module.scss.js +1 -1
  117. package/build/components/image/index.d.ts +1 -0
  118. package/build/components/image/index.js +1 -1
  119. package/build/components/index.d.ts +3 -0
  120. package/build/components/page/head.js +1 -1
  121. package/build/components/page/index.d.ts +1 -1
  122. package/build/components/page/index.js +1 -1
  123. package/build/components/page/widgets/common.d.ts +2 -0
  124. package/build/components/page/widgets/common.js +1 -0
  125. package/build/components/page/widgets/loyaltyWidget.d.ts +8 -0
  126. package/build/components/page/widgets/loyaltyWidget.js +1 -0
  127. package/build/components/page/widgets/popupWidget.d.ts +16 -0
  128. package/build/components/page/widgets/popupWidget.js +1 -0
  129. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  130. package/build/components/page-editor/model.d.ts +2 -0
  131. package/build/components/page-editor/model.js +1 -1
  132. package/build/components/pay-with-ikas/index.d.ts +9 -0
  133. package/build/components/pay-with-ikas/index.js +1 -0
  134. package/build/components/paypal-express-checkout/index.d.ts +9 -0
  135. package/build/components/paypal-express-checkout/index.js +1 -0
  136. package/build/components/plain-image/index.d.ts +13 -0
  137. package/build/components/plain-image/index.js +1 -0
  138. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
  139. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/es6/getCountries.js +1 -0
  140. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +1 -0
  141. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/getCountries.js +1 -0
  142. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +1 -0
  143. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/isSupportedCountry.js +1 -0
  144. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/parsePhoneNumber.js +1 -0
  145. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/ObserverComponent.js +1 -0
  146. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/index.js +1 -0
  147. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/observer.js +1 -0
  148. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/useObserver.js +1 -0
  149. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/UniversalFinalizationRegistry.js +1 -0
  150. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/assertEnvironment.js +1 -0
  151. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/observerBatching.js +1 -0
  152. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/observerFinalizationRegistry.js +1 -0
  153. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/printDebugValue.js +1 -0
  154. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/button-element-renderer/index.js +1 -1
  155. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/checkbox-item-view/index.js +1 -1
  156. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/index.js +1 -1
  157. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/input-item-view/index.js +1 -1
  158. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/phone-input-item-view/get-countries.js +1 -0
  159. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/phone-input-item-view/index.js +1 -0
  160. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/image-column-element-renderer/index.js +1 -1
  161. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/image-element-renderer/index.js +1 -1
  162. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/index.js +1 -1
  163. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/product-list-renderer/index.js +1 -1
  164. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/social-element-renderer/index.js +1 -1
  165. package/build/ext/@ikas/popup-renderer/build/popup-renderer/helpers/index.js +1 -1
  166. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/form/form-settings/index.js +1 -1
  167. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/image/index.js +1 -1
  168. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/image-column/index.js +1 -1
  169. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/product/index.js +1 -1
  170. package/build/hooks/useCustomerReviews.d.ts +2 -0
  171. package/build/hooks/useCustomerReviews.js +1 -1
  172. package/build/hooks/useDimension.js +1 -1
  173. package/build/hooks/useStore.js +1 -1
  174. package/build/index.js +1 -1
  175. package/build/models/data/checkout-settings/address-field-restriction/index.d.ts +10 -0
  176. package/build/models/data/checkout-settings/address-field-restriction/index.js +1 -0
  177. package/build/models/data/checkout-settings/index.d.ts +3 -0
  178. package/build/models/data/checkout-settings/index.js +1 -1
  179. package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +1 -0
  180. package/build/models/data/customer/address/ikas-localized-customer-address.js +1 -1
  181. package/build/models/data/customer/review/index.d.ts +4 -1
  182. package/build/models/data/customer/review/index.js +1 -1
  183. package/build/models/data/index.d.ts +6 -0
  184. package/build/models/data/order/address/ikas-localized-order-address.d.ts +1 -0
  185. package/build/models/data/order/address/ikas-localized-order-address.js +1 -1
  186. package/build/models/data/order/adjustment/index.d.ts +3 -1
  187. package/build/models/data/order/adjustment/index.js +1 -1
  188. package/build/models/data/order/gift-card-line/index.d.ts +2 -1
  189. package/build/models/data/order/gift-card-line/index.js +1 -1
  190. package/build/models/data/order/index.d.ts +21 -2
  191. package/build/models/data/order/index.js +1 -1
  192. package/build/models/data/order/line-item/bundle-product-settings/index.d.ts +7 -0
  193. package/build/models/data/order/line-item/bundle-product-settings/index.js +1 -0
  194. package/build/models/data/order/line-item/index.d.ts +9 -1
  195. package/build/models/data/order/line-item/index.js +1 -1
  196. package/build/models/data/order/line-item/order-line-item-subscription-plan/index.d.ts +8 -0
  197. package/build/models/data/order/line-item/order-line-item-subscription-plan/index.js +1 -0
  198. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-discount/index.d.ts +6 -0
  199. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-discount/index.js +1 -0
  200. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-period/index.d.ts +14 -0
  201. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-period/index.js +1 -0
  202. package/build/models/data/order/loyalty-line/index.d.ts +9 -0
  203. package/build/models/data/order/loyalty-line/index.js +1 -0
  204. package/build/models/data/order/order-transaction-with-prices/index.d.ts +1 -0
  205. package/build/models/data/order/order-transaction-with-prices/index.js +1 -1
  206. package/build/models/data/order/refund/reason/index.d.ts +8 -0
  207. package/build/models/data/order/refund/reason/index.js +1 -0
  208. package/build/models/data/order/refund/reason/translation/index.d.ts +6 -0
  209. package/build/models/data/order/refund/reason/translation/index.js +1 -0
  210. package/build/models/data/order/refund/refundable-line/index.d.ts +10 -0
  211. package/build/models/data/order/refund/refundable-line/index.js +1 -0
  212. package/build/models/data/order/refund/refundable-lines/index.d.ts +10 -0
  213. package/build/models/data/order/refund/refundable-lines/index.js +1 -0
  214. package/build/models/data/order/refund/settings/index.d.ts +1 -0
  215. package/build/models/data/order/refund/settings/index.js +1 -1
  216. package/build/models/data/order/refund/settings/translation/index.d.ts +6 -0
  217. package/build/models/data/order/refund/settings/translation/index.js +1 -0
  218. package/build/models/data/payment-gateway/index.d.ts +1 -0
  219. package/build/models/data/payment-gateway/index.js +1 -1
  220. package/build/models/data/product/campaign-offer/index.d.ts +2 -0
  221. package/build/models/data/product/campaign-offer/index.js +1 -1
  222. package/build/models/data/product/filter/index.d.ts +2 -0
  223. package/build/models/data/product/filter/index.js +1 -1
  224. package/build/models/data/product/index.d.ts +10 -0
  225. package/build/models/data/product/index.js +1 -1
  226. package/build/models/data/product/translations/index.d.ts +7 -0
  227. package/build/models/data/product/translations/index.js +1 -0
  228. package/build/models/data/product/variant/bundle-settings/bundle-product/index.js +1 -1
  229. package/build/models/data/product/variant/index.d.ts +3 -0
  230. package/build/models/data/product/variant/index.js +1 -1
  231. package/build/models/data/product/variant/subscription-plan/index.d.ts +12 -0
  232. package/build/models/data/product/variant/subscription-plan/index.js +1 -0
  233. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-discount/index.d.ts +6 -0
  234. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-period/index.d.ts +23 -0
  235. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-period/index.js +1 -0
  236. package/build/models/data/store-credit-balance/index.d.ts +26 -0
  237. package/build/models/data/store-credit-balance/index.js +1 -0
  238. package/build/models/data/storefront/index.d.ts +1 -0
  239. package/build/models/data/storefront/index.js +1 -1
  240. package/build/models/data/storefront-popup/index.d.ts +1 -0
  241. package/build/models/data/storefront-popup/index.js +1 -1
  242. package/build/models/data/storefront-popup/storefront-popup-display-filter/index.d.ts +4 -7
  243. package/build/models/data/storefront-popup/storefront-popup-display-filter/index.js +1 -1
  244. package/build/models/data/theme-json/component/prop/index.d.ts +1 -0
  245. package/build/models/data/theme-json/component/prop/index.js +1 -1
  246. package/build/models/data/theme-json/custom-data/index.d.ts +1 -0
  247. package/build/models/data/theme-json/custom-data/index.js +1 -1
  248. package/build/models/data/theme-json/index.js +1 -1
  249. package/build/models/ui/blog-category-list/index.js +1 -1
  250. package/build/models/ui/blog-list/index.d.ts +10 -1
  251. package/build/models/ui/blog-list/index.js +1 -1
  252. package/build/models/ui/brand-list/index.js +1 -1
  253. package/build/models/ui/category-list/index.js +1 -1
  254. package/build/models/ui/customer-review-list/index.d.ts +8 -0
  255. package/build/models/ui/customer-review-list/index.js +1 -1
  256. package/build/models/ui/customer-review-summary-list/index.js +1 -1
  257. package/build/models/ui/product-list/index.d.ts +25 -2
  258. package/build/models/ui/product-list/index.js +1 -1
  259. package/build/models/ui/raffle-list/index.js +1 -1
  260. package/build/models/ui/validator/form/account-info.js +1 -1
  261. package/build/models/ui/validator/form/address.js +1 -1
  262. package/build/models/ui/validator/form/ikas-address.js +1 -1
  263. package/build/models/ui/validator/form/login.d.ts +20 -6
  264. package/build/models/ui/validator/form/login.js +1 -1
  265. package/build/models/ui/validator/form/register.d.ts +15 -6
  266. package/build/models/ui/validator/form/register.js +1 -1
  267. package/build/page-data-init/index.d.ts +22 -0
  268. package/build/page-data-init/index.js +1 -1
  269. package/build/pages/checkout.js +1 -1
  270. package/build/store/blog/index.js +1 -1
  271. package/build/store/brand/index.js +1 -1
  272. package/build/store/cart/api.d.ts +3 -1
  273. package/build/store/cart/api.js +1 -1
  274. package/build/store/cart/index.d.ts +28 -2
  275. package/build/store/cart/index.js +1 -1
  276. package/build/store/category/index.js +1 -1
  277. package/build/store/checkout/index.d.ts +9 -1
  278. package/build/store/checkout/index.js +1 -1
  279. package/build/store/customer/api.d.ts +35 -13
  280. package/build/store/customer/api.js +1 -1
  281. package/build/store/customer/index.d.ts +87 -9
  282. package/build/store/customer/index.js +1 -1
  283. package/build/store/html-meta-data/index.js +1 -1
  284. package/build/store/index.d.ts +2 -0
  285. package/build/store/location/index.js +1 -1
  286. package/build/store/product/index.d.ts +2 -1
  287. package/build/store/product/index.js +1 -1
  288. package/build/utils/helper.d.ts +2 -0
  289. package/build/utils/helper.js +1 -1
  290. package/build/utils/miles-smiles.d.ts +19 -0
  291. package/build/utils/miles-smiles.js +1 -0
  292. package/package.json +18 -16
  293. package/build/components/popup/index.d.ts +0 -2
  294. package/build/components/popup/index.js +0 -1
  295. package/build/components/popup/renderer/index.d.ts +0 -8
  296. package/build/components/popup/renderer/index.js +0 -1
  297. package/build/components/popup/renderer/model.d.ts +0 -24
  298. package/build/components/popup/renderer/model.js +0 -1
  299. package/build/components/popup/utils/index.d.ts +0 -13
  300. package/build/components/popup/utils/index.js +0 -1
  301. package/build/store/storefront-popup/index.js +0 -1
@@ -77,6 +77,11 @@ export * from "./order/package/tracking-info";
77
77
  export * from "./order/package";
78
78
  export * from "./order/payment-method";
79
79
  export * from "./order/refund/line-item";
80
+ export * from "./order/refund/reason/translation";
81
+ export * from "./order/refund/reason";
82
+ export * from "./order/refund/refundable-line";
83
+ export * from "./order/refund/refundable-lines";
84
+ export * from "./order/refund/settings/translation";
80
85
  export * from "./order/refund/settings";
81
86
  export * from "./order/refund";
82
87
  export * from "./order/shipping-line";
@@ -130,6 +135,7 @@ export * from "./stock-location/address/state";
130
135
  export * from "./stock-location/address";
131
136
  export * from "./stock-location/available";
132
137
  export * from "./stock-location";
138
+ export * from "./store-credit-balance";
133
139
  export * from "./storefront-popup/storefront-popup-analytics";
134
140
  export * from "./storefront-popup/storefront-popup-date-filter";
135
141
  export * from "./storefront-popup/storefront-popup-display-filter";
@@ -45,6 +45,7 @@ export default class IkasLocalizedOrderAddress extends IkasOrderAddress {
45
45
  taxOffice: import("@ikas/localized-address").ErrorType;
46
46
  taxNumber: import("@ikas/localized-address").ErrorType;
47
47
  } | undefined;
48
+ get addressFieldRestrictionErrors(): Record<string, boolean> | null;
48
49
  get isValidAddress(): boolean | undefined;
49
50
  get fieldLabels(): import("@ikas/localized-address").IkasAddressFormLabels | undefined;
50
51
  get isFreeTextCity(): boolean | undefined;
@@ -1 +1 @@
1
- import{__extends as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as i,observable as e}from"mobx";import{IkasOrderAddress as n}from"./index.js";import{IkasCheckoutRequirement as o}from"@ikas/storefront-models";import{AddressFormItem as r}from"@ikas/localized-address";var s=function(n){function s(t){void 0===t&&(t={});var o=n.call(this,t)||this;return o.countrySettings=t.countrySettings||null,i(o,{countrySettings:e}),o}return t(s,n),Object.defineProperty(s.prototype,"fieldSettings",{get:function(){if(this.countrySettings)return this.countrySettings.getFieldSettings({country:this.countryCode,invisibleAddressFields:this.invisibleFields,customAddressFormSettings:this.customAddressFormSettings})},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"addressFormat",{get:function(){if(this.countrySettings)return this.countrySettings.getAddressFormat(this.countryCode,this.invisibleFields)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"addressFormatIgnoreCountry",{get:function(){if(this.countrySettings)return this.countrySettings.getAddressFormatIgnoreCountry(this.countryCode,this.invisibleFields)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"billingFormat",{get:function(){if(this.countrySettings)return this.countrySettings.getBillingFormat(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"countryCode",{get:function(){var t;return(null===(t=this.country)||void 0===t?void 0:t.iso2)||"TR"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"validationResults",{get:function(){if(this.countrySettings)return this.countrySettings.getValidationResult({address:u(this),country:this.countryCode,invisibleAddressFields:this.invisibleFields,customAddressFormSettings:this.customAddressFormSettings,validateBillingForm:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isValidAddress",{get:function(){if(this.countrySettings)return this.countrySettings.isValidAddress({address:u(this),country:this.countryCode,invisibleAddressFields:this.invisibleFields,customAddressFormSettings:this.customAddressFormSettings,validateBillingForm:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fieldLabels",{get:function(){if(this.countrySettings)return this.countrySettings.getFieldLabels(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isFreeTextCity",{get:function(){if(this.countrySettings)return this.countrySettings.isFreeTextCity(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isFreeTextDistrict",{get:function(){if(this.countrySettings)return this.countrySettings.isFreeTextDistrict(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZone",{get:function(){var t,i=this;return null===(t=this.shippingZones)||void 0===t?void 0:t.find((function(t){var e;return t.countryId===(null===(e=i.country)||void 0===e?void 0:e.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneState",{get:function(){var t,i,e=this;return null===(i=null===(t=this.shippingZone)||void 0===t?void 0:t.states)||void 0===i?void 0:i.find((function(t){var i;return t.id===(null===(i=e.state)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneCity",{get:function(){var t,i,e=this;return null===(i=null===(t=this.shippingZoneState)||void 0===t?void 0:t.cities)||void 0===i?void 0:i.find((function(t){var i;return t.id===(null===(i=e.city)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneDistrict",{get:function(){var t,i,e=this;return null===(i=null===(t=this.shippingZoneCity)||void 0===t?void 0:t.districts)||void 0===i?void 0:i.find((function(t){var i;return t.id===(null===(i=e.district)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneRegion",{get:function(){var t,i,e=this;return null===(i=null===(t=this.shippingZoneDistrict)||void 0===t?void 0:t.regions)||void 0===i?void 0:i.find((function(t){var i;return t.id===(null===(i=e.region)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isRequiredRegion",{get:function(){var t,i;return!!this.district&&(null===(i=null===(t=this.shippingZoneDistrict)||void 0===t?void 0:t.regions)||void 0===i?void 0:i.length)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"invisibleFields",{get:function(){if(this.checkoutSettings){var t=[];return this.checkoutSettings.identityNumberRequirement===o.INVISIBLE&&t.push(r.IDENTITY_NUMBER),this.checkoutSettings.postalCodeRequirement===o.INVISIBLE&&t.push(r.POSTAL_CODE),this.checkoutSettings.phoneRequirement===o.INVISIBLE&&t.push(r.PHONE),this.isRequiredRegion||t.push(r.REGION),t}},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"customAddressFormSettings",{get:function(){if(this.checkoutSettings){var t={};return this.checkoutSettings.phoneRequirement&&(t.phone={required:this.checkoutSettings.phoneRequirement===o.MANDATORY}),this.checkoutSettings.postalCodeRequirement&&(t.postalCode={required:this.checkoutSettings.postalCodeRequirement===o.MANDATORY}),this.checkoutSettings.identityNumberRequirement&&(t.identityNumber={required:this.checkoutSettings.identityNumberRequirement===o.MANDATORY}),this.isRequiredRegion&&(t.region={required:!0}),t}},enumerable:!1,configurable:!0}),s.prototype.getValidatedCustomerAddress=function(){var t,i,e,n,o,r,s;(null===(t=this.shippingZones)||void 0===t?void 0:t.length)&&(this.shippingZone||(this.country=null,this.state=null,this.city=null,this.district=null,this.region=null),this.shippingZoneState||void 0===(null===(i=this.shippingZone)||void 0===i?void 0:i.showAllStates)||(null===(e=this.shippingZone)||void 0===e?void 0:e.showAllStates)||(this.state=null,this.city=null,this.district=null,this.region=null),this.shippingZoneCity||void 0===(null===(n=this.shippingZoneState)||void 0===n?void 0:n.showAllCities)||(null===(o=this.shippingZoneState)||void 0===o?void 0:o.showAllCities)||(this.city=null,this.district=null,this.region=null),this.shippingZoneDistrict||void 0===(null===(r=this.shippingZoneCity)||void 0===r?void 0:r.showAllDistricts)||(null===(s=this.shippingZoneCity)||void 0===s?void 0:s.showAllDistricts)||(this.district=null,this.region=null),this.shippingZoneRegion||(this.region=null))},s}(n),u=function(t){var i,e,n,o,r;return{firstName:t.firstName||"",lastName:t.lastName||"",identityNumber:t.identityNumber||"",addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||"",postalCode:t.postalCode||"",country:(null===(i=t.country)||void 0===i?void 0:i.name)||"",state:(null===(e=t.state)||void 0===e?void 0:e.name)||"",city:(null===(n=t.city)||void 0===n?void 0:n.name)||"",district:(null===(o=t.district)||void 0===o?void 0:o.name)||"",region:(null===(r=t.region)||void 0===r?void 0:r.name)||"",phone:t.phone||"",company:t.company||"",taxOffice:t.taxOffice||"",taxNumber:t.taxNumber||""}};export{s as default};
1
+ import{__extends as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as e,observable as i}from"mobx";import{IkasOrderAddress as n}from"./index.js";import{IkasCheckoutRequirement as r}from"@ikas/storefront-models";import{AddressFormItem as o}from"@ikas/localized-address";var s=function(n){function s(t){void 0===t&&(t={});var r=n.call(this,t)||this;return r.countrySettings=t.countrySettings||null,e(r,{countrySettings:i}),r}return t(s,n),Object.defineProperty(s.prototype,"fieldSettings",{get:function(){if(this.countrySettings)return this.countrySettings.getFieldSettings({country:this.countryCode,invisibleAddressFields:this.invisibleFields,customAddressFormSettings:this.customAddressFormSettings})},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"addressFormat",{get:function(){if(this.countrySettings)return this.countrySettings.getAddressFormat(this.countryCode,this.invisibleFields)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"addressFormatIgnoreCountry",{get:function(){if(this.countrySettings)return this.countrySettings.getAddressFormatIgnoreCountry(this.countryCode,this.invisibleFields)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"billingFormat",{get:function(){if(this.countrySettings)return this.countrySettings.getBillingFormat(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"countryCode",{get:function(){var t;return(null===(t=this.country)||void 0===t?void 0:t.iso2)||"TR"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"validationResults",{get:function(){if(this.countrySettings)return this.countrySettings.getValidationResult({address:d(this),country:this.countryCode,invisibleAddressFields:this.invisibleFields,customAddressFormSettings:this.customAddressFormSettings,validateBillingForm:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"addressFieldRestrictionErrors",{get:function(){return(i=null===(e=(t=this).checkoutSettings)||void 0===e?void 0:e.addressFieldRestrictions)?{firstName:u(t.firstName,i.firstName),lastName:u(t.lastName,i.lastName),companyName:u(t.company,i.companyName),taxOffice:u(t.taxOffice,i.taxOffice),addressLine1:u(t.addressLine1,i.addressLine1),addressLine2:u(t.addressLine2,i.addressLine2)}:null;var t,e,i},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isValidAddress",{get:function(){if(this.countrySettings){var t=this.countrySettings.isValidAddress({address:d(this),country:this.countryCode,invisibleAddressFields:this.invisibleFields,customAddressFormSettings:this.customAddressFormSettings,validateBillingForm:!0}),e=this.addressFieldRestrictionErrors;return(!e||!Object.values(e).some(Boolean))&&t}},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fieldLabels",{get:function(){if(this.countrySettings)return this.countrySettings.getFieldLabels(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isFreeTextCity",{get:function(){if(this.countrySettings)return this.countrySettings.isFreeTextCity(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isFreeTextDistrict",{get:function(){if(this.countrySettings)return this.countrySettings.isFreeTextDistrict(this.countryCode)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZone",{get:function(){var t,e=this;return null===(t=this.shippingZones)||void 0===t?void 0:t.find((function(t){var i;return t.countryId===(null===(i=e.country)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneState",{get:function(){var t,e,i=this;return null===(e=null===(t=this.shippingZone)||void 0===t?void 0:t.states)||void 0===e?void 0:e.find((function(t){var e;return t.id===(null===(e=i.state)||void 0===e?void 0:e.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneCity",{get:function(){var t,e,i=this;return null===(e=null===(t=this.shippingZoneState)||void 0===t?void 0:t.cities)||void 0===e?void 0:e.find((function(t){var e;return t.id===(null===(e=i.city)||void 0===e?void 0:e.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneDistrict",{get:function(){var t,e,i=this;return null===(e=null===(t=this.shippingZoneCity)||void 0===t?void 0:t.districts)||void 0===e?void 0:e.find((function(t){var e;return t.id===(null===(e=i.district)||void 0===e?void 0:e.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shippingZoneRegion",{get:function(){var t,e,i=this;return null===(e=null===(t=this.shippingZoneDistrict)||void 0===t?void 0:t.regions)||void 0===e?void 0:e.find((function(t){var e;return t.id===(null===(e=i.region)||void 0===e?void 0:e.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isRequiredRegion",{get:function(){var t,e;return!!this.district&&(null===(e=null===(t=this.shippingZoneDistrict)||void 0===t?void 0:t.regions)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"invisibleFields",{get:function(){if(this.checkoutSettings){var t=[];return this.checkoutSettings.identityNumberRequirement===r.INVISIBLE&&t.push(o.IDENTITY_NUMBER),this.checkoutSettings.postalCodeRequirement===r.INVISIBLE&&t.push(o.POSTAL_CODE),this.checkoutSettings.phoneRequirement===r.INVISIBLE&&t.push(o.PHONE),this.isRequiredRegion||t.push(o.REGION),t}},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"customAddressFormSettings",{get:function(){if(this.checkoutSettings){var t={};return this.checkoutSettings.phoneRequirement&&(t.phone={required:this.checkoutSettings.phoneRequirement===r.MANDATORY}),this.checkoutSettings.postalCodeRequirement&&(t.postalCode={required:this.checkoutSettings.postalCodeRequirement===r.MANDATORY}),this.checkoutSettings.identityNumberRequirement&&(t.identityNumber={required:this.checkoutSettings.identityNumberRequirement===r.MANDATORY}),this.isRequiredRegion&&(t.region={required:!0}),t}},enumerable:!1,configurable:!0}),s.prototype.getValidatedCustomerAddress=function(){var t,e,i,n,r,o,s;(null===(t=this.shippingZones)||void 0===t?void 0:t.length)&&(this.shippingZone||(this.country=null,this.state=null,this.city=null,this.district=null,this.region=null),this.shippingZoneState||void 0===(null===(e=this.shippingZone)||void 0===e?void 0:e.showAllStates)||(null===(i=this.shippingZone)||void 0===i?void 0:i.showAllStates)||(this.state=null,this.city=null,this.district=null,this.region=null),this.shippingZoneCity||void 0===(null===(n=this.shippingZoneState)||void 0===n?void 0:n.showAllCities)||(null===(r=this.shippingZoneState)||void 0===r?void 0:r.showAllCities)||(this.city=null,this.district=null,this.region=null),this.shippingZoneDistrict||void 0===(null===(o=this.shippingZoneCity)||void 0===o?void 0:o.showAllDistricts)||(null===(s=this.shippingZoneCity)||void 0===s?void 0:s.showAllDistricts)||(this.district=null,this.region=null),this.shippingZoneRegion||(this.region=null))},s}(n);function u(t,e){if(!e||!t)return!1;try{return!new RegExp(e,"u").test(t)}catch(t){return!1}}var d=function(t){var e,i,n,r,o;return{firstName:t.firstName||"",lastName:t.lastName||"",identityNumber:t.identityNumber||"",addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||"",postalCode:t.postalCode||"",country:(null===(e=t.country)||void 0===e?void 0:e.name)||"",state:(null===(i=t.state)||void 0===i?void 0:i.name)||"",city:(null===(n=t.city)||void 0===n?void 0:n.name)||"",district:(null===(r=t.district)||void 0===r?void 0:r.name)||"",region:(null===(o=t.region)||void 0===o?void 0:o.name)||"",phone:t.phone||"",company:t.company||"",taxOffice:t.taxOffice||"",taxNumber:t.taxNumber||""}};export{s as default};
@@ -1,15 +1,17 @@
1
- import { IkasOrderAdjustment as IOrderAdjustment, IkasAmountType, IkasAdjustmentType, IkasCampaignType } from "@ikas/storefront-models";
1
+ import { IkasOrderAdjustment as IOrderAdjustment, IkasAmountType, IkasAdjustmentType, IkasCampaignType, IkasCampaignCreatedFor } from "@ikas/storefront-models";
2
2
  import { IkasOrderAdjustmentAppliedOrderLine } from "./applied-order-line";
3
3
  export declare class IkasOrderAdjustment implements IOrderAdjustment {
4
4
  amount: number;
5
5
  appliedOrderLines: IkasOrderAdjustmentAppliedOrderLine[] | null;
6
6
  campaignId: string | null;
7
7
  couponId: string | null;
8
+ createdFor: IkasCampaignCreatedFor | null;
8
9
  name: string;
9
10
  order: number;
10
11
  amountType: IkasAmountType;
11
12
  type: IkasAdjustmentType;
12
13
  campaignType: IkasCampaignType | null;
14
+ usedLoyaltyPoints: number | null;
13
15
  constructor(data: IOrderAdjustment);
14
16
  }
15
17
  export { IkasAmountType, IkasAdjustmentType, IkasCampaignType };
@@ -1 +1 @@
1
- export{IkasAdjustmentType,IkasAmountType,IkasCampaignType}from"@ikas/storefront-models";import{makeAutoObservable as n}from"mobx";import{IkasOrderAdjustmentAppliedOrderLine as i}from"./applied-order-line/index.js";var e=function(e){var p;this.appliedOrderLines=null,this.campaignId=null,this.couponId=null,this.campaignType=null,this.amount=e.amount,this.appliedOrderLines=(null===(p=e.appliedOrderLines)||void 0===p?void 0:p.map((function(n){return new i(n)})))||null,this.campaignId=e.campaignId||null,this.couponId=e.couponId||null,this.name=e.name,this.order=e.order,this.amountType=e.amountType,this.type=e.type,this.campaignType=e.campaignType||null,n(this)};export{e as IkasOrderAdjustment};
1
+ export{IkasAdjustmentType,IkasAmountType,IkasCampaignType}from"@ikas/storefront-models";import{makeAutoObservable as n}from"mobx";import{IkasOrderAdjustmentAppliedOrderLine as t}from"./applied-order-line/index.js";var i=function(i){var e;this.appliedOrderLines=null,this.campaignId=null,this.couponId=null,this.createdFor=null,this.campaignType=null,this.usedLoyaltyPoints=null,this.amount=i.amount,this.appliedOrderLines=(null===(e=i.appliedOrderLines)||void 0===e?void 0:e.map((function(n){return new t(n)})))||null,this.campaignId=i.campaignId||null,this.couponId=i.couponId||null,this.createdFor=i.createdFor||null,this.name=i.name,this.order=i.order,this.amountType=i.amountType,this.type=i.type,this.campaignType=i.campaignType||null,this.usedLoyaltyPoints=i.usedLoyaltyPoints||null,n(this)};export{i as IkasOrderAdjustment};
@@ -1,8 +1,9 @@
1
- import { IkasOrderGiftCardLine as IOrderGiftCardLine } from "@ikas/storefront-models";
1
+ import { IkasGiftCardType, IkasOrderGiftCardLine as IOrderGiftCardLine } from "@ikas/storefront-models";
2
2
  export declare class IkasOrderGiftCardLine implements IOrderGiftCardLine {
3
3
  amount: number;
4
4
  code: string;
5
5
  giftCardId: string;
6
6
  id: string;
7
+ type: IkasGiftCardType;
7
8
  constructor(data: IOrderGiftCardLine);
8
9
  }
@@ -1 +1 @@
1
- import{makeAutoObservable as t}from"mobx";var i=function(i){this.amount=i.amount||0,this.code=i.code||"",this.giftCardId=i.giftCardId||"",this.id=i.id||"",t(this)};export{i as IkasOrderGiftCardLine};
1
+ import{IkasGiftCardType as t}from"@ikas/storefront-models";import{makeAutoObservable as i}from"mobx";var o=function(o){this.amount=o.amount||0,this.code=o.code||"",this.giftCardId=o.giftCardId||"",this.id=o.id||"",this.type=o.type||t.GIFT_CARD,i(this)};export{o as IkasOrderGiftCardLine};
@@ -2,6 +2,9 @@ import { IkasOrderAddress } from "./address";
2
2
  import { IkasOrderShippingLine } from "./shipping-line";
3
3
  import { IkasOrderLineItem } from "./line-item";
4
4
  import { IkasOrderRefundSettings } from "./refund/settings";
5
+ import { IkasRefundableLine } from "./refund/refundable-line";
6
+ import { IkasOrderRefundReason } from "./refund/reason";
7
+ import { IkasRefundableLines } from "./refund/refundable-lines";
5
8
  import { IkasOrderCustomer } from "./customer";
6
9
  import { IkasOrderGiftPackageLine } from "./gift-line";
7
10
  import { IkasInvoice } from "./invoice";
@@ -10,9 +13,9 @@ import { IkasOrderAdjustment } from "./adjustment";
10
13
  import { IkasOrderPackage } from "./package";
11
14
  import { IkasOrderTaxLine } from "./tax-line";
12
15
  import { IkasBaseModel } from "../base";
13
- import { IkasOrderCancelReason, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus } from "@ikas/storefront-models";
14
- import { IkasOrder as IOrder } from "@ikas/storefront-models";
16
+ import { IkasOrder as IOrder, IkasOrderCancelReason, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus } from "@ikas/storefront-models";
15
17
  import { IkasOrderGiftCardLine } from "./gift-card-line";
18
+ import { IkasOrderLoyaltyLine } from "./loyalty-line";
16
19
  declare type IOrderConstructorData = {
17
20
  refundSettings?: IkasOrderRefundSettings | null;
18
21
  } & IOrder;
@@ -24,11 +27,13 @@ export declare class IkasOrder extends IkasBaseModel implements IOrder {
24
27
  currencySymbol: string | null;
25
28
  customer: IkasOrderCustomer | null;
26
29
  customerId: string | null;
30
+ edited: boolean | null;
27
31
  giftCardLines: IkasOrderGiftCardLine[] | null;
28
32
  giftPackageLines: IkasOrderGiftPackageLine[] | null;
29
33
  giftPackageNote: string | null;
30
34
  invoices: IkasInvoice[] | null;
31
35
  isGiftPackage: boolean | null;
36
+ loyaltyLines: IkasOrderLoyaltyLine[] | null;
32
37
  note: string | null;
33
38
  orderAdjustments: IkasOrderAdjustment[] | null;
34
39
  orderLineItems: IkasOrderLineItem[];
@@ -44,14 +49,27 @@ export declare class IkasOrder extends IkasBaseModel implements IOrder {
44
49
  shippingMethod: IkasOrderShippingMethod;
45
50
  status: IkasOrderStatus;
46
51
  taxLines: IkasOrderTaxLine[] | null;
52
+ netTotalFinalPrice: number | null;
47
53
  totalFinalPrice: number;
48
54
  totalPrice: number;
49
55
  refundSettings?: IkasOrderRefundSettings | null;
56
+ refundableLineItems: IkasRefundableLine[] | null;
57
+ private _refundReasonId;
58
+ private _refundReason;
59
+ private _refundReasons;
60
+ private _refundTranslations;
50
61
  constructor(data: Partial<IOrderConstructorData>, removeObservableAddresses?: boolean);
51
62
  get items(): IkasOrderLineItem[];
52
63
  get itemCount(): number;
53
64
  get itemQuantity(): number;
54
65
  get refundableItems(): IkasOrderLineItem[];
66
+ applyRefundableLines(data: IkasRefundableLines): void;
67
+ get refundReasonId(): string | null;
68
+ set refundReasonId(value: string | null);
69
+ get reason(): string | null;
70
+ set reason(value: string | null);
71
+ get refundReasons(): IkasOrderRefundReason[];
72
+ get returnMethodDescription(): string | null;
55
73
  get displayedPackages(): IkasOrderPackage[];
56
74
  get unfullfilledItems(): IkasOrderLineItem[];
57
75
  get refundedItems(): IkasOrderLineItem[];
@@ -70,5 +88,6 @@ export declare class IkasOrder extends IkasBaseModel implements IOrder {
70
88
  get isRefundEnabled(): boolean;
71
89
  get displayedOrderAdjustments(): IkasOrderAdjustment[] | undefined;
72
90
  get orderProductFileIds(): string[];
91
+ get giftCardTotalPrice(): number;
73
92
  }
74
93
  export { IkasOrderCancelReason, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus, };
@@ -1 +1 @@
1
- import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasOrderAddress as t}from"./address/index.js";import{IkasOrderShippingLine as n}from"./shipping-line/index.js";import{IkasOrderLineItem as r}from"./line-item/index.js";import{IkasOrderCustomer as o}from"./customer/index.js";import{IkasOrderGiftPackageLine as i}from"./gift-line/index.js";import{IkasInvoice as u}from"./invoice/index.js";import{IkasOrderPaymentMethod as l}from"./payment-method/index.js";import{IkasOrderAdjustment as s}from"./adjustment/index.js";import{IkasOrderPackage as a}from"./package/index.js";import{IkasOrderTaxLine as d}from"./tax-line/index.js";import{IkasBaseModel as c}from"../base/index.js";import{IkasCampaignType as m,IkasOrderShippingMethod as p,IkasOrderStatus as f}from"@ikas/storefront-models";export{IkasOrderCancelReason,IkasOrderPackageStatus,IkasOrderPaymentStatus,IkasOrderShippingMethod,IkasOrderStatus}from"@ikas/storefront-models";import{makeObservable as g,observable as b,computed as y}from"mobx";import{IkasOrderFunctions as h}from"@ikas/storefront-model-functions";import{formatCurrency as P}from"../../../utils/currency.js";import{IkasOrderGiftCardLine as j}from"./gift-card-line/index.js";var v=function(c){function v(e,m){var h,P,v,A,k,I,S,O,x,C,L,T=this;(T=c.call(this,e)||this).billingAddress=null,T.cancelReason=null,T.cancelledAt=null,T.currencySymbol=null,T.customer=null,T.customerId=null,T.giftPackageLines=null,T.giftPackageNote=null,T.invoices=null,T.isGiftPackage=null,T.note=null,T.orderAdjustments=null,T.orderNumber=null,T.orderPackageStatus=null,T.orderPackages=null,T.orderPaymentStatus=null,T.orderedAt=null,T.priceListId=null,T.paymentMethods=null,T.shippingAddress=null,T.shippingLines=null,T.taxLines=null,T.billingAddress=e.billingAddress?new t(e.billingAddress):null,T.cancelReason=e.cancelReason||null,T.cancelledAt=e.cancelledAt||null,T.currencyCode=e.currencyCode||"",T.currencySymbol=e.currencySymbol||null,T.customer=e.customer?new o(e.customer):null,T.customerId=e.customerId||null,T.giftCardLines=(null===(h=e.giftCardLines)||void 0===h?void 0:h.map((function(e){return new j(e)})))||null,T.giftPackageLines=(null===(P=e.giftPackageLines)||void 0===P?void 0:P.map((function(e){return new i(e)})))||null,T.giftPackageNote=e.giftPackageNote||null,T.invoices=(null===(v=e.invoices)||void 0===v?void 0:v.map((function(e){return new u(e)})))||null,T.isGiftPackage=e.isGiftPackage||null,T.note=e.note||null,T.orderAdjustments=(null===(A=e.orderAdjustments)||void 0===A?void 0:A.map((function(e){return new s(e)})))||null,T.orderLineItems=(null===(k=e.orderLineItems)||void 0===k?void 0:k.map((function(e){return new r(e)})).filter((function(e){return!e.deleted})))||[],T.orderNumber=e.orderNumber||null,T.orderPackageStatus=e.orderPackageStatus||null,T.orderPackages=(null===(I=e.orderPackages)||void 0===I?void 0:I.map((function(e){return new a(e)})))||null,T.orderPaymentStatus=e.orderPaymentStatus||null,T.orderedAt=e.orderedAt||null,T.priceListId=e.priceListId||null,T.paymentMethods=(null===(S=e.paymentMethods)||void 0===S?void 0:S.map((function(e){return new l(e)})))||null,T.shippingAddress=e.shippingAddress?new t(e.shippingAddress):null,T.shippingLines=(null===(O=e.shippingLines)||void 0===O?void 0:O.map((function(e){return new n(e)})))||null,T.shippingMethod=e.shippingMethod||p.SHIPMENT,T.status=e.status||f.CREATED,T.taxLines=(null===(x=e.taxLines)||void 0===x?void 0:x.map((function(e){return new d(e)})))||null,T.totalFinalPrice=null!==(C=e.totalFinalPrice)&&void 0!==C?C:0,T.totalPrice=null!==(L=e.totalPrice)&&void 0!==L?L:0,T.refundSettings=e.refundSettings;var F={billingAddress:b,cancelReason:b,cancelledAt:b,currencyCode:b,currencySymbol:b,customer:b,customerId:b,giftCardLines:b,giftPackageLines:b,giftPackageNote:b,invoices:b,isGiftPackage:b,note:b,orderAdjustments:b,orderLineItems:b,orderNumber:b,orderPackageStatus:b,orderPackages:b,orderPaymentStatus:b,orderedAt:b,paymentMethods:b,shippingAddress:b,shippingLines:b,shippingMethod:b,status:b,taxLines:b,totalFinalPrice:b,totalPrice:b,refundSettings:b,items:y,itemCount:y,refundableItems:y,unfullfilledItems:y,refundedItems:y,totalTax:y,formattedTotalTax:y,shippingTotal:y,formattedShippingTotal:y,formattedTotalFinalPrice:y,formattedTotalPrice:y,hasCustomer:y,hasValidCustomerEmail:y,customerFullName:y,formattedDate:y,couponAdjustment:y,nonCouponAdjustments:y,orderProductFileIds:y};return m&&(delete F.billingAddress,delete F.shippingAddress),g(T,F),T}return e(v,c),Object.defineProperty(v.prototype,"items",{get:function(){return this.orderLineItems},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"itemCount",{get:function(){var e;return(null===(e=this.items)||void 0===e?void 0:e.length)||0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"itemQuantity",{get:function(){return this.items.reduce((function(e,t){return e+t.quantity}),0)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"refundableItems",{get:function(){return this.refundSettings?h.getRefundableItems(this,this.refundSettings):[]},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"displayedPackages",{get:function(){return h.getDisplayedPackages(this).map((function(e){return new a(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"unfullfilledItems",{get:function(){return h.getUnfullfilledItems(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"refundedItems",{get:function(){return h.getRefundedItems(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"totalTax",{get:function(){return h.getTotalTax(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"formattedTotalTax",{get:function(){return P(this.totalTax,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"shippingTotal",{get:function(){return h.getShippingTotal(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"formattedShippingTotal",{get:function(){return P(this.shippingTotal,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"formattedTotalFinalPrice",{get:function(){return P(this.totalFinalPrice,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"formattedTotalPrice",{get:function(){return P(this.totalPrice,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"hasCustomer",{get:function(){return h.hasCustomer(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"hasValidCustomerEmail",{get:function(){return h.hasValidCustomerEmail(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"customerFullName",{get:function(){return h.getCustomerFullName(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"formattedDate",{get:function(){return h.getFormattedDate(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"couponAdjustment",{get:function(){return h.getCouponAdjustment(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"nonCouponAdjustments",{get:function(){return h.getNonCouponAdjustments(this)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"isRefundEnabled",{get:function(){return this.refundableItems.some((function(e){return null!==e.refundQuantity}))},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"displayedOrderAdjustments",{get:function(){var e;return null===(e=this.orderAdjustments)||void 0===e?void 0:e.filter((function(e){return e.campaignType!==m.FREE_SHIPPING}))},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"orderProductFileIds",{get:function(){return h.getOrderProductFiles(this)},enumerable:!1,configurable:!0}),v}(c);export{v as IkasOrder};
1
+ import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasOrderAddress as t}from"./address/index.js";import{IkasOrderShippingLine as n}from"./shipping-line/index.js";import{IkasOrderLineItem as r}from"./line-item/index.js";import{IkasRefundableLines as i}from"./refund/refundable-lines/index.js";import{IkasOrderCustomer as o}from"./customer/index.js";import{IkasOrderGiftPackageLine as l}from"./gift-line/index.js";import{IkasInvoice as u}from"./invoice/index.js";import{IkasOrderPaymentMethod as a}from"./payment-method/index.js";import{IkasOrderAdjustment as s}from"./adjustment/index.js";import{IkasOrderPackage as d}from"./package/index.js";import{IkasOrderTaxLine as c}from"./tax-line/index.js";import{IkasBaseModel as f}from"../base/index.js";import{IkasOrderLineItemStatus as m,IkasCampaignType as p,IkasOrderShippingMethod as g,IkasOrderStatus as b}from"@ikas/storefront-models";export{IkasOrderCancelReason,IkasOrderPackageStatus,IkasOrderPaymentStatus,IkasOrderShippingMethod,IkasOrderStatus}from"@ikas/storefront-models";import{makeObservable as y,observable as h,computed as P,action as v}from"mobx";import{IkasOrderFunctions as j}from"@ikas/storefront-model-functions";import{IkasStorefrontConfig as I}from"@ikas/storefront-config";import{formatCurrency as L}from"../../../utils/currency.js";import{IkasOrderGiftCardLine as A}from"./gift-card-line/index.js";import{IkasOrderLoyaltyLine as O}from"./loyalty-line/index.js";var k=function(f){function k(e,i){var m,p,j,I,L,k,C,R,T,S,x,w,F,_=this;(_=f.call(this,e)||this).billingAddress=null,_.cancelReason=null,_.cancelledAt=null,_.currencySymbol=null,_.customer=null,_.customerId=null,_.edited=null,_.giftPackageLines=null,_.giftPackageNote=null,_.invoices=null,_.isGiftPackage=null,_.loyaltyLines=null,_.note=null,_.orderAdjustments=null,_.orderNumber=null,_.orderPackageStatus=null,_.orderPackages=null,_.orderPaymentStatus=null,_.orderedAt=null,_.priceListId=null,_.paymentMethods=null,_.shippingAddress=null,_.shippingLines=null,_.taxLines=null,_.netTotalFinalPrice=null,_.refundableLineItems=null,_._refundReasonId=null,_._refundReason=null,_._refundReasons=null,_._refundTranslations=null,_.billingAddress=e.billingAddress?new t(e.billingAddress):null,_.cancelReason=e.cancelReason||null,_.cancelledAt=e.cancelledAt||null,_.currencyCode=e.currencyCode||"",_.currencySymbol=e.currencySymbol||null,_.customer=e.customer?new o(e.customer):null,_.customerId=e.customerId||null,_.edited=e.edited||null,_.giftCardLines=(null===(m=e.giftCardLines)||void 0===m?void 0:m.map((function(e){return new A(e)})))||null,_.giftPackageLines=(null===(p=e.giftPackageLines)||void 0===p?void 0:p.map((function(e){return new l(e)})))||null,_.giftPackageNote=e.giftPackageNote||null,_.invoices=(null===(j=e.invoices)||void 0===j?void 0:j.map((function(e){return new u(e)})))||null,_.isGiftPackage=e.isGiftPackage||null,_.loyaltyLines=(null===(I=e.loyaltyLines)||void 0===I?void 0:I.map((function(e){return new O(e)})))||null,_.note=e.note||null,_.orderAdjustments=(null===(L=e.orderAdjustments)||void 0===L?void 0:L.map((function(e){return new s(e)})))||null,_.orderLineItems=(null===(k=e.orderLineItems)||void 0===k?void 0:k.map((function(e){return new r(e)})).filter((function(e){return!e.deleted})))||[],_.orderNumber=e.orderNumber||null,_.orderPackageStatus=e.orderPackageStatus||null,_.orderPackages=(null===(C=e.orderPackages)||void 0===C?void 0:C.map((function(e){return new d(e)})))||null,_.orderPaymentStatus=e.orderPaymentStatus||null,_.orderedAt=e.orderedAt||null,_.priceListId=e.priceListId||null,_.paymentMethods=(null===(R=e.paymentMethods)||void 0===R?void 0:R.map((function(e){return new a(e)})))||null,_.shippingAddress=e.shippingAddress?new t(e.shippingAddress):null,_.shippingLines=(null===(T=e.shippingLines)||void 0===T?void 0:T.map((function(e){return new n(e)})))||null,_.shippingMethod=e.shippingMethod||g.SHIPMENT,_.status=e.status||b.CREATED,_.taxLines=(null===(S=e.taxLines)||void 0===S?void 0:S.map((function(e){return new c(e)})))||null,_.netTotalFinalPrice=null!==(x=e.netTotalFinalPrice)&&void 0!==x?x:null,_.totalFinalPrice=null!==(w=e.totalFinalPrice)&&void 0!==w?w:0,_.totalPrice=null!==(F=e.totalPrice)&&void 0!==F?F:0,_.refundSettings=e.refundSettings;var N={billingAddress:h,cancelReason:h,cancelledAt:h,currencyCode:h,currencySymbol:h,customer:h,customerId:h,edited:h,giftCardLines:h,giftPackageLines:h,giftPackageNote:h,invoices:h,isGiftPackage:h,loyaltyLines:h,note:h,orderAdjustments:h,orderLineItems:h,orderNumber:h,orderPackageStatus:h,orderPackages:h,orderPaymentStatus:h,orderedAt:h,paymentMethods:h,shippingAddress:h,shippingLines:h,shippingMethod:h,status:h,taxLines:h,netTotalFinalPrice:h,totalFinalPrice:h,totalPrice:h,refundSettings:h,refundableLineItems:h,_refundReasonId:h,_refundReason:h,_refundReasons:h,_refundTranslations:h,items:P,itemCount:P,refundableItems:P,refundReasonId:P,reason:P,refundReasons:P,returnMethodDescription:P,isRefundEnabled:P,unfullfilledItems:P,refundedItems:P,totalTax:P,formattedTotalTax:P,shippingTotal:P,formattedShippingTotal:P,formattedTotalFinalPrice:P,formattedTotalPrice:P,hasCustomer:P,hasValidCustomerEmail:P,customerFullName:P,formattedDate:P,couponAdjustment:P,nonCouponAdjustments:P,orderProductFileIds:P,applyRefundableLines:v};return i&&(delete N.billingAddress,delete N.shippingAddress),y(_,N),_}return e(k,f),Object.defineProperty(k.prototype,"items",{get:function(){return this.orderLineItems.filter((function(e){return e.status!==m.CANCELLED}))},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"itemCount",{get:function(){var e;return(null===(e=this.items)||void 0===e?void 0:e.length)||0},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"itemQuantity",{get:function(){return this.items.reduce((function(e,t){return e+t.quantity}),0)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"refundableItems",{get:function(){if(!this.refundableLineItems)return[];var e=new Set(this.refundableLineItems.filter((function(e){return e.isRefundable})).map((function(e){return e.orderLineItemId})));return this.orderLineItems.filter((function(t){return e.has(t.id)}))},enumerable:!1,configurable:!0}),k.prototype.applyRefundableLines=function(e){var t=new i(e);this.refundableLineItems=t.orderLineItems,this._refundReasons=t.refundReasons,this._refundTranslations=t.translations;var n=new Map(this.refundableLineItems.map((function(e){return[e.orderLineItemId,e]})));this.orderLineItems.forEach((function(e){var t,r,i,o,l=n.get(e.id);e.flow=null!==(t=null==l?void 0:l.flow)&&void 0!==t?t:null,e.autoApprove=null!==(r=null==l?void 0:l.autoApprove)&&void 0!==r&&r,e.isCancellable=null!==(i=null==l?void 0:l.isCancellable)&&void 0!==i&&i,e.isRefundable=null!==(o=null==l?void 0:l.isRefundable)&&void 0!==o&&o}))},Object.defineProperty(k.prototype,"refundReasonId",{get:function(){return this._refundReasonId},set:function(e){this._refundReasonId=e||null},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"reason",{get:function(){return this._refundReason},set:function(e){this._refundReason=e||null},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"refundReasons",{get:function(){var e=I.getCurrentLocale();return(this._refundReasons||[]).map((function(t){var n,r;return{id:t.id,title:(null===(r=null===(n=t.translations)||void 0===n?void 0:n.find((function(t){return t.locale===e})))||void 0===r?void 0:r.title)||t.title}}))},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"returnMethodDescription",{get:function(){var e,t,n=I.getCurrentLocale();return(null===(t=null===(e=this._refundTranslations)||void 0===e?void 0:e.find((function(e){return e.locale===n})))||void 0===t?void 0:t.returnMethodDescription)||null},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"displayedPackages",{get:function(){return j.getDisplayedPackages(this).map((function(e){return new d(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"unfullfilledItems",{get:function(){return j.getUnfullfilledItems(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"refundedItems",{get:function(){return j.getRefundedItems(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"totalTax",{get:function(){return j.getTotalTax(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"formattedTotalTax",{get:function(){return L(this.totalTax,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"shippingTotal",{get:function(){return j.getShippingTotal(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"formattedShippingTotal",{get:function(){return L(this.shippingTotal,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"formattedTotalFinalPrice",{get:function(){return L(this.totalFinalPrice,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"formattedTotalPrice",{get:function(){return L(this.totalPrice,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"hasCustomer",{get:function(){return j.hasCustomer(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"hasValidCustomerEmail",{get:function(){return j.hasValidCustomerEmail(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"customerFullName",{get:function(){return j.getCustomerFullName(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"formattedDate",{get:function(){return j.getFormattedDate(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"couponAdjustment",{get:function(){return j.getCouponAdjustment(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"nonCouponAdjustments",{get:function(){return j.getNonCouponAdjustments(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"isRefundEnabled",{get:function(){return this.refundableItems.some((function(e){return null!==e.refundQuantity}))},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"displayedOrderAdjustments",{get:function(){var e;return null===(e=this.orderAdjustments)||void 0===e?void 0:e.filter((function(e){return e.campaignType!==p.FREE_SHIPPING}))},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"orderProductFileIds",{get:function(){return j.getOrderProductFiles(this)},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"giftCardTotalPrice",{get:function(){var e;return(null===(e=this.giftCardLines)||void 0===e?void 0:e.reduce((function(e,t){return e+t.amount}),0))||0},enumerable:!1,configurable:!0}),k}(f);export{k as IkasOrder};
@@ -0,0 +1,7 @@
1
+ import { IkasOrderLineBundleProductSettings as IOrderLineBundleProductSettings } from "@ikas/storefront-models";
2
+ export declare class IkasOrderLineBundleProductSettings implements IOrderLineBundleProductSettings {
3
+ bundleLineId: string;
4
+ bundleLineQuantity: number;
5
+ name: string | null;
6
+ constructor(data: IOrderLineBundleProductSettings);
7
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as n}from"mobx";var i=function(i){this.bundleLineId=i.bundleLineId||"",this.bundleLineQuantity=i.bundleLineQuantity||0,this.name=i.name||null,n(this)};export{i as IkasOrderLineBundleProductSettings};
@@ -1,12 +1,15 @@
1
- import { IkasOrderLineItem as IOrderLineItem, IkasOrderLineItemStatus } from "@ikas/storefront-models";
1
+ import { IkasOrderLineItem as IOrderLineItem, IkasOrderLineItemStatus, IkasOrderRefundFlow } from "@ikas/storefront-models";
2
2
  import { IkasOrderLineDiscount } from "./discount";
3
3
  import { IkasOrderLineVariant } from "./variant";
4
4
  import { IkasOrderLineItemOption } from "./option";
5
+ import { IkasOrderLineBundleProductSettings } from "./bundle-product-settings";
5
6
  import { IkasBaseModel } from "../../base";
7
+ import { IkasOrderLineItemSubscriptionPlan } from "./order-line-item-subscription-plan";
6
8
  declare type IOrderLineItemConstructorParams = {
7
9
  refundQuantity?: number;
8
10
  } & IOrderLineItem;
9
11
  export declare class IkasOrderLineItem extends IkasBaseModel implements IOrderLineItem {
12
+ bundleProductSettings: IkasOrderLineBundleProductSettings | null;
10
13
  currencyCode: string | null;
11
14
  currencySymbol: string | null;
12
15
  discount: IkasOrderLineDiscount | null;
@@ -24,7 +27,12 @@ export declare class IkasOrderLineItem extends IkasBaseModel implements IOrderLi
24
27
  unitPrice: number | null;
25
28
  variant: IkasOrderLineVariant;
26
29
  orderedAt: number;
30
+ subscriptionPlan: IkasOrderLineItemSubscriptionPlan | null;
27
31
  private _refundQuantity;
32
+ flow: IkasOrderRefundFlow | null;
33
+ autoApprove: boolean;
34
+ isCancellable: boolean;
35
+ isRefundable: boolean;
28
36
  constructor(data: IOrderLineItemConstructorParams);
29
37
  get priceWithQuantity(): number;
30
38
  get formattedPriceWithQuantity(): string;
@@ -1 +1 @@
1
- import{__extends as t}from'./../../../../ext/tslib/tslib.es6.js';export{IkasOrderLineItemStatus}from"@ikas/storefront-models";import{IkasOrderLineDiscount as e}from"./discount/index.js";import{IkasOrderLineVariant as i}from"./variant/index.js";import{IkasOrderLineItemOption as r}from"./option/index.js";import{IkasBaseModel as n}from"../../base/index.js";import{makeObservable as o,observable as u,computed as c,action as a}from"mobx";import{IkasOrderLineItemFunctions as l}from"@ikas/storefront-model-functions";import{formatCurrency as d}from"../../../../utils/currency.js";import{IkasBaseStore as s}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";var f=function(n){function f(t){var l,d,s,f,y,m=this;return(m=n.call(this,t)||this).currencyCode=null,m.discount=null,m.discountPrice=null,m.finalPrice=null,m.options=null,m.originalOrderLineItemId=null,m.statusUpdatedAt=null,m.stockLocationId=null,m.taxValue=null,m._refundQuantity=null,m.currencyCode=t.currencyCode||null,m.currencySymbol=t.currencySymbol||null,m.discount=t.discount?new e(t.discount):null,m.discountPrice=null!==(l=t.discountPrice)&&void 0!==l?l:null,m.finalPrice=null!==(d=t.finalPrice)&&void 0!==d?d:null,m.finalUnitPrice=null!==(s=t.finalUnitPrice)&&void 0!==s?s:null,m.options=(null===(f=t.options)||void 0===f?void 0:f.map((function(t){return new r(t)})))||null,m.originalOrderLineItemId=t.originalOrderLineItemId||null,m.price=t.price,m.quantity=t.quantity,m.status=t.status,m.statusUpdatedAt=t.statusUpdatedAt,m.stockLocationId=t.stockLocationId,m.taxValue=t.taxValue,m.unitPrice=null!==(y=t.unitPrice)&&void 0!==y?y:null,m.variant=new i(t.variant),m.orderedAt=t.orderedAt,m.refundQuantity=t.refundQuantity,o(m,{currencyCode:u,currencySymbol:u,discount:u,discountPrice:u,finalPrice:u,finalUnitPrice:u,options:u,originalOrderLineItemId:u,price:u,quantity:u,status:u,statusUpdatedAt:u,stockLocationId:u,taxValue:u,unitPrice:u,variant:u,orderedAt:u,_refundQuantity:u,priceWithQuantity:c,formattedPriceWithQuantity:c,overridenPriceWithQuantity:c,formattedOverridenPriceWithQuantity:c,formattedFinalPrice:c,formattedUnitPrice:c,formattedFinalUnitPrice:c,formattedDiscountPrice:c,finalPriceWithQuantity:c,formattedFinalPriceWithQuantity:c,tax:c,formattedTax:c,refundQuantity:c,editLineItem:a.bound}),m}return t(f,n),Object.defineProperty(f.prototype,"priceWithQuantity",{get:function(){return l.getPriceWithQuantity(this)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedPriceWithQuantity",{get:function(){return d(this.priceWithQuantity,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"overridenPriceWithQuantity",{get:function(){return l.getOverridenPriceWithQuantity(this)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedOverridenPriceWithQuantity",{get:function(){return d(this.overridenPriceWithQuantity||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedFinalPrice",{get:function(){return d(this.finalPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedUnitPrice",{get:function(){return d(this.unitPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedFinalUnitPrice",{get:function(){return d(this.finalUnitPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"unitPriceText",{get:function(){var t,e,i,r;if(null!==this.finalUnitPrice){var n=null===(t=this.variant.baseUnit)||void 0===t?void 0:t.baseAmount,o=(null===(i=null===(e=this.variant.baseUnit)||void 0===e?void 0:e.unit)||void 0===i?void 0:i.name)||(null===(r=this.variant.baseUnit)||void 0===r?void 0:r.type);return"".concat(d(this.finalUnitPrice,this.currencyCode||"",this.currencySymbol||"")," / ").concat(n&&1!==n?n:"").concat(o)}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedDiscountPrice",{get:function(){return d(this.discountPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"finalPriceWithQuantity",{get:function(){return l.getFinalPriceWithQuantity(this)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedFinalPriceWithQuantity",{get:function(){return d(this.finalPriceWithQuantity||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"tax",{get:function(){return l.getTax(this)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"formattedTax",{get:function(){return d(this.tax,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"hasDiscount",{get:function(){return l.hasDiscount(this)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"refundQuantity",{get:function(){return this._refundQuantity},set:function(t){t?(t>this.quantity&&(t=this.quantity),t<=0&&(t=null),this._refundQuantity=t):this._refundQuantity=null},enumerable:!1,configurable:!0}),f.prototype.editLineItem=function(){var t,e=this.variant.href||"";e=e.includes("?")?e+"&editLineID="+this.id:e+"?editLineID="+this.id,null===(t=s.getInstance().router)||void 0===t||t.push(e)},f}(n);export{f as IkasOrderLineItem};
1
+ import{__extends as t}from'./../../../../ext/tslib/tslib.es6.js';export{IkasOrderLineItemStatus}from"@ikas/storefront-models";import{IkasOrderLineDiscount as e}from"./discount/index.js";import{IkasOrderLineVariant as i}from"./variant/index.js";import{IkasOrderLineItemOption as n}from"./option/index.js";import{IkasOrderLineBundleProductSettings as r}from"./bundle-product-settings/index.js";import{IkasBaseModel as o}from"../../base/index.js";import{makeObservable as u,observable as c,computed as a,action as l}from"mobx";import{IkasOrderLineItemFunctions as d}from"@ikas/storefront-model-functions";import{formatCurrency as s}from"../../../../utils/currency.js";import{IkasBaseStore as f}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{IkasOrderLineItemSubscriptionPlan as y}from"./order-line-item-subscription-plan/index.js";var p=function(o){function p(t){var d,s,f,p,m,b=this;return(b=o.call(this,t)||this).bundleProductSettings=null,b.currencyCode=null,b.discount=null,b.discountPrice=null,b.finalPrice=null,b.options=null,b.originalOrderLineItemId=null,b.statusUpdatedAt=null,b.stockLocationId=null,b.taxValue=null,b.subscriptionPlan=null,b._refundQuantity=null,b.flow=null,b.autoApprove=!1,b.isCancellable=!1,b.isRefundable=!1,b.bundleProductSettings=t.bundleProductSettings?new r(t.bundleProductSettings):null,b.currencyCode=t.currencyCode||null,b.currencySymbol=t.currencySymbol||null,b.discount=t.discount?new e(t.discount):null,b.discountPrice=null!==(d=t.discountPrice)&&void 0!==d?d:null,b.finalPrice=null!==(s=t.finalPrice)&&void 0!==s?s:null,b.finalUnitPrice=null!==(f=t.finalUnitPrice)&&void 0!==f?f:null,b.options=(null===(p=t.options)||void 0===p?void 0:p.map((function(t){return new n(t)})))||null,b.originalOrderLineItemId=t.originalOrderLineItemId||null,b.price=t.price,b.quantity=t.quantity,b.status=t.status,b.statusUpdatedAt=t.statusUpdatedAt,b.stockLocationId=t.stockLocationId,b.taxValue=t.taxValue,b.unitPrice=null!==(m=t.unitPrice)&&void 0!==m?m:null,b.variant=new i(t.variant),b.orderedAt=t.orderedAt,b.subscriptionPlan=t.subscriptionPlan?new y(t.subscriptionPlan):null,b.refundQuantity=t.refundQuantity,u(b,{bundleProductSettings:c,currencyCode:c,currencySymbol:c,discount:c,discountPrice:c,finalPrice:c,finalUnitPrice:c,options:c,originalOrderLineItemId:c,price:c,quantity:c,status:c,statusUpdatedAt:c,stockLocationId:c,taxValue:c,unitPrice:c,variant:c,orderedAt:c,subscriptionPlan:c,flow:c,autoApprove:c,isCancellable:c,isRefundable:c,_refundQuantity:c,priceWithQuantity:a,formattedPriceWithQuantity:a,overridenPriceWithQuantity:a,formattedOverridenPriceWithQuantity:a,formattedFinalPrice:a,formattedUnitPrice:a,formattedFinalUnitPrice:a,formattedDiscountPrice:a,finalPriceWithQuantity:a,formattedFinalPriceWithQuantity:a,tax:a,formattedTax:a,refundQuantity:a,editLineItem:l.bound}),b}return t(p,o),Object.defineProperty(p.prototype,"priceWithQuantity",{get:function(){return d.getPriceWithQuantity(this)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedPriceWithQuantity",{get:function(){return s(this.priceWithQuantity,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"overridenPriceWithQuantity",{get:function(){return d.getOverridenPriceWithQuantity(this)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedOverridenPriceWithQuantity",{get:function(){return s(this.overridenPriceWithQuantity||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedFinalPrice",{get:function(){return s(this.finalPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedUnitPrice",{get:function(){return s(this.unitPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedFinalUnitPrice",{get:function(){return s(this.finalUnitPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"unitPriceText",{get:function(){var t,e,i,n;if(null!==this.finalUnitPrice){var r=null===(t=this.variant.baseUnit)||void 0===t?void 0:t.baseAmount,o=(null===(i=null===(e=this.variant.baseUnit)||void 0===e?void 0:e.unit)||void 0===i?void 0:i.name)||(null===(n=this.variant.baseUnit)||void 0===n?void 0:n.type);return"".concat(s(this.finalUnitPrice,this.currencyCode||"",this.currencySymbol||"")," / ").concat(r&&1!==r?r:"").concat(o)}},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedDiscountPrice",{get:function(){return s(this.discountPrice||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"finalPriceWithQuantity",{get:function(){return d.getFinalPriceWithQuantity(this)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedFinalPriceWithQuantity",{get:function(){return s(this.finalPriceWithQuantity||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"tax",{get:function(){return d.getTax(this)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"formattedTax",{get:function(){return s(this.tax,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"hasDiscount",{get:function(){return d.hasDiscount(this)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"refundQuantity",{get:function(){return this._refundQuantity},set:function(t){t?(t>this.quantity&&(t=this.quantity),t<=0&&(t=null),this._refundQuantity=t):this._refundQuantity=null},enumerable:!1,configurable:!0}),p.prototype.editLineItem=function(){var t,e=this.variant.href||"";e=e.includes("?")?e+"&editLineID="+this.id:e+"?editLineID="+this.id,null===(t=f.getInstance().router)||void 0===t||t.push(e)},p}(o);export{p as IkasOrderLineItem};
@@ -0,0 +1,8 @@
1
+ import { IkasOrderLineItemSubscriptionPlan as IOrderLineItemSubscriptionPlan } from "@ikas/storefront-models";
2
+ import { IkasOrderLineItemSubscriptionPlanPeriod } from "./order-line-item-subscription-plan-period";
3
+ export declare class IkasOrderLineItemSubscriptionPlan implements IOrderLineItemSubscriptionPlan {
4
+ id: string;
5
+ name: string;
6
+ period: IkasOrderLineItemSubscriptionPlanPeriod;
7
+ constructor(data: IOrderLineItemSubscriptionPlan);
8
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as i}from"mobx";import{IkasOrderLineItemSubscriptionPlanPeriod as o}from"./order-line-item-subscription-plan-period/index.js";var r=function(r){this.id=r.id,this.name=r.name,this.period=new o(r.period),i(this)};export{r as IkasOrderLineItemSubscriptionPlan};
@@ -0,0 +1,6 @@
1
+ import { IkasOrderLineItemSubscriptionPlanDiscountAmountType, IkasOrderLineItemSubscriptionPlanDiscount as IOrderLineItemSubscriptionPlanDiscount } from "@ikas/storefront-models";
2
+ export declare class IkasOrderLineItemSubscriptionPlanDiscount implements IOrderLineItemSubscriptionPlanDiscount {
3
+ amount: number;
4
+ type: IkasOrderLineItemSubscriptionPlanDiscountAmountType;
5
+ constructor(data: IOrderLineItemSubscriptionPlanDiscount);
6
+ }
@@ -0,0 +1 @@
1
+ var t=function(t){this.amount=t.amount,this.type=t.type};export{t as IkasOrderLineItemSubscriptionPlanDiscount};
@@ -0,0 +1,14 @@
1
+ import { IkasOrderLineItemSubscriptionPlanPeriod as IOrderLineItemSubscriptionPlanPeriod, IkasOrderLineItemSubscriptionPlanDurationUnitType, IkasOrderLineItemSubscriptionPlanPaymentType } from "@ikas/storefront-models";
2
+ import { IkasOrderLineItemSubscriptionPlanDiscount } from "../order-line-item-subscription-plan-discount";
3
+ export declare class IkasOrderLineItemSubscriptionPlanPeriod implements IOrderLineItemSubscriptionPlanPeriod {
4
+ cutOffDay: number | null;
5
+ discount: IkasOrderLineItemSubscriptionPlanDiscount | null;
6
+ durationUnit: IkasOrderLineItemSubscriptionPlanDurationUnitType;
7
+ durationValue: number;
8
+ id: string;
9
+ maxOrders: number | null;
10
+ paymentType: IkasOrderLineItemSubscriptionPlanPaymentType;
11
+ scheduledOrderDay: number | null;
12
+ title: string;
13
+ constructor(data: IOrderLineItemSubscriptionPlanPeriod);
14
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as t}from"mobx";import{IkasOrderLineItemSubscriptionPlanDiscount as i}from"../order-line-item-subscription-plan-discount/index.js";var e=function(e){this.cutOffDay=e.cutOffDay,this.discount=e.discount?new i(e.discount):null,this.durationUnit=e.durationUnit,this.durationValue=e.durationValue,this.id=e.id,this.maxOrders=e.maxOrders,this.paymentType=e.paymentType,this.scheduledOrderDay=e.scheduledOrderDay,this.title=e.title,t(this)};export{e as IkasOrderLineItemSubscriptionPlanPeriod};
@@ -0,0 +1,9 @@
1
+ import { IkasOrderLoyaltyLine as IOrderLoyaltyLine } from "@ikas/storefront-models";
2
+ export declare class IkasOrderLoyaltyLine implements IOrderLoyaltyLine {
3
+ amount: number;
4
+ id: string;
5
+ loyaltyProgramCustomerId: string;
6
+ loyaltyProgramId: string;
7
+ loyaltySpendingMethodId: string;
8
+ constructor(data: IOrderLoyaltyLine);
9
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as o}from"mobx";var t=function(t){this.amount=t.amount||0,this.id=t.id||"",this.loyaltyProgramCustomerId=t.loyaltyProgramCustomerId||"",this.loyaltyProgramId=t.loyaltyProgramId||"",this.loyaltySpendingMethodId=t.loyaltySpendingMethodId||"",o(this)};export{t as IkasOrderLoyaltyLine};
@@ -4,6 +4,7 @@ import { IkasTransactionWithPrices } from "./transaction-with-prices";
4
4
  export declare class IkasOrderTransactionWithPrices implements IOrderTransactionWithPrices {
5
5
  chargedAmount: number | null;
6
6
  orderFinalPrice: number | null;
7
+ pendingAmount: number | null;
7
8
  refundableTransactions: IkasListOrderTransactionWithPricesRefundableTransaction[];
8
9
  refundedAmount: number | null;
9
10
  remainingBalance: number | null;
@@ -1 +1 @@
1
- export{IkasPaymentMethodTypeWithPrices,IkasTransactionSourceWithPrices,IkasTransactionStatusWithPrices,IkasTransactionTypeWithPrices}from"@ikas/storefront-models";import{makeAutoObservable as r}from"mobx";import{formatCurrency as n}from"../../../../utils/currency.js";import{IkasListOrderTransactionWithPricesRefundableTransaction as t}from"./list-order-transaction-refundable-transaction/index.js";import{IkasTransactionWithPrices as e}from"./transaction-with-prices/index.js";export{IkasTransactionWithPrices}from"./transaction-with-prices/index.js";var i=function(){function i(n){this.chargedAmount=n.chargedAmount||null,this.orderFinalPrice=n.orderFinalPrice||null,this.refundableTransactions=n.refundableTransactions?n.refundableTransactions.map((function(r){return new t(r)})):[],this.refundedAmount=n.refundedAmount||null,this.remainingBalance=n.remainingBalance||null,this.transactions=n.transactions?n.transactions.map((function(r){return new e(r)})):[],r(this)}return Object.defineProperty(i.prototype,"formattedChargedAmount",{get:function(){return n(this.chargedAmount||0,"","")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"formattedOrderFinalPrice",{get:function(){return n(this.orderFinalPrice||0,"","")},enumerable:!1,configurable:!0}),i}();export{i as IkasOrderTransactionWithPrices};
1
+ export{IkasPaymentMethodTypeWithPrices,IkasTransactionSourceWithPrices,IkasTransactionStatusWithPrices,IkasTransactionTypeWithPrices}from"@ikas/storefront-models";import{makeAutoObservable as n}from"mobx";import{formatCurrency as r}from"../../../../utils/currency.js";import{IkasListOrderTransactionWithPricesRefundableTransaction as t}from"./list-order-transaction-refundable-transaction/index.js";import{IkasTransactionWithPrices as e}from"./transaction-with-prices/index.js";export{IkasTransactionWithPrices}from"./transaction-with-prices/index.js";var i=function(){function i(r){this.chargedAmount=r.chargedAmount||null,this.orderFinalPrice=r.orderFinalPrice||null,this.pendingAmount=r.pendingAmount||null,this.refundableTransactions=r.refundableTransactions?r.refundableTransactions.map((function(n){return new t(n)})):[],this.refundedAmount=r.refundedAmount||null,this.remainingBalance=r.remainingBalance||null,this.transactions=r.transactions?r.transactions.map((function(n){return new e(n)})):[],n(this)}return Object.defineProperty(i.prototype,"formattedChargedAmount",{get:function(){return r(this.chargedAmount||0,"","")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"formattedOrderFinalPrice",{get:function(){return r(this.orderFinalPrice||0,"","")},enumerable:!1,configurable:!0}),i}();export{i as IkasOrderTransactionWithPrices};
@@ -0,0 +1,8 @@
1
+ import { IkasOrderRefundReason as IOrderRefundReason } from "@ikas/storefront-models";
2
+ import { IkasOrderRefundReasonTranslation } from "./translation";
3
+ export declare class IkasOrderRefundReason implements IOrderRefundReason {
4
+ id: string;
5
+ title: string;
6
+ translations: IkasOrderRefundReasonTranslation[] | null;
7
+ constructor(data?: Partial<IOrderRefundReason>);
8
+ }
@@ -0,0 +1 @@
1
+ import{IkasOrderRefundReasonTranslation as t}from"./translation/index.js";var i=function(i){void 0===i&&(i={}),this.id=i.id||"",this.title=i.title||"",this.translations=i.translations?i.translations.map((function(i){return new t(i)})):null};export{i as IkasOrderRefundReason};
@@ -0,0 +1,6 @@
1
+ import { IkasOrderRefundReasonTranslation as IOrderRefundReasonTranslation } from "@ikas/storefront-models";
2
+ export declare class IkasOrderRefundReasonTranslation implements IOrderRefundReasonTranslation {
3
+ locale: string;
4
+ title: string | null;
5
+ constructor(data?: Partial<IOrderRefundReasonTranslation>);
6
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as t}from"mobx";var i=function(i){void 0===i&&(i={}),this.locale=i.locale||"",this.title=i.title||null,t(this)};export{i as IkasOrderRefundReasonTranslation};
@@ -0,0 +1,10 @@
1
+ import { IkasOrderRefundFlow, IkasRefundableLine as IRefundableLine } from "@ikas/storefront-models";
2
+ export declare class IkasRefundableLine implements IRefundableLine {
3
+ autoApprove: boolean;
4
+ flow: IkasOrderRefundFlow | null;
5
+ isCancellable: boolean;
6
+ isRefundable: boolean;
7
+ orderLineItemId: string;
8
+ constructor(data: IRefundableLine);
9
+ }
10
+ export { IkasOrderRefundFlow };
@@ -0,0 +1 @@
1
+ export{IkasOrderRefundFlow}from"@ikas/storefront-models";import{makeAutoObservable as e}from"mobx";var o=function(o){this.autoApprove=o.autoApprove||!1,this.flow=o.flow||null,this.isCancellable=o.isCancellable||!1,this.isRefundable=o.isRefundable||!1,this.orderLineItemId=o.orderLineItemId||"",e(this)};export{o as IkasRefundableLine};
@@ -0,0 +1,10 @@
1
+ import { IkasRefundableLines as IRefundableLines } from "@ikas/storefront-models";
2
+ import { IkasRefundableLine } from "../refundable-line";
3
+ import { IkasOrderRefundReason } from "../reason";
4
+ import { IkasOrderRefundSettingsTranslation } from "../settings/translation";
5
+ export declare class IkasRefundableLines implements IRefundableLines {
6
+ orderLineItems: IkasRefundableLine[];
7
+ refundReasons: IkasOrderRefundReason[];
8
+ translations: IkasOrderRefundSettingsTranslation[];
9
+ constructor(data: IRefundableLines);
10
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as n}from"mobx";import{IkasRefundableLine as r}from"../refundable-line/index.js";import{IkasOrderRefundReason as e}from"../reason/index.js";import{IkasOrderRefundSettingsTranslation as t}from"../settings/translation/index.js";var s=function(s){this.orderLineItems=s.orderLineItems?s.orderLineItems.map((function(n){return new r(n)})):[],this.refundReasons=s.refundReasons?s.refundReasons.map((function(n){return new e(n)})):[],this.translations=s.translations?s.translations.map((function(n){return new t(n)})):[],n(this)};export{s as IkasRefundableLines};
@@ -3,5 +3,6 @@ export declare class IkasOrderRefundSettings implements IOrderRefundSettings {
3
3
  isActiveRefundSection: boolean;
4
4
  orderRefundDayLimit: number | null;
5
5
  refundDesc: string;
6
+ storefrontId: string | null;
6
7
  constructor(data: IOrderRefundSettings);
7
8
  }
@@ -1 +1 @@
1
- import{makeAutoObservable as i}from"mobx";var e=function(e){this.orderRefundDayLimit=null,this.isActiveRefundSection=e.isActiveRefundSection,this.orderRefundDayLimit=e.orderRefundDayLimit,this.refundDesc=e.refundDesc,i(this)};export{e as IkasOrderRefundSettings};
1
+ import{makeAutoObservable as i}from"mobx";var t=function(t){this.orderRefundDayLimit=null,this.isActiveRefundSection=t.isActiveRefundSection,this.orderRefundDayLimit=t.orderRefundDayLimit,this.refundDesc=t.refundDesc,this.storefrontId=t.storefrontId,i(this)};export{t as IkasOrderRefundSettings};
@@ -0,0 +1,6 @@
1
+ import { IkasOrderRefundSettingsTranslation as IOrderRefundSettingsTranslation } from "@ikas/storefront-models";
2
+ export declare class IkasOrderRefundSettingsTranslation implements IOrderRefundSettingsTranslation {
3
+ locale: string;
4
+ returnMethodDescription: string | null;
5
+ constructor(data?: Partial<IOrderRefundSettingsTranslation>);
6
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as o}from"mobx";var t=function(t){void 0===t&&(t={}),this.locale=t.locale||"",this.returnMethodDescription=t.returnMethodDescription||null,o(this)};export{t as IkasOrderRefundSettingsTranslation};
@@ -19,6 +19,7 @@ export declare class IkasPaymentGateway extends IkasBaseModel implements IPaymen
19
19
  paymentMethodType: IkasPaymentMethodType;
20
20
  settings?: IkasPaymentGatewaySettings[] | null;
21
21
  translations?: IkasPaymentGatewayTranslation[] | null;
22
+ milesSmilesEnabled: boolean | null;
22
23
  constructor(data: IPaymentGateway);
23
24
  }
24
25
  export { IkasPaymentGatewayType, IkasPaymentMethodType };
@@ -1 +1 @@
1
- import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasPaymentGatewayAdditionalPrice as t}from"./additional-price/index.js";import{IkasBaseModel as n}from"../base/index.js";import{IkasPaymentGatewaySettings as o}from"./settings/index.js";import{IkasPaymentGatewayType as i,IkasPaymentMethodType as s}from"@ikas/storefront-models";export{IkasPaymentGatewayType,IkasPaymentMethodType}from"@ikas/storefront-models";import{makeObservable as r,observable as a}from"mobx";var l=function(n){function l(e){var l,d,p=this;return(p=n.call(this,e)||this).additionalPrices=(null===(l=e.additionalPrices)||void 0===l?void 0:l.map((function(e){return new t(e)})))||null,p.availableCountries=e.availableCountries||[],p.code=e.code||"",p.description=e.description||null,p.logoUrl=e.logoUrl||null,p.masterPassClientId=e.masterPassClientId||null,p.name=e.name||"",p.paymentGatewayProviderId=e.paymentGatewayProviderId||null,p.supportedCurrencies=e.supportedCurrencies||[],p.testMode=e.testMode||null,p.type=e.type||i.INTERNAL,p.paymentMethods=e.paymentMethods||[],p.paymentMethodType=e.paymentMethodType||s.OTHER,p.settings=(null===(d=e.settings)||void 0===d?void 0:d.map((function(e){return new o(e)})))||null,p.translations=e.translations||null,r(p,{additionalPrices:a,availableCountries:a,code:a,description:a,logoUrl:a,masterPassClientId:a,name:a,paymentGatewayProviderId:a,supportedCurrencies:a,testMode:a,type:a,paymentMethods:a,paymentMethodType:a,settings:a,translations:a}),p}return e(l,n),l}(n);export{l as IkasPaymentGateway};
1
+ import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasPaymentGatewayAdditionalPrice as t}from"./additional-price/index.js";import{IkasBaseModel as n}from"../base/index.js";import{IkasPaymentGatewaySettings as i}from"./settings/index.js";import{IkasPaymentGatewayType as o,IkasPaymentMethodType as s}from"@ikas/storefront-models";export{IkasPaymentGatewayType,IkasPaymentMethodType}from"@ikas/storefront-models";import{makeObservable as a,observable as r}from"mobx";var l=function(n){function l(e){var l,d,m,p=this;return(p=n.call(this,e)||this).additionalPrices=(null===(l=e.additionalPrices)||void 0===l?void 0:l.map((function(e){return new t(e)})))||null,p.availableCountries=e.availableCountries||[],p.code=e.code||"",p.description=e.description||null,p.logoUrl=e.logoUrl||null,p.masterPassClientId=e.masterPassClientId||null,p.name=e.name||"",p.paymentGatewayProviderId=e.paymentGatewayProviderId||null,p.supportedCurrencies=e.supportedCurrencies||[],p.testMode=e.testMode||null,p.type=e.type||o.INTERNAL,p.paymentMethods=e.paymentMethods||[],p.paymentMethodType=e.paymentMethodType||s.OTHER,p.settings=(null===(d=e.settings)||void 0===d?void 0:d.map((function(e){return new i(e)})))||null,p.translations=e.translations||null,p.milesSmilesEnabled=null!==(m=e.milesSmilesEnabled)&&void 0!==m?m:null,a(p,{additionalPrices:r,availableCountries:r,code:r,description:r,logoUrl:r,masterPassClientId:r,name:r,paymentGatewayProviderId:r,supportedCurrencies:r,testMode:r,type:r,paymentMethods:r,paymentMethodType:r,settings:r,translations:r,milesSmilesEnabled:r}),p}return e(l,n),l}(n);export{l as IkasPaymentGateway};
@@ -10,6 +10,8 @@ export declare class IkasProductOffer {
10
10
  product: IkasProduct;
11
11
  isSelected: boolean;
12
12
  quantity: number;
13
+ title: string | null;
14
+ description: string | null;
13
15
  constructor(data?: Partial<IkasProductOffer>);
14
16
  get isAccepted(): boolean;
15
17
  }
@@ -1 +1 @@
1
- import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{IkasCampaignOfferTargetPageType as e,IkasCartCampaignOfferStatus as r}from"@ikas/storefront-models";import{IkasProduct as o}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";var a=function(t){this.id=t.id||"",i(this)},s=function(){function a(e){var r,n,a;void 0===e&&(e={}),this.isSelected=!1,this.quantity=1,this.campaignOfferId=e.campaignOfferId||"",this.campaignOfferProductId=e.campaignOfferProductId||"",this.product=new o(t(t({},e.product),{selectedVariantValues:null===(a=(null===(r=e.product)||void 0===r?void 0:r.variants.find((function(t){return t.isActive})))||(null===(n=e.product)||void 0===n?void 0:n.variants[0]))||void 0===a?void 0:a.variantValues})),this.isSelected=e.isSelected||!1,this.quantity=e.quantity||1,i(this)}return Object.defineProperty(a.prototype,"isAccepted",{get:function(){var t,i,o=this;return(null===(i=null===(t=n.getInstance().cartStore.cart)||void 0===t?void 0:t.campaignOffers)||void 0===i?void 0:i.some((function(t){return o.campaignOfferId===t.campaignOfferId&&o.campaignOfferProductId===t.campaignOfferProductId&&t.targetPageTypes.some((function(t){return t===e.PRODUCT}))&&t.status===r.ACCEPTED})))||!1},enumerable:!1,configurable:!0}),a}();export{a as IkasProductCampaignOffer,s as IkasProductOffer};
1
+ import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{IkasCampaignOfferTargetPageType as e,IkasCartCampaignOfferStatus as r}from"@ikas/storefront-models";import{IkasProduct as n}from"../index.js";import{IkasBaseStore as o}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";var s=function(t){this.id=t.id||"",i(this)},a=function(){function s(e){var r,o,s;void 0===e&&(e={}),this.isSelected=!1,this.quantity=1,this.title=null,this.description=null,this.campaignOfferId=e.campaignOfferId||"",this.campaignOfferProductId=e.campaignOfferProductId||"",this.product=new n(t(t({},e.product),{selectedVariantValues:null===(s=(null===(r=e.product)||void 0===r?void 0:r.variants.find((function(t){return t.isActive})))||(null===(o=e.product)||void 0===o?void 0:o.variants[0]))||void 0===s?void 0:s.variantValues})),this.isSelected=e.isSelected||!1,this.quantity=e.quantity||1,this.title=e.title||null,this.description=e.description||null,i(this)}return Object.defineProperty(s.prototype,"isAccepted",{get:function(){var t,i,n=this;return(null===(i=null===(t=o.getInstance().cartStore.cart)||void 0===t?void 0:t.campaignOffers)||void 0===i?void 0:i.some((function(t){return n.campaignOfferId===t.campaignOfferId&&n.campaignOfferProductId===t.campaignOfferProductId&&t.targetPageTypes.some((function(t){return t===e.PRODUCT}))&&t.status===r.ACCEPTED})))||!1},enumerable:!1,configurable:!0}),s}();export{s as IkasProductCampaignOffer,a as IkasProductOffer};
@@ -24,6 +24,8 @@ export declare class IkasProductFilter implements IProductFilter {
24
24
  get valueList(): string[];
25
25
  get keyList(): string[];
26
26
  get displayedValues(): IkasApplicableProductFilterValue[];
27
+ get discountStatusMapping(): Record<string, string>;
28
+ get isDiscountStatusFilter(): boolean;
27
29
  onFilterValueClick: (filterValue: IkasApplicableProductFilterValue) => void;
28
30
  onNumberRangeClick: (option: IkasProductFilterNumberRangeListOption) => void;
29
31
  onNumberRangeChange: (numberRange: IkasFilterRangeValue | null) => void;
@@ -1 +1 @@
1
- import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import{IkasImage as e}from"../../image/index.js";import{IkasProductFilterType as i,IkasProductFilterDisplayType as s,IkasProductFilterSortType as n}from"@ikas/storefront-models";export{IkasProductFilterDisplayType,IkasProductFilterSortType,IkasProductFilterType,IkasProductStockFilterValue}from"@ikas/storefront-models";import{makeAutoObservable as l}from"mobx";import{IkasProductFilterFunctions as o}from"@ikas/storefront-model-functions";var u=function(){function e(e,n){var u=this;if(this.productList=null,this.numberRange=null,this.numberRangeLimit=null,this.numberRangeListOptions=null,this.onFilterValueClick=function(t){var e;o.onFilterValueClick(u,t),null===(e=u.productList)||void 0===e||e.applyFilters()},this.onNumberRangeClick=function(t){var e;o.onNumberRangeClick(u,t),null===(e=u.productList)||void 0===e||e.applyFilters()},this.onNumberRangeChange=function(t){var e;o.onNumberRangeChange(u,t),null===(e=u.productList)||void 0===e||e.applyFilters()},this.clear=function(){o.clear(u)},this.toInput=function(){return o.toInput(u)},this.applyQueryParam=function(t){o.applyQueryParam(u,t)},this.id=e.id||"",this.key=e.key||"",this.name=e.name||"",this.order=e.order||0,this.type=e.type||i.BRAND,this.displayType=e.displayType||s.BOX,this.isMultiSelect=e.isMultiSelect||!1,this.isFacetFilter=e.isFacetFilter||!1,this.values=e.values?e.values.map((function(t){return new r(t)})):null,this.customValues=e.customValues||null,this.settings=e.settings?new h(e.settings):null,this.displayType===s.NUMBER_RANGE_LIST&&this.customValues&&this.customValues.length&&(this.numberRangeListOptions=this.customValues.map((function(e){return new c(t(t({key:e},m(e)),{isSelected:!1}))}))),this.displayType===s.NUMBER_RANGE&&this.customValues&&this.customValues.length){var a=this.customValues[0];this.numberRangeLimit=m(a)}this.productList=n,l(this)}return Object.defineProperty(e.prototype,"isCustomValueFilter",{get:function(){return o.isCustomValueFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStockFilter",{get:function(){return o.isStockFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueList",{get:function(){return o.getValueList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyList",{get:function(){return o.getKeyList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayedValues",{get:function(){return o.getDisplayedValues(this)},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var e=t({},this);return delete e.productList,e},e}(),r=function(){function t(t){this.thumbnailImageId=null,this.thumbnailImage=null,this.id=t.id||"",this.key=t.key||"",this.name=t.name||"",this.colorCode=t.colorCode||null,this.thumbnailImageId=t.thumbnailImageId||null,this.thumbnailImageId&&(this.thumbnailImage=new e({id:this.thumbnailImageId,isVideo:!1})),this.isSelected=t.isSelected||!1,this.resultCount=void 0!==t.resultCount&&null!==t.resultCount?t.resultCount:null,this.slug=t.slug||null,l(this)}return Object.defineProperty(t.prototype,"href",{get:function(){return o.getIkasFilterHref(this)},enumerable:!1,configurable:!0}),t}(),a=function(t){this.id=t.id,this.type=t.type,this.displayType=t.displayType,this.valueList=t.valueList,l(this)},h=function(t){this.useAndFilter=t.useAndFilter||!1,this.showCollapsedOnDesktop=t.showCollapsedOnDesktop||!1,this.showCollapsedOnMobile=t.showCollapsedOnMobile||!1,this.sortType=t.sortType||n.ALPHABETICAL_ASC,this.customSortedValues=t.customSortedValues||null,l(this)},p=function(t){this.from=t.from||0,this.to=t.to||null,l(this)},c=function(){function e(t){this.from=t.from||0,this.to=t.to||null,this.key=t.key||"",this.isSelected=t.isSelected||!1,l(this)}return e.prototype.toJSON=function(){return t(t({},this),{isSelected:this.isSelected})},e}();function m(t){return o.parseRangeStr(t)}export{r as IkasApplicableProductFilterValue,p as IkasFilterRangeValue,u as IkasProductFilter,c as IkasProductFilterNumberRangeListOption,h as IkasProductFilterSettings,a as IkasProductFilterValue,m as parseRangeStr};
1
+ import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import{IkasImage as e}from"../../image/index.js";import{IkasProductFilterType as i,IkasProductFilterDisplayType as s,IkasProductFilterSortType as n}from"@ikas/storefront-models";export{IkasProductFilterDisplayType,IkasProductFilterSortType,IkasProductFilterType,IkasProductStockFilterValue}from"@ikas/storefront-models";import{makeAutoObservable as o}from"mobx";import{IkasProductFilterFunctions as u}from"@ikas/storefront-model-functions";var r=function(){function e(e,n){var r=this;if(this.productList=null,this.numberRange=null,this.numberRangeLimit=null,this.numberRangeListOptions=null,this.onFilterValueClick=function(t){var e;u.onFilterValueClick(r,t),null===(e=r.productList)||void 0===e||e.applyFilters()},this.onNumberRangeClick=function(t){var e;u.onNumberRangeClick(r,t),null===(e=r.productList)||void 0===e||e.applyFilters()},this.onNumberRangeChange=function(t){var e;u.onNumberRangeChange(r,t),null===(e=r.productList)||void 0===e||e.applyFilters()},this.clear=function(){u.clear(r)},this.toInput=function(){return u.toInput(r)},this.applyQueryParam=function(t){u.applyQueryParam(r,t)},this.id=e.id||"",this.key=e.key||"",this.name=e.name||"",this.order=e.order||0,this.type=e.type||i.BRAND,this.displayType=e.displayType||s.BOX,this.isMultiSelect=e.isMultiSelect||!1,this.isFacetFilter=e.isFacetFilter||!1,this.values=e.values?e.values.map((function(t){return new l(t)})):null,this.customValues=e.customValues||null,this.settings=e.settings?new h(e.settings):null,this.displayType===s.NUMBER_RANGE_LIST&&this.customValues&&this.customValues.length&&(this.numberRangeListOptions=this.customValues.map((function(e){return new c(t(t({key:e},m(e)),{isSelected:!1}))}))),this.displayType===s.NUMBER_RANGE&&this.customValues&&this.customValues.length){var a=this.customValues[0];this.numberRangeLimit=m(a)}this.productList=n,o(this)}return Object.defineProperty(e.prototype,"isCustomValueFilter",{get:function(){return u.isCustomValueFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStockFilter",{get:function(){return u.isStockFilter(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueList",{get:function(){return u.getValueList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyList",{get:function(){return u.getKeyList(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayedValues",{get:function(){return u.getDisplayedValues(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"discountStatusMapping",{get:function(){return u.getDiscountStatusMapping()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDiscountStatusFilter",{get:function(){return u.isDiscountStatusFilter(this)},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var e=t({},this);return delete e.productList,e},e}(),l=function(){function t(t){this.thumbnailImageId=null,this.thumbnailImage=null,this.id=t.id||"",this.key=t.key||"",this.name=t.name||"",this.colorCode=t.colorCode||null,this.thumbnailImageId=t.thumbnailImageId||null,this.thumbnailImageId&&(this.thumbnailImage=new e({id:this.thumbnailImageId,isVideo:!1})),this.isSelected=t.isSelected||!1,this.resultCount=void 0!==t.resultCount&&null!==t.resultCount?t.resultCount:null,this.slug=t.slug||null,o(this)}return Object.defineProperty(t.prototype,"href",{get:function(){return u.getIkasFilterHref(this)},enumerable:!1,configurable:!0}),t}(),a=function(t){this.id=t.id,this.type=t.type,this.displayType=t.displayType,this.valueList=t.valueList,o(this)},h=function(t){this.useAndFilter=t.useAndFilter||!1,this.showCollapsedOnDesktop=t.showCollapsedOnDesktop||!1,this.showCollapsedOnMobile=t.showCollapsedOnMobile||!1,this.sortType=t.sortType||n.ALPHABETICAL_ASC,this.customSortedValues=t.customSortedValues||null,o(this)},p=function(t){this.from=t.from||0,this.to=t.to||null,o(this)},c=function(){function e(t){this.from=t.from||0,this.to=t.to||null,this.key=t.key||"",this.isSelected=t.isSelected||!1,o(this)}return e.prototype.toJSON=function(){return t(t({},this),{isSelected:this.isSelected})},e}();function m(t){return u.parseRangeStr(t)}export{l as IkasApplicableProductFilterValue,p as IkasFilterRangeValue,r as IkasProductFilter,c as IkasProductFilterNumberRangeListOption,h as IkasProductFilterSettings,a as IkasProductFilterValue,m as parseRangeStr};