/** * 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 { FormBuilder, FormGroup } from '@angular/forms'; import { ApaleoEnumPropertyMetaData, ApaleoPropertyMetaData, BuildFormOptions, ResponseModel } from '@apaleo/angular-api-proxy-common'; export interface CreateRatePlanModel { /** * The code for the rate plan that can be shown in reports and table views */ code: string; /** * The id of the property where the rate plan will be created */ propertyId: string; /** * The id of the unit group offered with this rate plan */ unitGroupId: string; /** * The id of the cancellation policy valid for this rate plan */ cancellationPolicyId: string; /** * The service type, used by accounting and determining account and VAT */ serviceType: CreateRatePlanModel.ServiceTypeEnum; /** * The VAT type, used by accounting to determine the correct VAT amount and account */ vatType: CreateRatePlanModel.VatTypeEnum; /** * Defines the time periods for which the unit group related to this rate plan is rented out */ timeSliceDefinitionId: 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: CreateRatePlanModel.MinGuaranteeTypeEnum; /** * Time periods when the rateplan is sold */ bookingPeriods?: Array; /** * Set restrictions on this rate plan */ restrictions?: BookingRestrictionsModel; } export declare namespace CreateRatePlanModel { type ServiceTypeEnum = 'Other' | 'Accommodation' | 'FoodAndBeverages'; const ServiceTypeEnumValues: ReadonlyArray; type VatTypeEnum = 'Null' | 'VeryReduced' | 'Reduced' | 'Normal'; const VatTypeEnumValues: ReadonlyArray; type MinGuaranteeTypeEnum = 'PM6Hold' | 'CreditCard' | 'Prepayment'; const MinGuaranteeTypeEnumValues: ReadonlyArray; } export declare type CreateRatePlanModelWithRawHttp = CreateRatePlanModel & ResponseModel; export declare namespace CreateRatePlanModel { const $metaData: { code: Readonly; propertyId: Readonly; unitGroupId: Readonly; cancellationPolicyId: Readonly; serviceType: Readonly>; vatType: Readonly>; timeSliceDefinitionId: Readonly; name: Readonly; description: Readonly; minGuaranteeType: Readonly>; bookingPeriods: Readonly; restrictions: Readonly; }; function $buildForm(fb: FormBuilder, options?: BuildFormOptions): FormGroup; }