eyes-of-a-trader/types/helpers/PaymentHelper.d.ts

20 lines
652 B
TypeScript
Raw Normal View History

2023-10-09 20:08:53 +11:00
import { IInventoryConfig } from "../models/spt/config/IInventoryConfig";
import { ConfigServer } from "../servers/ConfigServer";
2023-01-15 09:44:31 +11:00
export declare class PaymentHelper {
2023-10-09 20:08:53 +11:00
protected configServer: ConfigServer;
protected inventoryConfig: IInventoryConfig;
constructor(configServer: ConfigServer);
2023-01-15 09:44:31 +11:00
/**
2023-10-09 20:08:53 +11:00
* Is the passed in tpl money (also checks custom currencies in inventoryConfig.customMoneyTpls)
2023-01-15 09:44:31 +11:00
* @param {string} tpl
* @returns void
*/
isMoneyTpl(tpl: string): boolean;
/**
* Gets currency TPL from TAG
* @param {string} currency
* @returns string
*/
getCurrency(currency: string): string;
}