UNPKG

@readium/shared

Version:

Shared models to be used across other Readium projects and implementations in Typescript

27 lines (26 loc) 833 B
/** * OPDS Acquisition Object. * * https://drafts.opds.io/schema/acquisition-object.schema.json */ export declare class Acquisition { /** Currency for the price, eg. EUR. */ type: string; /** Price value, should only be used for display purposes, because of precision issues * inherent with Double and the JSON parsing. */ children?: Array<Acquisition>; /** Creates a [Acquisition]. */ constructor(values: { type: string; children?: Array<Acquisition>; }); /** * Parses a [Acquisition] from its RWPM JSON representation. */ static deserialize(json: any): Acquisition | undefined; static deserializeArray(json: any): Array<Acquisition> | undefined; /** * Serializes a [Acquisition] to its RWPM JSON representation. */ serialize(): any; }