Skip to main content

Create Derived Rates

Mutation Overview

The createDerivedRatesSetup mutation allows you to create a new derived rate for a hotel in a specific client - seller relation in Inventory. A derived rate inherits its configuration from a base rate (baseCode); for each inheritable section you decide whether to inherit the value from the base rate or to override it with a specific value. The returned fields include:

  • code
  • name
  • active
  • baseCode
  • mealPlanIncluded
  • paymentPolicies
  • inheritAllRoomsBaseRate
  • informBaseRate
  • inheritMealPlanSupplements

1. Criteria

When building your mutation, you need to provide the following input fields:

Mandatory Input

  • clientCode
  • supplierCode
  • hotelCode
  • rate
    • code
    • name
    • active
    • mealPlanIncludedDetails
      • inheritMealPlanIncludedFromBaseRate
    • informBaseRate
    • paymentPolicies
      • inheritFromBaseRate
    • cancelPolicies
      • inheritFromBaseRate
    • roomsDetails
      • inheritAllRoomsBaseRate
    • inheritMealPlanSupplements

Optional Input

  • contextCode
  • rate
    • baseCode
    • bookingRules
      • bookingWindowDetails
      • marketsDetails
      • rateRulesDetails
      • seniorRuleDetails

2. Settings

Ensure that the provided baseCode matches an existing rate in your inventory setup, and that the inheritance flags are set according to the values you want to inherit or override.

note

Age policies are always inherited from the base rate, so they cannot be overridden when creating a derived rate.

Response Considerations

The mutation returns the created derived rate details along with success status and possible advise messages.

DerivedRatesSetupRs (OBJECT)

  • ratesCreated (DerivedRateSetup) - A collection of created derived rates.
    • code (String) - The derived rate code.
    • name (String) - Name of the derived rate.
    • active (Boolean) - Indicates if the derived rate is active.
    • baseCode (String) - The base rate code the derived rate inherits from.
    • mealPlanIncluded (Object) - Meal plan included, with its resolved value and inheritance flag.
    • paymentPolicies (Object) - Payment policies with inheritance metadata.
    • inheritAllRoomsBaseRate (Boolean) - Indicates whether all rooms are inherited from the base rate.
    • informBaseRate (Boolean) - Indicates if the base rate code is sent to the supplier instead of the derived rate code.
    • inheritMealPlanSupplements (Boolean) - Indicates whether meal plan supplements are inherited from the base rate.
  • success (Boolean) - Indicates if the operation was successful.
  • adviseMessages (AdviseMessage) - Messages related to the operation.

Mutation Inputs

InventoryDerivedRateSetupCreateInput (INPUT_OBJECT)
Derived rate setup create mutation input.

clientCode  *  (String)

Client code.

supplierCode  *  (String)

Travelgate Supplier/Channel code.

rate  *  (InventoryRateDerivedSetupCreateInput)

Derived rate input data.

code  *  (String)

Code associated with the rate.

name  *  (String)

Name of the rate.

active  *  (Boolean)

Indicates whether the rate is active.

mealPlanIncludedDetails  *  (InventoryDerivedMealPlanIncludedInput)

Indicates whether to inherit the meal plan included from the base rate.

inheritMealPlanIncludedFromBaseRate  *  (Boolean)

Indicates whether to inherit the meal plan included from the base rate.

mealPlanIncluded(Int)

Indicates the meal plan included in the rate.

informBaseRate  *  (Boolean)

Indicates if the base rate code has to be sent to the supplier instead of the derived rate code.

paymentPolicies  *  (InventoryPaymentPoliciesDerivedInput)

Payment policies associated with the rate.

inheritFromBaseRate  *  (Boolean)

Indicates whether accepted payments are inherited from the base rate.

acceptedPayments(AcceptedPaymentInput)

Rate Accepted Payments, if not informed it is MerchantPay.

type  *  (PaymentType)

Possible values:
  • MERCHANT: Payment is managed by the supplier.
  • DIRECT: Payment is made directly to the actual payee (e.g., the hotel), without involving an intermediary or third party. The payment will be completed at check-in.
  • CARD_BOOKING: Payment is managed by the supplier. The payment is effectuated at the time of booking.
  • CARD_CHECK_IN: Payment is managed by the supplier and is made at the hotel during check-in.
