ClearVision/types/helpers/PaymentHelper.d.ts

20 lines
652 B
TypeScript
Raw Normal View History

2023-05-18 15:57:25 -04:00
import { IInventoryConfig } from "../models/spt/config/IInventoryConfig";
import { ConfigServer } from "../servers/ConfigServer";
2022-07-09 16:03:26 -04:00
export declare class PaymentHelper {
2023-05-18 15:57:25 -04:00
protected configServer: ConfigServer;
protected inventoryConfig: IInventoryConfig;
constructor(configServer: ConfigServer);
2022-07-09 16:03:26 -04:00
/**
2023-05-18 15:57:25 -04:00
* Is the passed in tpl money (also checks custom currencies in inventoryConfig.customMoneyTpls)
2022-07-09 16:03:26 -04:00
* @param {string} tpl
* @returns void
*/
isMoneyTpl(tpl: string): boolean;
/**
* Gets currency TPL from TAG
* @param {string} currency
* @returns string
*/
getCurrency(currency: string): string;
}