mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
235 stars 63 forks source link

`cardExpiryDate` !== `cardExpireDate` #304

Closed ghost closed 3 months ago

ghost commented 1 year ago

Hi there!

I found a problem in the typing of MandateDetailsCreditCard:

export interface MandateDetailsCreditCard {
    cardHolder: string;
    cardNumber: string;
    cardLabel: Nullable<CardLabel>;
    cardFingerprint: string;
    cardExpireDate: string;
}

The API returns cardExpiryDate instead of cardExpireDate as per https://docs.mollie.com/reference/v2/mandates-api/get-mandate.