@ikas/storefront 6.1.0-beta.39 → 6.1.0-beta.391

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 (325) 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.d.ts +17 -2
  12. package/build/analytics/head/index.js +1 -1
  13. package/build/analytics/ikasV3.d.ts +2 -1
  14. package/build/analytics/ikasV3.js +1 -1
  15. package/build/analytics/openAiPixel.d.ts +31 -0
  16. package/build/analytics/openAiPixel.js +1 -0
  17. package/build/components/checkout/components/address-form/index.js +1 -1
  18. package/build/components/checkout/components/address-form/model.d.ts +5 -0
  19. package/build/components/checkout/components/address-form/model.js +1 -1
  20. package/build/components/checkout/components/adyen/index.js +1 -1
  21. package/build/components/checkout/components/button/index.d.ts +1 -0
  22. package/build/components/checkout/components/button/index.js +1 -1
  23. package/build/components/checkout/components/button/style.module.scss.js +1 -1
  24. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  25. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -1
  26. package/build/components/checkout/components/cart-summary/index.d.ts +3 -1
  27. package/build/components/checkout/components/cart-summary/index.js +1 -1
  28. package/build/components/checkout/components/cart-summary/loyalty/icons.d.ts +4 -0
  29. package/build/components/checkout/components/cart-summary/loyalty/icons.js +1 -0
  30. package/build/components/checkout/components/cart-summary/loyalty/index.d.ts +13 -0
  31. package/build/components/checkout/components/cart-summary/loyalty/index.js +1 -0
  32. package/build/components/checkout/components/cart-summary/loyalty/style.module.scss.js +1 -0
  33. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  34. package/build/components/checkout/components/checkbox/index.d.ts +1 -0
  35. package/build/components/checkout/components/checkbox/index.js +1 -1
  36. package/build/components/checkout/components/checkout-load-failed/index.d.ts +14 -0
  37. package/build/components/checkout/components/checkout-load-failed/index.js +1 -0
  38. package/build/components/checkout/components/checkout-load-failed/style.module.scss.js +1 -0
  39. package/build/components/checkout/components/credit-card-form/model.js +1 -1
  40. package/build/components/checkout/components/customer-addresses/index.d.ts +1 -0
  41. package/build/components/checkout/components/customer-addresses/index.js +1 -1
  42. package/build/components/checkout/components/customer-addresses/model.js +1 -1
  43. package/build/components/checkout/components/error/stock-error/index.js +1 -1
  44. package/build/components/checkout/components/form-item/index.js +1 -1
  45. package/build/components/checkout/components/form-item/model.d.ts +5 -3
  46. package/build/components/checkout/components/form-item/model.js +1 -1
  47. package/build/components/checkout/components/form-item/style.module.scss.js +1 -1
  48. package/build/components/checkout/components/hepsipay/index.d.ts +9 -0
  49. package/build/components/checkout/components/hepsipay/index.js +1 -0
  50. package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -1
  51. package/build/components/checkout/components/iyzico/index.d.ts +8 -0
  52. package/build/components/checkout/components/iyzico/index.js +1 -0
  53. package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -1
  54. package/build/components/checkout/components/modal/index.d.ts +1 -0
  55. package/build/components/checkout/components/modal/index.js +1 -1
  56. package/build/components/checkout/components/modal/style.module.scss.js +1 -1
  57. package/build/components/checkout/components/offer-product/index.js +1 -1
  58. package/build/components/checkout/components/offer-product/style.module.scss.js +1 -1
  59. package/build/components/checkout/components/phone-number-input/index.d.ts +3 -1
  60. package/build/components/checkout/components/phone-number-input/index.js +1 -1
  61. package/build/components/checkout/components/quick-registration/completed.js +1 -1
  62. package/build/components/checkout/components/quick-registration/index.js +1 -1
  63. package/build/components/checkout/components/quick-registration/model.js +1 -1
  64. package/build/components/checkout/components/secure-card-form/index.d.ts +13 -0
  65. package/build/components/checkout/components/secure-card-form/index.js +1 -0
  66. package/build/components/checkout/components/secure-card-form/masterpass-bridge-model.d.ts +33 -0
  67. package/build/components/checkout/components/secure-card-form/masterpass-bridge-model.js +1 -0
  68. package/build/components/checkout/components/secure-card-form/model.d.ts +67 -0
  69. package/build/components/checkout/components/secure-card-form/model.js +1 -0
  70. package/build/components/checkout/components/secure-card-form/protocol.d.ts +222 -0
  71. package/build/components/checkout/components/secure-card-form/protocol.js +1 -0
  72. package/build/components/checkout/components/secure-card-form/style.module.scss.js +1 -0
  73. package/build/components/checkout/components/select-box/index.d.ts +3 -0
  74. package/build/components/checkout/components/select-box/index.js +1 -1
  75. package/build/components/checkout/components/step-container/index.d.ts +5 -0
  76. package/build/components/checkout/components/step-container/index.js +1 -1
  77. package/build/components/checkout/components/step-container/style.module.scss.js +1 -1
  78. package/build/components/checkout/components/stripe/checkout-form.js +1 -1
  79. package/build/components/checkout/components/stripe-express/index.d.ts +7 -0
  80. package/build/components/checkout/components/stripe-express/index.js +1 -0
  81. package/build/components/checkout/components/stripe-express/style.module.scss.js +1 -0
  82. package/build/components/checkout/components/svg/coupon-code-tag.d.ts +6 -0
  83. package/build/components/checkout/components/svg/coupon-code-tag.js +1 -0
  84. package/build/components/checkout/components/svg/credit-balance.d.ts +6 -0
  85. package/build/components/checkout/components/svg/credit-balance.js +1 -0
  86. package/build/components/checkout/components/svg/gift-cart-tag.d.ts +6 -0
  87. package/build/components/checkout/components/svg/gift-cart-tag.js +1 -0
  88. package/build/components/checkout/components/svg/gift-loyalty.d.ts +6 -0
  89. package/build/components/checkout/components/svg/gift-loyalty.js +1 -0
  90. package/build/components/checkout/components/svg/info.d.ts +6 -0
  91. package/build/components/checkout/components/svg/info.js +1 -0
  92. package/build/components/checkout/components/svg/package-loyalty.d.ts +6 -0
  93. package/build/components/checkout/components/svg/package-loyalty.js +1 -0
  94. package/build/components/checkout/components/svg/percentage-loyalty.d.ts +6 -0
  95. package/build/components/checkout/components/svg/percentage-loyalty.js +1 -0
  96. package/build/components/checkout/components/svg/refresh.d.ts +6 -0
  97. package/build/components/checkout/components/svg/refresh.js +1 -0
  98. package/build/components/checkout/components/svg/star-loyalty.d.ts +6 -0
  99. package/build/components/checkout/components/svg/star-loyalty.js +1 -0
  100. package/build/components/checkout/components/svg/store-credit-tag.d.ts +6 -0
  101. package/build/components/checkout/components/svg/store-credit-tag.js +1 -0
  102. package/build/components/checkout/components/svg/subscription.d.ts +6 -0
  103. package/build/components/checkout/components/svg/subscription.js +1 -0
  104. package/build/components/checkout/components/tkpay/index.d.ts +8 -0
  105. package/build/components/checkout/components/tkpay/index.js +1 -0
  106. package/build/components/checkout/components/toggle/index.d.ts +2 -0
  107. package/build/components/checkout/components/toggle/index.js +1 -1
  108. package/build/components/checkout/components/toggle/style.module.scss.js +1 -1
  109. package/build/components/checkout/index.d.ts +2 -0
  110. package/build/components/checkout/index.js +1 -1
  111. package/build/components/checkout/model.d.ts +230 -8
  112. package/build/components/checkout/model.js +1 -1
  113. package/build/components/checkout/modelMasterPass.d.ts +6 -2
  114. package/build/components/checkout/modelMasterPass.js +1 -1
  115. package/build/components/checkout/steps/step-info/index.js +1 -1
  116. package/build/components/checkout/steps/step-info/style.module.scss.js +1 -0
  117. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -1
  118. package/build/components/checkout/steps/step-payment/index.js +1 -1
  119. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  120. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
  121. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/header.d.ts +4 -0
  122. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/header.js +1 -0
  123. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/index.d.ts +14 -0
  124. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/index.js +1 -0
  125. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/login-required.d.ts +13 -0
  126. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/login-required.js +1 -0
  127. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/miles-smiles-logo.d.ts +7 -0
  128. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/miles-smiles-logo.js +1 -0
  129. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/style.module.scss.js +1 -0
  130. package/build/components/checkout/steps/step-payment/payment-gateways/saved-cards/index.d.ts +10 -0
  131. package/build/components/checkout/steps/step-payment/payment-gateways/saved-cards/index.js +1 -0
  132. package/build/components/checkout/steps/step-payment/payment-gateways/saved-cards/style.module.scss.js +1 -0
  133. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/index.d.ts +7 -0
  134. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/index.js +1 -0
  135. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/style.module.scss.js +1 -0
  136. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -1
  137. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  138. package/build/components/checkout/steps/step-success/index.js +1 -1
  139. package/build/components/checkout/style.module.scss.js +1 -1
  140. package/build/components/image/index.d.ts +1 -0
  141. package/build/components/image/index.js +1 -1
  142. package/build/components/index.d.ts +3 -0
  143. package/build/components/page/head.js +1 -1
  144. package/build/components/page/index.d.ts +1 -1
  145. package/build/components/page/index.js +1 -1
  146. package/build/components/page/widgets/common.d.ts +2 -0
  147. package/build/components/page/widgets/common.js +1 -0
  148. package/build/components/page/widgets/loyaltyWidget.d.ts +13 -0
  149. package/build/components/page/widgets/loyaltyWidget.js +1 -0
  150. package/build/components/page/widgets/popupWidget.d.ts +16 -0
  151. package/build/components/page/widgets/popupWidget.js +1 -0
  152. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  153. package/build/components/page-editor/model.d.ts +2 -0
  154. package/build/components/page-editor/model.js +1 -1
  155. package/build/components/pay-with-ikas/index.d.ts +9 -0
  156. package/build/components/pay-with-ikas/index.js +1 -0
  157. package/build/components/paypal-express-checkout/index.d.ts +9 -0
  158. package/build/components/paypal-express-checkout/index.js +1 -0
  159. package/build/components/plain-image/index.d.ts +13 -0
  160. package/build/components/plain-image/index.js +1 -0
  161. package/build/ext/@ikas/fe-api-client/build/config/index.js +1 -0
  162. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
  163. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/es6/getCountries.js +1 -0
  164. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +1 -0
  165. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/getCountries.js +1 -0
  166. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +1 -0
  167. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/isSupportedCountry.js +1 -0
  168. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/parsePhoneNumber.js +1 -0
  169. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/ObserverComponent.js +1 -0
  170. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/index.js +1 -0
  171. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/observer.js +1 -0
  172. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/useObserver.js +1 -0
  173. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/UniversalFinalizationRegistry.js +1 -0
  174. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/assertEnvironment.js +1 -0
  175. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/observerBatching.js +1 -0
  176. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/observerFinalizationRegistry.js +1 -0
  177. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/printDebugValue.js +1 -0
  178. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/button-element-renderer/index.js +1 -1
  179. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/checkbox-item-view/index.js +1 -1
  180. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/index.js +1 -1
  181. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/input-item-view/index.js +1 -1
  182. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/phone-input-item-view/get-countries.js +1 -0
  183. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/phone-input-item-view/index.js +1 -0
  184. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/image-column-element-renderer/index.js +1 -1
  185. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/image-element-renderer/index.js +1 -1
  186. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/index.js +1 -1
  187. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/product-list-renderer/index.js +1 -1
  188. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/social-element-renderer/index.js +1 -1
  189. package/build/ext/@ikas/popup-renderer/build/popup-renderer/helpers/index.js +1 -1
  190. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/form/form-settings/index.js +1 -1
  191. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/image/index.js +1 -1
  192. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/image-column/index.js +1 -1
  193. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/product/index.js +1 -1
  194. package/build/hooks/useCustomerReviews.d.ts +2 -0
  195. package/build/hooks/useCustomerReviews.js +1 -1
  196. package/build/hooks/useDimension.js +1 -1
  197. package/build/hooks/useStore.js +1 -1
  198. package/build/index.js +1 -1
  199. package/build/models/data/checkout-settings/address-field-restriction/index.d.ts +10 -0
  200. package/build/models/data/checkout-settings/address-field-restriction/index.js +1 -0
  201. package/build/models/data/checkout-settings/index.d.ts +3 -0
  202. package/build/models/data/checkout-settings/index.js +1 -1
  203. package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +1 -0
  204. package/build/models/data/customer/address/ikas-localized-customer-address.js +1 -1
  205. package/build/models/data/customer/review/index.d.ts +4 -1
  206. package/build/models/data/customer/review/index.js +1 -1
  207. package/build/models/data/index.d.ts +6 -0
  208. package/build/models/data/order/address/ikas-localized-order-address.d.ts +1 -0
  209. package/build/models/data/order/address/ikas-localized-order-address.js +1 -1
  210. package/build/models/data/order/adjustment/index.d.ts +3 -1
  211. package/build/models/data/order/adjustment/index.js +1 -1
  212. package/build/models/data/order/gift-card-line/index.d.ts +2 -1
  213. package/build/models/data/order/gift-card-line/index.js +1 -1
  214. package/build/models/data/order/index.d.ts +21 -2
  215. package/build/models/data/order/index.js +1 -1
  216. package/build/models/data/order/line-item/bundle-product-settings/index.d.ts +7 -0
  217. package/build/models/data/order/line-item/bundle-product-settings/index.js +1 -0
  218. package/build/models/data/order/line-item/index.d.ts +9 -1
  219. package/build/models/data/order/line-item/index.js +1 -1
  220. package/build/models/data/order/line-item/order-line-item-subscription-plan/index.d.ts +8 -0
  221. package/build/models/data/order/line-item/order-line-item-subscription-plan/index.js +1 -0
  222. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-discount/index.d.ts +6 -0
  223. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-discount/index.js +1 -0
  224. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-period/index.d.ts +14 -0
  225. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-period/index.js +1 -0
  226. package/build/models/data/order/loyalty-line/index.d.ts +9 -0
  227. package/build/models/data/order/loyalty-line/index.js +1 -0
  228. package/build/models/data/order/order-transaction-with-prices/index.d.ts +1 -0
  229. package/build/models/data/order/order-transaction-with-prices/index.js +1 -1
  230. package/build/models/data/order/refund/reason/index.d.ts +8 -0
  231. package/build/models/data/order/refund/reason/index.js +1 -0
  232. package/build/models/data/order/refund/reason/translation/index.d.ts +6 -0
  233. package/build/models/data/order/refund/reason/translation/index.js +1 -0
  234. package/build/models/data/order/refund/refundable-line/index.d.ts +10 -0
  235. package/build/models/data/order/refund/refundable-line/index.js +1 -0
  236. package/build/models/data/order/refund/refundable-lines/index.d.ts +10 -0
  237. package/build/models/data/order/refund/refundable-lines/index.js +1 -0
  238. package/build/models/data/order/refund/settings/index.d.ts +1 -0
  239. package/build/models/data/order/refund/settings/index.js +1 -1
  240. package/build/models/data/order/refund/settings/translation/index.d.ts +6 -0
  241. package/build/models/data/order/refund/settings/translation/index.js +1 -0
  242. package/build/models/data/payment-gateway/index.d.ts +1 -0
  243. package/build/models/data/payment-gateway/index.js +1 -1
  244. package/build/models/data/product/campaign-offer/index.d.ts +2 -0
  245. package/build/models/data/product/campaign-offer/index.js +1 -1
  246. package/build/models/data/product/filter/index.d.ts +2 -0
  247. package/build/models/data/product/filter/index.js +1 -1
  248. package/build/models/data/product/index.d.ts +10 -0
  249. package/build/models/data/product/index.js +1 -1
  250. package/build/models/data/product/translations/index.d.ts +7 -0
  251. package/build/models/data/product/translations/index.js +1 -0
  252. package/build/models/data/product/variant/bundle-settings/bundle-product/index.js +1 -1
  253. package/build/models/data/product/variant/index.d.ts +3 -0
  254. package/build/models/data/product/variant/index.js +1 -1
  255. package/build/models/data/product/variant/subscription-plan/index.d.ts +12 -0
  256. package/build/models/data/product/variant/subscription-plan/index.js +1 -0
  257. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-discount/index.d.ts +6 -0
  258. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-period/index.d.ts +23 -0
  259. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-period/index.js +1 -0
  260. package/build/models/data/store-credit-balance/index.d.ts +26 -0
  261. package/build/models/data/store-credit-balance/index.js +1 -0
  262. package/build/models/data/storefront/index.d.ts +1 -0
  263. package/build/models/data/storefront/index.js +1 -1
  264. package/build/models/data/storefront-popup/index.d.ts +1 -0
  265. package/build/models/data/storefront-popup/index.js +1 -1
  266. package/build/models/data/storefront-popup/storefront-popup-display-filter/index.d.ts +4 -7
  267. package/build/models/data/storefront-popup/storefront-popup-display-filter/index.js +1 -1
  268. package/build/models/data/theme-json/component/prop/index.d.ts +1 -0
  269. package/build/models/data/theme-json/component/prop/index.js +1 -1
  270. package/build/models/data/theme-json/custom-data/index.d.ts +1 -0
  271. package/build/models/data/theme-json/custom-data/index.js +1 -1
  272. package/build/models/data/theme-json/index.js +1 -1
  273. package/build/models/ui/blog-category-list/index.js +1 -1
  274. package/build/models/ui/blog-list/index.d.ts +10 -1
  275. package/build/models/ui/blog-list/index.js +1 -1
  276. package/build/models/ui/brand-list/index.js +1 -1
  277. package/build/models/ui/category-list/index.js +1 -1
  278. package/build/models/ui/customer-review-list/index.d.ts +8 -0
  279. package/build/models/ui/customer-review-list/index.js +1 -1
  280. package/build/models/ui/customer-review-summary-list/index.js +1 -1
  281. package/build/models/ui/product-list/index.d.ts +25 -2
  282. package/build/models/ui/product-list/index.js +1 -1
  283. package/build/models/ui/raffle-list/index.js +1 -1
  284. package/build/models/ui/validator/form/account-info.js +1 -1
  285. package/build/models/ui/validator/form/address.js +1 -1
  286. package/build/models/ui/validator/form/ikas-address.js +1 -1
  287. package/build/models/ui/validator/form/login.d.ts +20 -6
  288. package/build/models/ui/validator/form/login.js +1 -1
  289. package/build/models/ui/validator/form/register.d.ts +15 -6
  290. package/build/models/ui/validator/form/register.js +1 -1
  291. package/build/page-data-init/index.d.ts +22 -0
  292. package/build/page-data-init/index.js +1 -1
  293. package/build/pages/checkout.js +1 -1
  294. package/build/store/blog/index.js +1 -1
  295. package/build/store/brand/index.js +1 -1
  296. package/build/store/cart/api.d.ts +3 -1
  297. package/build/store/cart/api.js +1 -1
  298. package/build/store/cart/index.d.ts +28 -2
  299. package/build/store/cart/index.js +1 -1
  300. package/build/store/category/index.js +1 -1
  301. package/build/store/checkout/index.d.ts +10 -1
  302. package/build/store/checkout/index.js +1 -1
  303. package/build/store/customer/api.d.ts +37 -13
  304. package/build/store/customer/api.js +1 -1
  305. package/build/store/customer/index.d.ts +100 -9
  306. package/build/store/customer/index.js +1 -1
  307. package/build/store/html-meta-data/index.js +1 -1
  308. package/build/store/index.d.ts +2 -0
  309. package/build/store/location/index.js +1 -1
  310. package/build/store/product/index.d.ts +2 -1
  311. package/build/store/product/index.js +1 -1
  312. package/build/utils/helper.d.ts +2 -0
  313. package/build/utils/helper.js +1 -1
  314. package/build/utils/miles-smiles.d.ts +19 -0
  315. package/build/utils/miles-smiles.js +1 -0
  316. package/package.json +18 -16
  317. package/build/components/popup/index.d.ts +0 -2
  318. package/build/components/popup/index.js +0 -1
  319. package/build/components/popup/renderer/index.d.ts +0 -8
  320. package/build/components/popup/renderer/index.js +0 -1
  321. package/build/components/popup/renderer/model.d.ts +0 -24
  322. package/build/components/popup/renderer/model.js +0 -1
  323. package/build/components/popup/utils/index.d.ts +0 -13
  324. package/build/components/popup/utils/index.js +0 -1
  325. package/build/store/storefront-popup/index.js +0 -1
