Country Code Determination Normalizer

The country code determination (CCD) normalizer determines country code zones.

POST /objects/Normalizer/Ccd shows how to create a new country code determination normalizer.
Table 1. POST /objects/Normalizer/Ccd
URL
POST http://localhost:8080/matrixx/data/objects/Normalizer/Ccd
Input
<?xml version="1.0" encoding="UTF-8"?>
<CcdNormalizer name="Country Code Determination (MCC/MNC)">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ValueList default="0">
        <value color="#ff0000" description="Country Code Not Defined" id="0" index="0" name="Unknown"/>
        <value color="#ff00" description="CC mapped to Zone A" id="1" index="1" name="Zone A CC"/>
        <value color="#99ff" description="CC mapped to Zone B" id="2" index="2" name="Zone B CC"/>
        <value color="#ffff" description="CC mapped to Zone C" id="3" index="3" name="Zone C CC"/>
        <value color="#ffff00" description="CC mapped to Zone D" id="4" index="4" name="Zone D CC"/>
    </ValueList>
    <ResultList>
        <result index="1" value="10"/>
        <result index="2" value="20"/>
        <result index="3" value="30"/>
        <result index="4" value="40"/>
    </ResultList>
</CcdNormalizer> 
Response
<CreateResponse>
    <type>Normalizer</type>
    <DomainId>1</DomainId>
    <Result>0</Result>
    <ResultText>Success</ResultText>
    <ObjectId>1092</ObjectId>
    <Revision>0</Revision>
</CreateResponse> 
GET /objects/Normalizer/Ccd/{id} shows how to retrieve a country code determination normalizer from the in-memory pricing database.
Table 2. GET /objects/Normalizer/Ccd/{id}
URL
GET http://localhost:8080/matrixx/data/objects/Normalizer/Ccd/1092
Response
<?xml version="1.0" encoding="UTF-8"?>
<CcdNormalizer name="Country Code Determination (MCC/MNC)">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ValueList default="0">
        <value color="#ff0000" description="Country Code Not Defined" id="0" index="0" name="Unknown"/>
        <value color="#ff00" description="CC mapped to Zone A" id="1" index="1" name="Zone A CC"/>
        <value color="#99ff" description="CC mapped to Zone B" id="2" index="2" name="Zone B CC"/>
        <value color="#ffff" description="CC mapped to Zone C" id="3" index="3" name="Zone C CC"/>
        <value color="#ffff00" description="CC mapped to Zone D" id="4" index="4" name="Zone D CC"/>
    </ValueList>
    </ValueList>
    <ResultList>
        <result index="1" value="10"/>
        <result index="2" value="20"/>
        <result index="3" value="30"/>
        <result index="4" value="40"/>
    </ResultList>
</CcdNormalizer> 
PUT /objects/Normalizer/Ccd/{id} shows how to update an existing country code normalizer.
Table 3. PUT /objects/Normalizer/Ccd/{id}

URL
PUT http://localhost:8080/matrixx/data/objects/Normalizer/Ccd/1092
Input
<?xml version="1.0" encoding="UTF-8"?>
<CcdNormalizer name="Country Code Determination (MCC/MNC)">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ResultList>
        <result index="1" value="10"/>
        <result index="2" value="20"/>
        <result index="2" value="25"/>
        <result index="3" value="30"/>
        <result index="4" value="40"/>
    </ResultList>
</CcdNormalizer> 
Response
<UpdateResponse>
    <type>Normalizer</type>
    <Result>0</Result>
    <ResultText>Success</ResultText>
    <ObjectId>1092</ObjectId>
    <Revision>1</Revision>
</UpdateResponse>