Rank/Exclusivity Import/Export for Promotions

The import/export functionality also includes the rank and exclusivity attributes, as follows:

<xsd:complexType name="Promotion" mixed="false">
  <xsd:sequence>
    <xsd:element name="enabled-flag" type="xsd:boolean" minOccurs="0" maxOccurs="1" />
    <xsd:element name="qualifiers" type="PromotionQualifiers" minOccurs="0" maxOccurs="1" />
    <!-- NEW --> 
    <xsd:element name="rank" type="xsd:int" minOccurs="0" maxOccurs="1" />
    <xsd:element name="exclusive" type="PromotionExclusivity" minOccurs="0" maxOccurs="1" />
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="no" />
    <xsd:enumeration value="class" />
    <xsd:enumeration value="global" />
  </xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="PromotionExclusivity">
    <xsd:element name="name" type="LocalizedString" minOccurs="0" maxOccurs="unbounded" />
    ...
  </xsd:sequence>
  ...    
</xsd:complexType>
Note: Though the PromotionExclusivity setting is mandatory, the xsd element can't be declared as mandatory for technical reasons. Thus, a default value is set for a new promotion in case the element isn't specified. This default value is no.
Note: Promotion import format supports rank values >= 1 only.

The complex types BogoProductDiscount and TieredShippingDiscount contain the discount types.

  <xsd:element name="fixed-price" type="Amount" />
  <xsd:element name="percentage" type="Percentage" />
  <xsd:element name="amount" type="Amount" />
  <xsd:element name="free" type="EmptyElement"/>
Note: The element free-discount is an empty element.