{
  "_comment": "Amounts are integers in minor units (agorot/cents). 50.75 -> 5075. PayMe's default minimum amount is 500. Reference: https://docs.payme.io/payments/hosted-payment-page/post-generate-sale",
  "case_count": 26,
  "minimum_minor": 500,
  "to_minor": [
    {
      "input": "50.75",
      "minor": 5075
    },
    {
      "input": 50.75,
      "minor": 5075
    },
    {
      "input": "5",
      "minor": 500
    },
    {
      "input": "5.00",
      "minor": 500
    },
    {
      "input": "4.99",
      "minor": 499
    },
    {
      "input": "19.99",
      "minor": 1999
    },
    {
      "input": 19.99,
      "minor": 1999
    },
    {
      "input": "0.29",
      "minor": 29
    },
    {
      "input": "1234.56",
      "minor": 123456
    },
    {
      "input": " 12.50 ",
      "minor": 1250
    }
  ],
  "to_minor_must_fail": [
    "abc",
    "12,50",
    "NaN",
    "",
    "-5",
    "1e3",
    "0x10",
    "1.005",
    "0.105",
    "19.999",
    "99999999999999999"
  ],
  "from_minor": [
    {
      "minor": 5075,
      "decimal": 50.75
    },
    {
      "minor": 500,
      "decimal": 5
    },
    {
      "minor": 1,
      "decimal": 0.01
    }
  ],
  "minimum_checks": [
    {
      "minor": 500,
      "allowed": true
    },
    {
      "minor": 499,
      "allowed": false
    }
  ],
  "_note": "Accept plain non-negative decimals only (digits, optional point, at most 2 decimals), whose minor-unit value is an exactly representable integer. Reject more than 2 decimals rather than rounding (1.005 * 100 === 100.49999999999999), and reject signs, exponents, hex and oversized values, which some number parsers accept or round silently."
}
