{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PaymentPayment Structure",
  "description": "JSON Structure for PaymentPayment from Unified.to API",
  "structure": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "created_at": {
        "type": "string"
      },
      "updated_at": {
        "type": "string"
      },
      "total_amount": {
        "type": "number"
      },
      "contact_id": {
        "type": "string"
      },
      "type": {
        "type": "string",
        "enum": [
          "INVOICE",
          "BILL"
        ]
      },
      "payment_method": {
        "type": "string"
      },
      "currency": {
        "type": "string"
      },
      "notes": {
        "type": "string"
      },
      "invoice_id": {
        "type": "string"
      },
      "bill_id": {
        "type": "string"
      },
      "account_id": {
        "type": "string"
      },
      "reference": {
        "type": "string"
      },
      "raw": {
        "type": "object"
      }
    }
  }
}