cardTypes(PaymentCardType)
Possible values:
  • VI: Visa
  • AX: American Express
  • BC: BC Card
  • CA: MasterCard
  • CB: Carte Blanche
  • CU: China Union Pay
  • DS: Discover
  • DC: Diners Club
  • T: Carta Si
  • R: Carte Bleue
  • N: Dankort
  • L: Delta
  • E: Electron
  • JC: Japan Credit Bureau
  • TO: Maestro
  • S: Switch
  • EC: Electronic Cash
  • EU: EuroCard
  • TP: universal air travel card
  • OP: optima
  • ER: Air Canada/RnRoute
  • XS: access
  • O: others
bookingRules(InventoryBookingRulesDerivedInput)

Booking rules associated with the rate.

bookingWindowDetails(InventoryDerivedBookingWindowInput)

Booking window inheritance details associated with the rate.

inheritBookingWindowFromBaseRate  *  (Boolean)

Indicates whether booking dates are inherited from the base rate.

bookingWindow(InventoryBookingWindowInput)

Booking Dates for which the rate will be available.

start  *  (DateTime)

Start date of the booking window.

end  *  (DateTime)

End date of the booking window.

marketsDetails(InventoryDerivedMarketsInput)

Markets inheritance details associated with the rate.

inheritMarketsFromBaseRate  *  (Boolean)

Indicates whether markets are inherited from the base rate.

markets(InventoryMarketsInput)

Markets included or excluded.

included(String)

Included markets.

excluded(String)

Excluded markets.

rateRulesDetails(InventoryDerivedRateRuleInput)

Rate rule inheritance details associated with the rate.

inheritRateRuleFromBaseRate  *  (Boolean)

Indicates whether rate plan types are inherited from the base rate.

rateRule(RatePlanType)

Rate plan type. Possible values:

  • NO_RATE_PLAN_TYPE
  • LARGE_FAMILY
  • PUBLIC_SERVANT
  • NEGOTIATED
  • PACKAGE
  • CANARY_RESIDENT
  • BALEARIC_RESIDENT
  • HONEY_MOON
seniorRuleDetails(InventoryDerivedSeniorRuleInput)

Senior rule inheritance details associated with the rate.

inheritSeniorRuleFromBaseRate  *  (Boolean)

Indicates whether senior rates are inherited from the base rate.

seniorRule(SeniorRate)

Senior rule. Possible values:

  • NO_SENIOR_RATE
  • SENIOR_RATE_55
  • SENIOR_RATE_60
  • SENIOR_RATE_65

cancelPolicies  *  (InventoryDerivedCancelPoliciesCreateInput)

Cancel policies associated with the rate.

inheritFromBaseRate  *  (Boolean)

Indicates whether cancel policies are inherited from the base rate.

baseCancelPolicy(InventoryCancelPolicyInput)

Defines the base cancel policies. Only informative.

refundable  *  (Boolean)

Indicates if the rate is refundable.

cancelPenalties(InventoryCancelPenaltyInput)

List of penalties applicable for the rate. See CancelPenalty.

daysBeforeArrival  *  (Int)

Number of days prior to arrival day in which this Cancellation policy applies.

penaltyType  *  (PenaltyType)

Penalty type. See PenaltyType. Possible values:

  • AMOUNT
  • NIGHTS
  • PERCENTAGE

value  *  (Float)

Penalty value.

cancelPoliciesByDate(InventoryCancelPolicyByDateInput)

Defines a calendar of cancel policies. Only informative.

start  *  (DateTime)

Start date where the cancel policy must apply.

end  *  (DateTime)

End date where the cancel policy must apply.

cancelPolicy  *  (InventoryCancelPolicyInput)

Cancel policy. See CancelPolicy.

refundable  *  (Boolean)

Indicates if the rate is refundable.

cancelPenalties(InventoryCancelPenaltyInput)

List of penalties applicable for the rate. See CancelPenalty.

daysBeforeArrival  *  (Int)

Number of days prior to arrival day in which this Cancellation policy applies.

penaltyType  *  (PenaltyType)

Penalty type. See PenaltyType. Possible values:

  • AMOUNT
  • NIGHTS
  • PERCENTAGE

value  *  (Float)

Penalty value.

baseCode(String)

Base rate code associated with the rate.

roomsDetails  *  (InventoryDerivedRoomsInput)

