diff --git a/docs/Ptsv2paymentsTravelInformationTransitAirlineLegs.md b/docs/Ptsv2paymentsTravelInformationTransitAirlineLegs.md index 64355e11..cdcfa4d9 100644 --- a/docs/Ptsv2paymentsTravelInformationTransitAirlineLegs.md +++ b/docs/Ptsv2paymentsTravelInformationTransitAirlineLegs.md @@ -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] diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 8671afd9..7561c00a 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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" } diff --git a/src/main/java/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.java b/src/main/java/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.java index 6dfcda8b..b1439eea 100644 --- a/src/main/java/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.java +++ b/src/main/java/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.java @@ -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; @@ -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; } @@ -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; }