Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by locating the travel legs departureDate field and tracing how its value is serialized before the Cybersource API request. Reproduce the 2024-02-01 case and verify that the resulting value preserves the leading zero and is accepted in MMDDYY format; add or update coverage if the repository provides a relevant test location.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Java
Stars
29
Forks
50
Avg merge
28m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CyberSource/cybersource-rest-client-java

All issues in CyberSource/cybersource-rest-client-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.