{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-customer-payment-method-response-schema.json",
  "title": "AdminCustomerPaymentMethodResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-invoicing-api-openapi.yml#/components/schemas/AdminCustomerPaymentMethodResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Payment method ID"
    },
    "card_type": {
      "type": "string",
      "description": "Type of credit card"
    },
    "last_four": {
      "type": "string",
      "description": "Last four digits of the credit card"
    },
    "expires_on": {
      "type": "string",
      "description": "Expiration date of the credit card"
    },
    "default": {
      "type": "boolean",
      "description": "Indication of whether or not the given card is the customer's default"
    },
    "links": {
      "properties": {
        "customer": {
          "$ref": "#/$defs/HypermediaLink"
        }
      }
    }
  },
  "$defs": {
    "HypermediaLink": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "ID of the associated resource"
        },
        "href": {
          "type": "string",
          "description": "Link to the associated resource"
        }
      }
    }
  }
}