UNPKG

@votemike/property

Version:

Property class and related classes

15 lines (14 loc) 501 B
import { FeeInterface } from "./fee"; export interface PaymentInterface extends FeeInterface { interval: 'monthly' | 'yearly'; } export default class Payment implements PaymentInterface { amount: number; interval: 'monthly' | 'yearly'; constructor(amount: number, interval: 'monthly' | 'yearly'); get monthlyCost(): number; get yearlyCost(): number; calculateYearlyCost(): number; calculateMonthlyCost(): number; static fromJson(json: PaymentInterface): Payment; }