{
  "$id": "response.charge.paypal.return",
  "title": "Paypal charge return",
  "type": "object",
  "properties": {
    "data": {
      "description": "Charge information",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string",
          "const": "charge"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "status": {
              "type": "number"
            },
            "createAt": {
              "type": "string",
              "format": "date-time"
            },
            "owner": {
              "$ref": "common#/definitions/owner"
            },
            "failReason": {
              "type": "string"
            }
          }
        }
      }
    },
    "meta": {
      "description": "Paypal metadata",
      "type": "object",
      "properties": {
        "paypal": {
          "type":"object",
          "properties": {
            "payer": {
              "$ref": "common#/definitions/payer"
            }
          }
        }
      }
    }
  }
}
