{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-public-affiliate-ancillary-charge-blueprint-all-schema.json", "title": "Public.AffiliateAncillaryChargeBlueprint_all", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/hint-health-affiliateancillarycharge-api-openapi.yml#/components/schemas/Public.AffiliateAncillaryChargeBlueprint_all", "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string", "enum": [ "pending", "approved" ] }, "created_at": { "type": "string", "format": "date-time" }, "sponsor": { "$ref": "#/$defs/Public.CompanyBlueprint_leaf" }, "affiliate": { "$ref": "#/$defs/Public.AffiliationBlueprint_leaf" }, "affiliate_practice": { "$ref": "#/$defs/Public.PracticeBlueprint_min" }, "charge": { "$ref": "#/$defs/Public.ChargeBlueprint_for_affiliate_ancillary_charge" }, "sponsor_charge": { "$ref": "#/$defs/Public.ChargeBlueprint_for_affiliate_ancillary_charge" } } }, "$defs": { "Public.AffiliationBlueprint_leaf": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "Public.CategoryBlueprint_one": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "default_for_memberships": { "type": "boolean" } } }, "Public.ChargeBlueprint_for_affiliate_ancillary_charge": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "price_in_cents": { "type": "integer", "format": "int32" }, "quantity": { "type": "integer", "format": "int32" }, "service_date": { "type": "string", "format": "date" }, "total_in_cents": { "type": "integer", "format": "int32" }, "patient": { "$ref": "#/$defs/Public.PatientBlueprint_min" }, "category": { "$ref": "#/$defs/Public.CategoryBlueprint_one" }, "invoice": { "$ref": "#/$defs/Public.Payable.InvoiceBlueprint_min" } } }, "Public.CompanyBlueprint_leaf": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "Public.PatientBlueprint_min": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "Public.Payable.InvoiceBlueprint_min": { "type": "object", "properties": { "id": { "type": "string" }, "invoice_number": { "type": "string" }, "type": { "type": "string" } } }, "Public.PracticeBlueprint_min": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } } } }