{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/collectly/json-schema/collectly-payment-method-charge-schema.json",
  "title": "PaymentMethodCharge",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/collectly-payment-method-charge-api-openapi.yml#/components/schemas/PaymentMethodCharge",
  "properties": {
    "amount": {
      "description": "Specifies the total amount to be charged from patient.",
      "type": "number"
    },
    "copay_amount": {
      "description": "Specifies how much of the amount is considered a pre-payment for future services and will be posted to EHR as unapplied.",
      "type": "number"
    },
    "type": {
      "description": "Payment type. Copay does not check against the current balance. Type \"payment\" can only be charged when patient has an open balance.",
      "enum": [
        "payment",
        "copay"
      ],
      "type": "string"
    }
  },
  "type": "object"
}