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            <enumeration value="TOKENIZED_CARD"/>
  51        </restriction>
  52    </simpleType>
  53
  54    <simpleType name="currencyType">
  55        <restriction base="string">
  56            <enumeration value="ISK"/>
  57            <enumeration value="EUR"/>
  58        </restriction>
  59    </simpleType>
  60
  61    <simpleType name="balanceType">
  62        <restriction base="decimal">
  63            <fractionDigits value="2"/>
  64        </restriction>
  65    </simpleType>
  66
  67    <complexType name="account">
  68        <annotation><documentation>
  69            Represents an account with ISNIC.
  70        </documentation></annotation>
  71        <sequence>
  72            <element name="id" type="unsignedInt"/>
  73            <element name="contactHandle" type="eppcom:clIDType"/>
  74            <element name="allowedContactHandles" type="is-ext-account:allowedContactHandlesType"/>
  75            <element name="number" type="string" minOccurs="0" maxOccurs="1"/>
  76            <element name="owner" type="string"/>
  77            <element name="expireYear" type="unsignedShort"/>
  78            <element name="expireMonth" type="is-ext-account:monthType"/>
  79            <element name="brand" type="is-ext-account:brandType" minOccurs="0" maxOccurs="1"/>
  80            <element name="currency" type="is-ext-account:currencyType" minOccurs="0" maxOccurs="1"/>
  81            <element name="balance" type="is-ext-account:balanceType"/>
  82            <element name="backupAccountID" type="unsignedInt"/>
  83        </sequence>
  84    </complexType>
  85</schema>