Room inheritance details associated with the rate.

inheritAllRoomsBaseRate  *  (Boolean)

Indicates whether all rooms are inherited from the base rate.

rooms(String)

Rooms associated with the rate when they are not inherited from the base rate.

inheritMealPlanSupplements  *  (Boolean)

Indicates whether to inherit meal plan supplements from the base rate.

hotelCode  *  (String)

Code associated with the hotel.

contextCode(String)

Context code.

Returned Fields

DerivedRatesSetupRs (OBJECT)
Represents the response object for derived rates setup operations.

adviseMessages(AdviseMessage)

Collection of advise messages.

code  *  (ID)

AM code: The following codes can be returned:

description  *  (String)

Error description

level  *  (AdviseMessageLevel)

Indicates the level of importance of the message. Possible values: ERROR, WARN, INFO. Possible values:

  • WARN: Warning message.
  • ERROR: Error message.
  • INFO: Info message.
external(ExternalMessage)

Specify the external message.

code(String)

External code.

message  *  (String)

External message.

correlationID  *  (ID)

Identifier to investigate the cause of the error.

ratesCreated(DerivedRateSetup)

Collection of created derived rate setup objects.

code(String)

Code associated with the derived rate.

name(String)

Name of the derived rate.

active  *  (Boolean)

Indicates whether the derived rate is active.

mealPlanIncluded(InventoryDerivedInt)

Indicates the meal plan included in the derived rate.

value(Int)

The derived value.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

baseCode(String)

Base rate code associated with the derived rate.

inheritedAgePolicies(InventoryAgePolicies)

Age policies inherited from the base rate. Age policies are always inherited from the base rate.

maxAgeInfants  *  (Int)

Max age baby not inclusive

freeInfants  *  (Boolean)

If true the babies are free of charge

maxAgeChildren  *  (Int)

Max age child not inclusive

freeChildren  *  (Boolean)

If true children are free of charge

paymentPolicies(InventoryDerivedPaymentPolicies)

Payment policies associated with the derived rate.

inheritedCurrency  *  (Currency)

Currency inherited from the base rate.

inheritedCommission  *  (Float)

Commission inherited from the base rate.

inheritedPriceIsBinding  *  (Boolean)

Indicates whether the inherited prices are binding.

acceptedPayments(InventoryDerivedAcceptedPayments)

Accepted payment methods with inheritance metadata.

value(AcceptedPayment)

The derived value.

type  *  (PaymentType)

Possible values:
  • MERCHANT: Payment is managed by the supplier.
  • DIRECT: Payment is made directly to the actual payee (e.g., the hotel), without involving an intermediary or third party. The payment will be completed at check-in.
  • CARD_BOOKING: Payment is managed by the supplier. The payment is effectuated at the time of booking.
  • CARD_CHECK_IN: Payment is managed by the supplier and is made at the hotel during check-in.
cardTypes(PaymentCardType)
Possible values:
  • VI: Visa
  • AX: American Express
  • BC: BC Card
  • CA: MasterCard
  • CB: Carte Blanche
  • CU: China Union Pay
  • DS: Discover
  • DC: Diners Club
  • T: Carta Si
  • R: Carte Bleue
  • N: Dankort
  • L: Delta
  • E: Electron
  • JC: Japan Credit Bureau
  • TO: Maestro
  • S: Switch
  • EC: Electronic Cash
  • EU: EuroCard
  • TP: universal air travel card
  • OP: optima
  • ER: Air Canada/RnRoute
  • XS: access
  • O: others

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

bookingRules(InventoryDerivedBookingRules)

Booking rules associated with the derived rate.

bookingWindow(InventoryDerivedBookingWindow)

Booking Dates for which the rate will be available. Do not send it if you want the rate available for all dates.

value(InventoryBookingWindow)

The derived value.

start  *  (DateTime)

Start date of the booking window.

end  *  (DateTime)

End date of the booking window.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

markets(InventoryDerivedMarkets)

Markets included or excluded. Do not send if the rate is available for all markets. Only informative.

value(InventoryMarkets)

The derived value.

included(String)

Included markets.

excluded(String)

Excluded markets.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

rateRule(InventoryDerivedRateRule)

Rate rule for the derived rate.

value(RatePlanType)

