mirror of
https://github.com/bitwarden/jslib
synced 2025-12-17 00:33:17 +00:00
Split jslib into multiple modules (#363)
* Split jslib into multiple modules
This commit is contained in:
23
common/src/models/api/cardApi.ts
Normal file
23
common/src/models/api/cardApi.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user