{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adro1b33/main/json-schema/adro1b33-billing-key-schema.json",
  "title": "BillingKey",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adro1b33-payments-api-openapi.yml#/components/schemas/BillingKey",
  "type": "object",
  "properties": {
    "billingKey": {
      "type": "string",
      "maxLength": 128
    },
    "teamId": {
      "type": "integer",
      "readOnly": true
    },
    "teamName": {
      "type": "string",
      "readOnly": true
    },
    "createdByUserId": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true
    },
    "provider": {
      "enum": [
        "payletter",
        "paypal",
        "galaxia"
      ],
      "type": "string",
      "description": "* `payletter` - PayLetter\n* `paypal` - PayPal\n* `galaxia` - Galaxia",
      "x-spec-enum-id": "57f6d0e06595d82e"
    },
    "channelKey": {
      "type": "string",
      "maxLength": 128
    },
    "method": {
      "type": "string",
      "maxLength": 32
    },
    "cardIssuer": {
      "type": "string",
      "maxLength": 64
    },
    "cardBrand": {
      "type": "string",
      "maxLength": 32
    },
    "cardName": {
      "type": "string",
      "maxLength": 64
    },
    "cardBin": {
      "type": "string",
      "maxLength": 16
    },
    "cardNumberMasked": {
      "type": "string",
      "maxLength": 32
    },
    "easyPayProvider": {
      "type": "string",
      "maxLength": 64
    },
    "status": {
      "enum": [
        "ISSUED",
        "DELETED"
      ],
      "type": "string",
      "description": "* `ISSUED` - 발급 완료\n* `DELETED` - 삭제됨",
      "x-spec-enum-id": "d80d5ed15cf00039"
    },
    "issuedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "deletedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "billingKey",
    "channelKey",
    "createdByUserId",
    "teamId",
    "teamName"
  ]
}