zhengyiming
2025-02-21 aab27de6eee48382c6add3e9ca15023365842f16
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);
  }
}