@@ -4,15 +4,29 @@ import { IkasPaymentGateway } from "../../models/data/payment-gateway";
4
4
  import { IkasOrderLineVariant } from "../../models/data/order/line-item/variant";
5
5
  import { IkasStorefront } from "../../models/data/storefront";
6
6
  import CreditCardData from "./components/credit-card-form/model";
7
+ import SecureCardViewModel from "./components/secure-card-form/model";
8
+ import MasterPassBridgeViewModel from "./components/secure-card-form/masterpass-bridge-model";
7
9
  import { IkasCheckoutSettings } from "../../models/data/checkout-settings";
8
10
  import { TFunction } from "../../utils/i18n";
9
11
  import { IkasCheckoutCustomizationProps } from ".";
10
12
  import MasterPassModel from "./modelMasterPass";
11
13
  import { APIResponse } from "@ikas/fe-api-client";
12
- import { CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, UpdateCartCampaignOfferInput, CreateKlarnaTokenResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, CreateAdyenPlatformSessionResponse } from "@ikas/storefront-api";
14
+ import { CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, UpdateCartCampaignOfferInput, CreateKlarnaTokenResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, CreateAdyenPlatformSessionResponse, HepsipayFrameInitResponse, CreateIyzicoCheckoutFormResponse, CreateTkPayCheckoutFormResponse, LoyaltyCustomerInfo, LoyaltyProgramSpendingMethod, LoyaltyProgramEarningMethod } from "@ikas/storefront-api";
13
15
  import { IkasBaseStore } from "../../store";
