CyberSource / CyberSource/cybersource-rest-client-java

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

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

Nobody has claimed this yet.

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

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.

Contributor guide

No contributing guide indexed for this repository

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.