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

Travel legs departureDate incorrect field type (integer -> string) #178

Open
moodypalmer opened this issue Feb 25, 2025 · 0 comments
Open

Comments

@moodypalmer
Copy link

moodypalmer commented Feb 25, 2025

The travel legs departureDate field is stored as an integer while expecting a format of MMDDYY on Cybersource backend site.

This results in bad requests for departureDates starting with a month below 10, e.g.:

Date 2024-02-01 (YYYY-MM-DD) results to integer 20124 instead of 020124.

Sending the resulting departureDate to the CyS API returns a validation error saying that the field should be in MMDDYY format.

Supported format for this field is MMDDYY.: departure_date

PR following.

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