{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compteam-io/json-schema/compteam-io-association-settlement-request-schema.json",
  "title": "AssociationSettlementRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compteam-io-billing-api-openapi.yml#/components/schemas/AssociationSettlementRequest",
  "properties": {
    "home_branch_id": {
      "type": "string",
      "format": "uuid",
      "title": "Home Branch Id"
    },
    "received_amount": {
      "anyOf": [
        {
          "type": "number",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "string"
        }
      ],
      "title": "Received Amount"
    },
    "currency": {
      "type": "string",
      "maxLength": 3,
      "minLength": 3,
      "title": "Currency"
    },
    "charge_ids": {
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "type": "array",
      "minItems": 1,
      "title": "Charge Ids"
    },
    "idempotency_key": {
      "type": "string",
      "format": "uuid",
      "title": "Idempotency Key"
    },
    "settled_on": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Settled On"
    },
    "reference": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Reference"
    }
  },
  "type": "object",
  "required": [
    "home_branch_id",
    "received_amount",
    "currency",
    "charge_ids",
    "idempotency_key"
  ]
}