frames-react-native
frames-react-native copied to clipboard
Wrong expiry_month and expiry_year types
Hi,
It seems expiry_month
and expiry_year
use string types, but the response is a number for both of them.
export interface FrameCardTokenizedEvent {
type: string;
token: string;
expires_on: string;
expiry_month: number;
expiry_year: number;
scheme?: Scheme;
last4: string;
bin: string;
card_type?: CardType;
card_category?: CardCategory;
issuer?: string;
issuer_country?: string;
product_id?: string;
product_type?: string;
billing_address?: GatewayBillingAddress;
phone?: GatewayPhone;
name?: string;
}
"bin": "409525",
"card_category": "CONSUMER",
"card_type": "DEBIT",
"expires_on": "2023-03-09T14:24:47.9778289Z",
"expiry_month": 3,
"expiry_year": 2032,
"issuer": "OSWEGO COUNTY FEDERAL CREDIT UNION",
"issuer_country": "US",
"last4": "2505",
"name": "DZ",
"product_id": "F",
"product_type": "Visa Classic",
"scheme": "VISA",
"token": "tok_rsczwffdeiqeflookmpdxissxy",
"type": "card"
}