UNPKG

@experteam-mx/ngx-services

Version:

Angular common services for Experteam apps

22 lines (21 loc) 597 B
import { Observable } from 'rxjs'; export interface ApiBillingConfigurable { getConfigs(): Observable<BillingConfigsOut>; getConfig(id: number): Observable<BillingConfigOut>; postConfigs(body: BillingConfigIn): Observable<BillingConfigOut>; } export type BillingConfig = { label: string; field: string; is_required: boolean; }; export type BillingConfigsOut = { configurations: BillingConfig[]; total: number; }; export type BillingConfigIn = { [key: string]: string | number; }; export type BillingConfigOut = { [key: string]: [key: string | number][]; };