{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-list-organization-gateways-response-schema.json",
  "title": "ListOrganizationGatewaysResponse",
  "description": "List organization gateways response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-gateways-api-openapi.yml#/components/schemas/ListOrganizationGatewaysResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrganizationGateway"
      },
      "description": "Enabled payment gateways for the organization"
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "OrganizationGateway": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gateway store identifier"
        },
        "gatewayProcessor": {
          "type": "string",
          "description": "Payment processor key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Human-readable gateway label"
        },
        "portalMessage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Message displayed on the payment portal"
        },
        "currencies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "Currency code"
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": {},
            "description": "Currency entry"
          },
          "description": "Supported currency codes for this gateway"
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether the gateway is enabled"
        },
        "enabledPayments": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Enabled payment types"
        },
        "surchargeEnabled": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "benjipays",
                "gateway"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Surcharge mode: \"benjipays\" (managed by Benji Payments) or \"gateway\" (managed by the processor); null when disabled"
        },
        "surchargeNoPopup": {
          "type": "boolean",
          "description": "Whether the surcharge disclosure popup is suppressed"
        },
        "createdDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Gateway creation timestamp (ISO 8601)"
        },
        "lastModifiedDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Gateway last modified timestamp (ISO 8601)"
        },
        "terminalIds": {
          "description": "Connected PIN pad terminal IDs (Moneris only)",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "shopperStatement": {
          "description": "Statement descriptor shown to cardholders (Benji Payments and Elavon only)",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "mccEnabled": {
          "description": "Whether MCC is enabled (Elavon only)",
          "type": "boolean"
        },
        "automatedReconciliationEnabled": {
          "description": "Whether automated reconciliation is enabled (Benji Payments only)",
          "type": "boolean"
        },
        "balanceAccountSettlementTiming": {
          "description": "Settlement timing configuration keyed by balance account (Benji Payments only)",
          "anyOf": [
            {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            },
            {
              "type": "null"
            }
          ]
        },
        "eftMaxBatchAmount": {
          "description": "Maximum EFT batch amount (Bambora only)",
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ebpMaxBatchLineAmount": {
          "description": "Maximum EBP batch line amount (Bambora only)",
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ebpCreditLag": {
          "description": "EBP credit lag in days (Bambora only)",
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "surchargeOptions": {
          "description": "Surcharge card-type options (non-Benji Payments, when surcharging enabled)",
          "anyOf": [
            {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            },
            {
              "type": "null"
            }
          ]
        },
        "surchargeDebitEnabled": {
          "description": "Whether debit cards are surcharged (Benji Payments, when surcharging enabled)",
          "type": "boolean"
        },
        "surchargePercentages": {
          "description": "Surcharge percentages by card type (when surcharging enabled)",
          "type": "object",
          "properties": {
            "othercc": {
              "type": "number",
              "description": "Surcharge percentage applied to non-Amex credit cards"
            },
            "amex": {
              "description": "Surcharge percentage applied to Amex (Benji Payments only)",
              "type": "number"
            }
          },
          "required": [
            "othercc"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "gatewayProcessor",
        "description",
        "portalMessage",
        "currencies",
        "enabled",
        "enabledPayments",
        "surchargeEnabled",
        "surchargeNoPopup",
        "createdDate",
        "lastModifiedDate"
      ],
      "additionalProperties": false,
      "description": "Payment gateway configuration for an organization"
    }
  }
}