{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-doc-member-reimburse-request-schema.json",
  "title": "DocMemberReimburseRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-payments-api-openapi.yml#/components/schemas/DocMemberReimburseRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/DocMemberReimburseRequestData"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "AccountDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the member account"
        },
        "accountType": {
          "type": "string",
          "description": "Type of account"
        }
      },
      "required": [
        "accountType"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "DocMemberReimburseRequestData": {
      "type": "object",
      "properties": {
        "member": {
          "$ref": "#/$defs/Member"
        },
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "product": {
          "$ref": "#/$defs/Product"
        },
        "account": {
          "$ref": "#/$defs/AccountDto"
        },
        "memberBankAccount": {
          "$ref": "#/$defs/MemberBankAccount"
        },
        "payeeDisbursement": {
          "$ref": "#/$defs/PayeeDisbursement"
        }
      },
      "required": [
        "account",
        "clientOrg",
        "member",
        "memberBankAccount",
        "payeeDisbursement",
        "product"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    },
    "Member": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        }
      },
      "required": [
        "clientMemberId"
      ]
    },
    "MemberBankAccount": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "External bank account"
        }
      },
      "required": [
        "id"
      ]
    },
    "PayeeDisbursement": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "format": "double",
          "description": "Amount to disburse"
        },
        "shortMemo": {
          "type": "string",
          "description": "10 character memo"
        },
        "longMemo": {
          "type": "string",
          "description": "Long descriptions Max 100 characters"
        },
        "correctionIndicator": {
          "type": "boolean",
          "description": "Indicates whether the transaction is a correction"
        }
      },
      "required": [
        "amount",
        "shortMemo"
      ]
    },
    "Product": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the product"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}