{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autohost/json-schema/autohost-reservation-payments-response-schema.json",
  "title": "ReservationPaymentsResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autohost-openapi.json#/components/schemas/ReservationPaymentsResponse",
  "properties": {
    "security_deposit": {
      "type": "object",
      "properties": {
        "successful_authorizations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string"
              },
              "amount": {
                "type": "number"
              },
              "receipt_url": {
                "type": "string"
              },
              "card_brand": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              }
            }
          }
        },
        "charge_failures": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              }
            }
          }
        },
        "refunds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string"
              },
              "amount": {
                "type": "number"
              },
              "receipt_url": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              }
            }
          }
        },
        "deposit_captures": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string"
              },
              "amount": {
                "type": "number"
              },
              "receipt_url": {
                "type": "string"
              },
              "card_brand": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "payment_validation": {
      "type": "object",
      "properties": {
        "receipt_url": {
          "type": "string"
        },
        "name_on_card": {
          "type": "string"
        },
        "funding_type": {
          "type": "string"
        },
        "card_brand": {
          "type": "string"
        },
        "card_country": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "errors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "damage_waiver": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "timestamp": {
          "type": "string"
        },
        "receipt_url": {
          "type": "string"
        }
      }
    },
    "extra_services": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "receipt_url": {
          "type": "string"
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "price": {
                "type": "number"
              }
            }
          }
        }
      }
    }
  }
}