{
  "$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-payment-v2-response-schema.json",
  "title": "io.token.proto.gateway.PaymentV2Response",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/token-io-payments-api-openapi.yml#/components/schemas/io.token.proto.gateway.PaymentV2Response",
  "type": "object",
  "properties": {
    "payment": {
      "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.Payment"
    }
  },
  "$defs": {
    "io.token.proto.common.address.Address": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "conscriptionNumber": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "district": {
          "type": "string"
        },
        "flats": {
          "type": "string"
        },
        "full": {
          "type": "string"
        },
        "hamlet": {
          "type": "string"
        },
        "houseName": {
          "type": "string"
        },
        "houseNumber": {
          "type": "string"
        },
        "place": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "province": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "subdistrict": {
          "type": "string"
        },
        "suburb": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.alias.Alias": {
      "type": "object",
      "properties": {
        "realm": {
          "type": "string"
        },
        "realmId": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/io.token.proto.common.alias.Alias.Type"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.alias.Alias.Type": {
      "enum": [
        "INVALID",
        "UNKNOWN",
        "EMAIL",
        "PHONE",
        "DOMAIN",
        "USERNAME",
        "BANK",
        "CUSTOM",
        "EIDAS"
      ],
      "default": "INVALID",
      "type": "string"
    },
    "io.token.proto.common.money.Money": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.CredentialField": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "flickerCode": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "options": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "password": {
          "format": "boolean",
          "type": "boolean"
        },
        "type": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.CredentialField.Type"
        }
      }
    },
    "io.token.proto.common.providerspecific.CredentialField.Type": {
      "enum": [
        "INVALID",
        "FIELD",
        "PASSWORD",
        "PSU_MESSAGE",
        "IMAGE",
        "FLICKER",
        "DECOUPLED",
        "CONFIRMATION"
      ],
      "default": "INVALID",
      "type": "string"
    },
    "io.token.proto.common.providerspecific.ProviderStandingOrderMetadata": {
      "type": "object",
      "properties": {
        "cma9StandingOrderMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.Cma9StandingOrderMetadata"
        },
        "nextGenPsd2StandingOrderMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.nextgenpsd2.NextGenPsd2StandingOrderMetadata"
        },
        "polishapiStandingOrderMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.polishapi.PolishApiStandingOrderMetadata"
        },
        "stetStandingOrderMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.StetStandingOrderMetadata"
        }
      }
    },
    "io.token.proto.common.providerspecific.ProviderTransferMetadata": {
      "type": "object",
      "properties": {
        "cma9TransferMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.Cma9TransferMetadata"
        },
        "nextGenPsd2TransferMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.nextgenpsd2.NextGenPsd2TransferMetadata"
        },
        "polishApiTransferMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.polishapi.PolishApiTransferMetadata"
        },
        "stetTransferMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.StetTransferMetadata"
        }
      }
    },
    "io.token.proto.common.providerspecific.cma9.BeneficiaryAccountType": {
      "enum": [
        "INVALID_BENEFICIARY_ACCOUNT_TYPE",
        "PERSONAL",
        "JOINT_PERSONAL",
        "PERSONAL_SAVINGS_ACCOUNT",
        "BUSINESS",
        "BUSINESS_SAVINGS_ACCOUNT",
        "CHARITY",
        "COLLECTION",
        "CORPORATE",
        "GOVERNMENT",
        "EWALLET",
        "INVESTMENT",
        "ISA",
        "PREMIER",
        "WEALTH",
        "PENSION"
      ],
      "default": "INVALID_BENEFICIARY_ACCOUNT_TYPE",
      "type": "string"
    },
    "io.token.proto.common.providerspecific.cma9.Cma9StandingOrderMetadata": {
      "type": "object",
      "properties": {
        "finalPaymentAmount": {
          "$ref": "#/$defs/io.token.proto.common.money.Money"
        },
        "finalPaymentDateTime": {
          "type": "string"
        },
        "firstPaymentAmount": {
          "$ref": "#/$defs/io.token.proto.common.money.Money"
        },
        "firstPaymentDateTime": {
          "type": "string"
        },
        "frequency": {
          "type": "string"
        },
        "numberOfPayments": {
          "format": "int32",
          "type": "integer"
        },
        "recurringPaymentAmount": {
          "$ref": "#/$defs/io.token.proto.common.money.Money"
        },
        "recurringPaymentDateTime": {
          "type": "string"
        },
        "remittanceInformation": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.RemittanceInformation"
        },
        "risk": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.Risk"
        }
      }
    },
    "io.token.proto.common.providerspecific.cma9.Cma9TransferMetadata": {
      "type": "object",
      "properties": {
        "endToEndIdentification": {
          "type": "string"
        },
        "instructionIdentification": {
          "type": "string"
        },
        "remittanceInformation": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.RemittanceInformation"
        },
        "risk": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.Risk"
        }
      }
    },
    "io.token.proto.common.providerspecific.cma9.DeliveryAddress": {
      "type": "object",
      "properties": {
        "addressLine": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "addressType": {
          "type": "string"
        },
        "buildingNumber": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "countrySubDivision": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "department": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "streetName": {
          "type": "string"
        },
        "subDepartment": {
          "type": "string"
        },
        "townName": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.cma9.PaymentContextCode": {
      "enum": [
        "INVALID_PAYMENT_CONTEXT_CODE",
        "BILL_PAYMENT",
        "ECOMMERCE_GOODS",
        "ECOMMERCE_SERVICES",
        "OTHER",
        "PARTY_TO_PARTY",
        "BILLING_GOODS_AND_SERVICES_IN_ADVANCE",
        "BILLING_GOODS_AND_SERVICES_IN_ARREARS",
        "PISP_PAYEE",
        "ECOMMERCE_MERCHANT_INITIATED_PAYMENT",
        "FACE_TO_FACE_POINT_OF_SALE",
        "TRANSFER_TO_SELF",
        "TRANSFER_TO_THIRD_PARTY"
      ],
      "default": "INVALID_PAYMENT_CONTEXT_CODE",
      "type": "string"
    },
    "io.token.proto.common.providerspecific.cma9.RemittanceInformation": {
      "type": "object",
      "properties": {
        "reference": {
          "type": "string"
        },
        "referenceHash": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.cma9.Risk": {
      "type": "object",
      "properties": {
        "beneficiaryAccountType": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.BeneficiaryAccountType"
        },
        "beneficiaryPrepopulatedIndicator": {
          "type": "string"
        },
        "contractPresentIndicator": {
          "type": "string"
        },
        "deliveryAddress": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.DeliveryAddress"
        },
        "merchantCategoryCode": {
          "type": "string"
        },
        "merchantCustomerIdentification": {
          "type": "string"
        },
        "paymentContextCode": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.cma9.PaymentContextCode"
        },
        "paymentPurposeCode": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.nextgenpsd2.NextGenPsd2StandingOrderMetadata": {
      "type": "object",
      "properties": {
        "creditorAgentName": {
          "type": "string"
        },
        "endToEndIdentification": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.nextgenpsd2.NextGenPsd2TransferMetadata": {
      "type": "object",
      "properties": {
        "creditorAgent": {
          "type": "string"
        },
        "creditorAgentName": {
          "type": "string"
        },
        "endToEndIdentification": {
          "type": "string"
        },
        "remittanceInformationStructured": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.polishapi.DeliveryMode": {
      "enum": [
        "INVALID_DELIVERY_MODE",
        "STANDARD_D2",
        "STANDARD_D1",
        "URGENT_D1",
        "EXPRESS_D0"
      ],
      "default": "INVALID_DELIVERY_MODE",
      "type": "string"
    },
    "io.token.proto.common.providerspecific.polishapi.PolishApiStandingOrderMetadata": {
      "type": "object",
      "properties": {
        "deliveryMode": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.polishapi.DeliveryMode"
        },
        "hold": {
          "format": "boolean",
          "type": "boolean"
        }
      }
    },
    "io.token.proto.common.providerspecific.polishapi.PolishApiTransferMetadata": {
      "type": "object",
      "properties": {
        "deliveryMode": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.polishapi.DeliveryMode"
        },
        "hold": {
          "format": "boolean",
          "type": "boolean"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.AccountIdentification": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "other": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.GenericIdentification"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.Beneficiary": {
      "type": "object",
      "properties": {
        "creditor": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.PartyIdentification"
        },
        "creditorAccount": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.AccountIdentification"
        },
        "creditorAgent": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.FinancialInstitutionIdentification"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.ClearingSystemMemberIdentification": {
      "type": "object",
      "properties": {
        "clearingSystemId": {
          "type": "string"
        },
        "memberId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.FinancialInstitutionIdentification": {
      "type": "object",
      "properties": {
        "bicFi": {
          "type": "string"
        },
        "clearingSystemMemberId": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.ClearingSystemMemberIdentification"
        },
        "name": {
          "type": "string"
        },
        "postalAddress": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.PostalAddress"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.GenericIdentification": {
      "type": "object",
      "properties": {
        "identification": {
          "type": "string"
        },
        "issuer": {
          "type": "string"
        },
        "schemeName": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.PartyIdentification": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "organisationId": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.GenericIdentification"
        },
        "postalAddress": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.PostalAddress"
        },
        "privateId": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.GenericIdentification"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.PaymentTypeInformation": {
      "type": "object",
      "properties": {
        "categoryPurpose": {
          "type": "string"
        },
        "instructionPriority": {
          "type": "string"
        },
        "localInstrument": {
          "type": "string"
        },
        "serviceLevel": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.PostalAddress": {
      "type": "object",
      "properties": {
        "addressLine": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "country": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.RegulatoryReportingCodes": {
      "type": "object",
      "properties": {
        "regulatoryReportingCode": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.StetStandingOrderMetadata": {
      "type": "object",
      "properties": {
        "beneficiary": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.Beneficiary"
        },
        "endToEndId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.providerspecific.stet.StetTransferMetadata": {
      "type": "object",
      "properties": {
        "beneficiary": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.Beneficiary"
        },
        "debtorAgent": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.FinancialInstitutionIdentification"
        },
        "endToEndId": {
          "type": "string"
        },
        "executionRule": {
          "type": "string"
        },
        "paymentTypeInformation": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.PaymentTypeInformation"
        },
        "regulatoryReportingCodes": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.stet.RegulatoryReportingCodes"
        }
      }
    },
    "io.token.proto.common.token.ActingAs": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": "string"
        },
        "logoUrl": {
          "type": "string"
        },
        "refId": {
          "type": "string"
        },
        "secondaryName": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.transaction.TransactionStatus": {
      "enum": [
        "INVALID_STATUS",
        "PENDING",
        "PROCESSING",
        "SUCCESS",
        "PENDING_EXTERNAL_AUTHORIZATION",
        "FAILURE_CANCELED",
        "FAILURE_INSUFFICIENT_FUNDS",
        "FAILURE_INVALID_CURRENCY",
        "FAILURE_PERMISSION_DENIED",
        "FAILURE_QUOTE_EXPIRED",
        "FAILURE_INVALID_AMOUNT",
        "FAILURE_INVALID_QUOTE",
        "FAILURE_EXPIRED",
        "FAILURE_DECLINED",
        "FAILURE_GENERIC",
        "SENT",
        "INITIATED",
        "STATUS_NOT_AVAILABLE",
        "SETTLEMENT_IN_PROGRESS",
        "SETTLEMENT_INCOMPLETE",
        "SETTLEMENT_COMPLETED"
      ],
      "default": "INVALID_STATUS",
      "type": "string"
    },
    "io.token.proto.common.transferinstructions.ChargeBearer": {
      "enum": [
        "INVALID_CHARGE_BEARER",
        "CRED",
        "DEBT",
        "SHAR",
        "SLEV"
      ],
      "default": "INVALID_CHARGE_BEARER",
      "type": "string"
    },
    "io.token.proto.common.transferinstructions.PaymentContext": {
      "enum": [
        "INVALID_CONTEXT",
        "OTHER_CONTEXT",
        "BILL_PAYMENT",
        "ECOMMERCE_GOODS",
        "ECOMMERCE_SERVICES",
        "PERSON_TO_PERSON"
      ],
      "default": "INVALID_CONTEXT",
      "type": "string"
    },
    "io.token.proto.common.transferinstructions.TransferDestination.Type": {
      "enum": [
        "UNKNOWN",
        "BUSINESS",
        "PERSONAL"
      ],
      "default": "UNKNOWN",
      "type": "string"
    },
    "io.token.proto.common.transferinstructions.TransferInstructions.Metadata": {
      "type": "object",
      "properties": {
        "chargeBearer": {
          "$ref": "#/$defs/io.token.proto.common.transferinstructions.ChargeBearer"
        },
        "deliveryAddress": {
          "$ref": "#/$defs/io.token.proto.common.address.Address"
        },
        "merchantCategoryCode": {
          "type": "string"
        },
        "merchantCustomerId": {
          "type": "string"
        },
        "paymentContext": {
          "$ref": "#/$defs/io.token.proto.common.transferinstructions.PaymentContext"
        },
        "providerStandingOrderMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.ProviderStandingOrderMetadata"
        },
        "providerTransferMetadata": {
          "$ref": "#/$defs/io.token.proto.common.providerspecific.ProviderTransferMetadata"
        },
        "purposeCode": {
          "type": "string"
        },
        "ultimateCreditor": {
          "type": "string"
        },
        "ultimateDebtor": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.Address": {
      "type": "object",
      "properties": {
        "addressLine": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "buildingNumber": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "countrySubDivision": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "district": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "streetName": {
          "type": "string"
        },
        "townName": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.BeneficiaryAccountType": {
      "enum": [
        "INVALID_BENEFICIARY_ACCOUNT_TYPE",
        "PERSONAL",
        "JOINT_PERSONAL",
        "PERSONAL_SAVINGS_ACCOUNT",
        "BUSINESS",
        "BUSINESS_SAVINGS_ACCOUNT",
        "CHARITY",
        "COLLECTION",
        "CORPORATE",
        "GOVERNMENT",
        "EWALLET",
        "INVESTMENT",
        "ISA",
        "PREMIER",
        "WEALTH",
        "PENSION"
      ],
      "default": "INVALID_BENEFICIARY_ACCOUNT_TYPE",
      "type": "string"
    },
    "io.token.proto.common.v2.common.CreditorInformation": {
      "type": "object",
      "properties": {
        "accountNumber": {
          "type": "string"
        },
        "accountVerificationId": {
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.Address"
        },
        "bankName": {
          "type": "string"
        },
        "bankgiroNumber": {
          "type": "string"
        },
        "bban": {
          "type": "string"
        },
        "beneficiaryId": {
          "type": "string"
        },
        "bic": {
          "type": "string"
        },
        "clearingNumber": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "plusgiroNumber": {
          "type": "string"
        },
        "sortCode": {
          "type": "string"
        },
        "ultimateCreditorName": {
          "type": "string"
        },
        "virtualAccountId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.DebtorInformation": {
      "type": "object",
      "properties": {
        "accountNumber": {
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.Address"
        },
        "bankgiroNumber": {
          "type": "string"
        },
        "bban": {
          "type": "string"
        },
        "bic": {
          "type": "string"
        },
        "clearingNumber": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "plusgiroNumber": {
          "type": "string"
        },
        "sortCode": {
          "type": "string"
        },
        "tokenizedAccountId": {
          "type": "string"
        },
        "ultimateDebtorName": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.ErrorInfo": {
      "type": "object",
      "properties": {
        "httpErrorCode": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "tokenExternalError": {
          "format": "boolean",
          "type": "boolean"
        },
        "tokenTraceId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.FlowType": {
      "enum": [
        "UNKNOWN",
        "API",
        "WEB_APP",
        "WEB_APP_CREDENTIAL",
        "API_ONLY",
        "FULL_HOSTED_PAGES",
        "EMBEDDED_HOSTED_PAGES",
        "PAY_BY_LINK_HOSTED_PAGES"
      ],
      "default": "UNKNOWN",
      "type": "string"
    },
    "io.token.proto.common.v2.common.LocalInstrument": {
      "enum": [
        "INVALID_LOCAL_INSTRUMENT",
        "SEPA",
        "SEPA_INSTANT",
        "SWIFT",
        "FASTER_PAYMENTS",
        "CHAPS",
        "ELIXIR",
        "EXPRESS_ELIXIR",
        "BLUE_CASH",
        "SORBNET",
        "BANKGIRO",
        "PLUSGIRO",
        "EU_DOMESTIC_NON_EURO",
        "EU_DOMESTIC_NON_EURO_INSTANT",
        "AUTO_SELECT"
      ],
      "default": "INVALID_LOCAL_INSTRUMENT",
      "type": "string"
    },
    "io.token.proto.common.v2.common.PayByLinkOptions": {
      "type": "object",
      "properties": {
        "expiresDateTime": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.PaymentContextCode": {
      "enum": [
        "INVALID_PAYMENT_CONTEXT_CODE",
        "BILL_PAYMENT",
        "ECOMMERCE_GOODS",
        "ECOMMERCE_SERVICES",
        "OTHER",
        "PARTY_TO_PARTY",
        "BILLING_GOODS_AND_SERVICES_IN_ADVANCE",
        "BILLING_GOODS_AND_SERVICES_IN_ARREARS",
        "PISP_PAYEE",
        "ECOMMERCE_MERCHANT_INITIATED_PAYMENT",
        "FACE_TO_FACE_POINT_OF_SALE",
        "TRANSFER_TO_SELF",
        "TRANSFER_TO_THIRD_PARTY"
      ],
      "default": "INVALID_PAYMENT_CONTEXT_CODE",
      "type": "string"
    },
    "io.token.proto.common.v2.common.PaymentRefundStatus": {
      "enum": [
        "INVALID",
        "NONE",
        "PARTIAL",
        "FULL"
      ],
      "default": "INVALID",
      "type": "string"
    },
    "io.token.proto.common.v2.common.Refund": {
      "type": "object",
      "properties": {
        "paymentRefundStatus": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.PaymentRefundStatus"
        },
        "refundAccount": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.RefundAccount"
        },
        "refundStateUpdatedAt": {
          "type": "string"
        },
        "remainingRefundAmount": {
          "$ref": "#/$defs/io.token.proto.common.money.Money"
        },
        "settledRefundAmount": {
          "$ref": "#/$defs/io.token.proto.common.money.Money"
        }
      }
    },
    "io.token.proto.common.v2.common.RefundAccount": {
      "type": "object",
      "properties": {
        "accountNumber": {
          "type": "string"
        },
        "bankgiroNumber": {
          "type": "string"
        },
        "bban": {
          "type": "string"
        },
        "bic": {
          "type": "string"
        },
        "clearingNumber": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "plusgiroNumber": {
          "type": "string"
        },
        "sortCode": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.Risk": {
      "type": "object",
      "properties": {
        "beneficiaryAccountType": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.BeneficiaryAccountType"
        },
        "beneficiaryPrepopulatedIndicator": {
          "format": "boolean",
          "type": "boolean"
        },
        "contractPresentIndicator": {
          "format": "boolean",
          "type": "boolean"
        },
        "contractPresentInidicator": {
          "format": "boolean",
          "type": "boolean"
        },
        "deliveryAddress": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.Address"
        },
        "merchantCategoryCode": {
          "type": "string"
        },
        "paymentContextCode": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.PaymentContextCode"
        },
        "paymentPurposeCode": {
          "type": "string"
        },
        "psuId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.openbanking.common.Authentication": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "fields": {
          "items": {
            "$ref": "#/$defs/io.token.proto.common.v2.openbanking.common.EmbeddedAuthField"
          },
          "type": "array"
        },
        "flickerCode": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "isRetry": {
          "format": "boolean",
          "type": "boolean"
        },
        "redirectUrl": {
          "type": "string"
        },
        "requiredCredentials": {
          "items": {
            "$ref": "#/$defs/io.token.proto.common.providerspecific.CredentialField"
          },
          "type": "array"
        }
      }
    },
    "io.token.proto.common.v2.openbanking.common.ChargeBearer": {
      "enum": [
        "UNKNOWN_CHARGE_BEARER",
        "CRED",
        "DEBT",
        "SHAR",
        "SLEV"
      ],
      "default": "UNKNOWN_CHARGE_BEARER",
      "type": "string"
    },
    "io.token.proto.common.v2.openbanking.common.EmbeddedAuthField": {
      "type": "object",
      "properties": {
        "additionalInformation": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "options": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "type": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.common.EmbeddedAuthField.Type"
        }
      }
    },
    "io.token.proto.common.v2.openbanking.common.EmbeddedAuthField.Type": {
      "enum": [
        "INVALID_TYPE",
        "FIELD",
        "PASSWORD",
        "CHOICE_FIELD",
        "CONFIRMATION"
      ],
      "default": "INVALID_TYPE",
      "type": "string"
    },
    "io.token.proto.common.v2.openbanking.common.PaymentType": {
      "enum": [
        "UNKNOWN_PAYMENT_TYPE",
        "SINGLE_IMMEDIATE_PAYMENT",
        "VARIABLE_RECURRING_PAYMENT"
      ],
      "default": "UNKNOWN_PAYMENT_TYPE",
      "type": "string"
    },
    "io.token.proto.common.v2.openbanking.payment.Initiation": {
      "type": "object",
      "properties": {
        "amount": {
          "$ref": "#/$defs/io.token.proto.common.money.Money"
        },
        "bankId": {
          "type": "string"
        },
        "callbackState": {
          "type": "string"
        },
        "callbackUrl": {
          "type": "string"
        },
        "chargeBearer": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.common.ChargeBearer"
        },
        "confirmFunds": {
          "format": "boolean",
          "type": "boolean"
        },
        "creditor": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.CreditorInformation"
        },
        "debtor": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.DebtorInformation"
        },
        "disableFutureDatedPaymentConversion": {
          "format": "boolean",
          "type": "boolean"
        },
        "executionDate": {
          "type": "string"
        },
        "externalPsuReference": {
          "type": "string"
        },
        "flowType": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.FlowType"
        },
        "localInstrument": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.LocalInstrument"
        },
        "onBehalfOfId": {
          "type": "string"
        },
        "payByLinkOptions": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.PayByLinkOptions"
        },
        "paymentTemplateId": {
          "type": "string"
        },
        "refId": {
          "type": "string"
        },
        "remittanceInformationPrimary": {
          "type": "string"
        },
        "remittanceInformationSecondary": {
          "type": "string"
        },
        "requireAppToApp": {
          "format": "boolean",
          "type": "boolean"
        },
        "returnRefundAccount": {
          "format": "boolean",
          "type": "boolean"
        },
        "returnTokenizedAccount": {
          "format": "boolean",
          "type": "boolean"
        },
        "risk": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.Risk"
        },
        "v1Fields": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.V1InitiationFields"
        },
        "vrpConsentId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.openbanking.payment.Payment": {
      "type": "object",
      "properties": {
        "authentication": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.common.Authentication"
        },
        "bankPaymentId": {
          "type": "string"
        },
        "bankPaymentStatus": {
          "type": "string"
        },
        "bankTransactionId": {
          "type": "string"
        },
        "bankVrpId": {
          "type": "string"
        },
        "bankVrpStatus": {
          "type": "string"
        },
        "convertedToFutureDatedPayment": {
          "format": "boolean",
          "type": "boolean"
        },
        "createdDateTime": {
          "type": "string"
        },
        "errorInfo": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.ErrorInfo"
        },
        "expiresDateTime": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "initiation": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.Initiation"
        },
        "memberId": {
          "type": "string"
        },
        "paymentLinkStatus": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.PaymentLinkStatus"
        },
        "paymentType": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.common.PaymentType"
        },
        "refundDetails": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.Refund"
        },
        "status": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.Status"
        },
        "statusReasonInformation": {
          "type": "string"
        },
        "updatedDateTime": {
          "type": "string"
        },
        "v1Fields": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.V1Fields"
        }
      }
    },
    "io.token.proto.common.v2.openbanking.payment.PaymentLinkStatus": {
      "enum": [
        "UNKNOWN",
        "LINK_ACTIVE",
        "LINK_EXPIRED",
        "LINK_REDEEMED",
        "LINK_CANCELED"
      ],
      "default": "UNKNOWN",
      "type": "string"
    },
    "io.token.proto.common.v2.openbanking.payment.Status": {
      "enum": [
        "INVALID_STATUS",
        "INITIATION_PENDING",
        "INITIATION_PENDING_MORE_INFO",
        "INITIATION_PENDING_REDIRECT_AUTH",
        "INITIATION_PENDING_REDIRECT_AUTH_VERIFICATION",
        "INITIATION_PENDING_EMBEDDED_AUTH",
        "INITIATION_PENDING_EMBEDDED_AUTH_VERIFICATION",
        "INITIATION_PENDING_REDEMPTION",
        "INITIATION_PENDING_REDEMPTION_VERIFICATION",
        "INITIATION_PROCESSING",
        "INITIATION_COMPLETED",
        "INITIATION_REJECTED",
        "INITIATION_FAILED",
        "CANCELED",
        "INITIATION_NO_FINAL_STATUS_AVAILABLE",
        "INITIATION_PENDING_DECOUPLED_AUTH",
        "INITIATION_REJECTED_INSUFFICIENT_FUNDS",
        "INITIATION_DECLINED",
        "SETTLEMENT_IN_PROGRESS",
        "SETTLEMENT_COMPLETED",
        "SETTLEMENT_INCOMPLETE",
        "INITIATION_EXPIRED",
        "INITIATION_PENDING_REDIRECT_HP",
        "INITIATION_PENDING_REDIRECT_PBL"
      ],
      "default": "INVALID_STATUS",
      "type": "string"
    },
    "io.token.proto.common.v2.openbanking.payment.V1Fields": {
      "type": "object",
      "properties": {
        "destinationAccountId": {
          "type": "string"
        },
        "fromMemberId": {
          "type": "string"
        },
        "sourceAccountId": {
          "type": "string"
        },
        "tokenRequestResultStatus": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.V1Fields.InternalTokenRequestResultStatus"
        },
        "transferStatus": {
          "$ref": "#/$defs/io.token.proto.common.transaction.TransactionStatus"
        },
        "webAppRedirectUrl": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.openbanking.payment.V1Fields.InternalTokenRequestResultStatus": {
      "enum": [
        "UNKNOWN",
        "PENDING",
        "PROCESSED",
        "REJECTED",
        "PENDING_TOKEN_REQUEST_CREATED",
        "PENDING_WEB_APP_INVOKED",
        "PENDING_WEB_APP_BANK_SELECTED",
        "PENDING_WEB_APP_CONSENT_ACCEPTED",
        "PENDING_WEB_APP_CONSENT_DECLINED",
        "PENDING_CREDENTIALS_REQUIRED",
        "PENDING_REDIRECT_URL_SENT_TO_TPP",
        "PENDING_CONSENT_SENT_TO_BANK",
        "PROCESSING_CONSENT_ACCEPTED_BY_BANK",
        "PROCESSING_CALLBACK_INITIATED_BY_TPP",
        "PROCESSED_COMPLETED_PAYMENT_CONFIRMATION_PAGE_DISPLAYED",
        "PROCESSED_FAILED_PAYMENT_ERROR_PAGE_DISPLAYED",
        "PENDING_REDIRECT_URL_SENT",
        "PENDING_WEB_APP_SENT_USER_TO_BANK",
        "PENDING_FURTHER_CREDENTIALS_REQUIRED_1",
        "PENDING_FURTHER_CREDENTIALS_REQUIRED_2",
        "PENDING_TOKEN_CREATED_NOT_AUTHORIZED",
        "PROCESSED_NO_CALLBACK",
        "PENDING_DECOUPLED_AUTHENTICATION"
      ],
      "default": "UNKNOWN",
      "type": "string"
    },
    "io.token.proto.common.v2.openbanking.payment.V1InitiationFields": {
      "type": "object",
      "properties": {
        "actingAs": {
          "$ref": "#/$defs/io.token.proto.common.token.ActingAs"
        },
        "callbackState": {
          "type": "string"
        },
        "creditorLegalNames": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "debtorLegalNames": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "destinationCountries": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "metadata": {
          "$ref": "#/$defs/io.token.proto.common.transferinstructions.TransferInstructions.Metadata"
        },
        "postponeInitiation": {
          "$ref": "#/$defs/io.token.proto.common.v2.openbanking.payment.V1InitiationFields.PostponeInitiation"
        },
        "remittanceReferencePopulated": {
          "format": "boolean",
          "type": "boolean"
        },
        "toMemberAlias": {
          "$ref": "#/$defs/io.token.proto.common.alias.Alias"
        },
        "transferDestinationType": {
          "$ref": "#/$defs/io.token.proto.common.transferinstructions.TransferDestination.Type"
        },
        "userRefId": {
          "type": "string"
        },
        "v1Api": {
          "format": "boolean",
          "type": "boolean"
        }
      }
    },
    "io.token.proto.common.v2.openbanking.payment.V1InitiationFields.PostponeInitiation": {
      "enum": [
        "INVALID",
        "POSTPONE",
        "DO_NOT_POSTPONE"
      ],
      "default": "INVALID",
      "type": "string"
    }
  }
}