{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hostinger/main/json-schema/hostinger-billing-v1-payment-method-payment-method-collection-schema.json",
  "title": "Billing.V1.PaymentMethod.PaymentMethodCollection",
  "description": "Array of [`Billing.V1.PaymentMethod.PaymentMethodResource`](#model/billingv1paymentmethodpaymentmethodresource)",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostinger-billing-payment-methods-api-openapi.yml#/components/schemas/Billing.V1.PaymentMethod.PaymentMethodCollection",
  "type": "array",
  "items": {
    "$ref": "#/$defs/Billing.V1.PaymentMethod.PaymentMethodResource"
  },
  "$defs": {
    "Billing.V1.PaymentMethod.PaymentMethodResource": {
      "properties": {
        "id": {
          "description": "Payment method ID",
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "identifier": {
          "type": "string"
        },
        "payment_method": {
          "type": "string"
        },
        "is_default": {
          "type": "boolean"
        },
        "is_expired": {
          "type": "boolean"
        },
        "is_suspended": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "suspended_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "type": "object"
    }
  }
}