The derived value. Possible values:

  • NO_RATE_PLAN_TYPE
  • LARGE_FAMILY
  • PUBLIC_SERVANT
  • NEGOTIATED
  • PACKAGE
  • CANARY_RESIDENT
  • BALEARIC_RESIDENT
  • HONEY_MOON

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

seniorRule(InventoryDerivedSeniorRule)

Senior rule for the derived rate.

value(SeniorRate)

The derived value. Possible values:

  • NO_SENIOR_RATE
  • SENIOR_RATE_55
  • SENIOR_RATE_60
  • SENIOR_RATE_65

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

cancelPolicies(InventoryDerivedCancelPoliciesRate)

Cancel policies associated with the derived rate.

value(InventoryCancelPoliciesRate)

The derived value.

baseCancelPolicy(InventoryCancelPolicy)

Defines the base cancel policies. Only Informative.

refundable  *  (Boolean)

Indicates if the rate is refundable.

cancelPenalties(InventoryCancelPenalty)

List of penalties applicable for the rate. See CancelPenalty.

daysBeforeArrival  *  (Int)

Number of days prior to arrival day in which this Cancellation policy applies.

penaltyType  *  (PenaltyType)

Penalty type. See PenaltyType. Possible values:

  • AMOUNT
  • NIGHTS
  • PERCENTAGE

value  *  (Float)

Penalty value.

cancelPoliciesByDate(InventoryCancelPolicyByDate)

This defines a calendar of cancel policies, serving as informational data. If base cancel policies exist for a particular day, the CancelPoliciesByDate take precedence.

start  *  (DateTime)

Start date where the cancel policy must apply.

end  *  (DateTime)

End date where the cancel policy must apply.

cancelPolicy  *  (InventoryCancelPolicy)

Cancel policy. See CancelPolicy.

refundable  *  (Boolean)

Indicates if the rate is refundable.

cancelPenalties(InventoryCancelPenalty)

List of penalties applicable for the rate. See CancelPenalty.

daysBeforeArrival  *  (Int)

Number of days prior to arrival day in which this Cancellation policy applies.

penaltyType  *  (PenaltyType)

Penalty type. See PenaltyType. Possible values:

  • AMOUNT
  • NIGHTS
  • PERCENTAGE

value  *  (Float)

Penalty value.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

inheritedSurcharges(InventorySurcharge)

Surcharges inherited from the base rate.

chargeType  *  (InventoryChargeType)

Indicates if the surcharge is included or not in the price. Possible values:

  • INCLUDED
  • EXCLUDED

taxType  *  (InventoryTaxType)

The type of tax applied to the surcharge. Possible values:

  • CITY: The tax is a city tax.
  • LOCAL: The tax is a local tax.
  • RESORT_FEE: The tax is a resort fee.
  • SUPPLEMENT_TO_BE_PAID_ON_SPOT: The tax is a supplement to be paid on spot.

value  *  (Float)

The value of the surcharge.

applyType  *  (InventoryApplyType)

The type of application for the surcharge. Possible values:

  • PERCENTAGE: The rate is applied as a percentage.
  • AMOUNT: The rate is applied as an amount.

perNight  *  (Boolean)

Indicates whether the surcharge is applied per night.

perPax  *  (Boolean)

Indicates whether the surcharge is applied per person.

inheritAllRoomsBaseRate  *  (Boolean)

Indicates whether all rooms are inherited from the base rate for the derived rate. If true, all rooms from the base rate are inherited. If false, only specific rooms are associated with the derived rate.

rooms(InventoryRoomSetUp)

Rooms associated with the derived rate.

code(String)

Code associated with the room.

master(InventoryMasterRoom)

Master of the room.

id  *  (Int)

Id associated with the room master.

code(String)

Code associated with the room.

name(String)

Name associated with the room.

active  *  (Boolean)

Indicates whether the room is active.

externalCode(String)

External code associated with the room.

standard  *  (Int)

Standard of the room. Typically the number of guests.

uses  *  (InventoryRoomUse)

List of uses associated with the room.

numberOfGuests  *  (Int)

Gets or sets the number of guests allowed in the room.

minAge  *  (Int)

Gets or sets the minimum age allowed for guests in the room.

maxAge  *  (Int)

Gets or sets the maximum age allowed for guests in the room.

paxType  *  (InventoryPaxType)

