mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
[SM-288] Rename requests and responses to follow naming convention (#3806)
This commit is contained in:
14
libs/common/src/models/response/billing-payment.response.ts
Normal file
14
libs/common/src/models/response/billing-payment.response.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user