{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/origin-energy/main/json-schema/origin-energy-ad-hoc-schema.json",
  "title": "AdHoc",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/origin-energy-accounts-api-openapi.yml#/components/schemas/AdHoc",
  "type": "object",
  "properties": {
    "amount": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 100,
      "title": "The monetary amount in cents"
    },
    "single_use_token": {
      "type": "string",
      "title": "A Westpac payments single use token for authorizing the payment",
      "maxLength": 255
    },
    "captcha_token": {
      "type": "string",
      "title": "A Google reCaptcha token generated by the consumer-facing website",
      "description": "Can be into the thousands of characters long."
    },
    "electronic_commerce_indicator": {
      "enum": [
        "INTERNET",
        "PHONE",
        "RECURRING"
      ],
      "type": "string",
      "x-spec-enum-id": "26c3ac14050e29cb",
      "description": "'INTERNET' is used for adhoc payments, 'RECURRING' for scheduled payments and 'PHONE' for interactive voice response (IVR).\n\n* `INTERNET` - INTERNET\n* `PHONE` - PHONE\n* `RECURRING` - RECURRING"
    },
    "supplier_business_code": {
      "enum": [
        "LPG",
        "RETAIL",
        "RETAILX",
        "RETAILXFEE"
      ],
      "type": "string",
      "description": "* `LPG` - LPG\n* `RETAIL` - RETAIL\n* `RETAILX` - RETAILX\n* `RETAILXFEE` - RETAILXFEE",
      "x-spec-enum-id": "3188a7962cb70439"
    }
  },
  "required": [
    "amount",
    "captcha_token",
    "electronic_commerce_indicator",
    "single_use_token",
    "supplier_business_code"
  ]
}