UNPKG

@altravia/openapi

Version:
44 lines 1.54 kB
import { AxiosInstance } from "axios"; import { Environment, Service } from ".."; export interface Marca { id_marca?: string; type?: string; qty_marca?: string; username?: string; password?: string; id_entita?: string; timestamp_acquisto?: string; } export interface newMarca { id_marca: string; username: string; password: string; } export declare class MarcheTemporali implements Service { client: AxiosInstance; readonly service = "marcheTemporali"; readonly baseUrl = "ws.marchetemporali.com"; environment: Environment; constructor(client: AxiosInstance, environment: Environment); listMarche(): Promise<Array<Marca>>; purchase(type: 'infocert' | 'aruba', quantity: number): Promise<newMarca>; /** * Controlla se una quantità minima di marche è diponibile */ checkAvailability(type: 'infocert' | 'aruba', amount: number): Promise<number>; /** * Controlla se una quantità minima di marche è diponibile */ checkLotto(username: string, password: string): Promise<{ available: number; used: number; }>; /** * Controlla se una quantità minima di marche è diponibile, ritorna un booleano */ isAvailable(type: 'infocert' | 'aruba', amount: number): Promise<boolean>; mark(username: string, password: string, file: string, type: 'infocert' | 'aruba', mime?: boolean): Promise<any>; analyze(file: string): Promise<any>; get url(): string; } //# sourceMappingURL=MarcheTemporali.d.ts.map