{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/two/json-schema/two-paginated-settlement-list-cursor-schema-schema.json",
  "title": "PaginatedSettlementListCursorSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/two-settlement-report-api-openapi.yml#/components/schemas/PaginatedSettlementListCursorSchema",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/Settlement"
      },
      "title": "Items",
      "type": "array"
    },
    "cursor_page_metadata": {
      "$ref": "#/$defs/CursorPageMetadata"
    }
  },
  "required": [
    "items",
    "cursor_page_metadata"
  ],
  "type": "object",
  "$defs": {
    "CurrencyEnum": {
      "enum": [
        "CHF",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "INR",
        "MXN",
        "NOK",
        "PLN",
        "RON",
        "SEK",
        "USD"
      ],
      "title": "CurrencyEnum",
      "type": "string"
    },
    "CursorPageMetadata": {
      "properties": {
        "previous_page_cursor": {
          "anyOf": [
            {
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": "cursor to the previous page",
          "title": "Previous Page Cursor"
        },
        "next_page_cursor": {
          "anyOf": [
            {
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": "cursor to the next page",
          "title": "Next Page Cursor"
        },
        "limit": {
          "description": "The maximum number of items on a single page, ie the page size.",
          "minimum": 0,
          "title": "Limit",
          "type": "integer"
        }
      },
      "required": [
        "limit"
      ],
      "title": "CursorPageMetadata",
      "type": "object"
    },
    "Settlement": {
      "properties": {
        "settlement_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The global settlement ID.",
          "title": "Settlement Id"
        },
        "settlement_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Date of the settlement payout",
          "title": "Settlement Date"
        },
        "recipient_account_number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Recipient account number.",
          "title": "Recipient Account Number"
        },
        "recipient_account_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Recipient account name.",
          "title": "Recipient Account Name"
        },
        "recipient_iban": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Recipient account IBAN.",
          "title": "Recipient Iban"
        },
        "recipient_bban": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Recipient account BBAN.",
          "title": "Recipient Bban"
        },
        "funding_provider": {
          "description": "Funding provider",
          "title": "Funding Provider",
          "type": "string"
        },
        "funding_provider_account_holder_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Funding provider account name.",
          "title": "Funding Provider Account Holder Name"
        },
        "funding_provider_account_number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Funding provider account number.",
          "title": "Funding Provider Account Number"
        },
        "payout_currency": {
          "$ref": "#/$defs/CurrencyEnum",
          "description": "Payout currency."
        },
        "payout_amount": {
          "anyOf": [
            {
              "format": "decimal",
              "pattern": "^-?[0-9]+(\\.[0-9]{0,2})?",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Payout amount.",
          "title": "Payout Amount"
        },
        "payment_reference": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Payment reference.",
          "title": "Payment Reference"
        }
      },
      "required": [
        "funding_provider",
        "payout_currency"
      ],
      "title": "Settlement",
      "type": "object"
    }
  }
}