nuance_AMOUNT

A sum of money intended for use in banking actions and for payments. The currency is dependent on the grammar. For example, if the en-US grammar is used, the only currency accepted is the US Dollar.

Sample language

  • five dollars
  • $4.75

Examples

Responses for the above samples are shown below.

Example: five dollars

{
     "nuance_NUMBER": {
         "nuance_CARDINAL_NUMBER": 5
     },
     "nuance_UNIT": "USD"
}

Example: four dollars and seventy five cents

{
     "nuance_NUMBER": {
         "nuance_DOUBLE": 4.75
     },
     "nuance_UNIT": "USD"
}

Numeric value range

<= 99,999,999,999

Changes between 6.x and 9.x for nuance_AMOUNT

nuance_NUMBER now returns, instead of a string, either:

Example: “five dollars”

  • 6.x: {"nuance_NUMBER":5,"nuance_UNIT":"USD"}
  • 9.x: {"nuance_NUMBER":{"nuance_CARDINAL_NUMBER":5},"nuance_UNIT":"USD"}

Schema

"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
     "nuance_AMOUNT": {
         "type": "object",
         "properties": {
             "nuance_UNIT": {
                 "anyOf": [{
                         "type": "number"
                     }, {
                         "type": "string"
                     }
                 ]
             },
             "nuance_NUMBER": {
                 "type": "object",
                 "properties": {
                     "oneOf": [{
                             "nuance_CARDINAL_NUMBER": {
                                 "anyOf": [{
                                         "type": "number"
                                     }, {
                                         "type": "string"
                                     }
                                 ]

                             }
                         }, {
                             "nuance_DOUBLE": {
                                 "anyOf": [{
                                         "type": "number"
                                     }, {
                                         "type": "string"
                                     }
                                 ]

                             }
                         }
                     ]
                 }

             }

         },
         "required": [
             "nuance_UNIT",
             "nuance_NUMBER"
         ]
     }
},
"additionalProperties": false
}