GOPHERSPACE.DE - P H O X Y
gophering on gopher.fnord.one






Network Working Group                                        K. Fujimura
Request for Comments: 4153                                           NTT
Category: Informational                                        M. Terada
                                                              NTT DoCoMo
                                                         D. Eastlake 3rd
                                                   Motorola Laboratories
                                                          September 2005


                 XML Voucher: Generic Voucher Language

Status of This Memo

   This memo provides information for the Internet community.  It does
   not specify an Internet standard of any kind.  Distribution of this
   memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2005).

Abstract

   This document specifies rules for defining voucher properties in XML
   syntax.  A voucher is a logical entity that represents a right to
   claim goods or services.  A voucher can be used to transfer a wide
   range of electronic values, including coupons, tickets, loyalty
   points, and gift certificates, which often have to be processed in
   the course of payment and/or delivery transactions.

Table of Contents

   1.  Introduction .................................................  2
   2.  Processing Model .............................................  2
   3.  Trust Model ..................................................  4
   4.  Component Structure ..........................................  4
   5.  Syntax Overview and Examples .................................  6
   6.  Syntax and Semantics .........................................  8
       6.1.  ...............................................  8
       6.2.  .................................................  9 <br>       6.3. <Description> ...........................................  9 <br>       6.4. <Provider> ..............................................  9 <br>       6.5. <Issuer> ................................................ 10 <br>       6.6. <Holder> ................................................ 10 <br>       6.7. <Collector> ............................................. 11 <br>       6.8. <Value> ................................................. 11 <br>            6.8.1. <Ratio> .......................................... 13 <br>            6.8.2. <Fixed> .......................................... 13 <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 1] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>       6.9. <Merchandise> ........................................... 14 <br>       6.10. <ValidPeriod> .......................................... 14 <br>       6.11. <Conditions> ........................................... 15 <br>   7.  IANA Considerations .......................................... 15 <br>   8.  VTS Schema Example ........................................... 18 <br>   9.  Security Considerations ...................................... 18 <br>   10. Acknowledgements ............................................. 19 <br>   11. Normative References ......................................... 19 <br>   12. Informative References ....................................... 20 <br> <br>1.  Introduction <br> <br>   This document specifies rules for defining voucher properties in XML <br>   syntax.  The motivation and background of the specification are <br>   described in [VTS]. <br> <br>   A voucher is a logical entity that represents a certain right and <br>   that is logically managed by the Voucher Trading System (VTS).  A <br>   voucher is generated by the issuer, traded among users, and finally <br>   collected by the collector using VTS. <br> <br>   This document defines the syntax and semantics of the Voucher <br>   Component, which defines voucher meaning and processing rules in XML <br>   syntax [XML].  A Voucher Component defines the properties that must <br>   be satisfied to allow the voucher to be processed by VTS or other <br>   trading systems; e.g., a wallet or merchant system.  VTS definitions <br>   and models are also defined in [VTS]. <br> <br>   Note: This document uses "voucher" as an "instance of voucher", whose <br>   meaning is defined by the Voucher Component.  In other words, a <br>   Voucher Component is NOT a voucher, and multiple vouchers can be <br>   issued and managed by the VTS using the same Voucher Component. <br> <br>   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", <br>   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this <br>   document are to be interpreted as described in [RFC2119] <br> <br>2.  Processing Model <br> <br>   There are several ways of implementing VTS and technologies are <br>   continually changing.  For discount coupons or event tickets, for <br>   example, the smartcard-based offline VTS is often preferred, whereas <br>   for bonds or securities, the centralized online VTS is preferred.  It <br>   is impractical to define standard protocols for issuing, <br>   transferring, or redeeming vouchers at this time. <br> <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 2] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   To provide implementation flexibility, this document assumes a <br>   modular wallet architecture that allows multiple VTSes to be added as <br>   plug-ins.  In this architecture, instead of specifying a standard <br>   voucher transfer protocol, two specifications, Voucher Component and <br>   VTS-API, are standardized (Figure 1). <br> <br>   After the sender and receiver agree on which vouchers are to be <br>   traded and which VTS is to be used, the issuing system or wallet <br>   system requests the corresponding VTS plug-in to permit the issue, <br>   transfer, or redeem transactions to be performed via the VTS API. <br>   The VTS then rewrites the ownership of the vouchers using the VTS- <br>   specific protocol.  Finally, a completion event is sent to the wallet <br>   systems or issuing/collecting systems. <br> <br>   This document describes the Voucher Component specification.  The <br>   VTS-API specification is defined in [VTS-API]. <br> <br>   Sender wallet/Issuing system      Receiver wallet/Collecting system <br>   +---------------------------+       +---------------------------+ <br>   |                           |       |                           | <br>   |  |                    Voucher Component                    |  | <br>   |  |            (Specifies VTS Provider and Promise)         |  | <br>   |  |-------------------------------------------------------->|  | <br>   |  |                        |       |                        |  | <br>   |  |         Intention to receive and payment (option)       |  | <br>   |  |<- - - - - - - - - - - - - - - - - - - - - - - - - - - - |  | <br>   |  |                        |       |                        |  | <br>   |  |                        |       |                        |  | <br>   |  | Issue/transfer/  VTS   |       |   VTS      Register    |  | <br>   |  | redeem request   plug-in       |   plug-in  Listener(*1)|  | <br>   |  |------------------>|    |       |    |<------------------|  | <br>   |  | (VTS-API)         |<- - - - - - - ->|         (VTS-API) |  | <br>   |  |                   | VTS-specific    |                   |  | <br>   |  |                   | protocol if VTS |                   |  | <br>   |  |                   | is distributed  |                   |  | <br>   |  |  Result           |<- - - - - - - ->|       Notify(*2)  |  | <br>   |  |<------------------|    |       |    |------------------>|  | <br>   +---------------------------+       +---------------------------+ <br> <br>   (*1) Registration is optional.  Note also that the VTS plug-ins are <br>        usually pre-registered when the wallet or collecting system <br>        is started. <br> <br>   (*2) If a listener is registered. <br> <br>           Figure 1. Wallet architecture with VTS plug-ins <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 3] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>3.  Trust Model <br> <br>   A voucher is trusted if the Issuer and VTS Provider are trusted, as <br>   the Issuer is responsible for the contents of the voucher and the VTS <br>   Provider is responsible for preventing ownership from being assigned <br>   to multiple users. <br> <br>   The trust level required for the Issuer and VTS Provider depends on <br>   the type (or Promise) of the voucher.  To provide the information <br>   needed for verification, the conditions of the Issuer and VTS <br>   Provider are specified in the Voucher Component and given as input to <br>   the verifier; e.g., wallet system or other software.  The trust of a <br>   voucher is thus verified through the Voucher Component.  This model <br>   enables trading partners to verify their trust in the voucher <br>   regardless of their trust in the partners. <br> <br>   This document assumes that the Voucher Component is the root of <br>   trust.  If a malicious user could alter the Voucher Component, a <br>   forged voucher could be verified as valid. <br> <br>   When a Voucher Component is delivered from the trusted VTS Provider, <br>   Issuer, or trusted third party, a secure communication channel (e.g., <br>   [TLS], [IPSEC], or object security, such as [XMLDSIG]) should be used <br>   to prevent alteration during the delivery. <br> <br>   Note: The Voucher Component does not have to be sent from the sender <br>   of the voucher.  Note also that a set of trusted Voucher Components <br>   can be downloaded before a transaction is conducted. <br> <br>4.  Component Structure <br> <br>   The Voucher Component provides the information needed to identify the <br>   monetary value or merchandize rendered when the voucher is redeemed. <br>   It includes <br> <br>   o how much value/items can be claimed in exchange for the voucher, <br>      and <br> <br>   o restrictions applied to the voucher <br> <br>      - participants (VTS Provider, Issuer, Holder, and Collector), <br> <br>      - objects (merchandise) to be claimed, <br> <br>      - time when valid (validity period), and <br> <br>      - others. <br> <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 4] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   The Voucher Component also provides common properties useful for <br>   displaying and manipulating the contents of wallet systems.  It <br>   includes the title and description of each voucher. <br> <br>   The Voucher Component contains the following components: <br> <br>   Title Component <br> <br>      Provides the title of the voucher.  This is mainly for listing the <br>      entities stored in a wallet system. <br> <br>   Description Component <br> <br>      Provides a short description of the voucher.  This is mainly for <br>      listing the entities stored in a wallet system. <br> <br>   Provider Component <br> <br>      Provides restrictions on which VTS Provider (or VTS plug-in) can <br>      be used for trading the voucher. <br> <br>   Issuer Component <br> <br>      Provides restrictions on the Issuer of the voucher. <br> <br>   Holder Component <br> <br>      Provides restrictions on the Holder of the voucher. <br> <br>   Collector Component <br> <br>      Provides restrictions on the Collector of the voucher. <br> <br>   Value Component <br> <br>      Provides the value of each voucher.  There are two types of <br>      values: fixed and ratio values.  For a fixed value, the currency <br>      and the figure is specified.  For a ratio value, the discount <br>      ratio of the corresponding merchandize is specified. <br> <br>      The Value Component also indicates the number of vouchers to be <br>      redeemed for claiming the merchandise or monetary value specified <br>      in the Merchandise Component or Value Component.  If "n" (>0) is <br>      specified, the merchandize or monetary value can be claimed in <br>      exchange for "n sheets of" vouchers.  If "0" is specified, it can <br>      be used repeatedly. <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 5] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   Merchandise Component <br> <br>      Provides restrictions on the object to be claimed.  The domain- <br>      specific meaning of the voucher (e.g., reference number of the <br>      merchandize or seat number for an event ticket) is specified to <br>      identify the merchandize rendered when the voucher is redeemed. <br> <br>   ValidPeriod Component <br> <br>      Provides restrictions on the validity period of the voucher; i.e., <br>      start date and end date. <br> <br>   Condition Component <br> <br>      Provides any other applicable restrictions.  This is intended to <br>      cover contracts between the issuer and holder of the voucher in <br>      natural language form. <br> <br>   Using the above Components, semantics for diverse types of vouchers <br>   can be defined as shown in Table 1. <br> <br>   +----------------+--------------------------------+---------------+ <br>   |                |             Value              |  Restrictions | <br>   |                +-----+---------------+----------+---------------+ <br>   |   Examples     |Ratio|    Fixed      |Number    |  Merchandise  | <br>   |                |     +------+--------+needed for|               | <br>   |                |     |Amount|Currency|redemption|               | <br>   +----------------+-----+------+--------+----------+---------------+ <br>   |Gift certificate|     |   25 |  USD   |        1 |(Not specified)| <br>   |Loyalty point   |     |    1 |  AUD   |       10 |(Not specified)| <br>   |Member card     |  20%|      |        |        0 |(Not specified)| <br>   |Coupon          |  30%|      |        |        1 |Beef 500g      | <br>   |Event ticket    | 100%|      |        |        1 |Hall A, S ,K23 | <br>   |Exchange ticket | 100%|      |        |        1 |ISBN:0071355014| <br>   +----------------+-----+------+--------+----------+---------------+ <br> <br>          Table 1. Examples of vouchers and their properties <br> <br>5.  Syntax Overview and Examples <br> <br>   This section provides an overview and examples of Voucher Components. <br>   The formal syntax and semantics are found in Sections 6 and 7. <br> <br>   Voucher Components are represented by the <Voucher> element, which <br>   has the following structure (where "?" denotes zero or one <br>   occurrence): <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 6] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>      <Voucher> <br>        (Title) <br>        (Description)? <br>        (Provider) <br>        (Issuer)? <br>        (Holder)? <br>        (Collector)? <br>        (Value) <br>        (Merchandise)? <br>        (ValidPeriod)? <br>        (Conditions)? <br>      </Voucher> <br> <br>   An example of a Voucher Component is described below.  This is an <br>   example of a five-dollar discount coupon for specific merchandize, a <br>   book with ISBN number 0071355014.  The coupon is valid from April 1, <br>   2001, to March 31, 2002.  To claim this offer, one voucher must be <br>   spent. <br> <br>      <?xml version="1.0" encoding="UTF-8"?> <br>      <Voucher xmlns="urn:ietf:params:xml:ns:vts-lang" <br>               xmlns:vts="http://www.example.com/vts"> <br>        <Title>IOTP Book Coupon
        $5 off IOTP Book
        
          VE2.31
        
        
          
            1DA8DFCF95521014BBB7171B95545E8D61AE803F
          

        
        
        
          
        
        
                             bk:isbn="0071355014"/>
        

        
        
          The value of this coupon is subject to tax.
        

      







