Methods
calCU
- calCU(options: CUModel): Promise<number>
Parameters
Returns Promise<number>
calSU
- calSU(options: SUModel): Promise<number>
Parameters
Returns Promise<number>
calculate
- calculate(options: CalculatorModel): Promise<{ dedicatedPackage: string; dedicatedPrice: number; sharedPackage: string; sharedPrice: number }>
Parameters
Returns Promise<{ dedicatedPackage: string; dedicatedPrice: number; sharedPackage: string; sharedPrice: number }>
calculateWithMyBalance
- calculateWithMyBalance(options: CalculatorModel): Promise<{ dedicatedPackage: string; dedicatedPrice: number; sharedPackage: string; sharedPrice: number }>
Parameters
Returns Promise<{ dedicatedPackage: string; dedicatedPrice: number; sharedPackage: string; sharedPrice: number }>
getPrices
- getPrices(): Promise<PricingPolicy>
Returns Promise<PricingPolicy>
Private pricing
- pricing(options: CalculatorModel): Promise<{ dedicatedDiscount: number; musd_month: number }>
Parameters
Returns Promise<{ dedicatedDiscount: number; musd_month: number }>
tftPrice
- tftPrice(): Promise<number>