import { BaseResponse } from "./base.response"; import { BillingSourceResponse } from "./billing.response"; export class BillingPaymentResponse extends BaseResponse { balance: number; paymentSource: BillingSourceResponse; constructor(response: any) { super(response); this.balance = this.getResponseProperty("Balance"); const paymentSource = this.getResponseProperty("PaymentSource"); this.paymentSource = paymentSource == null ? null : new BillingSourceResponse(paymentSource); } }