<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Title: Configure Reporting Codes - Delete - request schema</xs:documentation>
    <xs:documentation>Delete a reporting code</xs:documentation>
    <xs:documentation>Version 1.0 : 2018-11-05.  Initial schema creation</xs:documentation>
  </xs:annotation>
  <xs:element name="request">
    <xs:complexType>
      <xs:all>
        <xs:element minOccurs="1" maxOccurs="1" name="criteria">
          <xs:complexType>
            <xs:all>
              <xs:element minOccurs="1" maxOccurs="1" name="category">
                <xs:annotation>
                  <xs:documentation>The category for the reporting code to action against</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:enumeration value="NotSpecified">
                      <xs:annotation>
                        <xs:documentation>No filter will be applied for this field.</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration value="Promotion">
                      <xs:annotation>
                        <xs:documentation>Only provide Reporting Group Codes that are defined for Promotions.</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration value="CampaignCoupon">
                      <xs:annotation>
                        <xs:documentation>Only provide Reporting Group Codes that are defined for Campaign/Coupons.</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration value="MissedPromotion">
                      <xs:annotation>
                        <xs:documentation>Only provide Reporting Group Codes that are defined for Missed Promotions.</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element minOccurs="1" maxOccurs="1" name="code" type="xs:string">
                <xs:annotation>
                  <xs:documentation>The code for the reporting code to action against</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:all>
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="1" name="remoteusername">
          <xs:annotation>
            <xs:documentation>Where available, the name of the user in the remote system.</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="200" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:all>
      <xs:attribute name="companykey" use="optional">
        <xs:annotation>
          <xs:documentation>The company key assigned to your company.  To view the company key navigate to Configuration / Manage Company.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="200" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:anyAttribute processContents="skip" />
    </xs:complexType>
  </xs:element>
</xs:schema>