{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-post-member-account-adjustment-request-schema.json",
  "title": "PostMemberAccountAdjustmentRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-payments-api-openapi.yml#/components/schemas/PostMemberAccountAdjustmentRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/MemberAccountAdjustmentDto"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "AdjustmentTransactionDto": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "description": "The amount of the transaction"
        },
        "longMemo": {
          "type": "string",
          "description": "Long descriptions Max 100 characters"
        },
        "category": {
          "type": "string",
          "description": "Describes the transaction category",
          "enum": [
            "ADJUSTMENT"
          ]
        },
        "type": {
          "type": "string",
          "description": "Additional transaction type",
          "enum": [
            "MissedFunding",
            "ThirdPartyServices",
            "MemberFundTransfer",
            "MemberDebit",
            "MemberOperationsDebit",
            "MemberOperationsCredit",
            "RewardFunding"
          ]
        },
        "clientTransactionIdentifier": {
          "type": "string",
          "description": "Transaction reference identifier"
        }
      },
      "required": [
        "amount",
        "category",
        "type"
      ]
    },
    "ClientOrgAccountIdDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the client organization's FBO account"
        }
      },
      "required": [
        "id"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    },
    "MemberAccountAdjustmentDto": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "product": {
          "$ref": "#/$defs/ProductNameDto"
        },
        "member": {
          "$ref": "#/$defs/MemberAccountTransactionDto"
        },
        "clientOrgAccount": {
          "$ref": "#/$defs/ClientOrgAccountIdDto"
        }
      },
      "required": [
        "clientOrg",
        "member",
        "product"
      ]
    },
    "MemberAccountIdDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier of the bank account"
        }
      },
      "required": [
        "id"
      ]
    },
    "MemberAccountTransactionDto": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        },
        "memberAccount": {
          "$ref": "#/$defs/MemberAccountIdDto"
        },
        "memberTransaction": {
          "$ref": "#/$defs/AdjustmentTransactionDto"
        },
        "relatedMemberTransaction": {
          "$ref": "#/$defs/MemberTransactionReferenceIdentifierDto"
        }
      },
      "required": [
        "clientMemberId",
        "memberAccount",
        "memberTransaction"
      ]
    },
    "MemberTransactionReferenceIdentifierDto": {
      "type": "object",
      "properties": {
        "referenceIdentifier": {
          "type": "string",
          "description": "Transaction reference identifier"
        }
      }
    },
    "ProductNameDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the product"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}