6.2.4 Primitive data types

Within this standard the following primitive data types are used.

Data type

Definition

Example

AVS

A string from a set of allowed values.

Work

Boolean

A string containing either true or false.

true

Date

A date in the ISO 8601 format to indicate a single year (YYYY), month (YYYY-MM) or day (YYYY-MM-DD).

2015-01-09

Datetime

A date and time in the ISO 8601 format to indicate a point in time with a time zone indicator (YYYY-MM-DDThh:mm:ssTZD).

TZD stands for time zone designator, which can be the letter Z or an offset from UTC in the format +hh:mm or -hh:mm.

2016-01-26T15:00:00Z

Decimal

A sequence of digits to represent positive or negative integer numbers, positive or negative decimal fractions or zero. In addition:

  1. The character used to separate the integers from fractions is the dot (“.”, Unicode U+002E);

  2. Thousands separators or any other digit grouping shall not be used;

  3. Trailing 0s should not be used, so the value 5.5 should not be represented as 5.50 or 5.5000;

  4. Notwithstanding the above, when a field of type “decimal” is to communicate an integer, the number may be represented with a single trailing “.0” or with no trailing characters.
    For example, the number five can be represented as 5 or 5.0; and

  5. When the number 0 (zero) is to be communicated in a Cell for decimal values, this shall be represented as 0 only (and not 0.0 or 0.000000).

Details of the precision of decimals are provided in Clause 6.2.7.

123

 

123.567

 

-5.25

 

0

DPID

A string of 18 characters in accordance with the DDEX Party ID standard. The DDEX Party ID standard defines that DDEX Party IDs do not contain dashes in computer-to-computer communications.

Therefore, DDEX Party IDs, when included in a BWARM data feed, shall not contain dashes.

PADPIDA2014122301Q

Duration

A duration in the ISO 8601 format (P[nY][nM][nD][T[nH][nM]nS]). Seconds may include decimal fractions.

Elements including their designator may be omitted if their value is zero. The expressions PT3M2S (three minutes and two seconds) and PT182S (182 seconds) are both permitted and are equivalent.

PT3M2S

PT1.004S

Integer

A sequence of digits to represent positive or negative integer numbers, or zero. Details of the range of integers permitted are provided in Clause 6.2.7.

123456

Multiple String

A sequence of 0-n strings represented in accordance with a defined data type separated by Secondary Delimiters.

If the data feed sender of the BWARM data feed has only one data item to provide, the value shall be included without any Secondary Delimiters.

The same applies to cases where the data feed sender has multiple data elements but only wishes to communicate one in accordance with the bilateral agreement between the data feed sender and the data feed recipient.

If such an element is mandatory, at least one such data item must be provided. The same concept can also be used for all other primitive data types listed above.

John

John|Paul|George|Ringo

John|||Ringo

String

A sequence of characters with a length of at least one character. This standard does not define a maximum length. Strings may not contain non-printable characters (Unicode U+0000 to U+001F).

Taylor Swift