ScavXpCounts/types/helpers/PaymentHelper.d.ts

20 lines
660 B
TypeScript
Raw Normal View History

2024-11-12 11:51:30 -07:00
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
import { ConfigServer } from "@spt/servers/ConfigServer";
2023-08-17 19:49:16 -06:00
export declare class PaymentHelper {
protected configServer: ConfigServer;
protected inventoryConfig: IInventoryConfig;
constructor(configServer: ConfigServer);
/**
* Is the passed in tpl money (also checks custom currencies in inventoryConfig.customMoneyTpls)
* @param {string} tpl
* @returns void
*/
isMoneyTpl(tpl: string): boolean;
/**
2024-02-23 15:06:00 -07:00
* Gets currency TPL from TAG
* @param {string} currency
* @returns string
*/
2023-08-17 19:49:16 -06:00
getCurrency(currency: string): string;
}