bam-ticketing-sdk
Version:
SDK for B.A.M Ticketing API
31 lines • 882 B
TypeScript
import { AxiosInstance } from 'axios';
import { HealthStatus, IdParam } from '../common/types';
import { Offer } from './types';
/**
* Service class for orderbook API calls. Requires an organizer to be set (call to `useOrganizer`)
*/
export declare class OrderbookService {
readonly client: AxiosInstance;
readonly version: string;
constructor(client: AxiosInstance, version: string);
/**
* Returns true if the service is reachable
* Currently the
*
* @returns Services' online status
*/
health(): Promise<HealthStatus>;
/**
* Returns all offers which belong to the current user
*
* @returns
*/
getMine(): Promise<Offer[]>;
/**
* Delete the given offer from the orderbook
*
* @param offerId
*/
deleteOffer(offerId: IdParam): Promise<void>;
}
//# sourceMappingURL=service.d.ts.map