Fujimura, et al.             Informational                      [Page 7]

RFC 4153         XML Voucher: Generic Voucher Language    September 2005


6.  Syntax and Semantics

   The general structure of an XML Voucher Component is described in
   Section 4.  This section details the Voucher Component features.
   Features described in this section MUST be implemented unless
   otherwise indicated.  The syntax is defined via [XML-Schema-1]
   [XML-Schema-2].  For clarity, unqualified elements in schema
   definitions are in the XML schema namespace:

      xmlns="http://www.w3.org/2001/XMLSchema"

   References to XML Voucher schema defined herein use the prefix "gvl"
   and are in the namespace:

      xmlns:gvl="urn:ietf:params:xml:ns:vts-lang"

   This namespace URI for elements defined by this document is a URN
   [URN] that uses the namespace identifier 'ietf', defined by
   [URN-NS-IETF] and extended by [XML-Registry].

   This namespace is also used for unqualified elements in voucher
   examples.

6.1.  

   The  element contains , <Provider>, and <Value> <br>   elements and optionally contains <Description>, <Issuer>, <Holder>, <br>   <Collector>, <ValidPeriod>, and <Condition> elements.  These sub- <br>   elements are defined in the following sections. <br> <br>   The <Voucher> element is defined by the following schema: <br> <br>      <element name="Voucher" type="gvl:VoucherType"/> <br>      <complexType name="VoucherType"> <br>       <sequence> <br>        <element ref="gvl:Title"/> <br>        <element ref="gvl:Description" minOccurs="0"/> <br>        <element ref="gvl:Provider"/> <br>        <element ref="gvl:Issuer" minOccurs="0"/> <br>        <element ref="gvl:Holder" minOccurs="0"/> <br>        <element ref="gvl:Collector" minOccurs="0"/> <br>        <element ref="gvl:Value"/> <br>        <element ref="gvl:Merchandise" minOccurs="0"/> <br>        <element ref="gvl:ValidPeriod" minOccurs="0"/> <br>        <element ref="gvl:Conditions"  minOccurs="0"/> <br>       </sequence> <br>      </complexType> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 8] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>6.2.  <Title> <br> <br>   The <Title> element contains a simpletext title of the voucher.  This <br>   is mainly for listing the entities stored in a wallet system. <br> <br>   The <Title> element has no attribute. <br> <br>   The <Title> element is defined by the following schema: <br> <br>      <element name="Title" type="string"/> <br> <br>6.3.  <Description> <br> <br>   The <Description> element contains a simpletext description of the <br>   voucher.  This is mainly for listing the entities stored in a wallet <br>   system. <br> <br>   The <Description> element has no attribute. <br> <br>   The <Description> element is defined by the following schema: <br> <br>      <element name="Description" type="string"/> <br> <br>6.4.  <Provider> <br> <br>   The <Provider> element may contain any element that is used to <br>   specify or restrict the VTS Provider of the voucher.  The sub- <br>   elements contained in this element depend on the implementation of <br>   the VTS. <br> <br>   An implementation of a wallet system may use this information to <br>   identify and/or authenticate the VTS Provider when the VTS plug-in is <br>   registered (see Section 7 of [VTS-API]).  These implementation- <br>   specific elements of the VTS can be extended using [XML-ns].  An <br>   example of such a schema definition is described in Section 8. <br> <br>   The <Provider> element has a string-type "name" attribute that is <br>   used to specify the name of the VTS Provider. <br> <br>   The <Provider> element is defined by the following schema: <br> <br>      <element name="Provider" type="gvl:RoleType"/> <br>      <complexType name="RoleType" mixed="true"> <br>       <sequence> <br>        <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> <br>       </sequence> <br>       <attribute name="name" type="string"/> <br>      </complexType> <br> <br> <br> <br>Fujimura, et al.             Informational                      [Page 9] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>6.5.  <Issuer> <br> <br>   The <Issuer> element may contain any element that is used to specify <br>   or restrict the Issuer of the voucher. <br> <br>   The Issuer of the voucher is generally managed by the VTS [VTS-API]. <br>   There is no need to specify the Issuer of the voucher using this <br>   element if there are no restrictions on the Issuer. <br> <br>   An implementation of a VTS may use this element to describe the <br>   authentication data and/or qualification information of the Issuer. <br>   This implementation-specific information can be extended through <br>   sub-elements using [XML-ns].  An example of such a schema definition <br>   is described in Section 8. <br> <br>   The <Issuer> element has a string-type "name" attribute that is used <br>   to specify the name of the Issuer. <br> <br>   The <Issuer> element is defined by the following schema: <br> <br>      <element name="Issuer" type="gvl:RoleType"/> <br> <br>   The <RoleType> element type is defined in Section 6.4. <br> <br>   If the <Issuer> element is omitted, it MUST be interpreted that there <br>   are no restrictions on the Issuer. <br> <br>6.6.  <Holder> <br> <br>   The <Holder> element may contain any element that is used to specify <br>   or restrict the Holder of the voucher. <br> <br>   The Holder of the voucher is generally managed by the VTS [VTS-API]. <br>   There is no need to specify the Holder of the voucher using this <br>   element if there are no restrictions on the Holder. <br> <br>   An implementation of a VTS may use this element to describe the <br>   authentication data and/or qualification information of the Holder. <br>   This implementation-specific information can be extended through <br>   sub-elements using [XML-ns]. <br> <br>   The <Holder> element has a string-type "name" attribute that is used <br>   to specify the name of the Holder. <br> <br> <br> <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 10] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   The <Holder> element is defined by the following schema: <br> <br>      <element name="Holder" type="gvl:RoleType"/> <br> <br>   The <RoleType> element type is defined in Section 6.4. <br> <br>   If the <Holder> element is omitted, it MUST be interpreted that there <br>   are no restrictions on the Holder. <br> <br>6.7.  <Collector> <br> <br>   The <Collector> element may contain any element that is used to <br>   specify or restrict the Collector of the voucher. <br> <br>   There is no need to specify the Collector of the voucher using this <br>   element if there are no restrictions on the Collector. <br> <br>   An implementation of a VTS may use this element to describe the <br>   authentication data and/or qualification information of the <br>   Collector.  This implementation-specific information can be extended <br>   through sub-elements using [XML-ns]. <br> <br>   The <Collector> element has a string-type "name" attribute that is <br>   used to specify the name of the Collector. <br> <br>   The <Collector> element is defined by the following schema: <br> <br>      <element name="Collector" type="gvl:RoleType"/> <br> <br>   The <RoleType> element type is defined in Section 6.4. <br> <br>   If the <Collector> element is omitted, it MUST be interpreted that <br>   there are no restrictions on the Collector. <br> <br>6.8.  <Value> <br> <br>   The <Value> element optionally contains a <Fixed> or <Ratio> element <br>   but not both.  These sub-elements are defined in the following <br>   sections. <br> <br>   The <Value> element has a "type" attribute that is used to specify <br>   the value process type.  This attribute is provided to calculate the <br>   amount paid when the vouchers are redeemed at Merchant site, etc. <br> <br> <br> <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 11] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   The following identifiers are defined for the "type" attribute. <br> <br>   Exchange: Items specified in the <Merchandise> element can be claimed <br>      in exchange for the voucher.  If this type is selected, neither <br>      the <Ratio> nor the <Fixed> element MUST be specified.  Note that <br>      this value process type has the same meaning as: <br> <br>      <Value type="discount"><Ratio percentage="100"/></Value> <br> <br>   Discount: Items specified in the <Merchandise> element can be <br>      purchased at the discount price calculated by the <Ratio> or <br>      <Fixed> element. <br> <br>   Monetary: Items specified in the <Merchandise> element can be <br>      purchased using the value of the voucher.  (Note: if the <br>      <Merchandise> element is not specified, the voucher can be used <br>      for any purchase.)  If this type is selected, the <Fixed> element <br>      MUST be specified. <br> <br>   The <Value> element also has a "spend" attribute that is used to <br>   specify the number of vouchers to be redeemed for claiming the goods, <br>   services, or monetary value specified.  For example, if "n" (>0) is <br>   specified, goods can be claimed in exchange for "n sheets of" <br>   vouchers.  (Note: Multiple vouchers for the same Voucher Component <br>   must exist in this case.)  If "0" is specified, it can be used <br>   repeatedly. <br> <br>   If the "spend" attribute or the whole element is omitted, it MUST be <br>   interpreted that "1" is specified for the "spend" attribute. <br> <br>   The <Value> element is defined by the following schema: <br> <br>      <element name="Value" type="gvl:ValueType"/> <br>      <complexType name="ValueType"> <br>       <sequence minOccurs="0"> <br>        <choice> <br>         <element name="Ratio" type="gvl:RatioValueType"/> <br>         <element name="Fixed" type="gvl:FixedValueType"/> <br>        </choice> <br>       </sequence> <br>       <attribute name="type" type="gvl:ValueProcessType" <br>                  use="required"/> <br>       <attribute name="spend" type="nonNegativeInteger" <br>                  default="1"/> <br>      </complexType> <br> <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 12] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   The <ValueProcessType> element type is defined by the following <br>   schema: <br> <br>      <simpleType name="ValueProcessType"> <br>       <restriction base="string"> <br>        <enumeration value="exchange"/> <br>        <enumeration value="discount"/> <br>        <enumeration value="monetary"/> <br>       </restriction> <br>      </simpleType> <br> <br>6.8.1.  <Ratio> <br> <br>   The <Ratio> element does not contain any contents. <br> <br>   The <Ratio> element has a "percentage" attribute that is used to <br>   specify the discount ratio of the price of the corresponding <br>   merchandize in percentage. <br> <br>   The <RatioValueType> element type is defined by the following schema: <br> <br>      <complexType name="RatioValueType"> <br>       <attribute name="percentage" use="required"> <br>        <simpleType> <br>         <restriction base="float"> <br>          <maxInclusive value="100"/> <br>         </restriction> <br>        </simpleType> <br>       </attribute> <br>      </complexType> <br> <br>6.8.2.  <Fixed> <br> <br>   The <Fixed> element does not contain any contents. <br> <br>   The <Fixed> element has "currency" and "amount" attributes and <br>   optionally a "decimalPower" attribute as follows: <br> <br>   Currency: Provides the unit of the monetary value in the three letter <br>      ISO currency code [ISO4217].  For example, US dollars is "USD". <br> <br>   Amount: Provides the amount of the monetary value per voucher. <br> <br>   DecimalPower: Provides the number of decimal digits from the decimal <br>      point applied to the base for the "amount" attribute above.  If <br>      the "decimalPower" attribute is omitted, it MUST be interpreted <br>      that "0" is specified for the "decimalPower" attribute. <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 13] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   For example, with a dollar currency denominated in cents, "1" is <br>   specified for the "amount" attribute, and "-2" is specified for the <br>   "decimalPower" attribute.  Alternately, "0.01" is specified for the <br>   "amount" attribute, and the "decimalPower" attribute is omitted. <br> <br>   The <FixedValueType> type is defined follows: <br> <br>      <complexType name="FixedValueType"> <br>       <attribute name="currency" type="string" use="required"/> <br>       <attribute name="amount" type="float" use="required"/> <br>       <attribute name="decimalPower" type="short" default="0"/> <br>      </complexType> <br> <br>6.9.  <Merchandise> <br> <br>   The <Merchandise> element may contain any element used to specify or <br>   restrict the goods or services rendered when the voucher is redeemed. <br>   The sub-elements contained in this element depend on the application <br>   of the voucher and are left to the other domain-specific <br>   specifications.  Domain-specific elements can be extended as sub- <br>   elements using [XML-ns]. <br> <br>   This element is intended to be interpreted by a collecting system. <br>   An implementation of a wallet system does not have to use this <br>   element.  Any restrictions applied should also be described in the <br>   <Description> element or the <Conditions> elements in natural <br>   language form to enable users to check the restrictions. <br> <br>   The <Merchandise> element does not have any attribute. <br> <br>   The <Merchandise> element is defined by the following schema: <br> <br>      <element name="Merchandise" type="gvl:MerchandiseType"/> <br>      <complexType name="MerchandiseType" mixed="true"> <br>       <sequence> <br>        <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> <br>       </sequence> <br>      </complexType> <br> <br>6.10.  <ValidPeriod> <br> <br>   The <ValidPeriod> element does not contain any contents. <br> <br>   The <ValidPeriod> element has dateTime-type "start" and "end" <br>   attributes that are used to place limits on the validity of the <br>   voucher. <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 14] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   The <ValidPeriod> element is defined by the following schema: <br> <br>      <element name="ValidPeriod" type="gvl:ValidPeriodType"/> <br>      <complexType name="ValidPeriodType"> <br>        <attribute name="start" type="dateTime"/> <br>        <attribute name="end" type="dateTime"/> <br>      </complexType> <br> <br>   If the "start" attribute is omitted, it MUST be interpreted that the <br>   voucher is valid on any date up to that specified by the end <br>   attribute (inclusive).  If the "end" attribute is omitted, it MUST be <br>   interpreted that the voucher is valid from the start attribute with <br>   no expiry.  If neither attribute is specified or the whole element is <br>   omitted, it MUST be interpreted that the voucher is valid at any <br>   time. <br> <br>6.11.  <Conditions> <br> <br>   The <Conditions> element contains any other restrictions or <br>   conditions applied.  This is intended to cover contracts between the <br>   issuer and the holder of the voucher in natural language form. <br> <br>   An implementation of a wallet system SHOULD provide a means of <br>   displaying the text in this element. <br> <br>   The <Conditions> element has no attribute. <br> <br>   The <Conditions> element is defined by the following schema: <br> <br>      <element name="Conditions" type="string"/> <br> <br>7.  IANA Considerations <br> <br>   This document uses URNs to describe XML namespaces and XML schemas <br>   conforming to a registry mechanism described in [XML-Registry].  IANA <br>   has registered two URI assignments. <br> <br>   Registration request for the vts-lang namespace: <br> <br>   URI: urn:ietf:params:xml:ns:vts-lang <br> <br>   Registrant Contact: See the "Authors' Addresses" section of this <br>   document. <br> <br>   XML: None.  Namespace URIs do not represent an XML specification. <br> <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 15] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   Registration request for the vts-lang XML schema: <br> <br>   URI: urn:ietf:params:xml:schema:vts-lang <br> <br>   Registrant Contact: See the "Authors' Addresses" section of this <br>   document. <br> <br>   XML: <br>      BEGIN <br>      <?xml version="1.0" encoding="UTF-8"?> <br> <br>      <schema <br>        targetNamespace="urn:ietf:params:xml:ns:vts-lang" <br>        xmlns:gvl="urn:ietf:params:xml:ns:vts-lang" <br>        xmlns="http://www.w3.org/2001/XMLSchema" <br>        elementFormDefault="qualified"> <br> <br>      <element name="Voucher" type="gvl:VoucherType"/> <br>      <complexType name="VoucherType"> <br>       <sequence> <br>        <element ref="gvl:Title"/> <br>        <element ref="gvl:Description" minOccurs="0"/> <br>        <element ref="gvl:Provider"/> <br>        <element ref="gvl:Issuer" minOccurs="0"/> <br>        <element ref="gvl:Holder" minOccurs="0"/> <br>        <element ref="gvl:Collector" minOccurs="0"/> <br>        <element ref="gvl:Value"/> <br>        <element ref="gvl:Merchandise" minOccurs="0"/> <br>        <element ref="gvl:ValidPeriod" minOccurs="0"/> <br>        <element ref="gvl:Conditions"  minOccurs="0"/> <br>       </sequence> <br>      </complexType> <br> <br>      <element name="Title" type="string"/> <br> <br>      <element name="Description" type="string"/> <br> <br>      <element name="Provider" type="gvl:RoleType"/> <br>      <element name="Issuer"   type="gvl:RoleType"/> <br>      <element name="Holder"   type="gvl:RoleType"/> <br>      <element name="Collector"   type="gvl:RoleType"/> <br>      <complexType name="RoleType" mixed="true"> <br>       <sequence> <br>        <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> <br>       </sequence> <br>       <attribute name="name" type="string"/> <br>      </complexType> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 16] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>      <element name="Value" type="gvl:ValueType"/> <br>      <complexType name="ValueType"> <br>       <sequence minOccurs="0"> <br>        <choice> <br>         <element name="Ratio" type="gvl:RatioValueType"/> <br>         <element name="Fixed" type="gvl:FixedValueType"/> <br>        </choice> <br>       </sequence> <br>       <attribute name="type" type="gvl:ValueProcessType" <br>                  use="required"/> <br>       <attribute name="spend" type="nonNegativeInteger" <br>                  default="1"/> <br>      </complexType> <br> <br>      <simpleType name="ValueProcessType"> <br>       <restriction base="string"> <br>        <enumeration value="exchange"/> <br>        <enumeration value="discount"/> <br>        <enumeration value="monetary"/> <br>       </restriction> <br>      </simpleType> <br> <br>      <complexType name="RatioValueType"> <br>       <attribute name="percentage" use="required"> <br>        <simpleType> <br>         <restriction base="float"> <br>          <maxInclusive value="100"/> <br>         </restriction> <br>        </simpleType> <br>       </attribute> <br>      </complexType> <br> <br>      <complexType name="FixedValueType"> <br>       <attribute name="currency" type="string" use="required"/> <br>       <attribute name="amount" type="float" use="required"/> <br>       <attribute name="decimalPower" type="short" default="0"/> <br>      </complexType> <br> <br>      <element name="Merchandise" type="gvl:MerchandiseType"/> <br>      <complexType name="MerchandiseType" mixed="true"> <br>       <sequence> <br>        <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> <br>       </sequence> <br>      </complexType> <br> <br>      <element name="ValidPeriod" type="gvl:ValidPeriodType"/> <br>      <complexType name="ValidPeriodType"> <br>        <attribute name="start" type="dateTime"/> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 17] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>        <attribute name="end" type="dateTime"/> <br>      </complexType> <br> <br>      <element name="Conditions" type="string"/> <br>     </schema> <br>     END <br> <br>8.  VTS Schema Example <br> <br>   An example of the schema definition for a VTS implementation is <br>   described below. <br> <br>      <?xml version="1.0"?> <br> <br>      <schema <br>       targetNamespace="http://www.example.com/vts" <br>       xmlns:vts="http://www.example.com/vts" <br>       xmlns="http://www.w3.org/2001/XMLSchema" <br>       elementFormDefault="qualified"> <br> <br>       <element name="Version" type="string"/> <br>       <element name="KeyInfo" type="hexBinary"/> <br>      </schema> <br> <br>   Using this schema definition, the <vts:Version> can be used for <br>   specifying the VTS version number, and the <vts:KeyInfo> element can <br>   be used for specifying the Issuer in the Voucher Component, as shown <br>   in Section 5. <br> <br>9.  Security Considerations <br> <br>   The VTS must provide a means to prevent forgery, alteration, <br>   duplicate-redemption, reproduction of a voucher, and non-repudiation <br>   of transactions, as described in Section 3.2 of [VTS].  This will <br>   commonly require the presence of a unique serial number or the like <br>   in each Voucher instance, usually outside the Voucher Component. <br>   These security requirements, however, mainly follow the VTS plug-ins <br>   and their protocols.  This document assumes that the VTS plug-ins are <br>   trusted and are installed by some means; e.g., manually checked as <br>   are other download applications. <br> <br>   The Voucher Component, however, defines restrictions on the VTS <br>   Provider (or VTS plug-in), and, if this information is altered, <br>   incorrect VTS plug-ins not accepted by the issuer could be used, <br>   allowing a forged voucher to be verified as if it were valid.  To <br>   prevent this situation, the Voucher Component should be stored and <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 18] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>   acquired securely; e.g., downloaded from a trusted party using a <br>   secure communication channel, such as [TLS] or [IPSEC], or secured by <br>   the digital signature of a trusted party [XMLDSIG]. <br> <br>10.  Acknowledgements <br> <br>   The following persons, in alphabetic order, contributed substantially <br>   to the material herein: <br> <br>      Ian Grigg <br>      Renato Iannella <br>      Yoshiaki Nakajima <br> <br>11.  Normative References <br> <br>   [ISO4217]      "Codes for the representation of currencies and <br>                  funds", ISO 4217, 1995. <br> <br>   [RFC2119]      Bradner, S., "Key words for use in RFCs to Indicate <br>                  Requirement Levels", BCP 14, RFC 2119, March 1997. <br> <br>   [URN]          Moats, R., "URN Syntax", RFC 2141, May 1997. <br> <br>   [URN-NS-IETF]  Moats, R., "A URN Namespace for IETF Documents", RFC <br>                  2648, August 1999. <br> <br>   [XML]          "Extensible Mark Up Language (XML) 1.0 (Second <br>                  Edition)", A W3C Recommendation, <br>                  <http://www.w3.org/TR/REC-xml>, October 2000. <br> <br>   [XML-ns]       "Namespaces in XML", A W3C Recommendation, <br>                  <http://www.w3.org/TR/REC-xml-names>, January 1999. <br> <br>   [XML-Registry] Mealling, M., "The IETF XML Registry", BCP 81, RFC <br>                  3688, January 2004. <br> <br>   [XML-Schema-1] Thompson, H., Beech, D., Maloney, M., and N. <br>                  Mendelsohn, "XML Schema Part 1: Structures W3C <br>                  Recommendation.", <http://www.w3.org/TR/xmlschema-1/>, <br>                  May 2001. <br> <br>   [XML-Schema-2] Biron, P. and A. Malhotra, "XML Schema Part 2: <br>                  Datatypes W3C Recommendation.", <br>                  <http://www.w3.org/TR/xmlschema-2/>, May 2001. <br> <br> <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 19] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>12.  Informative References <br> <br>   [VTS]          Fujimura, K. and D. Eastlake, "Requirements and Design <br>                  for Voucher Trading System (VTS)", RFC 3506, March <br>                  2003. <br> <br>   [IPSEC]        Thayer, R., Doraswamy, N., and R. Glenn, "IP Security <br>                  Document Roadmap", RFC 2411, November 1998. <br> <br>   [TLS]          Dierks, T. and C. Allen, "The TLS Protocol Version <br>                  1.0", RFC 2246, January 1999. <br> <br>   [VTS-API]      Terada, M. and K. Fujimura, "Voucher Trading System <br>                  Application Programming Interface (VTS-API)", RFC <br>                  4154, September 2005. <br> <br>   [XMLDSIG]      Eastlake 3rd, D., Reagle, J., and D. Solo, <br>                  "(Extensible Markup Language) XML-Signature Syntax and <br>                  Processing", RFC 3275, March 2002. <br> <br>Authors' Addresses <br> <br>   Ko Fujimura <br>   NTT Corporation <br>   1-1 Hikari-no-oka, Yokosuka-shi, Kanagawa, 239-0847 JAPAN <br> <br>   Phone: +81-(0)46-859-3053 <br>   Fax:   +81-(0)46-855-1730 <br>   EMail: fujimura.ko@lab.ntt.co.jp <br> <br> <br>   Masayuki Terada <br>   NTT DoCoMo, Inc. <br>   3-5 Hikari-no-oka, Yokosuka-shi, Kanagawa, 239-8536 JAPAN <br> <br>   Phone: +81-(0)46-840-3809 <br>   Fax:   +81-(0)46-840-3705 <br>   EMail: te@rex.yrp.nttdocomo.co.jp <br> <br> <br>   Donald E. Eastlake 3rd <br>   Motorola Laboratories <br>   155 Beaver Street <br>   Milford, MA 01757 USA <br> <br>   Phone: 1-508-786-7554 (work) <br>          1-508-634-2066 (home) <br>   EMail: Donald.Eastlake@motorola.com <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 20] <br> <br>RFC 4153         XML Voucher: Generic Voucher Language    September 2005 <br> <br> <br>Full Copyright Statement <br> <br>   Copyright (C) The Internet Society (2005). <br> <br>   This document is subject to the rights, licenses and restrictions <br>   contained in BCP 78, and except as set forth therein, the authors <br>   retain all their rights. <br> <br>   This document and the information contained herein are provided on an <br>   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS <br>   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET <br>   ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, <br>   INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE <br>   INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED <br>   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. <br> <br>Intellectual Property <br> <br>   The IETF takes no position regarding the validity or scope of any <br>   Intellectual Property Rights or other rights that might be claimed to <br>   pertain to the implementation or use of the technology described in <br>   this document or the extent to which any license under such rights <br>   might or might not be available; nor does it represent that it has <br>   made any independent effort to identify any such rights.  Information <br>   on the procedures with respect to rights in RFC documents can be <br>   found in BCP 78 and BCP 79. <br> <br>   Copies of IPR disclosures made to the IETF Secretariat and any <br>   assurances of licenses to be made available, or the result of an <br>   attempt made to obtain a general license or permission for the use of <br>   such proprietary rights by implementers or users of this <br>   specification can be obtained from the IETF on-line IPR repository at <br>   http://www.ietf.org/ipr. <br> <br>   The IETF invites any interested party to bring to its attention any <br>   copyrights, patents or patent applications, or other proprietary <br>   rights that may cover technology that may be required to implement <br>   this standard.  Please address the information to the IETF at ietf- <br>   ipr@ietf.org. <br> <br>Acknowledgement <br> <br>   Funding for the RFC Editor function is currently provided by the <br>   Internet Society. <br> <br> <br> <br> <br> <br> <br> <br>Fujimura, et al.             Informational                     [Page 21] <br> <br><br></div> </div> </div>