import DeviceInfo from '../definitions/DeviceInfo'; import PathSegment from '../PathSegment'; export default class Order extends PathSegment { constructor(prv: PathSegment, id?: string, service?: any); /** * Create New Order */ post(body: PostBody): Promise; /** * Get Order by ID */ get(): Promise; } export interface PostBody { /** * List of devices to order */ devices?: DeviceInfo[]; } export interface PostResponse { /** * List of the ordered devices */ devices?: DeviceInfo[]; } export interface GetResponse { /** * Identifier of a device */ id?: string; /** * Canonical URI of an order resource */ uri?: string; /** * List of the ordered devices */ devices?: DeviceInfo[]; }