{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-member-authorization-summary-response-schema.json",
  "title": "MemberAuthorizationSummaryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-transactions-api-openapi.yml#/components/schemas/MemberAuthorizationSummaryResponse",
  "type": "object",
  "properties": {
    "member": {
      "$ref": "#/$defs/MemberDTO"
    },
    "clientOrg": {
      "$ref": "#/$defs/ClientOrgDTO"
    },
    "memberAuthorizations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemberAuthorizationResponseDTO"
      }
    }
  },
  "required": [
    "clientOrg",
    "member"
  ],
  "$defs": {
    "ClientOrgDTO": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "MemberAccountDTO": {
      "type": "object",
      "properties": {
        "accountName": {
          "type": "string",
          "description": "A name for this account"
        },
        "accountType": {
          "type": "string",
          "description": "Type of account"
        },
        "productName": {
          "type": "string",
          "description": "The name of the product"
        },
        "lastFourAccountNumber": {
          "type": "string",
          "description": "The last four digits of the bank account number"
        }
      }
    },
    "MemberAuthorizationResponseDTO": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "authorizationDate": {
          "type": "string",
          "format": "date-time"
        },
        "direction": {
          "type": "string",
          "description": "Debit vs. Credit"
        },
        "amount": {
          "type": "number",
          "description": "Dollar transaction amount. Either amount or incentiveValue is required."
        },
        "status": {
          "type": "string",
          "description": "Status of this transaction"
        },
        "partnerReasonCode": {
          "type": "string",
          "description": "Reason code generated by the authorization system when the transaction fails"
        },
        "partnerReasonCodeDescription": {
          "type": "string",
          "description": "Reason for a failed transaction "
        },
        "merchant": {
          "$ref": "#/$defs/TransactionMerchantDTO"
        },
        "memberCard": {
          "$ref": "#/$defs/MemberCardDTO"
        },
        "memberAccount": {
          "$ref": "#/$defs/MemberAccountDTO"
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date when the record was created"
        },
        "updateDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date when the record was last updated"
        }
      }
    },
    "MemberCardDTO": {
      "type": "object",
      "properties": {
        "cardProxy": {
          "type": "string",
          "description": "Proxy id of the card"
        },
        "cardLastFour": {
          "type": "string",
          "description": "Last four digits of the card number"
        }
      }
    },
    "MemberDTO": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        }
      },
      "required": [
        "clientMemberId"
      ]
    },
    "TransactionMerchantDTO": {
      "type": "object",
      "description": "Merchant info for transaction authorization summary",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of merchant accepting the original transaction"
        },
        "mcc": {
          "type": "integer",
          "format": "int32",
          "description": "Code representing the merchant's line of business"
        }
      }
    }
  }
}