CenResService

<back to all web services

HotelPackage

The following routes are available for this service:
POST/HotelPackage/{SubscriptionId}/{CendynPropertyId}

export class Response
{
    public statusCode?: string;
    public recordCount?: number;
    public errorCount?: number;

    public constructor(init?: Partial<Response>) { (Object as any).assign(this, init); }
}

export class PackageDetail
{
    public startDate?: string;
    public endDate?: string;
    public priceAmount?: number;
    public posAllowance?: number;
    public pointsTotal?: number;
    public action?: string;
    public amountBeforeTax?: number;
    public amountAfterTax?: number;
    public itemName?: string;
    public quantity?: number;
    public code?: string;
    public itemId?: string;
    public showInReservation?: boolean;
    public useInCRS?: boolean;
    public addToRate?: boolean;
    public isFixedCharge?: boolean;
    public recurrence?: string;
    public relation?: string;
    public monday?: boolean;
    public tuesday?: boolean;
    public wednesday?: boolean;
    public thursday?: boolean;
    public friday?: boolean;
    public saturday?: boolean;
    public sunday?: boolean;

    public constructor(init?: Partial<PackageDetail>) { (Object as any).assign(this, init); }
}

export class PackageItem
{
    public itemName?: string;
    public quantity?: number;

    public constructor(init?: Partial<PackageItem>) { (Object as any).assign(this, init); }
}

export class Package
{
    public externalID?: string;
    public cendynPropertyID?: string;
    public hotelCode?: string;
    public packageCode?: string;
    public packageDescription?: string;
    public shortDescription?: string;
    public forecastGroup?: string;
    public printSeparately?: boolean;
    public addToRate?: boolean;
    public priceAmount?: number;
    public taxIncluded?: boolean;
    public currencyCode?: string;
    public sellSeparate?: boolean;
    public postNextDay?: boolean;
    public forecastNextDay?: boolean;
    public cateringPackage?: boolean;
    public redemption?: boolean;
    public overrideFixedRate?: boolean;
    public calculationRule?: string;
    public postingRhythm?: string;
    public packageElement?: string;
    public addToRateMode?: string;
    public isActive?: boolean;
    public inactiveDate?: string;
    public sourceName?: string;
    public sourceID?: string;
    public action?: string;
    public packageDetails?: PackageDetail[];
    public packageItems?: PackageItem[];

    public constructor(init?: Partial<Package>) { (Object as any).assign(this, init); }
}

export class HotelPackage
{
    public package?: Package;
    public subscriptionId?: string;
    public cendynPropertyId?: string;

    public constructor(init?: Partial<HotelPackage>) { (Object as any).assign(this, init); }
}

TypeScript HotelPackage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /HotelPackage/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<HotelPackage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
  <CendynPropertyId>String</CendynPropertyId>
  <Package>
    <Action>String</Action>
    <AddToRate>false</AddToRate>
    <AddToRateMode>String</AddToRateMode>
    <CalculationRule>String</CalculationRule>
    <CateringPackage>false</CateringPackage>
    <CendynPropertyID>String</CendynPropertyID>
    <CurrencyCode>String</CurrencyCode>
    <ExternalID>String</ExternalID>
    <ForecastGroup>String</ForecastGroup>
    <ForecastNextDay>false</ForecastNextDay>
    <HotelCode>String</HotelCode>
    <InactiveDate>0001-01-01T00:00:00</InactiveDate>
    <IsActive>false</IsActive>
    <OverrideFixedRate>false</OverrideFixedRate>
    <PackageCode>String</PackageCode>
    <PackageDescription>String</PackageDescription>
    <PackageDetails>
      <PackageDetail>
        <Action>String</Action>
        <AddToRate>false</AddToRate>
        <AmountAfterTax>0</AmountAfterTax>
        <AmountBeforeTax>0</AmountBeforeTax>
        <Code>String</Code>
        <EndDate>0001-01-01T00:00:00</EndDate>
        <Friday>false</Friday>
        <IsFixedCharge>false</IsFixedCharge>
        <ItemId>String</ItemId>
        <ItemName>String</ItemName>
        <Monday>false</Monday>
        <POSAllowance>0</POSAllowance>
        <PointsTotal>0</PointsTotal>
        <PriceAmount>0</PriceAmount>
        <Quantity>0</Quantity>
        <Recurrence>String</Recurrence>
        <Relation>String</Relation>
        <Saturday>false</Saturday>
        <ShowInReservation>false</ShowInReservation>
        <StartDate>0001-01-01T00:00:00</StartDate>
        <Sunday>false</Sunday>
        <Thursday>false</Thursday>
        <Tuesday>false</Tuesday>
        <UseInCRS>false</UseInCRS>
        <Wednesday>false</Wednesday>
      </PackageDetail>
    </PackageDetails>
    <PackageElement>String</PackageElement>
    <PackageItems>
      <PackageItem>
        <ItemName>String</ItemName>
        <Quantity>0</Quantity>
      </PackageItem>
    </PackageItems>
    <PostNextDay>false</PostNextDay>
    <PostingRhythm>String</PostingRhythm>
    <PriceAmount>0</PriceAmount>
    <PrintSeparately>false</PrintSeparately>
    <Redemption>false</Redemption>
    <SellSeparate>false</SellSeparate>
    <ShortDescription>String</ShortDescription>
    <SourceID>String</SourceID>
    <SourceName>String</SourceName>
    <TaxIncluded>false</TaxIncluded>
  </Package>
  <SubscriptionId>String</SubscriptionId>
</HotelPackage>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
  <ErrorCount>0</ErrorCount>
  <RecordCount>0</RecordCount>
  <StatusCode>String</StatusCode>
</Response>