mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
24 lines
660 B
TypeScript
24 lines
660 B
TypeScript
import { BaseResponse } from "../response/baseResponse";
|
|
|
|
export class CardApi extends BaseResponse {
|
|
cardholderName: string;
|
|
brand: string;
|
|
number: string;
|
|
expMonth: string;
|
|
expYear: string;
|
|
code: string;
|
|
|
|
constructor(data: any = null) {
|
|
super(data);
|
|
if (data == null) {
|
|
return;
|
|
}
|
|
this.cardholderName = this.getResponseProperty("CardholderName");
|
|
this.brand = this.getResponseProperty("Brand");
|
|
this.number = this.getResponseProperty("Number");
|
|
this.expMonth = this.getResponseProperty("ExpMonth");
|
|
this.expYear = this.getResponseProperty("ExpYear");
|
|
this.code = this.getResponseProperty("Code");
|
|
}
|
|
}
|