{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://artifacts.apis.io/breezecash/json-schema/breezecash-get-product-response-schema.json",
  "title": "GetProductResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/breezecash-products-api-openapi.yml#/components/schemas/GetProductResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "number"
    },
    "updatedAt": {
      "type": "number"
    },
    "defaultPriceId": {
      "type": "string"
    },
    "clientProductId": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "image": {
      "type": "string"
    },
    "livemode": {
      "type": "boolean"
    },
    "merchantId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE",
        "PENDING",
        "DELETED"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "SUBSCRIPTION",
        "REGULAR"
      ]
    },
    "prices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "number"
          },
          "updatedAt": {
            "type": "number"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AUD",
              "CAD",
              "CHF",
              "DKK",
              "EUR",
              "GBP",
              "HKD",
              "JPY",
              "NOK",
              "NZD",
              "PLN",
              "SEK",
              "SGD",
              "TWD",
              "KRW"
            ]
          },
          "amountStr": {
            "type": "string",
            "deprecated": true
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE",
              "DELETED"
            ]
          },
          "productId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "ONE_TIME",
              "RECURRING"
            ]
          },
          "livemode": {
            "type": "boolean"
          },
          "billingCycleConfig": {
            "type": "object",
            "properties": {
              "interval": {
                "type": "string",
                "enum": [
                  "hour",
                  "day",
                  "week",
                  "month",
                  "year"
                ]
              },
              "frequency": {
                "type": "number"
              }
            },
            "required": [
              "interval",
              "frequency"
            ]
          },
          "unitAmount": {
            "type": "number"
          }
        },
        "required": [
          "amountStr",
          "currency",
          "livemode",
          "productId",
          "status",
          "type",
          "unitAmount"
        ]
      }
    }
  },
  "required": [
    "displayName",
    "livemode",
    "merchantId",
    "prices",
    "status",
    "type"
  ],
  "definitions": {}
}