spookvooper-api/typings/modules/User.d.ts

26 lines
962 B
TypeScript
Raw Normal View History

2020-12-22 05:29:13 +00:00
import { CreditAmount, PaymentEntity } from './types/Types'
import { ConfigUser, ReturnedUser } from './interfaces/Interfaces'
2020-12-08 20:50:31 +00:00
declare class User {
2020-12-14 00:33:21 +00:00
private readonly accountid
private readonly authkey
constructor (config: ConfigUser);
getUser (): Promise<ReturnedUser>;
2020-12-14 00:33:21 +00:00
getUsername (): Promise<any>;
getBalance (): Promise<any>;
hasDiscordRole (role: string): Promise<any>;
getDiscordRoles (): Promise<any>;
getDaysSinceLastMove (): Promise<any>;
2020-12-14 00:33:21 +00:00
sendCredits (amount: CreditAmount, to: PaymentEntity, reason: string): Promise<any>;
2020-12-22 05:29:13 +00:00
getStockOffers (ticker: string): Promise<any>;
buyStock (ticker: string, amount: number, price: CreditAmount): Promise<any>;
sellStock (ticker: string, amount: number, price: CreditAmount): Promise<any>;
2020-12-14 00:33:21 +00:00
cancelOffer (orderid: number): Promise<any>;
2020-12-08 20:50:31 +00:00
get apikey (): string;
set apikey (apikey: string);
get svid (): string;
set svid (svid: string);
2020-12-22 05:29:13 +00:00
hasFossPp (): boolean;
2020-12-08 20:50:31 +00:00
}
export default User