Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Deck of Cards
idDateVsDateTime
Card
label1Consecutive Deals with Dates
Code Block
languagexml
titleConsecutive Deals with dates
<DealList>
    <ReleaseDeal>
        <DealReleaseReference>R1</DealReleaseReference>
        <Deal>
            <DealTerms>
                <Usage>
                    <UseType>Download</UseType>
                </Usage>
                <TerritoryCode>IS</TerritoryCode>
                <PriceInformation>
                    <SuggestedRetailPrice CurrencyCode="ISK">500</SuggestedRetailPrice>
                </PriceInformation>
                <ValidityPeriod>
                    <StartDate>2018-01-01</StartDate>
                    <EndDate>2018-01-31</EndDate>
                </ValidityPeriod>
            </DealTerms>
        </Deal>
        <Deal>
            <DealTerms>
                <Usage>
                    <UseType>Download</UseType>
                </Usage>
                <TerritoryCode>IS</TerritoryCode>
                <PriceInformation>
                    <SuggestedRetailPrice CurrencyCode="ISK">1000</SuggestedRetailPrice>
                </PriceInformation>
                <ValidityPeriod>
                    <StartDate>2018-02-01</StartDate>
                </ValidityPeriod>
            </DealTerms>
        </Deal>
    </ReleaseDeal>
</DealList>
Card
label2Consecutive Deals with DateTimes
Code Block
languagexml
titleConsecutive Deals with datetimes
 <DealList>
    <ReleaseDeal>
        <DealReleaseReference>R1</DealReleaseReference>
        <Deal>
            <DealTerms>
                <Usage>
                    <UseType>Download</UseType>
                </Usage>
                <TerritoryCode>IS</TerritoryCode>
                <PriceInformation>
                    <SuggestedRetailPrice CurrencyCode="ISK">500</SuggestedRetailPrice>
                </PriceInformation>
                <ValidityPeriod>
                    <StartDateTime>2018-01-01T00:00:00Z</StartDateTime>
                    <EndDateTime>2018-02-01T00:00:00Z</EndDateTime>
                </ValidityPeriod>
            </DealTerms>
        </Deal>
        <Deal>
            <DealTerms>
                <Usage>
                    <UseType>Download</UseType>
                </Usage>
                <TerritoryCode>IS</TerritoryCode>
                <PriceInformation>
                    <SuggestedRetailPrice CurrencyCode="ISK">1000</SuggestedRetailPrice>
                </PriceInformation>
                <ValidityPeriod>
                    <StartDateTime>2018-02-01T00:00:00Z</StartDateTime>
                </ValidityPeriod>
            </DealTerms>
        </Deal>
    </ReleaseDeal>
</DealList>

Note that it is not recommended to use 2017-01-31T24:00:00Z and 2018-02-01T00:00:00Z as the end of the first ReleaseDeal and the start of the second ReleaseDeal even if they denote the same moment in time. Instead, the same string should be used for both datetimes.

 

...