Skip to content

Commit a7e25aa

Browse files
committed
update specs.yaml schema for 5.4.1
1 parent 3b9a899 commit a7e25aa

File tree

9 files changed

+397
-225
lines changed

9 files changed

+397
-225
lines changed

code/src/main/kotlin/com/expediagroup/sdk/rapid/client/RapidClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ class RapidClient private constructor(clientConfiguration: RapidClientConfigurat
11771177
* @param amenityCategory Single amenity category. Send multiple instances of this parameter to request rates that match multiple amenity categories.<br> See the Amenity Categories section of the [Content Reference Lists](https://developers.expediagroup.com/docs/rapid/lodging/content/content-reference-lists) for a list of values. (optional)
11781178
* @param exclusion Single exclusion type. Send multiple instances of this parameter to request multiple exclusions.<br> * `refundable_damage_deposit` - Excludes Rapid supplied Vrbo rates with refundable damage deposits from the response. * `card_on_file` - Excludes Rapid supplied Vrbo rates with card-on-file damage collection from the response. (optional)
11791179
* @param filter Single filter type. Send multiple instances of this parameter to request multiple filters.<br> * `refundable` - Filters results to only show fully refundable rates. * `expedia_collect` - Filters results to only show rates where payment is collected by Expedia at the time of booking. These properties can be eligible for payments via Expedia Affiliate Collect(EAC). * `property_collect` - Filters results to only show rates where payment is collected by the property after booking. This can include rates that require a deposit by the property, dependent upon the deposit policies. * `loyalty` - Filters results to only show rates that are eligible for loyalty points. * `deal` - Filters results to only show rates that have a promotion that is of the type deal. (optional)
1180-
* @param include Modify the response by including types of responses that are not provided by default.<br> * `unavailable_reason` - When a property is unavailable for an actionable reason, return a response with that reason - See [Unavailable Reason Codes](https://developers.expediagroup.com/docs/rapid/resources/reference/unavailable-reason-codes) for possible values. * `sale_scenario.mobile_promotion` - Enable the `mobile_promotion` flag under the `room.rate.sale_scenario` section of the response. * `rooms.rates.marketing_fee_incentives` - When a rate has a marketing fee incentive applied, the response will include the `marketing_fee_incentives` array if this flag is provided in the request. * `rooms.rates.current_refundability` - Displays the current `refundability` of a rate. * `rooms.rates.marketing_fee_details` - Displays a more granular view of marketing fees in the response. (optional)
1180+
* @param include Modify the response by including types of responses that are not provided by default.<br> * `unavailable_reason` - When a property is unavailable for an actionable reason, return a response with that reason - See [Unavailable Reason Codes](https://developers.expediagroup.com/docs/rapid/resources/reference/unavailable-reason-codes) for possible values. * `sale_scenario.mobile_promotion` - Enable the `mobile_promotion` flag under the `room.rate.sale_scenario` section of the response. * `rooms.rates.marketing_fee_incentives` - When a rate has a marketing fee incentive applied, the response will include the `marketing_fee_incentives` array if this flag is provided in the request. * `rooms.rates.current_refundability` - Displays the current `refundability` of a rate. * `rooms.rates.holdable` - Enables the `holdable` flag on the response to indicate whether the rate supports [Booking Hold and Resume](https://developers.expediagroup.com/docs/products/rapid/lodging/booking/hold-resume). * `rooms.rates.marketing_fee_details` - Displays a more granular view of marketing fees in the response. (optional)
11811181
* @param rateOption Request specific rate options for each property. Send multiple instances of this parameter to request multiple rate options. Accepted values:<br> * `member` - Return member rates for each property. This feature must be enabled and requires a user to be logged in to request these rates. * `net_rates` - Return net rates for each property. This feature must be enabled to request these rates. * `cross_sell` - Identify if the traffic is coming from a cross sell booking. Where the traveler has booked another service (flight, car, activities...) before hotel. (optional)
11821182
* @param travelPurpose This parameter is to specify the travel purpose of the booking. This may impact available rate plans, pricing, or tax calculations. * `leisure` * `business` (optional)
11831183
* @param billingTerms This parameter is to specify the terms of how a resulting booking should be billed. If this field is needed, the value for this will be provided to you separately. (optional)
@@ -1293,7 +1293,7 @@ class RapidClient private constructor(clientConfiguration: RapidClientConfigurat
12931293
* @param amenityCategory Single amenity category. Send multiple instances of this parameter to request rates that match multiple amenity categories.<br> See the Amenity Categories section of the [Content Reference Lists](https://developers.expediagroup.com/docs/rapid/lodging/content/content-reference-lists) for a list of values. (optional)
12941294
* @param exclusion Single exclusion type. Send multiple instances of this parameter to request multiple exclusions.<br> * `refundable_damage_deposit` - Excludes Rapid supplied Vrbo rates with refundable damage deposits from the response. * `card_on_file` - Excludes Rapid supplied Vrbo rates with card-on-file damage collection from the response. (optional)
12951295
* @param filter Single filter type. Send multiple instances of this parameter to request multiple filters.<br> * `refundable` - Filters results to only show fully refundable rates. * `expedia_collect` - Filters results to only show rates where payment is collected by Expedia at the time of booking. These properties can be eligible for payments via Expedia Affiliate Collect(EAC). * `property_collect` - Filters results to only show rates where payment is collected by the property after booking. This can include rates that require a deposit by the property, dependent upon the deposit policies. * `loyalty` - Filters results to only show rates that are eligible for loyalty points. * `deal` - Filters results to only show rates that have a promotion that is of the type deal. (optional)
1296-
* @param include Modify the response by including types of responses that are not provided by default.<br> * `unavailable_reason` - When a property is unavailable for an actionable reason, return a response with that reason - See [Unavailable Reason Codes](https://developers.expediagroup.com/docs/rapid/resources/reference/unavailable-reason-codes) for possible values. * `sale_scenario.mobile_promotion` - Enable the `mobile_promotion` flag under the `room.rate.sale_scenario` section of the response. * `rooms.rates.marketing_fee_incentives` - When a rate has a marketing fee incentive applied, the response will include the `marketing_fee_incentives` array if this flag is provided in the request. * `rooms.rates.current_refundability` - Displays the current `refundability` of a rate. * `rooms.rates.marketing_fee_details` - Displays a more granular view of marketing fees in the response. (optional)
1296+
* @param include Modify the response by including types of responses that are not provided by default.<br> * `unavailable_reason` - When a property is unavailable for an actionable reason, return a response with that reason - See [Unavailable Reason Codes](https://developers.expediagroup.com/docs/rapid/resources/reference/unavailable-reason-codes) for possible values. * `sale_scenario.mobile_promotion` - Enable the `mobile_promotion` flag under the `room.rate.sale_scenario` section of the response. * `rooms.rates.marketing_fee_incentives` - When a rate has a marketing fee incentive applied, the response will include the `marketing_fee_incentives` array if this flag is provided in the request. * `rooms.rates.current_refundability` - Displays the current `refundability` of a rate. * `rooms.rates.holdable` - Enables the `holdable` flag on the response to indicate whether the rate supports [Booking Hold and Resume](https://developers.expediagroup.com/docs/products/rapid/lodging/booking/hold-resume). * `rooms.rates.marketing_fee_details` - Displays a more granular view of marketing fees in the response. (optional)
12971297
* @param rateOption Request specific rate options for each property. Send multiple instances of this parameter to request multiple rate options. Accepted values:<br> * `member` - Return member rates for each property. This feature must be enabled and requires a user to be logged in to request these rates. * `net_rates` - Return net rates for each property. This feature must be enabled to request these rates. * `cross_sell` - Identify if the traffic is coming from a cross sell booking. Where the traveler has booked another service (flight, car, activities...) before hotel. (optional)
12981298
* @param travelPurpose This parameter is to specify the travel purpose of the booking. This may impact available rate plans, pricing, or tax calculations. * `leisure` * `business` (optional)
12991299
* @param billingTerms This parameter is to specify the terms of how a resulting booking should be billed. If this field is needed, the value for this will be provided to you separately. (optional)

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/ChangeRoomDetailsRequest.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
package com.expediagroup.sdk.rapid.models
3232

3333
import com.expediagroup.sdk.core.model.exception.client.PropertyConstraintViolationException
34+
import com.expediagroup.sdk.rapid.models.ChangeRoomDetailsRequestSensitiveTravelerDetails
3435
import com.expediagroup.sdk.rapid.models.Loyalty
3536
import com.fasterxml.jackson.annotation.JsonProperty
3637
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
@@ -41,6 +42,7 @@ import javax.validation.Validation
4142
*
4243
* @param givenName First name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
4344
* @param familyName Last name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
45+
* @param sensitiveTravelerDetails
4446
* @param smoking Specify if the guest would prefer a smoking room. This field is only a request and the property is not guaranteed to honor it, it will not override any non-smoking policies by the hotel.
4547
* @param specialRequest Special requests to send to hotel (not guaranteed). Do not use this field to communicate B2B customer service requests or pass any sensitive personal or financial information (PII). Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
4648
* @param loyaltyId Deprecated. Please use the loyalty id inside the loyalty object.
@@ -55,6 +57,9 @@ data class ChangeRoomDetailsRequest(
5557
@JsonProperty("family_name")
5658
@field:Valid
5759
val familyName: kotlin.String? = null,
60+
@JsonProperty("sensitive_traveler_details")
61+
@field:Valid
62+
val sensitiveTravelerDetails: ChangeRoomDetailsRequestSensitiveTravelerDetails? = null,
5863
// Specify if the guest would prefer a smoking room. This field is only a request and the property is not guaranteed to honor it, it will not override any non-smoking policies by the hotel.
5964
@JsonProperty("smoking")
6065
@field:Valid
@@ -80,6 +85,7 @@ data class ChangeRoomDetailsRequest(
8085
class Builder(
8186
private var givenName: kotlin.String? = null,
8287
private var familyName: kotlin.String? = null,
88+
private var sensitiveTravelerDetails: ChangeRoomDetailsRequestSensitiveTravelerDetails? = null,
8389
private var smoking: kotlin.Boolean? = null,
8490
private var specialRequest: kotlin.String? = null,
8591
private var loyaltyId: kotlin.String? = null,
@@ -89,6 +95,8 @@ data class ChangeRoomDetailsRequest(
8995

9096
fun familyName(familyName: kotlin.String?) = apply { this.familyName = familyName }
9197

98+
fun sensitiveTravelerDetails(sensitiveTravelerDetails: ChangeRoomDetailsRequestSensitiveTravelerDetails?) = apply { this.sensitiveTravelerDetails = sensitiveTravelerDetails }
99+
92100
fun smoking(smoking: kotlin.Boolean?) = apply { this.smoking = smoking }
93101

94102
fun specialRequest(specialRequest: kotlin.String?) = apply { this.specialRequest = specialRequest }
@@ -102,6 +110,7 @@ data class ChangeRoomDetailsRequest(
102110
ChangeRoomDetailsRequest(
103111
givenName = givenName,
104112
familyName = familyName,
113+
sensitiveTravelerDetails = sensitiveTravelerDetails,
105114
smoking = smoking,
106115
specialRequest = specialRequest,
107116
loyaltyId = loyaltyId,
@@ -136,6 +145,7 @@ data class ChangeRoomDetailsRequest(
136145
Builder(
137146
givenName = givenName,
138147
familyName = familyName,
148+
sensitiveTravelerDetails = sensitiveTravelerDetails,
139149
smoking = smoking,
140150
specialRequest = specialRequest,
141151
loyaltyId = loyaltyId,

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/CreateItineraryRequestRoom.kt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
package com.expediagroup.sdk.rapid.models
3232

3333
import com.expediagroup.sdk.core.model.exception.client.PropertyConstraintViolationException
34+
import com.expediagroup.sdk.rapid.models.CreateItineraryRequestRoomSensitiveTravelerDetails
3435
import com.expediagroup.sdk.rapid.models.Loyalty
3536
import com.fasterxml.jackson.annotation.JsonProperty
3637
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
@@ -40,24 +41,28 @@ import javax.validation.constraints.NotNull
4041

4142
/**
4243
*
43-
* @param givenName First name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
44-
* @param familyName Last name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
44+
* @param givenName Given name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
45+
* @param familyName Family name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
46+
* @param sensitiveTravelerDetails
4547
* @param smoking Specify if the guest would prefer a smoking room. This field is only a request and the property is not guaranteed to honor it, it will not override any non-smoking policies by the hotel.
4648
* @param specialRequest Special requests to send to hotel (not guaranteed). Do not use this field to communicate B2B customer service requests or pass any sensitive personal or financial information (PII). Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
4749
* @param loyaltyId Deprecated. Please use the loyalty id inside the loyalty object.
4850
* @param loyalty
4951
*/
5052
data class CreateItineraryRequestRoom(
51-
// First name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
53+
// Given name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
5254
@JsonProperty("given_name")
5355
@field:NotNull
5456
@field:Valid
5557
val givenName: kotlin.String,
56-
// Last name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
58+
// Family name of room guest. Max 60 characters. Special characters (\"<\", \">\", \"(\", \")\", and \"&\") entered in this field will be re-encoded.
5759
@JsonProperty("family_name")
5860
@field:NotNull
5961
@field:Valid
6062
val familyName: kotlin.String,
63+
@JsonProperty("sensitive_traveler_details")
64+
@field:Valid
65+
val sensitiveTravelerDetails: CreateItineraryRequestRoomSensitiveTravelerDetails? = null,
6166
// Specify if the guest would prefer a smoking room. This field is only a request and the property is not guaranteed to honor it, it will not override any non-smoking policies by the hotel.
6267
@JsonProperty("smoking")
6368
@field:Valid
@@ -83,6 +88,7 @@ data class CreateItineraryRequestRoom(
8388
class Builder(
8489
private var givenName: kotlin.String? = null,
8590
private var familyName: kotlin.String? = null,
91+
private var sensitiveTravelerDetails: CreateItineraryRequestRoomSensitiveTravelerDetails? = null,
8692
private var smoking: kotlin.Boolean? = null,
8793
private var specialRequest: kotlin.String? = null,
8894
private var loyaltyId: kotlin.String? = null,
@@ -92,6 +98,8 @@ data class CreateItineraryRequestRoom(
9298

9399
fun familyName(familyName: kotlin.String) = apply { this.familyName = familyName }
94100

101+
fun sensitiveTravelerDetails(sensitiveTravelerDetails: CreateItineraryRequestRoomSensitiveTravelerDetails?) = apply { this.sensitiveTravelerDetails = sensitiveTravelerDetails }
102+
95103
fun smoking(smoking: kotlin.Boolean?) = apply { this.smoking = smoking }
96104

97105
fun specialRequest(specialRequest: kotlin.String?) = apply { this.specialRequest = specialRequest }
@@ -105,6 +113,7 @@ data class CreateItineraryRequestRoom(
105113
CreateItineraryRequestRoom(
106114
givenName = givenName!!,
107115
familyName = familyName!!,
116+
sensitiveTravelerDetails = sensitiveTravelerDetails,
108117
smoking = smoking,
109118
specialRequest = specialRequest,
110119
loyaltyId = loyaltyId,
@@ -139,6 +148,7 @@ data class CreateItineraryRequestRoom(
139148
Builder(
140149
givenName = givenName!!,
141150
familyName = familyName!!,
151+
sensitiveTravelerDetails = sensitiveTravelerDetails,
142152
smoking = smoking,
143153
specialRequest = specialRequest,
144154
loyaltyId = loyaltyId,

0 commit comments

Comments
 (0)