{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autoposting-ai/json-schema/autoposting-ai-credit-purchase-result-schema.json",
  "title": "CreditPurchaseResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autoposting-ai-billing-api-openapi.yml#/components/schemas/CreditPurchaseResult",
  "type": "object",
  "properties": {
    "purchased": {
      "type": "integer"
    },
    "newBalance": {
      "type": "integer"
    },
    "chargedAmount": {
      "type": "integer",
      "description": "Amount charged in the smallest currency unit (e.g. cents)."
    },
    "currency": {
      "type": "string"
    }
  },
  "required": [
    "purchased",
    "newBalance",
    "chargedAmount",
    "currency"
  ]
}