14
- import { RetrieveInstallmentInfoQueryParams, SaveCartInput } from "@ikas/storefront-api";
16
+ import { RetrieveInstallmentInfoQueryParams, SaveCartInput, MilesSmilesDetailsResponse, MilesSmilesPaymentInput, SavedCard } from "@ikas/storefront-api";
15
17
  import { LocalizedAddressModel } from "@ikas/localized-address";
18
+ import { IkasOrderTransactionWithPrices, IkasStoreCreditBalance } from "@ikas/storefront-models";
19
+ import { StripeExpressCheckoutAddressInput, StripeExpressCheckoutSessionContextResponse } from "@ikas/storefront-api/src/__api/types";
20
+ /**
21
+ * Fallback TRY value of one mile, used only when the TK_PAY gateway settings
22
+ * don't expose a usable rate. The authoritative rate lives on those settings
23
+ * and is applied server-side when the miles are charged.
24
+ */
25
+ export declare const MILES_SMILES_RATE_PER_POINT: Record<string, number>;
26
+ /** Error codes that mean "open the bind flow again". */
27
+ export declare const MILES_SMILES_LOGIN_REQUIRED_CODES: string[];
28
+ /** Error codes that mean the feature is not usable for this merchant / cart. */
29
+ export declare const MILES_SMILES_UNAVAILABLE_CODES: string[];
16
30
  export declare type IUnavailableItems = {
17
31
  item: IkasOrderLineItem;
18
32
  stockCount: number;
@@ -23,6 +37,7 @@ export default class CheckoutViewModel {
23
37
  storefront?: IkasStorefront | null;
24
38
  router: NextRouter;
25
39
  isCheckoutLoaded: boolean;
40
+ isCheckoutLoadFailed: boolean;
26
41
  isErrorsVisible: boolean;
27
42
  isStepLoading: boolean;
28
43
  isTermsAndConditionsChecked: boolean;
@@ -32,7 +47,28 @@ export default class CheckoutViewModel {
32
47
  step: CheckoutStep;
33
48
  customizationProps?: IkasCheckoutCustomizationProps | null;
34
49
  cardData?: CreditCardData | null;
50
+ storeCard: boolean;
51
+ savedCards: SavedCard[];
52
+ /** Gateway the saved cards were listed for. */
53
+ savedCardsGatewayId: string | null;
54
+ /** Selected saved card; null means "pay with a new card". */
55
+ selectedSavedCardId: string | null;
56
+ savedCardCvv: string;
57
+ secureCard: SecureCardViewModel;
58
+ masterPassBridge: MasterPassBridgeViewModel | null;
35
59
  paymentGateways: IkasPaymentGateway[];
60
+ useMilesSmiles: boolean;
61
+ /** Miles&Smiles terms consent; FE only, reset whenever miles are toggled. */
62
+ isMilesSmilesTermsAccepted: boolean;
63
+ milesToRedeem: number;
64
+ isMilesSmilesLoginRequired: boolean;
65
+ isMilesSmilesUnavailable: boolean;
66
+ isMilesSmilesBindLoading: boolean;
67
+ milesSmilesDetails?: MilesSmilesDetailsResponse | null;
68
+ /** Miles&Smiles error code to surface in the Miles block (bind / details / sale). */
69
+ milesSmilesError?: string | null;
70
+ private milesSmilesBindLanding?;
71
+ isMiniCartOpenOnLoad: boolean;
36
72
  productFiles: IkasProductFile[];
37
73
  installmentInfo?: RetrieveInstallmentInfoResponse | null;
38
74
  useDifferentAddress: boolean;
@@ -53,6 +89,22 @@ export default class CheckoutViewModel {
53
89
  adyenDropinElement: any;
54
90
  payPalClientIdResponse: GetPaypalClientIdResponse | null;
55
91
  paypalOrderResponse: CreatePaypalOrderResponse | null;
92
+ hepsipayFrameInitResponse: HepsipayFrameInitResponse | null;
93
+ iyzicoResponse: CreateIyzicoCheckoutFormResponse | null;
94
+ isIyzicoLoading: boolean;
95
+ showIyzicoContainer: boolean;
96
+ tkPayResponse: CreateTkPayCheckoutFormResponse | null;
97
+ isTkPayLoading: boolean;
98
+ showTkPayContainer: boolean;
99
+ /** Miles the current TK Pay form was created with (0 = none). */
100
+ private tkPayFormMiles;
101
+ /**
102
+ * Set once the hosted TK Pay form reports success. From then on the form
103
+ * must never be re-created: a new form re-arms the Miles leg on the backend.
104
+ */
105
+ isTkPayPaymentCompleted: boolean;
106
+ stripeExpressCheckoutSessionResponse: CreateStripePaymentIntentResponse | null;
107
+ isStripeExpressCheckoutSessionVisible: boolean;
56
108
  campaignOffers: CampaignOfferType[] | undefined;
57
109
  isCampaignOfferLoaded: boolean;
58
110
  countrySettings: LocalizedAddressModel;
@@ -68,12 +120,31 @@ export default class CheckoutViewModel {
68
120
  couponError?: string | null;
69
121
  successTransaction?: IkasOrderTransaction;
70
122
  successTransactions?: IkasOrderTransaction[];
123
+ storeCreditBalance?: IkasStoreCreditBalance | null;
124
+ loyaltyCustomerInfo?: LoyaltyCustomerInfo | null;
125
+ loyaltySpendingMethods?: LoyaltyProgramSpendingMethod[] | null;
126
+ loyaltySpendingMethodsAll?: LoyaltyProgramSpendingMethod[] | null;
127
+ loyaltyEarningMethod?: LoyaltyProgramEarningMethod | null;
128
+ isLoyaltyPointsVisible: boolean;
129
+ isMinTransactionError?: boolean;
71
130
  mpVM: MasterPassModel;
72
131
  showTestModal: boolean;
132
+ openEditOrderTransaction?: IkasOrderTransactionWithPrices | null;
133
+ private previousRawValue;
134
+ private previousBin;
135
+ private isAmexCard;
73
136
  t: TFunction;
74
137
  constructor(checkout: IkasCheckout, checkoutSettings: IkasCheckoutSettings, router: NextRouter, returnPolicy: string, privacyPolicy: string, termsOfService: string, imprint: string, shippingPolicy: string, t: TFunction, customizationProps: IkasCheckoutCustomizationProps);
75
138
  init: () => Promise<void>;
139
+ /**
140
+ * Checkout loaded inside an iframe whose top window is this same store
141
+ * (e.g. the TK Pay callback): navigate the top window to this URL.
142
+ * The editor preview runs on another origin, so it is left alone.
143
+ */
144
+ private redirectTopIfInsideIframe;
145
+ private waitForCountrySettingsOrFail;
76
146
  initStep: () => Promise<void>;
147
+ getOpenEditOrderTransaction: () => Promise<void>;
77
148
  getSuccessTransaction: () => Promise<void>;
78
149
  get merchantSettings(): IkasMerchantSettings;
79
150
  get selectedPaymentGatewayIndex(): number;
@@ -89,12 +160,21 @@ export default class CheckoutViewModel {
89
160
  get finalPrice(): number;
90
161
  get hasStockError(): boolean;
91
162
  get isPaymentGatewayHasMasterPass(): boolean;
163
+ get hasMasterPassGateway(): boolean;
164
+ /**
165
+ * The card gateway whose box hosts the secure card iframe: the selected one,
166
+ * otherwise the MasterPass one (or the first). Only one iframe exists.
167
+ */
168
+ get secureCardGatewayId(): string;
169
+ /** Phone number a card would be saved to with "save card to MasterPass". */
170
+ get masterPassSavePhoneNumber(): string;
92
171
  get hasQuickRegistration(): boolean | null;
93
- get canProceedToShipping(): boolean | undefined;
172
+ get canProceedToShipping(): boolean;
94
173
  get canProceedToInStoreDelivery(): boolean;
95
174
  get canProceedToPayment(): boolean | "" | null | undefined;
96
175
  get isValidShippingSettings(): boolean | "" | null | undefined;
97
176
  get isManualOrderWithShippingLines(): boolean | 0 | undefined;
177
+ get isManualOrderWithoutShippingLines(): boolean;
98
178
  get isInStoreDelivery(): boolean;
99
179
  get klarnaPaymentGateway(): IkasPaymentGateway | undefined;
100
180
  get klarnaPaymentGatewayIndex(): number;
@@ -102,28 +182,80 @@ export default class CheckoutViewModel {
102
182
  get adyenPaymentGatewayIndex(): number;
103
183
  get payPalPaymentGateway(): IkasPaymentGateway | undefined;
104
184
  get payPalPaymentGatewayIndex(): number;
185
+ get hepsiPayPaymentGateway(): IkasPaymentGateway | undefined;
186
+ get hepsiPayPaymentGatewayIndex(): number;
187
+ get iyzicoPaymentGateway(): IkasPaymentGateway | undefined;
188
+ get iyzicoPaymentGatewayIndex(): number;
189
+ get tkPayPaymentGateway(): IkasPaymentGateway | undefined;
190
+ get tkPayPaymentGatewayIndex(): number;
105
191
  get isCustomFlowStripe(): boolean | null | undefined;
106
192
  get isKlarna(): boolean | null | undefined;
107
193
  get isAdyen(): boolean | null | undefined;
108
194
  get isPayPal(): boolean | null | undefined;
195
+ get isHepsiPay(): boolean | null | undefined;
196
+ get isIyzico(): boolean | null | undefined;
197
+ get isTkPay(): boolean | null | undefined;
198
+ /** PayTR gateway with card storage turned on, for a logged in customer. */
199
+ isCardStorageGateway: (pg?: IkasPaymentGateway | null) => boolean;
200
+ get isCardStorageEnabled(): boolean;
201
+ /**
202
+ * With the secure card iframe on, the saved card's CVC should be entered in
203
+ * the iframe too (DEV-3623 guide), which the frame does not support yet, so
204
+ * saved cards are not offered there.
205
+ */
206
+ get canUseSavedCards(): boolean;
207
+ get visibleSavedCards(): SavedCard[];
208
+ get selectedSavedCard(): SavedCard | undefined;
209
+ get isSavedCardCvvValid(): boolean;
109
210
  get isFree(): boolean;
211
+ /** Merchant's TK_PAY gateway with Miles&Smiles enabled, if any. */
212
+ get milesSmilesPaymentGateway(): IkasPaymentGateway | undefined;
213
+ /**
214
+ * TRY per mile for the on-screen estimate. Prefers the per-1000-miles rate
215
+ * exposed on the TK_PAY gateway settings, falls back to the static default.
216
+ */
217
+ get milesSmilesRate(): number;
218
+ get milesSmilesAvailableMiles(): number;
219
+ /** Max miles the UI may offer: available balance, capped by the amount left to pay. */
220
+ get milesSmilesMaxRedeemable(): number;
221
+ get milesSmilesRedeemValue(): number;
222
+ get isMilesSmilesFullPayment(): boolean;
223
+ get milesSmilesAppliedValue(): number;
224
+ get milesSmilesAmountToPay(): number;
225
+ /** "Use all my miles" checkbox state: the max redeemable amount is entered. */
226
+ get isMilesSmilesAllMilesUsed(): boolean;
227
+ /**
228
+ * Nothing is left to pay before miles are applied (store credit / gift
229
+ * cards cover the cart). Unlike `isFree`, this stays false when the miles
230
+ * themselves cover the order, so the Miles block remains visible then.
231
+ */
232
+ get isMilesSmilesNothingToPay(): boolean;
233
+ /** `milesSmiles` create-sale input, or undefined when miles are not applied. */
234
+ get milesSmilesInput(): MilesSmilesPaymentInput | undefined;
110
235
  get store(): IkasBaseStore;
111
236
  get isCouponCodeRequirementDefult(): boolean;
112
237
  get isCouponCodeRequirementOpen(): boolean;
113
238
  get isCouponCodeRequirementInvisible(): boolean;
114
239
  get isCouponCodeVisible(): boolean;
115
240
  get isCorporateInvoiceVisible(): boolean;
241
+ get isShowBillingAddressOnShippingStep(): boolean | null;
116
242
  get canPerformPayment(): boolean | undefined;
117
243
  get isDigitalOnly(): boolean;
118
244
  get customerAddresses(): IkasLocalizedCustomerAddress[] | undefined;
119
245
  get isManualOrder(): boolean;
120
246
  get isUpsellOrder(): boolean;
247
+ get isOpenEditOrder(): boolean;
248
+ get stripeExpressPaymentGateway(): IkasPaymentGateway | undefined;
249
+ get isOpenEditOrderWithTransaction(): boolean;
121
250
  get isEPayKolayEnabled(): boolean;
122
251
  get isPoweredByHidden(): boolean;
252
+ get hasCorrectableEmailTypo(): boolean;
253
+ get hasEmailError(): boolean;
123
254
  saveCart: () => Promise<import("../../models").IkasCart | null | undefined>;
124
255
  inStockDeliveryInputData: (input: SaveCartInput) => Promise<SaveCartInput>;
125
256
  checkStocks: () => Promise<void>;
126
257
  setIsKlarnaPaymentCompleted: (status: boolean) => Promise<void>;
258
+ setIsLoyaltyPointsVisible: (value: boolean) => void;
127
259
  removeUnavailableItems: (items: IUnavailableItems[]) => Promise<void>;
128
260
  getShippingCountries: () => Promise<void>;
129
261
  getStockLocations: () => Promise<void>;
@@ -131,7 +263,63 @@ export default class CheckoutViewModel {
131
263
  checkShippingCountries: () => void;
132
264
  onDeliveryMethodChange: (deliveryMethod: "address" | "in-store") => void;
133
265
  initialStockCheck: () => Promise<void>;
266
+ getStoreCreditBalance: () => Promise<void>;
267
+ getLoyaltyCustomerInfo: () => Promise<void>;
268
+ listSpendingMethodsByCartId: () => Promise<void>;
269
+ listEarningMethods: () => Promise<void>;
270
+ /**
271
+ * Miles block gate: TK_PAY gateway with `milesSmilesEnabled`, TRY cart and
272
+ * no "feature unavailable" error from the payment service.
273
+ */
274
+ /** Miles are entered but the Miles&Smiles terms are not accepted yet. */
275
+ get isMilesSmilesTermsMissing(): boolean;
276
+ isMilesSmilesActive(): boolean;
134
277
  listPaymentGateways: () => Promise<void>;
278
+ /**
279
+ * Store credit / gift cards cover the cart: drop the Miles selection so the
280
+ * block comes back switched off once the balance is removed.
281
+ */
282
+ resetMilesSmilesIfNothingToPay: () => void;
283
+ /**
284
+ * Fetches the member balance for the payment step. Handles the
285
+ * "linked but session expired" case by switching to the bind CTA.
286
+ */
287
+ loadMilesSmilesDetails: () => Promise<void>;
288
+ /** Relative checkout URL THY should send the customer back to after bind. */
289
+ getMilesSmilesBindRedirect: () => string;
290
+ /** Login page URL for guests who want to use miles. */
291
+ getMilesSmilesLoginRedirectUrl: () => string;
292
+ /**
293
+ * "Continue with Miles&Smiles" CTA. Guests go to login first; logged-in
294
+ * customers are sent to THY via the bind REST endpoint.
295
+ */
296
+ startMilesSmilesBind: () => Promise<void>;
297
+ setUseMilesSmiles: (value: boolean) => Promise<void>;
298
+ /** Terms consent checkbox: only records consent, the entered miles stay as is. */
299
+ setMilesSmilesTermsAccepted: (value: boolean) => void;
300
+ setMilesToRedeem: (value: number) => void;
301
+ /** Clamps the entered miles to what the UI may offer. */
302
+ clampMilesToRedeem: () => Promise<void>;
303
+ /** Quick-pick chip: redeem exactly `value` miles. */
304
+ selectMilesSmilesChip: (value: number) => Promise<void>;
305
+ /** "Use all my miles" checkbox: redeem the max, or clear the amount. */
306
+ setUseAllMilesSmiles: (value: boolean) => Promise<void>;
307
+ /**
308
+ * TK_PAY hosted checkout form is created per amount; re-create it when the
309
+ * miles selection changes so the form carries the right `milesSmiles`.
310
+ */
311
+ onMilesSmilesSelectionChange: () => Promise<void>;
312
+ /**
313
+ * Maps a Miles&Smiles error from create-sale to UI state. Returns a
314
+ * user-facing message when the failure belongs to the Miles leg.
315
+ */
316
+ private handleMilesSmilesSaleError;
317
+ /**
318
+ * Shared by create-sale and the TK Pay form: login-required codes switch
319
+ * the block to the reconnect CTA, unavailable codes hide it.
320
+ */
321
+ private handleMilesSmilesErrorCodes;
322
+ getMilesSmilesErrorMessage: (code?: string | null) => string;
135
323
  retrieveInstallmentInfo: (params: RetrieveInstallmentInfoQueryParams) => Promise<void>;
136
324
  createCustomer: () => void;
137
325
  setCheckoutShippingAddressSettings: () => void;
@@ -140,21 +328,28 @@ export default class CheckoutViewModel {
140
328
  createBillingAddress: () => void;
141
329
  onShippingMethodChange: (shippingMethod: IkasAvailableShippingMethod) => Promise<void>;
142
330
  onStockLocationChange: (location: IkasStockLocation) => Promise<void>;
143
- onCouponCodeApply: () => Promise<void>;
331
+ onCouponCodeApply: (isAddingCoupon?: boolean) => Promise<void>;
144
332
  removeGiftCardLine: (giftCardId: string | null) => Promise<void>;
333
+ removeLoyaltyPointsFromCart: (loyaltySpendingMethodId: string) => Promise<void>;
145
334
  getAvailableShippingZones: () => Promise<void>;
146
335
  onSelectedShippingAddressIdChange: (value: string) => void;
147
336
  onSelectedBillingAddressIdChange: (value: string) => void;
148
337
  onTermsAndConditionsCheckedChange: (value: boolean) => void;
149
338
  onCardNumberChange: (value: string) => void;
339
+ get isSecureCardEnabled(): boolean;
340
+ /** First 8 digits of the entered card, if at least 8 digits are entered. */
341
+ get cardBin(): string | undefined;
342
+ onCardBinChange: (bin: string | null) => void;
150
343
  getRetrieveInstallmentInfo: (originalValue: string) => Promise<void>;
151
344
  onCardHolderNameChange: (value: string) => void;
152
345
  onExpirationDateChange: (value: string) => void;
153
346
  onCvcChange: (value: string) => void;
154
347
  saveAddress: (type: "billing" | "shipping") => Promise<void>;
155
- onGoToCartClick: () => void;
156
- onBackToShoppingClick: () => void;
157
- onGoToLoginClick: () => void;
348
+ private getRoutingPath;
349
+ getGoToCartHref: () => string;
350
+ getBackToShoppingHref: () => string;
351
+ getGoToLoginHref: () => string;
352
+ onHandleBillingAddressOnShippingStep: () => Promise<void>;
158
353
  onProceedToShippingClick: () => Promise<void>;
159
354
  onProceedToDigitalOnlyPaymentClick: () => Promise<void>;
160
355
  onProceedToPaymentClick: () => Promise<void>;
@@ -163,11 +358,18 @@ export default class CheckoutViewModel {
163
358
  onCompletePaymentClick: () => Promise<void>;
164
359
  onCompleteDigitalOnlyPaymentClick: () => Promise<void>;
165
360
  createSaleTransaction: () => Promise<void>;
361
+ /**
362
+ * Sends savedCardDetail instead of paymentMethodDetail (the backend rejects
363
+ * both together). 3D Secure is decided by the backend.
364
+ */
365
+ private createSaleTransactionWithSavedCard;
366
+ /** The card iframe adds the card and sends the sale itself. */
367
+ private createSaleTransactionWithSecureCard;
166
368
  onCheckoutTransactionSuccess: (checkoutId?: string) => Promise<void>;
167
369
  onBackToInfoClick: () => void;
168
370
  onBackToShippingClick: () => void;
169
371
  setCustomerConsentGranted: (value: boolean) => void;
170
- setUseDifferentAddress: (value: boolean) => void;
372
+ setUseDifferentAddress: (value: boolean, isShippingStep?: boolean) => void;
171
373
  setShouldSaveAddress: (value: boolean) => void;
172
374
  setAddressTitle: (value: string) => void;
173
375
  reInitPaymentMethod: () => Promise<void>;
@@ -175,7 +377,25 @@ export default class CheckoutViewModel {
175
377
  createKlarnaClientToken: (paymentGateway: IkasPaymentGateway) => Promise<void>;
176
378
  createAdyenBalancePlatformPaymentSession: (paymentGateway: IkasPaymentGateway) => Promise<void>;
177
379
  getPayPalClientId: (paymentGateway: IkasPaymentGateway) => Promise<void>;
380
+ hepsipayFrameInit: (paymentGateway: IkasPaymentGateway) => Promise<void>;
381
+ createIyzicoCheckoutForm: (paymentGateway: IkasPaymentGateway) => Promise<void>;
382
+ createTkPayCheckoutForm: (paymentGateway: IkasPaymentGateway) => Promise<void>;
383
+ createStripeExpressCheckoutSession: (paymentGateway: IkasPaymentGateway) => Promise<void>;
384
+ updateStripeExpressCheckoutSession: (params: {
385
+ address?: StripeExpressCheckoutAddressInput | null;
386
+ shippingSettingsId?: string | null;
387
+ shippingZoneRateId?: string | null;
388
+ }) => Promise<StripeExpressCheckoutSessionContextResponse | null>;
389
+ setShowIyzicoContainer: (value: boolean) => void;
390
+ /** Hosted TK Pay form reported success: freeze the form, then go to success. */
391
+ onTkPayPaymentSuccess: (postCallback: () => Promise<void>) => Promise<void>;
392
+ setShowTkPayContainer: (value: boolean) => void;
178
393
  setPaymentGateway: (index: number) => Promise<void>;
394
+ listSavedCards: (paymentGateway: IkasPaymentGateway) => Promise<void>;
395
+ /** null selects "pay with a new card". */
396
+ selectSavedCard: (id: string | null) => void;
397
+ onSavedCardCvvChange: (value: string) => void;
398
+ setStoreCard: (value: boolean) => void;
179
399
  updatePaymentGateway: (paymentGateway: IkasPaymentGateway) => Promise<boolean>;
180
400
  setInstallmentCount: (count: number) => void;
181
401
  changeStep: (step: CheckoutStep, checkoutId?: string) => Promise<void>;
@@ -186,6 +406,8 @@ export default class CheckoutViewModel {
186
406
  updateCartCampaignOffer: (input: UpdateCartCampaignOfferInput) => Promise<void>;
187
407
  registerCustomer: (password: string) => Promise<APIResponse<{
188
408
  customer: import("../../models").IkasCustomer | null;
409
+ flowId: string | null;
410
+ otpSend: boolean | null;
189
411
  token: string;
190
412
  tokenExpiry: number;
191
413
  } | null> | undefined>;