diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-17 16:58:42 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-17 16:58:42 +0700 |
| commit | e76d537689d08fb4c15d482ffa996b8012dbc941 (patch) | |
| tree | 17267b16ba50c89d55c29ea8c962312c05bdcb70 /src/lib/checkout/api | |
| parent | 581334e8d077916c3a9ab87fd5b6e6b5126aba12 (diff) | |
| parent | e39d3b0082e83ad08044918f0b6d8e977223100d (diff) | |
Merge branch 'Feature/voucher' into Feature/promotion_programvaoucher
# Conflicts:
# src/lib/cart/components/Cart.jsx
# src/lib/checkout/components/Checkout.jsx
# src/lib/product/components/Product/Product.jsx
# src/lib/product/components/Product/ProductDesktop.jsx
# src/lib/product/components/Product/ProductMobile.jsx
Diffstat (limited to 'src/lib/checkout/api')
| -rw-r--r-- | src/lib/checkout/api/getVoucher.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/checkout/api/getVoucher.js b/src/lib/checkout/api/getVoucher.js new file mode 100644 index 00000000..03ac3d6d --- /dev/null +++ b/src/lib/checkout/api/getVoucher.js @@ -0,0 +1,11 @@ +import odooApi from '@/core/api/odooApi' + +export const getVoucher = async () => { + const dataVoucher = await odooApi('GET', `/api/v1/voucher`) + return dataVoucher +} + +export const findVoucher = async (code) => { + const dataVoucher = await odooApi('GET', `/api/v1/voucher?code=${code}`) + return dataVoucher +} |