Gets or sets the type of guests allowed in the room. PaxType Possible values:

  • INFANT: Represents an infant guest.
  • CHILD: Represents a child guest.
  • ADULT: Represents an adult guest.

informBaseRate  *  (Boolean)

Indicates if the base rate code has to be sent to the supplier instead of the derived rate code.

inheritMealPlanSupplements  *  (Boolean)

Indicates whether to inherit meal plan supplements from the base rate.

ratesUpdated(DerivedRateSetup)

Collection of updated derived rate setup objects.

code(String)

Code associated with the derived rate.

name(String)

Name of the derived rate.

active  *  (Boolean)

Indicates whether the derived rate is active.

mealPlanIncluded(InventoryDerivedInt)

Indicates the meal plan included in the derived rate.

value(Int)

The derived value.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

baseCode(String)

Base rate code associated with the derived rate.

inheritedAgePolicies(InventoryAgePolicies)

Age policies inherited from the base rate. Age policies are always inherited from the base rate.

maxAgeInfants  *  (Int)

Max age baby not inclusive

freeInfants  *  (Boolean)

If true the babies are free of charge

maxAgeChildren  *  (Int)

Max age child not inclusive

freeChildren  *  (Boolean)

If true children are free of charge

paymentPolicies(InventoryDerivedPaymentPolicies)

Payment policies associated with the derived rate.

inheritedCurrency  *  (Currency)

Currency inherited from the base rate.

inheritedCommission  *  (Float)

Commission inherited from the base rate.

inheritedPriceIsBinding  *  (Boolean)

Indicates whether the inherited prices are binding.

acceptedPayments(InventoryDerivedAcceptedPayments)

Accepted payment methods with inheritance metadata.

value(AcceptedPayment)

The derived value.

type  *  (PaymentType)

Possible values:
  • MERCHANT: Payment is managed by the supplier.
  • DIRECT: Payment is made directly to the actual payee (e.g., the hotel), without involving an intermediary or third party. The payment will be completed at check-in.
  • CARD_BOOKING: Payment is managed by the supplier. The payment is effectuated at the time of booking.
  • CARD_CHECK_IN: Payment is managed by the supplier and is made at the hotel during check-in.
cardTypes(PaymentCardType)
Possible values:
  • VI: Visa
  • AX: American Express
  • BC: BC Card
  • CA: MasterCard
  • CB: Carte Blanche
  • CU: China Union Pay
  • DS: Discover
  • DC: Diners Club
  • T: Carta Si
  • R: Carte Bleue
  • N: Dankort
  • L: Delta
  • E: Electron
  • JC: Japan Credit Bureau
  • TO: Maestro
  • S: Switch
  • EC: Electronic Cash
  • EU: EuroCard
  • TP: universal air travel card
  • OP: optima
  • ER: Air Canada/RnRoute
  • XS: access
  • O: others

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

bookingRules(InventoryDerivedBookingRules)

Booking rules associated with the derived rate.

bookingWindow(InventoryDerivedBookingWindow)

Booking Dates for which the rate will be available. Do not send it if you want the rate available for all dates.

value(InventoryBookingWindow)

The derived value.

start  *  (DateTime)

Start date of the booking window.

end  *  (DateTime)

End date of the booking window.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

markets(InventoryDerivedMarkets)

Markets included or excluded. Do not send if the rate is available for all markets. Only informative.

value(InventoryMarkets)

The derived value.

included(String)

Included markets.

excluded(String)

Excluded markets.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

rateRule(InventoryDerivedRateRule)

Rate rule for the derived rate.

value(RatePlanType)

The derived value. Possible values:

  • NO_RATE_PLAN_TYPE
  • LARGE_FAMILY
  • PUBLIC_SERVANT
  • NEGOTIATED
  • PACKAGE
  • CANARY_RESIDENT
  • BALEARIC_RESIDENT
  • HONEY_MOON

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

seniorRule(InventoryDerivedSeniorRule)

Senior rule for the derived rate.

value(SeniorRate)

The derived value. Possible values:

  • NO_SENIOR_RATE
  • SENIOR_RATE_55
  • SENIOR_RATE_60
  • SENIOR_RATE_65

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

cancelPolicies(InventoryDerivedCancelPoliciesRate)

Cancel policies associated with the derived rate.

value(InventoryCancelPoliciesRate)

The derived value.

baseCancelPolicy(InventoryCancelPolicy)

