Home > Cloud Cruiser 4 > REST API reference > Discounts and surcharges > Discount XML schema

Discount XML schema

Table of contents
No headers

This XML schema describes a discount or surcharge.

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.cloudcruiser.com/webservices/v2/Common" xmlns:tns="http://www.cloudcruiser.com/webservices/v2/Discount"attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.cloudcruiser.com/webservices/v2/Discount">
  <xs:import/>
  <xs:import namespace="http://www.cloudcruiser.com/webservices/v2/Common"/>
  <xs:element name="discount" type="tns:Discount"/>
  <xs:element name="discountList">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" minOccurs="0" ref="tns:discount"/>
      </xs:sequence>
      <xs:attribute name="totalCount" type="xs:int"/>
      <xs:attribute name="retrievedCount" type="xs:int"/>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="Discount">
    <xs:sequence>
      <xs:element name="name" type="xs:string"/>
      <xs:element minOccurs="0" name="description" type="xs:string"/>
      <xs:element default="DISCOUNT" name="type" type="xs:string"/>
      <xs:element default="PERCENTAGE" name="unitsType" type="xs:string"/>
      <xs:element name="value" type="xs:double"/>
      <xs:element default="true" name="allServices" type="xs:boolean"/>
      <xs:element minOccurs="0" name="appliedServices">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="service" type="ns1:Service"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="id" type="xs:int"/>
  </xs:complexType>
</xs:schema>
Last modified

Tags

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP