From b33ece3a1ec7887ef96f0ff4a8fa97451f3240ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Ste=CC=A8pien=CC=81?= Date: Wed, 20 Sep 2023 00:03:07 +0200 Subject: [PATCH] checkout payload typing information --- .../core/checkout/request/checkCartStillOrderableRequest.js | 1 + .../theme/core/checkout/request/selectDeliveryMethodRequest.js | 1 + 2 files changed, 2 insertions(+) diff --git a/_dev/js/theme/core/checkout/request/checkCartStillOrderableRequest.js b/_dev/js/theme/core/checkout/request/checkCartStillOrderableRequest.js index 519df1a2..d81d4f2f 100644 --- a/_dev/js/theme/core/checkout/request/checkCartStillOrderableRequest.js +++ b/_dev/js/theme/core/checkout/request/checkCartStillOrderableRequest.js @@ -13,6 +13,7 @@ import useHttpRequest from '../../../components/http/useHttpRequest'; * @returns {{getRequest: (function(): Promise)}} */ const checkCartStillOrderableRequest = () => { + // payload not typed because it isn't needed const payload = { ajax: 1, action: 'checkCartStillOrderable', diff --git a/_dev/js/theme/core/checkout/request/selectDeliveryMethodRequest.js b/_dev/js/theme/core/checkout/request/selectDeliveryMethodRequest.js index f5707e04..6d015fd1 100644 --- a/_dev/js/theme/core/checkout/request/selectDeliveryMethodRequest.js +++ b/_dev/js/theme/core/checkout/request/selectDeliveryMethodRequest.js @@ -32,6 +32,7 @@ import useHttpRequest from '../../../components/http/useHttpRequest'; const selectDeliveryMethodRequest = (url, payload) => { const { request } = useHttpRequest(url); + // payload not typed because delivery option parameter is dynamic const payloadToSend = { ajax: 1, action: 'selectDeliveryOption',