Defines the base cancel policies. Only Informative.

refundable  *  (Boolean)

Indicates if the rate is refundable.

cancelPenalties(InventoryCancelPenalty)

List of penalties applicable for the rate. See CancelPenalty.

daysBeforeArrival  *  (Int)

Number of days prior to arrival day in which this Cancellation policy applies.

penaltyType  *  (PenaltyType)

Penalty type. See PenaltyType. Possible values:

  • AMOUNT
  • NIGHTS
  • PERCENTAGE

value  *  (Float)

Penalty value.

cancelPoliciesByDate(InventoryCancelPolicyByDate)

This defines a calendar of cancel policies, serving as informational data. If base cancel policies exist for a particular day, the CancelPoliciesByDate take precedence.

start  *  (DateTime)

Start date where the cancel policy must apply.

end  *  (DateTime)

End date where the cancel policy must apply.

cancelPolicy  *  (InventoryCancelPolicy)

Cancel policy. See CancelPolicy.

refundable  *  (Boolean)

Indicates if the rate is refundable.

cancelPenalties(InventoryCancelPenalty)

List of penalties applicable for the rate. See CancelPenalty.

daysBeforeArrival  *  (Int)

Number of days prior to arrival day in which this Cancellation policy applies.

penaltyType  *  (PenaltyType)

Penalty type. See PenaltyType. Possible values:

  • AMOUNT
  • NIGHTS
  • PERCENTAGE

value  *  (Float)

Penalty value.

isInherit  *  (Boolean)

Indicates whether the value is inherited from the base rate.

inheritedSurcharges(InventorySurcharge)

Surcharges inherited from the base rate.

chargeType  *  (InventoryChargeType)

Indicates if the surcharge is included or not in the price. Possible values:

  • INCLUDED
  • EXCLUDED

taxType  *  (InventoryTaxType)

The type of tax applied to the surcharge. Possible values:

  • CITY: The tax is a city tax.
  • LOCAL: The tax is a local tax.
  • RESORT_FEE: The tax is a resort fee.
  • SUPPLEMENT_TO_BE_PAID_ON_SPOT: The tax is a supplement to be paid on spot.

value  *  (Float)

The value of the surcharge.

applyType  *  (InventoryApplyType)

The type of application for the surcharge. Possible values:

  • PERCENTAGE: The rate is applied as a percentage.
  • AMOUNT: The rate is applied as an amount.

perNight  *  (Boolean)

Indicates whether the surcharge is applied per night.

perPax  *  (Boolean)

Indicates whether the surcharge is applied per person.

inheritAllRoomsBaseRate  *  (Boolean)

Indicates whether all rooms are inherited from the base rate for the derived rate. If true, all rooms from the base rate are inherited. If false, only specific rooms are associated with the derived rate.

rooms(InventoryRoomSetUp)

Rooms associated with the derived rate.

code(String)

Code associated with the room.

master(InventoryMasterRoom)

Master of the room.

id  *  (Int)

Id associated with the room master.

code(String)

Code associated with the room.

name(String)

Name associated with the room.

active  *  (Boolean)

Indicates whether the room is active.

externalCode(String)

External code associated with the room.

standard  *  (Int)

Standard of the room. Typically the number of guests.

uses  *  (InventoryRoomUse)

List of uses associated with the room.

numberOfGuests  *  (Int)

Gets or sets the number of guests allowed in the room.

minAge  *  (Int)

Gets or sets the minimum age allowed for guests in the room.

maxAge  *  (Int)

Gets or sets the maximum age allowed for guests in the room.

paxType  *  (InventoryPaxType)

Gets or sets the type of guests allowed in the room. PaxType Possible values:

  • INFANT: Represents an infant guest.
  • CHILD: Represents a child guest.
  • ADULT: Represents an adult guest.

informBaseRate  *  (Boolean)

Indicates if the base rate code has to be sent to the supplier instead of the derived rate code.

inheritMealPlanSupplements  *  (Boolean)

Indicates whether to inherit meal plan supplements from the base rate.

ratesDeleted(String)

Collection of deleted derived rate codes.

success  *  (Boolean)

Indicates whether the operation was successful based on the absence of advise messages.

Examples

Create a new derived rate

With the following mutation, we are going to create a new derived rate for hotel 2 that inherits its whole configuration from the base rate BAR.