{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiven/json-schema/aiven-user-credit-card-update-response-schema.json",
  "title": "UserCreditCardUpdateResponse",
  "description": "UserCreditCardUpdateResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiven-payment-api-openapi.yml#/components/schemas/UserCreditCardUpdateResponse",
  "type": "object",
  "properties": {
    "card": {
      "type": "object",
      "description": "User credit card information",
      "properties": {
        "brand": {
          "type": "string",
          "description": "Brand"
        },
        "card_id": {
          "type": "string",
          "maxLength": 64,
          "description": "Credit card ID"
        },
        "country": {
          "type": "string",
          "maxLength": 128,
          "description": "Country"
        },
        "country_code": {
          "type": "string",
          "maxLength": 2,
          "description": "Two letter ISO country code"
        },
        "exp_month": {
          "type": "integer",
          "minimum": 1,
          "maximum": 12,
          "description": "Expiration month"
        },
        "exp_year": {
          "type": "integer",
          "minimum": 2015,
          "maximum": 2100,
          "description": "Expiration year"
        },
        "last4": {
          "type": "string",
          "description": "Credit card last four digits"
        },
        "name": {
          "type": "string",
          "maxLength": 256,
          "description": "Name on the credit card"
        },
        "organization_id": {
          "type": "string",
          "maxLength": 36,
          "description": "Organization ID"
        },
        "projects": {
          "type": "array",
          "description": "List of projects the card is assigned to",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "brand",
        "card_id",
        "country",
        "country_code",
        "exp_month",
        "exp_year",
        "last4",
        "name",
        "projects"
      ]
    },
    "errors": {
      "type": "array",
      "description": "List of errors occurred during request processing",
      "items": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Printable error message"
          },
          "more_info": {
            "type": "string",
            "description": "URL to the documentation of the error"
          },
          "status": {
            "type": "integer",
            "description": "HTTP error status code"
          }
        },
        "required": [
          "message",
          "status"
        ]
      }
    },
    "message": {
      "type": "string",
      "description": "Printable result of the request"
    }
  },
  "required": [
    "card"
  ]
}