1<?xml version="1.0" encoding="UTF-8"?>
   2<schema xmlns="http://www.w3.org/2001/XMLSchema"
   3        xmlns:is-ext-account="urn:is.isnic:xml:ns:is-ext-account-1.0"
   4        xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
   5        targetNamespace="urn:is.isnic:xml:ns:is-ext-account-1.0"
   6        elementFormDefault="qualified">
   7
   8    <annotation><documentation>.is account extension</documentation></annotation>
   9
  10
  11    <import namespace="urn:ietf:params:xml:ns:eppcom-1.0" schemaLocation="eppcom-1.0.xsd"/>
  12
  13    <element name="info" type="is-ext-account:infoType"/>
  14
  15    <!--
  16    Child elements of the <info> and <transfer> commands.
  17    -->
  18    <complexType name="infoType">
  19    </complexType>
  20
  21    <element name="infData" type="is-ext-account:infDataType"/>
  22
  23    <complexType name="infDataType">
  24        <sequence>
  25            <element name="account" type="is-ext-account:account"
  26                     minOccurs="0" maxOccurs="unbounded"/>
  27        </sequence>
  28    </complexType>
  29
  30    <complexType name="allowedContactHandlesType">
  31        <sequence>
  32            <element name="contact" type="eppcom:clIDType"
  33                     maxOccurs="unbounded"/>
  34        </sequence>
  35    </complexType>
  36
  37    <simpleType name="monthType">
  38        <restriction base="unsignedShort">
  39            <minInclusive value="1"/>
  40            <maxInclusive value="12"/>
  41        </restriction>
  42    </simpleType>
  43
  44    <simpleType name="brandType">
  45        <restriction base="string">
  46            <enumeration value="ISNICPP"/>
  47            <enumeration value="VISA"/>
  48            <enumeration value="MASTERCARD"/>
  49            <enumeration value="JCB"/>
  50        </restriction>
  51    </simpleType>
  52
  53    <simpleType name="currencyType">
  54        <restriction base="string">
  55            <enumeration value="ISK"/>
  56            <enumeration value="EUR"/>
  57        </restriction>
  58    </simpleType>
  59
  60    <simpleType name="balanceType">
  61        <restriction base="decimal">
  62            <fractionDigits value="2"/>
  63        </restriction>
  64    </simpleType>
  65
  66    <complexType name="account">
  67        <annotation><documentation>
  68            Represents an account with ISNIC.
  69        </documentation></annotation>
  70        <sequence>
  71            <element name="id" type="unsignedInt"/>
  72            <element name="contactHandle" type="eppcom:clIDType"/>
  73            <element name="allowedContactHandles" type="is-ext-account:allowedContactHandlesType"/>
  74            <element name="number" type="string" minOccurs="0" maxOccurs="1"/>
  75            <element name="owner" type="string"/>
  76            <element name="expireYear" type="unsignedShort"/>
  77            <element name="expireMonth" type="is-ext-account:monthType"/>
  78            <element name="brand" type="is-ext-account:brandType"/>
  79            <element name="currency" type="is-ext-account:currencyType" minOccurs="0" maxOccurs="1"/>
  80            <element name="balance" type="is-ext-account:balanceType"/>
  81            <element name="backupAccountID" type="unsignedInt"/>
  82        </sequence>
  83    </complexType>
  84</schema>