Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong expiry_month and expiry_year types #24

Open
dani-z opened this issue Mar 9, 2023 · 0 comments
Open

Wrong expiry_month and expiry_year types #24

dani-z opened this issue Mar 9, 2023 · 0 comments

Comments

@dani-z
Copy link
Contributor

dani-z commented Mar 9, 2023

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant