Rate

public final class Rate

A rate.

Parameters

id

Unique Identifier for a rate.

status
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.

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.

memberDealAvailable

Indicates if a \"Member Only Deal\" is available for this rate.

saleScenario
merchantOfRecord
amenities

Room amenities.

links
bedGroups

A map of the room's bed groups.

cancelPenalties

Array of cancel_penalty objects containing cancel penalty information.

nonrefundableDateRanges

An array of stay date ranges within this check-in / check-out range that are not refundable. Stay dates within these ranges provide no refund on cancellation, regardless of cancel penalty windows. 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 nonrefundable_date_range with start: 2023-09-02 and end: 2023-09-03 would mean 2 of the nights are nonrefundable. The 1st night is refundable, the 2nd and 3rd nights are nonrefundable, and the 4th and 5th nights are refundable, subject to cancel_penalties restrictions.

marketingFeeIncentives

An array of stay date ranges within this check-in / check-out range that have an incentive applied. 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 marketing_fee_incentive with start: 2023-09-02 and end: 2023-09-03 would mean 2 of the nights have an incentive applied. The 1st night is not part of the incentive, the 2nd and 3rd nights are part of the incentive, and the 4th and 5th nights are not part of the incentive.

occupancyPricing

A map of room information by occupancy.

promotions
cardOnFileLimit
refundableDamageDeposit
deposits

Array of deposits for the rate.

Constructors

Link copied to clipboard
public Rate Rate(String id, Status status, BigDecimal availableRooms, Boolean refundable, Boolean memberDealAvailable, SaleScenario saleScenario, MerchantOfRecord merchantOfRecord, Map<String, Amenity> amenities, RateLinks links, Map<String, BedGroupAvailability> bedGroups, List<CancelPenalty> cancelPenalties, List<NonrefundableDateRange> nonrefundableDateRanges, List<MarketingFeeIncentive> marketingFeeIncentives, Map<String, PricingInformation> occupancyPricing, Promotions promotions, Amount cardOnFileLimit, Amount refundableDamageDeposit, List<Deposit> deposits)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@Valid()
private final Map<String, Amenity> amenities
Link copied to clipboard
@Valid()
private final BigDecimal availableRooms
Link copied to clipboard
@Valid()
private final Map<String, BedGroupAvailability> bedGroups
Link copied to clipboard
@Valid()
private final List<CancelPenalty> cancelPenalties
Link copied to clipboard
@Valid()
private final Amount cardOnFileLimit
Link copied to clipboard
@Valid()
private final List<Deposit> deposits
Link copied to clipboard
@Valid()
private final String id
Link copied to clipboard
@Valid()
private final RateLinks links
Link copied to clipboard
Link copied to clipboard
@Valid()
private final Boolean memberDealAvailable
Link copied to clipboard
@Valid()
private final MerchantOfRecord merchantOfRecord
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Valid()
private final Promotions promotions
Link copied to clipboard
@Valid()
private final Boolean refundable
Link copied to clipboard
@Valid()
private final Amount refundableDamageDeposit
Link copied to clipboard
@Valid()
private final SaleScenario saleScenario
Link copied to clipboard
@Valid()
private final Status status

Functions

Link copied to clipboard
public final static Rate.Builder builder()
Link copied to clipboard
public final Map<String, Amenity> getAmenities()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Amount getCardOnFileLimit()
Link copied to clipboard
public final List<Deposit> getDeposits()
Link copied to clipboard
public final String getId()
Link copied to clipboard
public final RateLinks getLinks()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Promotions getPromotions()
Link copied to clipboard
public final Boolean getRefundable()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Status getStatus()