summaryrefslogtreecommitdiff
path: root/src/lib/checkout/api/getVoucher.js
blob: 57d8acf54ca72ac5609750facf227500f4473d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
import odooApi from '@/core/api/odooApi'

export  const getVoucher = async (id) => {
  const dataVoucher = await odooApi('GET', `/api/v1/user/${id}/voucher`)
  return dataVoucher
}

export const findVoucher = async (code, id) => {
  const dataVoucher = await odooApi('GET', `/api/v1/user/${id}/voucher?code=${code}`)
  return dataVoucher
}