Skip to content

Commit 15d44d1

Browse files
committed
update schema for 5.4.1
1 parent 9e25770 commit 15d44d1

File tree

9 files changed

+83
-51
lines changed

9 files changed

+83
-51
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ class RapidClient private constructor(clientConfiguration: RapidClientConfigurat
17051705
* @param bookableStart Search for all campaigns with a `bookable_start` date equal to or after the specified date. (optional)
17061706
* @param lifetime Search for campaigns that match the lifetime type. (optional)
17071707
* @param campaignId Search for campaigns with matching `id` values. You can provide 0 to 250 `id` parameters with different values, which will include campaigns that match any of the requested values. (optional)
1708-
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
1708+
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
17091709
* @param minDiscount Search for campaigns that have a `min_discount` equal to or larger than the value. (optional)
17101710
* @param stayEnd Search for all campaigns with a `stay_end` date equal to or before the specified date. (optional)
17111711
* @param stayStart Search for all campaigns with a `stay_start` date equal to or after the specified date. (optional)
@@ -1788,7 +1788,7 @@ class RapidClient private constructor(clientConfiguration: RapidClientConfigurat
17881788
* @param bookableStart Search for all campaigns with a `bookable_start` date equal to or after the specified date. (optional)
17891789
* @param lifetime Search for campaigns that match the lifetime type. (optional)
17901790
* @param campaignId Search for campaigns with matching `id` values. You can provide 0 to 250 `id` parameters with different values, which will include campaigns that match any of the requested values. (optional)
1791-
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
1791+
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
17921792
* @param minDiscount Search for campaigns that have a `min_discount` equal to or larger than the value. (optional)
17931793
* @param stayEnd Search for all campaigns with a `stay_end` date equal to or before the specified date. (optional)
17941794
* @param stayStart Search for all campaigns with a `stay_start` date equal to or after the specified date. (optional)
@@ -3267,7 +3267,7 @@ class RapidClient private constructor(clientConfiguration: RapidClientConfigurat
32673267
* @param chainId Search for promotions associated with the specified `chain_id` values. This parameter can be supplied multiple times with different values, which will include promotions that match any of the requested scenarios. (optional)
32683268
* @param lifetime Search for promotions that match the lifetime type. (optional)
32693269
* @param promotionId Search for promotions with matching `id` values. You can provide 0 to 250 `id` parameters with different values, which will include promotions that match any of the requested values. (optional)
3270-
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
3270+
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
32713271
* @param marketRegion Search for promotions associated with the specified `market_region` values. This parameter can be supplied multiple times with different values, which will include promotions that match any of the requested scenarios. (optional)
32723272
* @param membersOnly Specify restrictions to `members_only` values. If this parameter is not supplied, promotions with true or false will be returned in the results. * `true` - Only results with `members_only` equal to true will be returned. * `false` - Only results with `members_only` equal to false will be returned. (optional)
32733273
* @param minAdvancePurchaseDays Search for promotions that have a `min_advance_purchase_days` equal to the passed in value. (optional)
@@ -3425,7 +3425,7 @@ class RapidClient private constructor(clientConfiguration: RapidClientConfigurat
34253425
* @param chainId Search for promotions associated with the specified `chain_id` values. This parameter can be supplied multiple times with different values, which will include promotions that match any of the requested scenarios. (optional)
34263426
* @param lifetime Search for promotions that match the lifetime type. (optional)
34273427
* @param promotionId Search for promotions with matching `id` values. You can provide 0 to 250 `id` parameters with different values, which will include promotions that match any of the requested values. (optional)
3428-
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
3428+
* @param include Each time this parameter is specified will add to the list of fields and associated objects returned in the response. All values and field names are lower case. All field names found at the top level of the response are valid values for inclusion. (optional)
34293429
* @param marketRegion Search for promotions associated with the specified `market_region` values. This parameter can be supplied multiple times with different values, which will include promotions that match any of the requested scenarios. (optional)
34303430
* @param membersOnly Specify restrictions to `members_only` values. If this parameter is not supplied, promotions with true or false will be returned in the results. * `true` - Only results with `members_only` equal to true will be returned. * `false` - Only results with `members_only` equal to false will be returned. (optional)
34313431
* @param minAdvancePurchaseDays Search for promotions that have a `min_advance_purchase_days` equal to the passed in value. (optional)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ data class ChangeRoomDetailsRequest(
6464
@field:Valid
6565
val specialRequest: kotlin.String? = null,
6666
// Deprecated. Please use the loyalty id inside the loyalty object.
67+
@Deprecated(message = "This property is deprecated.")
6768
@JsonProperty("loyalty_id")
6869
@field:Valid
6970
val loyaltyId: kotlin.String? = null,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ data class CreateItineraryRequestRoom(
6767
@field:Valid
6868
val specialRequest: kotlin.String? = null,
6969
// Deprecated. Please use the loyalty id inside the loyalty object.
70+
@Deprecated(message = "This property is deprecated.")
7071
@JsonProperty("loyalty_id")
7172
@field:Valid
7273
val loyaltyId: kotlin.String? = null,

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ import javax.validation.Validation
4242
/**
4343
*
4444
* @param promotionId Unique identifier for the promotion
45-
* @param blockoutDates An array of stay date ranges within this check-in / check-out range that are not eligible for this promotion. The stay dates are determined by the would be check-in of that night. With a check-in date of 2023-09-01, and a check-out date of 2023-09-06, this would be a 5 night stay. A `blockout_dates` with start: 2023-09-02 and end: 2023-09-03 would mean 2 of the nights are not eligible. The 1st night is eligible, the 2nd and 3rd nights are not eligible, and the 4th and 5th nights are eligible.
45+
* @param blockoutDates An array of stay date ranges within this check-in / check-out range that are not eligible for this promotion. The stay dates are determined by the would be check-in of that night. With a check-in date of 2023-09-01, and a check-out date of 2023-09-06, this would be a 5 night stay. A `blockout_dates` with start: '2023-09-02' and end: 2023-09-03 would mean 2 of the nights are not eligible. The 1st night is eligible, the 2nd and 3rd nights are not eligible, and the 4th and 5th nights are eligible.
4646
* @param bookableEnd The last date that bookings can be made on in this promotion, in ISO 8601 format (YYYY-MM-DD).
4747
* @param bookableStart The first date that bookings can be made on in this promotion, in ISO 8601 format (YYYY-MM-DD).
4848
* @param campaignId The campaign id this promotion is associated with.
4949
* @param categoryId The category id of the property.
5050
* @param chainId The chain id for the property.
5151
* @param description The description of the promotion.
52-
* @param discountPercentage The percent off of the cost of the property when using this promotion. This will only be returned for percentage based promotions
52+
* @param discountPercentage The percent off of the cost of the property when using this promotion. This will only be returned for percentage based promotions
5353
* @param guestRating The overall rating for the property, averaged from all guest reviews. Returns a value between 1.0 and 5.0.
5454
* @param lifetime The type of lifetime of this promotion.
5555
* @param links
@@ -62,7 +62,7 @@ import javax.validation.Validation
6262
* @param propertyId Unique Expedia property ID.
6363
* @param rank
6464
* @param regionId The region id for the property.
65-
* @param starRating The rating assigned to this property. Returns a value between 0.0 and 5.0. A value of 0.0 or a blank value indicates no rating is available.
65+
* @param starRating The rating assigned to this property. Returns a value between 0.0 and 5.0. A value of 0.0 or a blank value indicates no rating is available.
6666
* @param stayEnd The last date that check-ins can be set to in this promotion in ISO 8601 format (YYYY-MM-DD).
6767
* @param stayStart The first date that check-ins can be set to in this promotion in ISO 8601 format (YYYY-MM-DD).
6868
* @param supplySource The supply source of the property.
@@ -72,7 +72,7 @@ data class Promotion(
7272
@JsonProperty("promotion_id")
7373
@field:Valid
7474
val promotionId: kotlin.String? = null,
75-
// An array of stay date ranges within this check-in / check-out range that are not eligible for this promotion. The stay dates are determined by the would be check-in of that night. With a check-in date of 2023-09-01, and a check-out date of 2023-09-06, this would be a 5 night stay. A `blockout_dates` with start: 2023-09-02 and end: 2023-09-03 would mean 2 of the nights are not eligible. The 1st night is eligible, the 2nd and 3rd nights are not eligible, and the 4th and 5th nights are eligible.
75+
// An array of stay date ranges within this check-in / check-out range that are not eligible for this promotion. The stay dates are determined by the would be check-in of that night. With a check-in date of 2023-09-01, and a check-out date of 2023-09-06, this would be a 5 night stay. A `blockout_dates` with start: '2023-09-02' and end: 2023-09-03 would mean 2 of the nights are not eligible. The 1st night is eligible, the 2nd and 3rd nights are not eligible, and the 4th and 5th nights are eligible.
7676
@JsonProperty("blockout_dates")
7777
@field:Valid
7878
val blockoutDates: kotlin.collections.List<BlockoutDate>? = null,
@@ -100,7 +100,7 @@ data class Promotion(
100100
@JsonProperty("description")
101101
@field:Valid
102102
val description: kotlin.String? = null,
103-
// The percent off of the cost of the property when using this promotion. This will only be returned for percentage based promotions
103+
// The percent off of the cost of the property when using this promotion. This will only be returned for percentage based promotions
104104
@JsonProperty("discount_percentage")
105105
@field:Valid
106106
val discountPercentage: kotlin.String? = null,
@@ -150,7 +150,7 @@ data class Promotion(
150150
@JsonProperty("region_id")
151151
@field:Valid
152152
val regionId: kotlin.String? = null,
153-
// The rating assigned to this property. Returns a value between 0.0 and 5.0. A value of 0.0 or a blank value indicates no rating is available.
153+
// The rating assigned to this property. Returns a value between 0.0 and 5.0. A value of 0.0 or a blank value indicates no rating is available.
154154
@JsonProperty("star_rating")
155155
@field:Valid
156156
val starRating: kotlin.String? = null,

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import com.expediagroup.sdk.rapid.models.PricingInformation
4343
import com.expediagroup.sdk.rapid.models.Promotions
4444
import com.expediagroup.sdk.rapid.models.RateLinks
4545
import com.expediagroup.sdk.rapid.models.SaleScenario
46-
import com.expediagroup.sdk.rapid.models.Status
4746
import com.fasterxml.jackson.annotation.JsonProperty
4847
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
4948
import javax.validation.Valid
@@ -52,7 +51,7 @@ import javax.validation.Validation
5251
/**
5352
* A rate.
5453
* @param id Unique Identifier for a rate.
55-
* @param status
54+
* @param status Rates returned are always available.
5655
* @param availableRooms The number of bookable rooms remaining with this rate in EPS inventory. Use this value to create rules for urgency messaging to alert users to low availability on busy travel dates or at popular properties. If the value returns as 2147483647 (max int value), the actual value could not be determined. Ensure your urgency messaging ignores such instances when returned.
5756
* @param refundable Indicates if the rate is fully refundable at the time of booking. Cancel penalties may still apply. Please refer to the cancel penalties section for reference.
5857
* @param currentRefundability Indicates the current refundability of the rate. This is a more detailed version of the `refundable` field.
@@ -76,9 +75,9 @@ data class Rate(
7675
@JsonProperty("id")
7776
@field:Valid
7877
val id: kotlin.String? = null,
78+
// Rates returned are always available.
7979
@JsonProperty("status")
80-
@field:Valid
81-
val status: Status? = null,
80+
val status: Rate.Status? = null,
8281
// The number of bookable rooms remaining with this rate in EPS inventory. Use this value to create rules for urgency messaging to alert users to low availability on busy travel dates or at popular properties. If the value returns as 2147483647 (max int value), the actual value could not be determined. Ensure your urgency messaging ignores such instances when returned.
8382
@JsonProperty("available_rooms")
8483
@field:Valid
@@ -148,7 +147,7 @@ data class Rate(
148147

149148
class Builder(
150149
private var id: kotlin.String? = null,
151-
private var status: Status? = null,
150+
private var status: Rate.Status? = null,
152151
private var availableRooms: java.math.BigDecimal? = null,
153152
private var refundable: kotlin.Boolean? = null,
154153
private var currentRefundability: Rate.CurrentRefundability? = null,
@@ -169,7 +168,7 @@ data class Rate(
169168
) {
170169
fun id(id: kotlin.String?) = apply { this.id = id }
171170

172-
fun status(status: Status?) = apply { this.status = status }
171+
fun status(status: Rate.Status?) = apply { this.status = status }
173172

174173
fun availableRooms(availableRooms: java.math.BigDecimal?) = apply { this.availableRooms = availableRooms }
175174

@@ -276,6 +275,15 @@ data class Rate(
276275
deposits = deposits
277276
)
278277

278+
/**
279+
* Rates returned are always available.
280+
* Values: AVAILABLE
281+
*/
282+
enum class Status(val value: kotlin.String) {
283+
@JsonProperty("available")
284+
AVAILABLE("available")
285+
}
286+
279287
/**
280288
* Indicates the current refundability of the rate. This is a more detailed version of the `refundable` field.
281289
* Values: REFUNDABLE,NON_REFUNDABLE,PARTIALLY_REFUNDABLE

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ data class RoomItinerary(
108108
@field:Valid
109109
val smoking: kotlin.Boolean? = null,
110110
// Deprecated. Please use the loyalty id inside the loyalty object.
111+
@Deprecated(message = "This property is deprecated.")
111112
@JsonProperty("loyalty_id")
112113
@field:Valid
113114
val loyaltyId: kotlin.String? = null,

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@ package com.expediagroup.sdk.rapid.models
3333
import com.fasterxml.jackson.annotation.JsonProperty
3434

3535
/**
36-
* Indicates the status of the rate. If the rate is still available then available will be returned. If the rate is no longer available at that price then price_changed will be returned. If the rate is no longer available at all then sold_out will be returned.
37-
* Values: AVAILABLE,PRICE_CHANGED,SOLD_OUT
36+
* Indicates the status of the rate. * `available` - The rate is still available at or below the price returned in the shop response. * `available_no_change` - **Only in Hard Change flows** - The rate is available but matches the booked rate. * `price_changed` - The rate is no longer available at the previous price. Use the `additional_rates` link to present updated rooms and rates for this property to travelers. * `sold_out` - The rate is no longer available at any price. Use the `additional_rates` link to present updated rooms and rates for this property to travelers.
37+
* Values: AVAILABLE,AVAILABLE_NO_CHANGE,PRICE_CHANGED,SOLD_OUT
3838
*/
3939
enum class StatusPriceCheck(val value: kotlin.String) {
4040
@JsonProperty("available")
4141
AVAILABLE("available"),
4242

43+
@JsonProperty("available_no_change")
44+
AVAILABLE_NO_CHANGE("available_no_change"),
45+
4346
@JsonProperty("price_changed")
4447
PRICE_CHANGED("price_changed"),
4548

code/src/main/kotlin/com/expediagroup/sdk/rapid/operations/GetChainReferenceOperation.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.expediagroup.sdk.core.model.Operation
2222
* Chain Reference ***DEPRECATED***
2323
* @property params [GetChainReferenceOperationParams]
2424
*/
25+
@Deprecated("This operation is deprecated and will be removed in a future version.")
2526
class GetChainReferenceOperation(
2627
params: GetChainReferenceOperationParams
2728
) : Operation<

0 commit comments

Comments
 (0)