{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/token-io/main/json-schema/token-io-io-token-proto-gateway-credit-virtual-account-request-schema.json",
  "title": "io.token.proto.gateway.CreditVirtualAccountRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/token-io-virtual-accounts-api-openapi.yml#/components/schemas/io.token.proto.gateway.CreditVirtualAccountRequest",
  "type": "object",
  "properties": {
    "amount": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "payer": {
      "$ref": "#/$defs/io.token.proto.gateway.Payer"
    },
    "type": {
      "$ref": "#/$defs/io.token.proto.gateway.CreditVirtualAccountRequest.Type"
    }
  },
  "$defs": {
    "io.token.proto.gateway.AccountDetails": {
      "type": "object",
      "properties": {
        "accountNumber": {
          "type": "string"
        },
        "sortCode": {
          "type": "string"
        }
      }
    },
    "io.token.proto.gateway.CreditVirtualAccountRequest.Type": {
      "enum": [
        "UNKNOWN",
        "FASTER_PAYMENTS",
        "SEPA_CREDIT_TRANSFERS",
        "SEPA_INSTANT_CREDIT_TRANSFERS"
      ],
      "default": "UNKNOWN",
      "type": "string"
    },
    "io.token.proto.gateway.Iban": {
      "type": "object",
      "properties": {
        "bic": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        }
      }
    },
    "io.token.proto.gateway.Identifier": {
      "type": "object",
      "properties": {
        "accountDetails": {
          "$ref": "#/$defs/io.token.proto.gateway.AccountDetails"
        },
        "iban": {
          "$ref": "#/$defs/io.token.proto.gateway.Iban"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "io.token.proto.gateway.Payer": {
      "type": "object",
      "properties": {
        "identifier": {
          "$ref": "#/$defs/io.token.proto.gateway.Identifier"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}