Giant Update
NPM Installation / build (16.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (16.x, windows-latest) (push) Waiting to run
NPM Installation / build (17.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (17.x, windows-latest) (push) Waiting to run
NPM Installation / build (18.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (18.x, windows-latest) (push) Waiting to run
NPM Installation / build (16.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (16.x, windows-latest) (push) Waiting to run
NPM Installation / build (17.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (17.x, windows-latest) (push) Waiting to run
NPM Installation / build (18.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (18.x, windows-latest) (push) Waiting to run
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import api from '@/api/axios'
|
||||
|
||||
export async function getBillingProfiles(params = {}) { return (await api.get('/billing/profiles', { params })).data }
|
||||
export async function getBillingProfile(id) { return (await api.get(`/billing/profiles/${id}`)).data }
|
||||
export async function createBillingProfile(payload) { return (await api.post('/billing/profiles', payload)).data }
|
||||
export async function updateBillingProfile(id, payload) { return (await api.put(`/billing/profiles/${id}`, payload)).data }
|
||||
export async function deleteBillingProfile(id) { return (await api.delete(`/billing/profiles/${id}`)).data }
|
||||
export async function getInvoices(scope, params = {}) { return (await api.get(`/billing/invoices/${scope}`, { params })).data }
|
||||
export async function getInvoice(scope, id) { return (await api.get(`/billing/invoices/${scope}/${id}`)).data }
|
||||
export async function getInvoiceOptions() { return (await api.get('/billing/invoice-options')).data }
|
||||
export async function createInvoice(payload) { return (await api.post('/billing/invoices', payload)).data }
|
||||
export async function updateInvoice(id, payload) { return (await api.put(`/billing/invoices/${id}`, payload)).data }
|
||||
export async function payInvoice(scope, id, payload) { return (await api.post(`/billing/invoices/${scope}/${id}/pay`, payload)).data }
|
||||
export async function cancelInvoice(id) { return (await api.post(`/billing/invoices/${id}/cancel`)).data }
|
||||
Reference in New Issue
Block a user