{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pagehub-dev/json-schema/pagehub-dev-storefront-settings-schema.json",
  "title": "StorefrontSettings",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pagehub-dev-openapi.json#/components/schemas/StorefrontSettings",
  "type": "object",
  "properties": {
    "allowPromoCodes": {
      "type": "boolean"
    },
    "orderEmail": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        }
      }
    },
    "giftCard": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "priceIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "expiryDays": {
          "type": "integer"
        }
      }
    },
    "shipping": {
      "type": "object",
      "additionalProperties": true,
      "description": "Shipping settings (`enabled`, the countries shipped to, rates)."
    },
    "tax": {
      "type": "object",
      "additionalProperties": true,
      "description": "Stripe Tax settings (`enabled`, ...)."
    },
    "taxStatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stripe Tax's status for the account; null when tax is off or Stripe can't be asked."
    },
    "collectEmailConsent": {
      "type": "boolean",
      "description": "Ask buyers for email consent with Stripe's own box (US buyers). Checkout leaves the box out until the Stripe account has accepted Stripe's terms for it."
    }
  }
}