UNPKG

wk-nmi

Version:

This is a simple utility package

53 lines (52 loc) 1.28 kB
import type { AddBilling, ChangePriority } from "../types/billing"; export declare class Billing { url: string; org: string; apikey: string; constructor(url: string, org: string, apikey: string); add(body: AddBilling): Promise<{ response: null; status: number; message: string; } | { response: any; status: number; message?: undefined; }>; updateBillingInfo(body: AddBilling): Promise<{ response: null; status: number; message: string; } | { response: any; status: number; message?: undefined; }>; delete(userId: string, billingId: string): Promise<{ response: null; status: number; message: string; } | { response: any; status: number; message?: undefined; }>; changePriority(body: ChangePriority): Promise<{ response: null; status: number; message: string; } | { response: any; status: number; message?: undefined; }>; info(userId: string): Promise<{ response: null; status: number; message: string; } | { response: any; status: number; message?: undefined; }>; }