{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/duebuddy-work/json-schema/duebuddy-work-payment-item-schema.json",
  "title": "PaymentItem",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/duebuddy-work-openapi.json#/components/schemas/PaymentItem",
  "properties": {
    "plan_code": {
      "type": "string",
      "title": "Plan Code"
    },
    "period": {
      "type": "string",
      "title": "Period"
    },
    "amount_rub": {
      "type": "number",
      "title": "Amount Rub"
    },
    "currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "paid_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Paid At"
    },
    "provider_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Ref"
    }
  },
  "type": "object",
  "required": [
    "plan_code",
    "period",
    "amount_rub",
    "status"
  ]
}