zhengyiming
2025-02-21 39158852189d112dc7168fc5793faa09340f07b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { BlLifeRechargeServices } from './lifeRechargeServices';
import { IRequest, BlLifeRechargeOptions } from './types';
 
export class BlLifeRecharge<T extends IRequest> {
  services: BlLifeRechargeServices<T>;
 
  constructor(options: BlLifeRechargeOptions<T>) {
    this.services = new BlLifeRechargeServices(options);
  }
 
  getRechargeParValue(amount: number, rate: number) {
    return (amount * rate).toFixed(2);
  }
}