import { InstanceOptions , RequestTracingConfig } from '../../HttpClient' ; import { IOContext } from '../../service/worker/runtime/typings' ; import { AppClient } from './AppClient' ; export class Billing extends AppClient { constructor ( context , options ? ) { super ( 'vtex.billing@0.x' , context , options ) ; } public status = ( tracingConfig ? ) => this . http . get < ContractStatus > ( '/_v/contractStatus' , { tracing : { requestSpanNameSuffix : 'billing-status' , ... tracingConfig ?. tracing , } , } ) ; } export enum ContractStatus { ACTIVE = 'active_contract' , INACTIVE = 'inactive_contract' , NO_CONTRACT = 'no_contract' }