diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 14:00:00 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 14:00:00 +0700 |
| commit | 7265295454801c1d921385a4b67fb3780b46771e (patch) | |
| tree | a45e7c0add3641d6a234c3b610adc72a08631616 /src/lib/checkout/api | |
| parent | 757b69f4d814ec4890c209f7a9fdf3d9940157d9 (diff) | |
fix
Diffstat (limited to 'src/lib/checkout/api')
| -rw-r--r-- | src/lib/checkout/api/checkoutApi.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/checkout/api/checkoutApi.js b/src/lib/checkout/api/checkoutApi.js new file mode 100644 index 00000000..b76c9b7f --- /dev/null +++ b/src/lib/checkout/api/checkoutApi.js @@ -0,0 +1,14 @@ +import odooApi from '@/core/api/odooApi' +import { getAuth } from '@/core/utils/auth' + +const checkoutApi = async ({ data }) => { + const auth = getAuth() + const dataCheckout = await odooApi( + 'POST', + `/api/v1/partner/${auth.partnerId}/sale_order/checkout`, + data + ) + return dataCheckout +} + +export default checkoutApi |
