{
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "Funds",
  "description": "A defined quantity of an asset optionally located on a specified ledger.",
  "type": "object",
  "properties": {
    "account": {
      "description": "Account holding the funds",
      "oneOf": [
        {"$ref": "Iri.json"},
        {"type": "null", "description": "this is used as a placeholder in quotes when the IRI is not known"}
      ]
    },
    "amount": {
      "description": "Amount as decimal",
      "$ref": "Amount.json"
    },
    "memo": {
      "description": "Additional information related to the credit",
      "type": "object"
    },
    "invoice": {
      "description": "Unique invoice URI - the ledger will only allow one transfer referencing a given invoice ID",
      "$ref": "Iri.json"
    },
    "authorized": {
      "description": "Indicates whether the debits or credits have been authorized by the required account holder",
      "type": "boolean"
    },
    "rejected": {
      "description": "Indicates whether the credit has been rejected by the required account holder",
      "type": "boolean"
    },
    "rejection_message": {
      "description": "The reason the credit was rejected",
      "type": "object"
    }
  },
  "required": ["account", "amount"],
  "additionalProperties": false
}
