{
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "Quote",
  "description": "A quote object",
  "type": "object",
  "properties": {
    "source_connector_account": {
      "description": "the connector's account on the source ledger",
      "$ref": "IlpAddress.json"
    },
    "source_ledger": {
      "description": "The ILP Address of the source ledger",
      "$ref": "IlpAddress.json"
    },
    "destination_ledger": {
      "description": "The ILP Address of the destination ledger",
      "$ref": "IlpAddress.json"
    },
    "source_amount": {
      "description": "The amount in the currency used by the source ledger",
      "$ref": "PositiveFiniteAmount.json"
    },
    "destination_amount": {
      "description": "The amount in the currency used by the destination ledger",
      "$ref": "PositiveFiniteAmount.json"
    },
    "source_expiry_duration": {
      "description": "Time in seconds between proposed_at and expires_at. Set in quotes from payment systems but not valid in actual transfers",
      "$ref": "NonNegativeDuration.json"
    },
    "destination_expiry_duration": { "$ref": "NonNegativeDuration.json" },
    "additional_info": {
      "description": "Additional information related to the quote",
      "type": "object"
    }
  },
  "required": [
    "source_ledger",
    "destination_ledger",
    "source_amount",
    "destination_amount",
    "source_expiry_duration",
    "destination_expiry_duration"
  ],
  "additionalProperties": false
}
