{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everyn-ai/json-schema/everyn-ai-billing-overview-response-schema.json",
  "title": "BillingOverviewResponse",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everyn-ai-openapi.json#/components/schemas/BillingOverviewResponse",
  "additionalProperties": false,
  "properties": {
    "acceptedTermsVersions": {
      "description": "Exact Terms versions this authenticated user has accepted.",
      "items": {
        "type": "string"
      },
      "title": "Acceptedtermsversions",
      "type": "array"
    },
    "activePaidOffer": {
      "anyOf": [
        {
          "$ref": "#/$defs/BillingOfferResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "billingAccount": {
      "$ref": "#/$defs/BillingAccountResponse"
    },
    "catalog": {
      "oneOf": [
        {
          "$ref": "#/$defs/BillingCatalogActiveResponse"
        },
        {
          "$ref": "#/$defs/BillingCatalogUnavailableResponse"
        }
      ],
      "title": "Catalog"
    },
    "onboardingPendingReason": {
      "anyOf": [
        {
          "enum": [
            "plugin_activation",
            "website_activation",
            "payment_confirmation"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Onboardingpendingreason"
    },
    "onboardingSetupSaved": {
      "default": false,
      "title": "Onboardingsetupsaved",
      "type": "boolean"
    },
    "onboardingSetupState": {
      "anyOf": [
        {
          "enum": [
            "setup_required",
            "confirmation_pending",
            "funding_required",
            "setup_complete",
            "unavailable"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Onboardingsetupstate"
    },
    "paidCheckoutAvailable": {
      "title": "Paidcheckoutavailable",
      "type": "boolean"
    },
    "paymentMethod": {
      "anyOf": [
        {
          "$ref": "#/$defs/VerifiedPaymentMethodResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "portalAvailable": {
      "title": "Portalavailable",
      "type": "boolean"
    },
    "promotion": {
      "anyOf": [
        {
          "$ref": "#/$defs/PromotionStatusResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "rowBudget": {
      "anyOf": [
        {
          "$ref": "#/$defs/CustomerRowBudgetStatusResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "wallet": {
      "anyOf": [
        {
          "$ref": "#/$defs/WalletBalanceResponse"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "billingAccount",
    "catalog",
    "paidCheckoutAvailable",
    "portalAvailable",
    "acceptedTermsVersions"
  ],
  "type": "object",
  "$defs": {
    "BillingAccountResponse": {
      "additionalProperties": false,
      "properties": {
        "contractCurrencyCode": {
          "anyOf": [
            {
              "maxLength": 3,
              "minLength": 3,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contractcurrencycode"
        },
        "id": {
          "minLength": 1,
          "title": "Id",
          "type": "string"
        },
        "organizationId": {
          "minLength": 1,
          "title": "Organizationid",
          "type": "string"
        }
      },
      "required": [
        "id",
        "organizationId",
        "contractCurrencyCode"
      ],
      "title": "BillingAccountResponse",
      "type": "object"
    },
    "BillingCapacityBandResponse": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "minLength": 1,
          "title": "Id",
          "type": "string"
        },
        "includedRows": {
          "minimum": 0.0,
          "title": "Includedrows",
          "type": "integer"
        },
        "recurringAi": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        }
      },
      "required": [
        "id",
        "includedRows",
        "recurringAi"
      ],
      "title": "BillingCapacityBandResponse",
      "type": "object"
    },
    "BillingCatalogActiveResponse": {
      "additionalProperties": false,
      "properties": {
        "catalogKey": {
          "title": "Catalogkey",
          "type": "string"
        },
        "catalogVersion": {
          "minimum": 1.0,
          "title": "Catalogversion",
          "type": "integer"
        },
        "contentSha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Contentsha256",
          "type": "string"
        },
        "offers": {
          "items": {
            "$ref": "#/$defs/BillingOfferResponse"
          },
          "title": "Offers",
          "type": "array"
        },
        "status": {
          "const": "active",
          "title": "Status",
          "type": "string"
        }
      },
      "required": [
        "status",
        "catalogKey",
        "catalogVersion",
        "contentSha256",
        "offers"
      ],
      "title": "BillingCatalogActiveResponse",
      "type": "object"
    },
    "BillingCatalogUnavailableResponse": {
      "additionalProperties": false,
      "properties": {
        "status": {
          "const": "unavailable",
          "title": "Status",
          "type": "string"
        }
      },
      "required": [
        "status"
      ],
      "title": "BillingCatalogUnavailableResponse",
      "type": "object"
    },
    "BillingOfferResponse": {
      "additionalProperties": false,
      "properties": {
        "cadence": {
          "const": "monthly",
          "title": "Cadence",
          "type": "string"
        },
        "capacityBand": {
          "$ref": "#/$defs/BillingCapacityBandResponse"
        },
        "id": {
          "minLength": 1,
          "title": "Id",
          "type": "string"
        },
        "monthlyAmount": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        },
        "rowPayAsYouGoRate": {
          "$ref": "#/$defs/CustomerRateResponse"
        },
        "termsVersion": {
          "title": "Termsversion",
          "type": "string"
        },
        "tier": {
          "$ref": "#/$defs/BillingTierResponse"
        }
      },
      "required": [
        "id",
        "tier",
        "capacityBand",
        "monthlyAmount",
        "rowPayAsYouGoRate",
        "cadence",
        "termsVersion"
      ],
      "title": "BillingOfferResponse",
      "type": "object"
    },
    "BillingTierResponse": {
      "additionalProperties": false,
      "properties": {
        "features": {
          "items": {
            "type": "string"
          },
          "title": "Features",
          "type": "array"
        },
        "id": {
          "minLength": 1,
          "title": "Id",
          "type": "string"
        }
      },
      "required": [
        "id",
        "features"
      ],
      "title": "BillingTierResponse",
      "type": "object"
    },
    "CustomerMoneyResponse": {
      "additionalProperties": false,
      "properties": {
        "amount": {
          "description": "Exact base-10 amount serialized without binary floating point or exponent notation.",
          "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
          "title": "Amount",
          "type": "string"
        },
        "currencyCode": {
          "maxLength": 3,
          "minLength": 3,
          "title": "Currencycode",
          "type": "string"
        }
      },
      "required": [
        "currencyCode",
        "amount"
      ],
      "title": "CustomerMoneyResponse",
      "type": "object"
    },
    "CustomerRateResponse": {
      "additionalProperties": false,
      "properties": {
        "amount": {
          "description": "Exact base-10 amount serialized without binary floating point or exponent notation.",
          "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
          "title": "Amount",
          "type": "string"
        },
        "currencyCode": {
          "maxLength": 3,
          "minLength": 3,
          "title": "Currencycode",
          "type": "string"
        },
        "perQuantity": {
          "minimum": 1.0,
          "title": "Perquantity",
          "type": "integer"
        }
      },
      "required": [
        "currencyCode",
        "amount",
        "perQuantity"
      ],
      "title": "CustomerRateResponse",
      "type": "object"
    },
    "CustomerRowBudgetStatusResponse": {
      "additionalProperties": false,
      "properties": {
        "acceptedBudget": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        },
        "agreementRevision": {
          "minimum": 1.0,
          "title": "Agreementrevision",
          "type": "integer"
        },
        "budgetRemaining": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        },
        "maximumBudget": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        },
        "mayChange": {
          "title": "Maychange",
          "type": "boolean"
        },
        "periodId": {
          "minLength": 1,
          "title": "Periodid",
          "type": "string"
        }
      },
      "required": [
        "periodId",
        "agreementRevision",
        "acceptedBudget",
        "maximumBudget",
        "budgetRemaining",
        "mayChange"
      ],
      "title": "CustomerRowBudgetStatusResponse",
      "type": "object"
    },
    "PromotionStatusResponse": {
      "additionalProperties": false,
      "properties": {
        "activatedAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Activatedat"
        },
        "amountMinorUnits": {
          "minimum": 0.0,
          "title": "Amountminorunits",
          "type": "integer"
        },
        "currencyCode": {
          "maxLength": 3,
          "minLength": 3,
          "title": "Currencycode",
          "type": "string"
        },
        "expiresAt": {
          "anyOf": [
            {
              "description": "UTC RFC 3339 timestamp string.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expiresat"
        },
        "status": {
          "enum": [
            "locked",
            "activated",
            "ineligible",
            "claimed"
          ],
          "title": "Status",
          "type": "string"
        }
      },
      "required": [
        "status",
        "currencyCode",
        "amountMinorUnits"
      ],
      "title": "PromotionStatusResponse",
      "type": "object"
    },
    "VerifiedPaymentMethodResponse": {
      "additionalProperties": false,
      "properties": {
        "cardBrand": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cardbrand"
        },
        "cardExpMonth": {
          "anyOf": [
            {
              "maximum": 12.0,
              "minimum": 1.0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cardexpmonth"
        },
        "cardExpYear": {
          "anyOf": [
            {
              "minimum": 2000.0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cardexpyear"
        },
        "cardFunding": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cardfunding"
        },
        "cardLast4": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cardlast4"
        },
        "paymentMethodType": {
          "title": "Paymentmethodtype",
          "type": "string"
        },
        "verifiedAt": {
          "description": "UTC RFC 3339 timestamp string.",
          "title": "Verifiedat",
          "type": "string"
        }
      },
      "required": [
        "paymentMethodType",
        "verifiedAt"
      ],
      "title": "VerifiedPaymentMethodResponse",
      "type": "object"
    },
    "WalletBalanceResponse": {
      "additionalProperties": false,
      "properties": {
        "available": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        },
        "currencyCode": {
          "maxLength": 3,
          "minLength": 3,
          "title": "Currencycode",
          "type": "string"
        },
        "executionSafe": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        },
        "reserved": {
          "$ref": "#/$defs/CustomerMoneyResponse"
        }
      },
      "required": [
        "currencyCode",
        "available",
        "reserved",
        "executionSafe"
      ],
      "title": "WalletBalanceResponse",
      "type": "object"
    }
  }
}