{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beatapi/json-schema/beatapi-payment-list-response-schema.json",
  "title": "PaymentListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beatapi-account-api-openapi.yml#/components/schemas/PaymentListResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "object",
        "data",
        "has_more"
      ],
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "list"
          ]
        },
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Payment"
          }
        },
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": "string",
          "description": "Pass as `cursor` to read the next page; absent on the last page."
        }
      }
    }
  },
  "$defs": {
    "Payment": {
      "type": "object",
      "required": [
        "object",
        "id",
        "order_no",
        "status",
        "amount_paid",
        "currency",
        "credits",
        "payment_method",
        "created_at"
      ],
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "payment"
          ]
        },
        "id": {
          "type": "string"
        },
        "order_no": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "paid",
            "pending",
            "failed",
            "expired",
            "reviewing"
          ]
        },
        "amount_paid": {
          "type": "number",
          "format": "double",
          "description": "The amount paid, in the currency of the payment."
        },
        "currency": {
          "type": "string",
          "enum": [
            "USD",
            "CNY"
          ]
        },
        "credits": {
          "type": "number",
          "format": "double",
          "description": "The balance the payment adds, in USD."
        },
        "payment_method": {
          "type": "string"
        },
        "created_at": {
          "type": "integer",
          "description": "Unix seconds."
        },
        "paid_at": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Unix seconds when the payment completed."
        }
      }
    }
  }
}