{
  "openapi": "3.1.0",
  "info": {
    "title": "ArPay API",
    "version": "1.2.0"
  },
  "paths": {
    "/api/v1/auth/login": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Login",
        "operationId": "login_api_v1_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/session": {
      "get": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Current",
        "operationId": "current_api_v1_auth_session_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          },
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/auth/totp/setup": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Setup",
        "operationId": "setup_api_v1_auth_totp_setup_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/auth/totp/verify": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Verify",
        "operationId": "verify_api_v1_auth_totp_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Verify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/auth/password": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Change Password",
        "operationId": "change_password_api_v1_auth_password_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/auth/sessions": {
      "get": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Sessions",
        "operationId": "sessions_api_v1_auth_sessions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          },
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/auth/history": {
      "get": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "History",
        "operationId": "history_api_v1_auth_history_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          },
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/auth/sessions/{session_id}": {
      "delete": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Revoke",
        "operationId": "revoke_api_v1_auth_sessions__session_id__delete",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/auth/logout-all": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Logout",
        "operationId": "logout_api_v1_auth_logout_all_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Logout",
        "operationId": "logout_api_v1_auth_logout_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/auth/register": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Register",
        "operationId": "register_api_v1_auth_register_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountEmail"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/register/confirm": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Confirm Registration",
        "operationId": "confirm_registration_api_v1_auth_register_confirm_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterConfirmation"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/password/forgot": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Forgot Password",
        "operationId": "forgot_password_api_v1_auth_password_forgot_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountEmail"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/password/reset": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Reset Password",
        "operationId": "reset_password_api_v1_auth_password_reset_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountToken"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/totp/recovery-codes": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Refresh Recovery Codes",
        "operationId": "refresh_recovery_codes_api_v1_auth_totp_recovery_codes_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Verify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/auth/totp/rotate": {
      "post": {
        "tags": [
          "Authentication and security"
        ],
        "summary": "Rotate Authenticator",
        "operationId": "rotate_authenticator_api_v1_auth_totp_rotate_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Verify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          },
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/summary": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Summary",
        "operationId": "summary_api_v1_customer_summary_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/activity": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Activity",
        "operationId": "activity_api_v1_customer_activity_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/cards": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Cards",
        "operationId": "cards_api_v1_customer_cards_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CardView"
                  },
                  "type": "array",
                  "title": "Response Cards Api V1 Customer Cards Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/cards/{card_id}": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Details",
        "operationId": "details_api_v1_customer_cards__card_id__get",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardView"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/cards/{card_id}/freeze": {
      "patch": {
        "tags": [
          "Customer"
        ],
        "summary": "Freeze",
        "operationId": "freeze_api_v1_customer_cards__card_id__freeze_patch",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Freeze"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/cards/{card_id}/limits": {
      "patch": {
        "tags": [
          "Customer"
        ],
        "summary": "Limits",
        "operationId": "limits_api_v1_customer_cards__card_id__limits_patch",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Limits"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/funding": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Funding",
        "operationId": "funding_api_v1_customer_funding_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Fund",
        "operationId": "fund_api_v1_customer_funding_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Funding"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/ledger": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Statement",
        "operationId": "statement_api_v1_customer_ledger_get",
        "parameters": [
          {
            "name": "card_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 36
                },
                {
                  "type": "null"
                }
              ],
              "title": "Card Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/funding/{fund_id}/cancel": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Cancel Funding",
        "operationId": "cancel_funding_api_v1_customer_funding__fund_id__cancel_post",
        "parameters": [
          {
            "name": "fund_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fund Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/transactions": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Transactions",
        "operationId": "transactions_api_v1_customer_transactions_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "card_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 36,
                  "maxLength": 36
                },
                {
                  "type": "null"
                }
              ],
              "title": "Card Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TransactionView"
                  },
                  "title": "Response Transactions Api V1 Customer Transactions Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/transactions/{transaction_id}": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Transaction",
        "operationId": "transaction_api_v1_customer_transactions__transaction_id__get",
        "parameters": [
          {
            "name": "transaction_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Transaction Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionView"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/orders": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Orders",
        "operationId": "orders_api_v1_customer_orders_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Order",
        "operationId": "order_api_v1_customer_orders_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Order"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/profile": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Profile",
        "operationId": "profile_api_v1_customer_profile_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Customer"
        ],
        "summary": "Update Profile",
        "operationId": "update_profile_api_v1_customer_profile_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/preferences": {
      "patch": {
        "tags": [
          "Customer"
        ],
        "summary": "Preferences",
        "operationId": "preferences_api_v1_customer_preferences_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Preferences"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/notifications": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Notifications",
        "operationId": "notifications_api_v1_customer_notifications_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "unread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Unread"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/notifications/read": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Mark Read",
        "operationId": "mark_read_api_v1_customer_notifications_read_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/support": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Tickets",
        "operationId": "tickets_api_v1_customer_support_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Support",
        "operationId": "support_api_v1_customer_support_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Ticket"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/notifications/{notification_id}/read": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Read One",
        "operationId": "read_one_api_v1_customer_notifications__notification_id__read_post",
        "parameters": [
          {
            "name": "notification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Notification Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/customer/support/{ticket_id}": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Support Thread",
        "operationId": "support_thread_api_v1_customer_support__ticket_id__get",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": []
          }
        ]
      }
    },
    "/api/v1/customer/support/{ticket_id}/messages": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Support Followup",
        "operationId": "support_followup_api_v1_customer_support__ticket_id__messages_post",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportFollowup"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "customerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/summary": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Summary",
        "operationId": "summary_api_v1_admin_summary_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/customers": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Customers",
        "operationId": "customers_api_v1_admin_customers_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Create Customer",
        "operationId": "create_customer_api_v1_admin_customers_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/customers/{user_id}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Customer Detail",
        "operationId": "customer_detail_api_v1_admin_customers__user_id__get",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Edit Customer",
        "operationId": "edit_customer_api_v1_admin_customers__user_id__patch",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/customers/{user_id}/status": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Customer Status",
        "operationId": "customer_status_api_v1_admin_customers__user_id__status_patch",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerStatus"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/customers/{user_id}/reset": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Reset",
        "operationId": "reset_api_v1_admin_customers__user_id__reset_post",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Reset"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/cards": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Cards",
        "operationId": "cards_api_v1_admin_cards_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "ACTIVE",
                    "FROZEN",
                    "BLOCKED",
                    "EXPIRED",
                    "SUSPENDED",
                    "CLOSED"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "recent",
                "name",
                "balance"
              ],
              "type": "string",
              "default": "recent",
              "title": "Sort"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 36
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Create Card",
        "operationId": "create_card_api_v1_admin_cards_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/cards/{card_id}": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Edit Card",
        "operationId": "edit_card_api_v1_admin_cards__card_id__patch",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Close Card",
        "operationId": "close_card_api_v1_admin_cards__card_id__delete",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/cards/{card_id}/load": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Load Card",
        "operationId": "load_card_api_v1_admin_cards__card_id__load_post",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardLoad"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/cards/{card_id}/transactions": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Enter Transaction",
        "operationId": "enter_transaction_api_v1_admin_cards__card_id__transactions_post",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManualTransaction"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/transactions/{transaction_id}/status": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Change Transaction",
        "operationId": "change_transaction_api_v1_admin_transactions__transaction_id__status_patch",
        "parameters": [
          {
            "name": "transaction_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Transaction Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManualTransactionChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/ledger": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Ledger",
        "operationId": "ledger_api_v1_admin_ledger_get",
        "parameters": [
          {
            "name": "card_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 36,
              "default": "",
              "title": "Card Id"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 36,
              "default": "",
              "title": "User Id"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 32,
              "default": "",
              "title": "Kind"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/cards/{card_id}/status": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Card Status",
        "operationId": "card_status_api_v1_admin_cards__card_id__status_patch",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardStatus"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/cards/{card_id}/limits": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Card Limits",
        "operationId": "card_limits_api_v1_admin_cards__card_id__limits_patch",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Limits"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/funding": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Funding",
        "operationId": "funding_api_v1_admin_funding_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "PENDING",
                    "PROCESSING",
                    "WAITING",
                    "COMPLETED",
                    "REJECTED",
                    "CANCELLED"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 36,
              "default": "",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Fund",
        "operationId": "fund_api_v1_admin_funding_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FundingAdmin"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/funding/{fund_id}": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Funding Status",
        "operationId": "funding_status_api_v1_admin_funding__fund_id__patch",
        "parameters": [
          {
            "name": "fund_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fund Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FundingChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/adjustments": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Adjust",
        "operationId": "adjust_api_v1_admin_adjustments_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Adjustment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/transactions": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Transactions",
        "operationId": "transactions_api_v1_admin_transactions_get",
        "parameters": [
          {
            "name": "customer",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 254,
              "default": "",
              "title": "Customer"
            }
          },
          {
            "name": "card_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 36,
              "default": "",
              "title": "Card Id"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date From"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date To"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 16,
              "default": "",
              "title": "Status"
            }
          },
          {
            "name": "merchant",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Merchant"
            }
          },
          {
            "name": "transaction_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 36,
              "default": "",
              "title": "Transaction Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/orders": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Orders",
        "operationId": "orders_api_v1_admin_orders_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "PENDING",
                    "PROCESSING",
                    "APPROVED",
                    "COMPLETED",
                    "ISSUED",
                    "SHIPPED",
                    "DELIVERED",
                    "REJECTED",
                    "CANCELLED"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 36,
              "default": "",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/orders/{order_id}": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Order Status",
        "operationId": "order_status_api_v1_admin_orders__order_id__patch",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Order Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/fees": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Fees",
        "operationId": "fees_api_v1_admin_fees_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update Fees",
        "operationId": "update_fees_api_v1_admin_fees_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeeRules"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/features": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Features",
        "operationId": "features_api_v1_admin_features_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/features/{name}": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update Feature",
        "operationId": "update_feature_api_v1_admin_features__name__put",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Feature"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/audit": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Logs",
        "operationId": "logs_api_v1_admin_audit_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100,
              "default": "",
              "title": "Q"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/support": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Support",
        "operationId": "support_api_v1_admin_support_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "OPEN",
                    "CLOSED"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/support/{ticket_id}": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Reply",
        "operationId": "reply_api_v1_admin_support__ticket_id__patch",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketReply"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      },
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Support Details",
        "operationId": "support_details_api_v1_admin_support__ticket_id__get",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/test/purchases": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Test Purchase",
        "operationId": "test_purchase_api_v1_admin_test_purchases_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestPurchase"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/test/purchases/{transaction_id}/return": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Test Return",
        "operationId": "test_return_api_v1_admin_test_purchases__transaction_id__return_post",
        "parameters": [
          {
            "name": "transaction_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Transaction Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestReturn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/admins": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Admins",
        "operationId": "admins_api_v1_admin_admins_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Create Admin",
        "operationId": "create_admin_api_v1_admin_admins_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/notifications": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Notifications",
        "operationId": "notifications_api_v1_admin_notifications_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100,
              "default": "",
              "title": "Q"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      },
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Send Notification",
        "operationId": "send_notification_api_v1_admin_notifications_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNotification"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/cards/{card_id}/owner": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Correct Owner",
        "operationId": "correct_owner_api_v1_admin_cards__card_id__owner_patch",
        "parameters": [
          {
            "name": "card_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Card Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardOwnerChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/customers/{user_id}/authenticator": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Customer Factor",
        "operationId": "customer_factor_api_v1_admin_customers__user_id__authenticator_patch",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountPolicy"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/admins/{user_id}/status": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Admin Status",
        "operationId": "admin_status_api_v1_admin_admins__user_id__status_patch",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerStatus"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/admins/{user_id}/revoke": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Revoke Admin Sessions",
        "operationId": "revoke_admin_sessions_api_v1_admin_admins__user_id__revoke_post",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/admins/{user_id}/reset": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Admin Reset",
        "operationId": "admin_reset_api_v1_admin_admins__user_id__reset_post",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Reset"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/transactions/{transaction_id}": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Edit Manual Transaction",
        "operationId": "edit_manual_transaction_api_v1_admin_transactions__transaction_id__patch",
        "parameters": [
          {
            "name": "transaction_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Transaction Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManualTransaction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/admin/payments": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Payments",
        "operationId": "payments_api_v1_admin_payments_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "lookahead",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Lookahead"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "newest",
                "oldest"
              ],
              "type": "string",
              "default": "newest",
              "title": "Sort"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100,
              "default": "",
              "title": "Q"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": []
          }
        ]
      }
    },
    "/api/v1/admin/funding/{fund_id}/reference": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Reconcile Funding Reference",
        "description": "Bind a historical payment to an existing credit without moving money.",
        "operationId": "reconcile_funding_reference_api_v1_admin_funding__fund_id__reference_patch",
        "parameters": [
          {
            "name": "fund_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fund Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentReference"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "adminSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/api/v1/status": {
      "get": {
        "tags": [
          "Status"
        ],
        "summary": "Status",
        "operationId": "status_api_v1_status_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/ready": {
      "get": {
        "tags": [
          "Status"
        ],
        "summary": "Ready",
        "operationId": "ready_api_v1_ready_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountEmail": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email"
          },
          "portal": {
            "type": "string",
            "enum": [
              "customer",
              "admin"
            ],
            "title": "Portal",
            "default": "customer"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email"
        ],
        "title": "AccountEmail"
      },
      "AccountPolicy": {
        "properties": {
          "required": {
            "type": "boolean",
            "title": "Required"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "required"
        ],
        "title": "AccountPolicy"
      },
      "AccountToken": {
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 1024,
            "minLength": 24,
            "title": "Token"
          },
          "password": {
            "type": "string",
            "maxLength": 128,
            "minLength": 12,
            "title": "Password"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "token",
          "password"
        ],
        "title": "AccountToken"
      },
      "Adjustment": {
        "properties": {
          "card_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "Card Id"
          },
          "reference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,100}$",
            "title": "Reference"
          },
          "amount": {
            "type": "integer",
            "maximum": 100000000000.0,
            "minimum": -100000000000.0,
            "title": "Amount"
          },
          "note": {
            "type": "string",
            "maxLength": 250,
            "minLength": 3,
            "title": "Note"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "card_id",
          "reference",
          "amount",
          "note"
        ],
        "title": "Adjustment"
      },
      "AdminCreate": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email"
          },
          "full_name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Full Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email",
          "full_name"
        ],
        "title": "AdminCreate"
      },
      "CardCreate": {
        "properties": {
          "user_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "User Id"
          },
          "network": {
            "type": "string",
            "enum": [
              "VISA",
              "MASTERCARD"
            ],
            "title": "Network"
          },
          "first4": {
            "type": "string",
            "pattern": "^[0-9]{4}$",
            "title": "First4"
          },
          "last4": {
            "type": "string",
            "pattern": "^[0-9]{4}$",
            "title": "Last4"
          },
          "initial_balance": {
            "type": "integer",
            "maximum": 100000000000.0,
            "minimum": 0.0,
            "title": "Initial Balance",
            "default": 0
          },
          "expiry_month": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 12.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiry Month"
          },
          "expiry_year": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 2100.0,
                "minimum": 2020.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiry Year"
          },
          "card_holder_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Card Holder Name"
          },
          "nickname": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Nickname"
          },
          "card_type": {
            "type": "string",
            "enum": [
              "VIRTUAL",
              "PHYSICAL"
            ],
            "title": "Card Type",
            "default": "VIRTUAL"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "FROZEN",
              "BLOCKED",
              "EXPIRED",
              "SUSPENDED",
              "CLOSED"
            ],
            "title": "Status",
            "default": "ACTIVE"
          },
          "order_reference": {
            "type": "string",
            "maxLength": 100,
            "title": "Order Reference",
            "default": ""
          },
          "admin_note": {
            "type": "string",
            "maxLength": 250,
            "title": "Admin Note",
            "default": ""
          },
          "assignment_reference": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[^\\x00-\\x1F\\x7F]+$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignment Reference"
          },
          "opening_payment_reference": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[^\\x00-\\x1F\\x7F]+$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opening Payment Reference"
          },
          "provider_ref": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,100}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Ref"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "user_id",
          "network",
          "first4",
          "last4"
        ],
        "title": "CardCreate"
      },
      "CardEdit": {
        "properties": {
          "review_confirmed": {
            "type": "boolean",
            "title": "Review Confirmed",
            "default": false
          },
          "card_holder_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Card Holder Name"
          },
          "nickname": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Nickname"
          },
          "network": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "VISA",
                  "MASTERCARD"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Network"
          },
          "card_type": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "VIRTUAL",
                  "PHYSICAL"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Card Type"
          },
          "first4": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9]{4}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "First4"
          },
          "last4": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9]{4}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last4"
          },
          "expiry_month": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 12.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiry Month"
          },
          "expiry_year": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 2100.0,
                "minimum": 2020.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiry Year"
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ACTIVE",
                  "FROZEN",
                  "BLOCKED",
                  "EXPIRED",
                  "SUSPENDED",
                  "CLOSED"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "order_reference": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Order Reference"
          },
          "admin_note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 250
              },
              {
                "type": "null"
              }
            ],
            "title": "Admin Note"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "CardEdit"
      },
      "CardLoad": {
        "properties": {
          "reference": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^\\x00-\\x1F\\x7F]+$",
            "title": "Reference"
          },
          "amount": {
            "type": "integer",
            "maximum": 100000000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Amount"
          },
          "note": {
            "type": "string",
            "maxLength": 250,
            "title": "Note",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "reference",
          "amount"
        ],
        "title": "CardLoad"
      },
      "CardOwnerChange": {
        "properties": {
          "user_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "User Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "CardOwnerChange"
      },
      "CardStatus": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "FROZEN",
              "BLOCKED",
              "EXPIRED",
              "SUSPENDED",
              "CLOSED"
            ],
            "title": "Status"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "CardStatus"
      },
      "CardView": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "user_id": {
            "type": "string",
            "title": "User Id"
          },
          "card_holder_name": {
            "type": "string",
            "title": "Card Holder Name"
          },
          "nickname": {
            "type": "string",
            "title": "Nickname"
          },
          "network": {
            "type": "string",
            "enum": [
              "VISA",
              "MASTERCARD"
            ],
            "title": "Network"
          },
          "card_type": {
            "type": "string",
            "enum": [
              "VIRTUAL",
              "PHYSICAL"
            ],
            "title": "Card Type"
          },
          "first4": {
            "type": "string",
            "title": "First4"
          },
          "last4": {
            "type": "string",
            "title": "Last4"
          },
          "masked": {
            "type": "string",
            "title": "Masked"
          },
          "expiry_month": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiry Month"
          },
          "expiry_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiry Year"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "FROZEN",
              "BLOCKED",
              "EXPIRED",
              "SUSPENDED",
              "CLOSED"
            ],
            "title": "Status"
          },
          "expired": {
            "type": "boolean",
            "title": "Expired"
          },
          "admin_frozen": {
            "type": "boolean",
            "title": "Admin Frozen"
          },
          "available": {
            "type": "integer",
            "title": "Available"
          },
          "loaded": {
            "type": "integer",
            "title": "Loaded"
          },
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "fees": {
            "type": "integer",
            "title": "Fees"
          },
          "adjustments": {
            "type": "integer",
            "title": "Adjustments"
          },
          "created_at": {
            "type": "integer",
            "title": "Created At"
          },
          "daily_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Daily Limit"
          },
          "monthly_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Limit"
          },
          "online_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Online Limit"
          },
          "merchant_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Merchant Limit"
          }
        },
        "type": "object",
        "required": [
          "id",
          "user_id",
          "card_holder_name",
          "nickname",
          "network",
          "card_type",
          "first4",
          "last4",
          "masked",
          "expiry_month",
          "expiry_year",
          "status",
          "expired",
          "admin_frozen",
          "available",
          "loaded",
          "used",
          "fees",
          "adjustments",
          "created_at",
          "daily_limit",
          "monthly_limit",
          "online_limit",
          "merchant_limit"
        ],
        "title": "CardView"
      },
      "CustomerCreate": {
        "properties": {
          "full_name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Full Name"
          },
          "phone": {
            "type": "string",
            "maxLength": 40,
            "title": "Phone",
            "default": ""
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "full_name",
          "email"
        ],
        "title": "CustomerCreate"
      },
      "CustomerInput": {
        "properties": {
          "full_name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Full Name"
          },
          "phone": {
            "type": "string",
            "maxLength": 40,
            "title": "Phone",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "full_name"
        ],
        "title": "CustomerInput"
      },
      "CustomerNotification": {
        "properties": {
          "user_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "User Id"
          },
          "title": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Title"
          },
          "message": {
            "type": "string",
            "maxLength": 250,
            "minLength": 1,
            "title": "Message"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "user_id",
          "title",
          "message"
        ],
        "title": "CustomerNotification"
      },
      "CustomerStatus": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "SUSPENDED"
            ],
            "title": "Status"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "CustomerStatus"
      },
      "Feature": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "Feature"
      },
      "FeeRules": {
        "properties": {
          "basis_points": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 0.0,
            "title": "Basis Points"
          },
          "flat_cents": {
            "type": "integer",
            "maximum": 100000000000.0,
            "minimum": 0.0,
            "title": "Flat Cents"
          },
          "card_order_fee": {
            "type": "integer",
            "maximum": 100000000000.0,
            "minimum": 0.0,
            "title": "Card Order Fee"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "basis_points",
          "flat_cents",
          "card_order_fee"
        ],
        "title": "FeeRules"
      },
      "Freeze": {
        "properties": {
          "frozen": {
            "type": "boolean",
            "title": "Frozen"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "frozen"
        ],
        "title": "Freeze"
      },
      "Funding": {
        "properties": {
          "card_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "Card Id"
          },
          "amount": {
            "type": "integer",
            "maximum": 100000000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Amount"
          },
          "note": {
            "type": "string",
            "maxLength": 250,
            "title": "Note",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "card_id",
          "amount"
        ],
        "title": "Funding"
      },
      "FundingAdmin": {
        "properties": {
          "card_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "Card Id"
          },
          "amount": {
            "type": "integer",
            "maximum": 100000000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Amount"
          },
          "note": {
            "type": "string",
            "maxLength": 250,
            "title": "Note",
            "default": ""
          },
          "admin_note": {
            "type": "string",
            "maxLength": 250,
            "title": "Admin Note",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "card_id",
          "amount"
        ],
        "title": "FundingAdmin"
      },
      "FundingChange": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "PROCESSING",
              "WAITING",
              "COMPLETED",
              "REJECTED",
              "CANCELLED"
            ],
            "title": "Status"
          },
          "payment_reference": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[^\\x00-\\x1F\\x7F]+$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payment Reference"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "FundingChange"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "Limits": {
        "properties": {
          "daily_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Daily Limit"
          },
          "monthly_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Limit"
          },
          "online_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Online Limit"
          },
          "merchant_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Merchant Limit"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "daily_limit",
          "monthly_limit",
          "online_limit",
          "merchant_limit"
        ],
        "title": "Limits"
      },
      "Login": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email"
          },
          "password": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Password"
          },
          "portal": {
            "type": "string",
            "enum": [
              "customer",
              "admin"
            ],
            "title": "Portal"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password",
          "portal"
        ],
        "title": "Login"
      },
      "ManualTransaction": {
        "properties": {
          "reference": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^\\x00-\\x1F\\x7F]+$",
            "title": "Reference"
          },
          "merchant": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Merchant"
          },
          "description": {
            "type": "string",
            "maxLength": 250,
            "title": "Description",
            "default": ""
          },
          "admin_note": {
            "type": "string",
            "maxLength": 250,
            "title": "Admin Note",
            "default": ""
          },
          "amount": {
            "type": "integer",
            "maximum": 100000000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Amount"
          },
          "fee": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Fee"
          },
          "channel": {
            "type": "string",
            "enum": [
              "ONLINE",
              "IN_PERSON"
            ],
            "title": "Channel",
            "default": "ONLINE"
          },
          "transaction_type": {
            "type": "string",
            "enum": [
              "PURCHASE",
              "ATM_WITHDRAWAL",
              "OTHER_DEBIT"
            ],
            "title": "Transaction Type",
            "default": "PURCHASE"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "PROCESSING",
              "COMPLETED",
              "FAILED"
            ],
            "title": "Status",
            "default": "PENDING"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "reference",
          "merchant",
          "amount",
          "occurred_at"
        ],
        "title": "ManualTransaction"
      },
      "ManualTransactionChange": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "PROCESSING",
              "COMPLETED",
              "FAILED",
              "REVERSED"
            ],
            "title": "Status"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "ManualTransactionChange"
      },
      "Order": {
        "properties": {
          "network": {
            "type": "string",
            "enum": [
              "VISA",
              "MASTERCARD"
            ],
            "title": "Network"
          },
          "card_type": {
            "type": "string",
            "enum": [
              "VIRTUAL",
              "PHYSICAL"
            ],
            "title": "Card Type"
          },
          "fee_quote": {
            "type": "integer",
            "maximum": 100000000000.0,
            "minimum": 0.0,
            "title": "Fee Quote"
          },
          "terms_accepted": {
            "type": "boolean",
            "const": true,
            "title": "Terms Accepted"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "network",
          "card_type",
          "fee_quote",
          "terms_accepted"
        ],
        "title": "Order"
      },
      "OrderChange": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "PROCESSING",
              "APPROVED",
              "COMPLETED",
              "ISSUED",
              "SHIPPED",
              "DELIVERED",
              "REJECTED",
              "CANCELLED"
            ],
            "title": "Status"
          },
          "card_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36,
                "minLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Card Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "OrderChange"
      },
      "PasswordChange": {
        "properties": {
          "current_password": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Current Password"
          },
          "new_password": {
            "type": "string",
            "maxLength": 128,
            "minLength": 12,
            "title": "New Password"
          }
        },
        "type": "object",
        "required": [
          "current_password",
          "new_password"
        ],
        "title": "PasswordChange"
      },
      "PaymentReference": {
        "properties": {
          "payment_reference": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^\\x00-\\x1F\\x7F]+$",
            "title": "Payment Reference"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "payment_reference"
        ],
        "title": "PaymentReference"
      },
      "Preferences": {
        "properties": {
          "transaction_alerts": {
            "type": "boolean",
            "title": "Transaction Alerts"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "transaction_alerts"
        ],
        "title": "Preferences"
      },
      "RegisterConfirmation": {
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 1024,
            "minLength": 24,
            "title": "Token"
          },
          "password": {
            "type": "string",
            "maxLength": 128,
            "minLength": 12,
            "title": "Password"
          },
          "full_name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Full Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "token",
          "password",
          "full_name"
        ],
        "title": "RegisterConfirmation"
      },
      "Reset": {
        "properties": {
          "reset_authenticator": {
            "type": "boolean",
            "title": "Reset Authenticator",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Reset"
      },
      "SupportFollowup": {
        "properties": {
          "message": {
            "type": "string",
            "maxLength": 3000,
            "minLength": 3,
            "title": "Message"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "message"
        ],
        "title": "SupportFollowup"
      },
      "TestPurchase": {
        "properties": {
          "card_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "Card Id"
          },
          "reference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,100}$",
            "title": "Reference"
          },
          "merchant": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Merchant"
          },
          "description": {
            "type": "string",
            "maxLength": 250,
            "title": "Description",
            "default": ""
          },
          "amount": {
            "type": "integer",
            "maximum": 100000000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Amount"
          },
          "channel": {
            "type": "string",
            "enum": [
              "ONLINE",
              "IN_PERSON"
            ],
            "title": "Channel"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "card_id",
          "reference",
          "merchant",
          "amount",
          "channel"
        ],
        "title": "TestPurchase"
      },
      "TestReturn": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "REFUNDED",
              "REVERSED"
            ],
            "title": "Status"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "TestReturn"
      },
      "Ticket": {
        "properties": {
          "subject": {
            "type": "string",
            "maxLength": 100,
            "minLength": 3,
            "title": "Subject"
          },
          "message": {
            "type": "string",
            "maxLength": 3000,
            "minLength": 3,
            "title": "Message"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "subject",
          "message"
        ],
        "title": "Ticket"
      },
      "TicketReply": {
        "properties": {
          "reply": {
            "type": "string",
            "maxLength": 3000,
            "minLength": 3,
            "title": "Reply"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "reply"
        ],
        "title": "TicketReply"
      },
      "TransactionView": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "card_id": {
            "type": "string",
            "title": "Card Id"
          },
          "merchant": {
            "type": "string",
            "title": "Merchant"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "amount": {
            "type": "integer",
            "title": "Amount"
          },
          "fee": {
            "type": "integer",
            "title": "Fee"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "balance_before": {
            "type": "integer",
            "title": "Balance Before"
          },
          "balance_after": {
            "type": "integer",
            "title": "Balance After"
          },
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "channel": {
            "type": "string",
            "title": "Channel"
          },
          "created_at": {
            "type": "integer",
            "title": "Created At"
          },
          "posted_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Posted At"
          },
          "reversed_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reversed At"
          },
          "transaction_type": {
            "type": "string",
            "title": "Transaction Type"
          },
          "last4": {
            "type": "string",
            "title": "Last4"
          },
          "network": {
            "type": "string",
            "enum": [
              "VISA",
              "MASTERCARD"
            ],
            "title": "Network"
          }
        },
        "type": "object",
        "required": [
          "id",
          "card_id",
          "merchant",
          "description",
          "amount",
          "fee",
          "status",
          "balance_before",
          "balance_after",
          "mode",
          "channel",
          "created_at",
          "posted_at",
          "reversed_at",
          "transaction_type",
          "last4",
          "network"
        ],
        "title": "TransactionView"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "Verify": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 64,
            "minLength": 6,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "Verify"
      }
    },
    "securitySchemes": {
      "customerSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__Host-arpay_customer_session"
      },
      "adminSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__Host-arpay_admin_session"
      },
      "csrf": {
        "type": "apiKey",
        "in": "header",
        "name": "X-CSRF-Token"
      }
    }
  }
}
