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

Change field type for departureDate from integer to string #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Ptsv2paymentsTravelInformationTransitAirlineLegs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**originatingAirportCode** | **String** | IATA code for the originating airport for this leg of the trip. Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field for travel legs. | [optional]
**propertyClass** | **String** | IATA code for the class of service for this leg of the trip. Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field for travel legs. | [optional]
**stopoverIndicator** | **Integer** | Code that indicates whether a stopover is allowed on this leg of the trip. Possible values: - `O` (capital letter \"O\") (default): Stopover allowed - `X` (capital letter \"X\"): Stopover not allowed Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field for travel legs. | [optional]
**departureDate** | **Integer** | Departure date for the first leg of the trip. Format: `YYYYMMDD`. Format: English characters only. Optional request field for travel legs. | [optional]
**departureDate** | **String** | Departure date for the first leg of the trip. Format: `MMDDYY`. Format: English characters only. Optional request field for travel legs. | [optional]
**destinationAirportCode** | **String** | IATA code for the destination airport for this leg of the trip. Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field for travel legs. | [optional]
**fareBasis** | **String** | Code for the fare basis for this leg of the trip. The fare basis is assigned by the carriers and indicates a particular ticket type, such as business class or discounted/nonrefundable. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Format: English characters only. Optional request field for travel legs.auto_rental_regular_mileage_cost | [optional]
**departTaxAmount** | **String** | Amount of departure tax for this leg of the trip. | [optional]
Expand Down
24 changes: 12 additions & 12 deletions generator/cybersource-rest-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4583,9 +4583,9 @@
"description": "Code that indicates whether a stopover is allowed on this leg of the trip. Possible values:\n- `O` (capital letter \"O\") (default): Stopover allowed\n- `X` (capital letter \"X\"): Stopover not allowed\nFormat: English characters only.\nRestricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included.\nOptional request field for travel legs.\n"
},
"departureDate": {
"type": "integer",
"type": "string",
"maxLength": 8,
"description": "Departure date for the first leg of the trip.\nFormat: `YYYYMMDD`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
"description": "Departure date for the first leg of the trip.\nFormat: `MMDDYY`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
},
"destinationAirportCode": {
"type": "string",
Expand Down Expand Up @@ -14842,9 +14842,9 @@
"description": "Code that indicates whether a stopover is allowed on this leg of the trip. Possible values:\n- `O` (capital letter \"O\") (default): Stopover allowed\n- `X` (capital letter \"X\"): Stopover not allowed\nFormat: English characters only.\nRestricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included.\nOptional request field for travel legs.\n"
},
"departureDate": {
"type": "integer",
"type": "string",
"maxLength": 8,
"description": "Departure date for the first leg of the trip.\nFormat: `YYYYMMDD`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
"description": "Departure date for the first leg of the trip.\nFormat: `MMDDYY`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
},
"destinationAirportCode": {
"type": "string",
Expand Down Expand Up @@ -17661,9 +17661,9 @@
"description": "Code that indicates whether a stopover is allowed on this leg of the trip. Possible values:\n- `O` (capital letter \"O\") (default): Stopover allowed\n- `X` (capital letter \"X\"): Stopover not allowed\nFormat: English characters only.\nRestricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included.\nOptional request field for travel legs.\n"
},
"departureDate": {
"type": "integer",
"type": "string",
"maxLength": 8,
"description": "Departure date for the first leg of the trip.\nFormat: `YYYYMMDD`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
"description": "Departure date for the first leg of the trip.\nFormat: `MMDDYY`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
},
"destinationAirportCode": {
"type": "string",
Expand Down Expand Up @@ -20339,9 +20339,9 @@
"description": "Code that indicates whether a stopover is allowed on this leg of the trip. Possible values:\n- `O` (capital letter \"O\") (default): Stopover allowed\n- `X` (capital letter \"X\"): Stopover not allowed\nFormat: English characters only.\nRestricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included.\nOptional request field for travel legs.\n"
},
"departureDate": {
"type": "integer",
"type": "string",
"maxLength": 8,
"description": "Departure date for the first leg of the trip.\nFormat: `YYYYMMDD`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
"description": "Departure date for the first leg of the trip.\nFormat: `MMDDYY`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
},
"destinationAirportCode": {
"type": "string",
Expand Down Expand Up @@ -23289,9 +23289,9 @@
"description": "Code that indicates whether a stopover is allowed on this leg of the trip. Possible values:\n- `O` (capital letter \"O\") (default): Stopover allowed\n- `X` (capital letter \"X\"): Stopover not allowed\nFormat: English characters only.\nRestricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included.\nOptional request field for travel legs.\n"
},
"departureDate": {
"type": "integer",
"type": "string",
"maxLength": 8,
"description": "Departure date for the first leg of the trip.\nFormat: `YYYYMMDD`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
"description": "Departure date for the first leg of the trip.\nFormat: `MMDDYY`.\nFormat: English characters only.\nOptional request field for travel legs.\n"
},
"destinationAirportCode": {
"type": "string",
Expand Down Expand Up @@ -74226,13 +74226,13 @@
"legs": [
{
"carrierCode": "UA",
"departureDate": "2023-01-01",
"departureDate": "010123",
"destination": "DEFGH",
"origin": "LAX"
},
{
"carrierCode": "AS",
"departureDate": "2023-02-21",
"departureDate": "022123",
"destination": "RESD",
"origin": "ECF"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Ptsv2paymentsTravelInformationTransitAirlineLegs {
private Integer stopoverIndicator = null;

@SerializedName("departureDate")
private Integer departureDate = null;
private String departureDate = null;

@SerializedName("destinationAirportCode")
private String destinationAirportCode = null;
Expand Down Expand Up @@ -179,7 +179,7 @@ public void setStopoverIndicator(Integer stopoverIndicator) {
this.stopoverIndicator = stopoverIndicator;
}

public Ptsv2paymentsTravelInformationTransitAirlineLegs departureDate(Integer departureDate) {
public Ptsv2paymentsTravelInformationTransitAirlineLegs departureDate(String departureDate) {
this.departureDate = departureDate;
return this;
}
Expand All @@ -189,11 +189,11 @@ public Ptsv2paymentsTravelInformationTransitAirlineLegs departureDate(Integer de
* @return departureDate
**/
@ApiModelProperty(value = "Departure date for the first leg of the trip. Format: `YYYYMMDD`. Format: English characters only. Optional request field for travel legs. ")
public Integer getDepartureDate() {
public String getDepartureDate() {
return departureDate;
}

public void setDepartureDate(Integer departureDate) {
public void setDepartureDate(String departureDate) {
this.departureDate = departureDate;
}

Expand Down