two-slot-extended-mags/types/helpers/PaymentHelper.d.ts

20 lines
668 B
TypeScript
Raw Normal View History

2024-04-03 20:15:11 +11:00
import { IInventoryConfig } from "@spt-aki/models/spt/config/IInventoryConfig";
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
2023-06-11 15:10:34 +10: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-04-03 20:15:11 +11:00
* Gets currency TPL from TAG
* @param {string} currency
* @returns string
*/
2023-06-11 15:10:34 +10:00
getCurrency(currency: string): string;
}