/** * apaleo Rate Plan API - not safe for work * Continuously evolving version - use at your own risk! Manage the rate plans and rates to rent out your inventory and extra services. * * OpenAPI spec version: v0-nsfw * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { AccountingConfigModel } from './accountingConfigModel'; import { BookingPeriodModel } from './bookingPeriodModel'; import { BookingRestrictionsModel } from './bookingRestrictionsModel'; import { CreatePricingRuleModel } from './createPricingRuleModel'; import { RatePlanAgeCategoryModel } from './ratePlanAgeCategoryModel'; import { RatePlanServiceModel } from './ratePlanServiceModel'; import { ReplaceCompanyRatePlanModel } from './replaceCompanyRatePlanModel'; import { SurchargeModel } from './surchargeModel'; import { ClassMetaData } from '@apaleo/angular-api-proxy-common'; export interface ReplaceRatePlanModel { /** * The name for the rate plan */ name: { [key: string]: string; }; /** * The description for the rate plan */ description: { [key: string]: string; }; /** * The minimum guarantee to be provided when this rate plan is booked so the reservation will be guaranteed to the guest */ minGuaranteeType: ReplaceRatePlanModel.MinGuaranteeTypeEnum; /** * The calculation mode is used when calculating the adults' surcharges and derived rates. Defaults to Truncate. Example: for a rate of 125.99 and a surcharge of +10%, when Truncate is selected, the result would be 125.99 + 12 = 137.99 When Round is selected, the result would be 125.99 + 12.60 = 138.59 */ priceCalculationMode?: ReplaceRatePlanModel.PriceCalculationModeEnum; /** * The channel codes the rate plan is sold through */ channelCodes: Array; /** * The rate codes for promotional and hidden rates. If at least one code is set the rate will be not publicly visible anymore and only be offered when one of the promo codes is given in the offer request. For backward compatibility it is still not possible to set multiple promo codes. */ promoCodes?: Array; /** * Whether the rate plan is subject to city tax or not. Default value is `true` */ isSubjectToCityTax?: boolean; /** * The id of the cancellation policy valid for this rate plan */ cancellationPolicyId: string; /** * The id of the no-show policy valid for this rate plan */ noShowPolicyId?: string; /** * The id of the market segment for this rate plan */ marketSegmentId?: string; /** * Time periods when the rate plan is bookable */ bookingPeriods?: Array; restrictions?: BookingRestrictionsModel; /** * Services that are included in the rate plan */ includedServices?: Array; /** * Companies that can use this rate plan */ companies?: Array; pricingRule?: CreatePricingRuleModel; /** * Additional charges for more than single occupancy. The percent or absolute value will be added to the manually defined or calculated derived rates. The values for 'adults' must be unique within the list and starting from occupancy of 2 adults. Values higher than the maximum unit group occupancy will be silently ignored. The surcharges are required for all possible occupancies defined by the 'MaxPersons' of the unit group. */ surcharges?: Array; /** * Additional charges per age category. */ ageCategories?: Array; /** * The collection of accounting configs with validity periods. */ accountingConfigs?: Array; } export declare namespace ReplaceRatePlanModel { type MinGuaranteeTypeEnum = 'PM6Hold' | 'CreditCard' | 'Prepayment' | 'Company'; const MinGuaranteeTypeEnumValues: readonly MinGuaranteeTypeEnum[]; type PriceCalculationModeEnum = 'Truncate' | 'Round'; const PriceCalculationModeEnumValues: readonly PriceCalculationModeEnum[]; type ChannelCodesEnum = 'Direct' | 'BookingCom' | 'Ibe' | 'ChannelManager' | 'Expedia' | 'Homelike' | 'Hrs' | 'AltoVita' | 'DesVu'; const ChannelCodesEnumValues: readonly ChannelCodesEnum[]; } export declare namespace ReplaceRatePlanModel { const $metaData: ClassMetaData; }