/** * Apaleo Rates API * Manage the rate plans and rates to rent out your inventory at the best price. * * OpenAPI spec version: 1.0.0 * * * 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 { BookingPeriodModel } from './bookingPeriodModel'; import { BookingRestrictionsModel } from './bookingRestrictionsModel'; import { EmbeddedPropertyModel } from './embeddedPropertyModel'; import { EmbeddedTimeSliceDefinitionModel } from './embeddedTimeSliceDefinitionModel'; import { EmbeddedUnitGroupModel } from './embeddedUnitGroupModel'; import { FormBuilder, FormGroup } from '@angular/forms'; import { ApaleoEnumPropertyMetaData, ApaleoPropertyMetaData, BuildFormOptions, ResponseModel } from '@apaleo/angular-api-proxy-common'; export interface RatePlanModel { /** * The rate plan id */ id: string; /** * The code for the rate plan that can be shown in reports and table views */ code: string; /** * 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 put on a reservation when this rate plan is booked */ minGuaranteeType: RatePlanModel.MinGuaranteeTypeEnum; /** * The property to which the rate plan belongs to */ property: EmbeddedPropertyModel; /** * The unit group offered with this rate plan */ unitGroup: EmbeddedUnitGroupModel; /** * The service type, used by accounting to determine the correct revenue account */ serviceType: RatePlanModel.ServiceTypeEnum; /** * The VAT type, used by accounting to determine the correct VAT amount and account */ vatType: RatePlanModel.VatTypeEnum; /** * Defines the time periods for which the unit group related to this rate plan is rented out */ timeSliceDefinition: EmbeddedTimeSliceDefinitionModel; /** * The restrictions set on this rate plan */ restrictions?: BookingRestrictionsModel; /** * Time periods when the rate plan is sold */ bookingPeriods?: Array; } export declare namespace RatePlanModel { type MinGuaranteeTypeEnum = 'PM6Hold' | 'CreditCard' | 'Prepayment'; const MinGuaranteeTypeEnumValues: ReadonlyArray<"PM6Hold" | "CreditCard" | "Prepayment">; type ServiceTypeEnum = 'Other' | 'Accommodation' | 'FoodAndBeverages'; const ServiceTypeEnumValues: ReadonlyArray<"Other" | "Accommodation" | "FoodAndBeverages">; type VatTypeEnum = 'Null' | 'VeryReduced' | 'Reduced' | 'Normal'; const VatTypeEnumValues: ReadonlyArray<"Null" | "VeryReduced" | "Reduced" | "Normal">; } export declare type RatePlanModelWithRawHttp = RatePlanModel & ResponseModel; export declare namespace RatePlanModel { const $metaData: { id: Readonly; code: Readonly; name: Readonly; description: Readonly; minGuaranteeType: Readonly>; property: Readonly; unitGroup: Readonly; serviceType: Readonly>; vatType: Readonly>; timeSliceDefinition: Readonly; restrictions: Readonly; bookingPeriods: Readonly; }; function $buildForm(fb: FormBuilder, options?: BuildFormOptions): FormGroup; }