{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:iso:std:iso:20022:tech:json:pain.001.001.09",
  "title": "ISO JSON twin of pain.001.001.09",
  "description": "Generated by pain001 from the ISO 20022 schema by the rules of the Registration Authority's JSON Schema Draft 2020-12 generation recommendation (v2.0, June 2025).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "Document"
  ],
  "properties": {
    "Document": {
      "$ref": "#/$defs/Document"
    }
  },
  "$defs": {
    "AccountIdentification4Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "IBAN": {
          "$ref": "#/$defs/IBAN2007Identifier"
        },
        "Othr": {
          "$ref": "#/$defs/GenericAccountIdentification1"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "AccountSchemeName1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalAccountIdentification1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "ActiveOrHistoricCurrencyAndAmount": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "amt",
        "Ccy"
      ],
      "properties": {
        "amt": {
          "type": "string",
          "pattern": "^[+]?(?:[0-9]{1,18}|(?=[0-9.]{2,19}$)[0-9]*\\.[0-9]{0,5})$"
        },
        "Ccy": {
          "type": "string",
          "pattern": "^(?:[A-Z]{3,3})$"
        }
      }
    },
    "ActiveOrHistoricCurrencyCode": {
      "type": "string",
      "pattern": "^(?:[A-Z]{3,3})$"
    },
    "AddressType2Code": {
      "type": "string",
      "enum": [
        "ADDR",
        "PBOX",
        "HOME",
        "BIZZ",
        "MLTO",
        "DLVY"
      ]
    },
    "AddressType3Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/AddressType2Code"
        },
        "Prtry": {
          "$ref": "#/$defs/GenericIdentification30"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "AmountType4Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "InstdAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "EqvtAmt": {
          "$ref": "#/$defs/EquivalentAmount2"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "AnyBICDec2014Identifier": {
      "type": "string",
      "pattern": "^(?:[A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1})$"
    },
    "Authorisation1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/Authorisation1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max128Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "Authorisation1Code": {
      "type": "string",
      "enum": [
        "AUTH",
        "FDET",
        "FSUM",
        "ILEV"
      ]
    },
    "BICFIDec2014Identifier": {
      "type": "string",
      "pattern": "^(?:[A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1})$"
    },
    "BaseOneRate": {
      "type": "string",
      "pattern": "^[+-]?(?:[0-9]{1,11}|(?=[0-9.]{2,12}$)[0-9]*\\.[0-9]{0,10})$"
    },
    "BatchBookingIndicator": {
      "type": "string",
      "enum": [
        "true",
        "false",
        "1",
        "0"
      ]
    },
    "BranchAndFinancialInstitutionIdentification6": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "FinInstnId": {
          "$ref": "#/$defs/FinancialInstitutionIdentification18"
        },
        "BrnchId": {
          "$ref": "#/$defs/BranchData3"
        }
      },
      "required": [
        "FinInstnId"
      ]
    },
    "BranchData3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max35Text"
        },
        "LEI": {
          "$ref": "#/$defs/LEIIdentifier"
        },
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/PostalAddress24"
        }
      },
      "minProperties": 1
    },
    "CashAccount38": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/AccountIdentification4Choice"
        },
        "Tp": {
          "$ref": "#/$defs/CashAccountType2Choice"
        },
        "Ccy": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyCode"
        },
        "Nm": {
          "$ref": "#/$defs/Max70Text"
        },
        "Prxy": {
          "$ref": "#/$defs/ProxyAccountIdentification1"
        }
      },
      "required": [
        "Id"
      ]
    },
    "CashAccountType2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalCashAccountType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "CategoryPurpose1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalCategoryPurpose1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "ChargeBearerType1Code": {
      "type": "string",
      "enum": [
        "DEBT",
        "CRED",
        "SHAR",
        "SLEV"
      ]
    },
    "Cheque11": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ChqTp": {
          "$ref": "#/$defs/ChequeType2Code"
        },
        "ChqNb": {
          "$ref": "#/$defs/Max35Text"
        },
        "ChqFr": {
          "$ref": "#/$defs/NameAndAddress16"
        },
        "DlvryMtd": {
          "$ref": "#/$defs/ChequeDeliveryMethod1Choice"
        },
        "DlvrTo": {
          "$ref": "#/$defs/NameAndAddress16"
        },
        "InstrPrty": {
          "$ref": "#/$defs/Priority2Code"
        },
        "ChqMtrtyDt": {
          "$ref": "#/$defs/ISODate"
        },
        "FrmsCd": {
          "$ref": "#/$defs/Max35Text"
        },
        "MemoFld": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max35Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max35Text"
              },
              "maxItems": 2
            }
          ]
        },
        "RgnlClrZone": {
          "$ref": "#/$defs/Max35Text"
        },
        "PrtLctn": {
          "$ref": "#/$defs/Max35Text"
        },
        "Sgntr": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max70Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max70Text"
              },
              "maxItems": 5
            }
          ]
        }
      },
      "minProperties": 1
    },
    "ChequeDelivery1Code": {
      "type": "string",
      "enum": [
        "MLDB",
        "MLCD",
        "MLFA",
        "CRDB",
        "CRCD",
        "CRFA",
        "PUDB",
        "PUCD",
        "PUFA",
        "RGDB",
        "RGCD",
        "RGFA"
      ]
    },
    "ChequeDeliveryMethod1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ChequeDelivery1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "ChequeType2Code": {
      "type": "string",
      "enum": [
        "CCHQ",
        "CCCH",
        "BCHQ",
        "DRFT",
        "ELDR"
      ]
    },
    "ClearingSystemIdentification2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalClearingSystemIdentification1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "ClearingSystemMemberIdentification2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ClrSysId": {
          "$ref": "#/$defs/ClearingSystemIdentification2Choice"
        },
        "MmbId": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "MmbId"
      ]
    },
    "Contact4": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "NmPrfx": {
          "$ref": "#/$defs/NamePrefix2Code"
        },
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "PhneNb": {
          "$ref": "#/$defs/PhoneNumber"
        },
        "MobNb": {
          "$ref": "#/$defs/PhoneNumber"
        },
        "FaxNb": {
          "$ref": "#/$defs/PhoneNumber"
        },
        "EmailAdr": {
          "$ref": "#/$defs/Max2048Text"
        },
        "EmailPurp": {
          "$ref": "#/$defs/Max35Text"
        },
        "JobTitl": {
          "$ref": "#/$defs/Max35Text"
        },
        "Rspnsblty": {
          "$ref": "#/$defs/Max35Text"
        },
        "Dept": {
          "$ref": "#/$defs/Max70Text"
        },
        "Othr": {
          "anyOf": [
            {
              "$ref": "#/$defs/OtherContact1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/OtherContact1"
              }
            }
          ]
        },
        "PrefrdMtd": {
          "$ref": "#/$defs/PreferredContactMethod1Code"
        }
      },
      "minProperties": 1
    },
    "CountryCode": {
      "type": "string",
      "pattern": "^(?:[A-Z]{2,2})$"
    },
    "CreditDebitCode": {
      "type": "string",
      "enum": [
        "CRDT",
        "DBIT"
      ]
    },
    "CreditTransferTransaction34": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "PmtId": {
          "$ref": "#/$defs/PaymentIdentification6"
        },
        "PmtTpInf": {
          "$ref": "#/$defs/PaymentTypeInformation26"
        },
        "Amt": {
          "$ref": "#/$defs/AmountType4Choice"
        },
        "XchgRateInf": {
          "$ref": "#/$defs/ExchangeRate1"
        },
        "ChrgBr": {
          "$ref": "#/$defs/ChargeBearerType1Code"
        },
        "ChqInstr": {
          "$ref": "#/$defs/Cheque11"
        },
        "UltmtDbtr": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "IntrmyAgt1": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification6"
        },
        "IntrmyAgt1Acct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "IntrmyAgt2": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification6"
        },
        "IntrmyAgt2Acct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "IntrmyAgt3": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification6"
        },
        "IntrmyAgt3Acct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "CdtrAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification6"
        },
        "CdtrAgtAcct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "Cdtr": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "CdtrAcct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "UltmtCdtr": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "InstrForCdtrAgt": {
          "anyOf": [
            {
              "$ref": "#/$defs/InstructionForCreditorAgent1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/InstructionForCreditorAgent1"
              }
            }
          ]
        },
        "InstrForDbtrAgt": {
          "$ref": "#/$defs/Max140Text"
        },
        "Purp": {
          "$ref": "#/$defs/Purpose2Choice"
        },
        "RgltryRptg": {
          "anyOf": [
            {
              "$ref": "#/$defs/RegulatoryReporting3"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/RegulatoryReporting3"
              },
              "maxItems": 10
            }
          ]
        },
        "Tax": {
          "$ref": "#/$defs/TaxInformation8"
        },
        "RltdRmtInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/RemittanceLocation7"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/RemittanceLocation7"
              },
              "maxItems": 10
            }
          ]
        },
        "RmtInf": {
          "$ref": "#/$defs/RemittanceInformation16"
        },
        "SplmtryData": {
          "anyOf": [
            {
              "$ref": "#/$defs/SupplementaryData1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/SupplementaryData1"
              }
            }
          ]
        }
      },
      "required": [
        "PmtId",
        "Amt"
      ]
    },
    "CreditorReferenceInformation2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/CreditorReferenceType2"
        },
        "Ref": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1
    },
    "CreditorReferenceType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/DocumentType3Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "CreditorReferenceType2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "CdOrPrtry": {
          "$ref": "#/$defs/CreditorReferenceType1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "CdOrPrtry"
      ]
    },
    "CustomerCreditTransferInitiationV09": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "GrpHdr": {
          "$ref": "#/$defs/GroupHeader85"
        },
        "PmtInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentInstruction30"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/PaymentInstruction30"
              }
            }
          ]
        },
        "SplmtryData": {
          "anyOf": [
            {
              "$ref": "#/$defs/SupplementaryData1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/SupplementaryData1"
              }
            }
          ]
        }
      },
      "required": [
        "GrpHdr",
        "PmtInf"
      ]
    },
    "DateAndDateTime2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Dt": {
          "$ref": "#/$defs/ISODate"
        },
        "DtTm": {
          "$ref": "#/$defs/ISODateTime"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "DateAndPlaceOfBirth1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "BirthDt": {
          "$ref": "#/$defs/ISODate"
        },
        "PrvcOfBirth": {
          "$ref": "#/$defs/Max35Text"
        },
        "CityOfBirth": {
          "$ref": "#/$defs/Max35Text"
        },
        "CtryOfBirth": {
          "$ref": "#/$defs/CountryCode"
        }
      },
      "required": [
        "BirthDt",
        "CityOfBirth",
        "CtryOfBirth"
      ]
    },
    "DatePeriod2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "FrDt": {
          "$ref": "#/$defs/ISODate"
        },
        "ToDt": {
          "$ref": "#/$defs/ISODate"
        }
      },
      "required": [
        "FrDt",
        "ToDt"
      ]
    },
    "DecimalNumber": {
      "type": "string",
      "pattern": "^[+-]?(?:[0-9]{1,18}|(?=[0-9.]{2,19}$)[0-9]*\\.[0-9]{0,17})$"
    },
    "DiscountAmountAndType1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/DiscountAmountType1Choice"
        },
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        }
      },
      "required": [
        "Amt"
      ]
    },
    "DiscountAmountType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalDiscountAmountType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "Document": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "CstmrCdtTrfInitn"
      ],
      "properties": {
        "CstmrCdtTrfInitn": {
          "$ref": "#/$defs/CustomerCreditTransferInitiationV09"
        }
      }
    },
    "DocumentAdjustment1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "CdtDbtInd": {
          "$ref": "#/$defs/CreditDebitCode"
        },
        "Rsn": {
          "$ref": "#/$defs/Max4Text"
        },
        "AddtlInf": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "required": [
        "Amt"
      ]
    },
    "DocumentLineIdentification1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/DocumentLineType1"
        },
        "Nb": {
          "$ref": "#/$defs/Max35Text"
        },
        "RltdDt": {
          "$ref": "#/$defs/ISODate"
        }
      },
      "minProperties": 1
    },
    "DocumentLineInformation1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentLineIdentification1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DocumentLineIdentification1"
              }
            }
          ]
        },
        "Desc": {
          "$ref": "#/$defs/Max2048Text"
        },
        "Amt": {
          "$ref": "#/$defs/RemittanceAmount3"
        }
      },
      "required": [
        "Id"
      ]
    },
    "DocumentLineType1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "CdOrPrtry": {
          "$ref": "#/$defs/DocumentLineType1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "CdOrPrtry"
      ]
    },
    "DocumentLineType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalDocumentLineType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "DocumentType3Code": {
      "type": "string",
      "enum": [
        "RADM",
        "RPIN",
        "FXDR",
        "DISP",
        "PUOR",
        "SCOR"
      ]
    },
    "DocumentType6Code": {
      "type": "string",
      "enum": [
        "MSIN",
        "CNFA",
        "DNFA",
        "CINV",
        "CREN",
        "DEBN",
        "HIRI",
        "SBIN",
        "CMCN",
        "SOAC",
        "DISP",
        "BOLD",
        "VCHR",
        "AROI",
        "TSUT",
        "PUOR"
      ]
    },
    "EquivalentAmount2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "CcyOfTrf": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyCode"
        }
      },
      "required": [
        "Amt",
        "CcyOfTrf"
      ]
    },
    "Exact4AlphaNumericText": {
      "type": "string",
      "pattern": "^(?:[a-zA-Z0-9]{4})$"
    },
    "ExchangeRate1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "UnitCcy": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyCode"
        },
        "XchgRate": {
          "$ref": "#/$defs/BaseOneRate"
        },
        "RateTp": {
          "$ref": "#/$defs/ExchangeRateType1Code"
        },
        "CtrctId": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1
    },
    "ExchangeRateType1Code": {
      "type": "string",
      "enum": [
        "SPOT",
        "SALE",
        "AGRD"
      ]
    },
    "ExternalAccountIdentification1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalCashAccountType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalCategoryPurpose1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalClearingSystemIdentification1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 5
    },
    "ExternalDiscountAmountType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalDocumentLineType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalFinancialInstitutionIdentification1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalGarnishmentType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalLocalInstrument1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 35
    },
    "ExternalOrganisationIdentification1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalPersonIdentification1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalProxyAccountType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalPurpose1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalServiceLevel1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalTaxAmountType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "FinancialIdentificationSchemeName1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalFinancialInstitutionIdentification1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "FinancialInstitutionIdentification18": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "BICFI": {
          "$ref": "#/$defs/BICFIDec2014Identifier"
        },
        "ClrSysMmbId": {
          "$ref": "#/$defs/ClearingSystemMemberIdentification2"
        },
        "LEI": {
          "$ref": "#/$defs/LEIIdentifier"
        },
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/PostalAddress24"
        },
        "Othr": {
          "$ref": "#/$defs/GenericFinancialIdentification1"
        }
      },
      "minProperties": 1
    },
    "Garnishment3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/GarnishmentType1"
        },
        "Grnshee": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "GrnshmtAdmstr": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "RefNb": {
          "$ref": "#/$defs/Max140Text"
        },
        "Dt": {
          "$ref": "#/$defs/ISODate"
        },
        "RmtdAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "FmlyMdclInsrncInd": {
          "$ref": "#/$defs/TrueFalseIndicator"
        },
        "MplyeeTermntnInd": {
          "$ref": "#/$defs/TrueFalseIndicator"
        }
      },
      "required": [
        "Tp"
      ]
    },
    "GarnishmentType1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "CdOrPrtry": {
          "$ref": "#/$defs/GarnishmentType1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "CdOrPrtry"
      ]
    },
    "GarnishmentType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalGarnishmentType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "GenericAccountIdentification1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max34Text"
        },
        "SchmeNm": {
          "$ref": "#/$defs/AccountSchemeName1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Id"
      ]
    },
    "GenericFinancialIdentification1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max35Text"
        },
        "SchmeNm": {
          "$ref": "#/$defs/FinancialIdentificationSchemeName1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Id"
      ]
    },
    "GenericIdentification30": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Exact4AlphaNumericText"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        },
        "SchmeNm": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Id",
        "Issr"
      ]
    },
    "GenericOrganisationIdentification1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max35Text"
        },
        "SchmeNm": {
          "$ref": "#/$defs/OrganisationIdentificationSchemeName1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Id"
      ]
    },
    "GenericPersonIdentification1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max35Text"
        },
        "SchmeNm": {
          "$ref": "#/$defs/PersonIdentificationSchemeName1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Id"
      ]
    },
    "GroupHeader85": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "MsgId": {
          "$ref": "#/$defs/Max35Text"
        },
        "CreDtTm": {
          "$ref": "#/$defs/ISODateTime"
        },
        "Authstn": {
          "anyOf": [
            {
              "$ref": "#/$defs/Authorisation1Choice"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Authorisation1Choice"
              },
              "maxItems": 2
            }
          ]
        },
        "NbOfTxs": {
          "$ref": "#/$defs/Max15NumericText"
        },
        "CtrlSum": {
          "$ref": "#/$defs/DecimalNumber"
        },
        "InitgPty": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "FwdgAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification6"
        }
      },
      "required": [
        "MsgId",
        "CreDtTm",
        "NbOfTxs",
        "InitgPty"
      ]
    },
    "IBAN2007Identifier": {
      "type": "string",
      "pattern": "^(?:[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30})$"
    },
    "ISODate": {
      "type": "string",
      "pattern": "^-?[0-9]{4}-[0-9]{2}-[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})?$"
    },
    "ISODateTime": {
      "type": "string",
      "pattern": "^-?[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})?$"
    },
    "Instruction3Code": {
      "type": "string",
      "enum": [
        "CHQB",
        "HOLD",
        "PHOB",
        "TELB"
      ]
    },
    "InstructionForCreditorAgent1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/Instruction3Code"
        },
        "InstrInf": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "minProperties": 1
    },
    "LEIIdentifier": {
      "type": "string",
      "pattern": "^(?:[A-Z0-9]{18,18}[0-9]{2,2})$"
    },
    "LocalInstrument2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalLocalInstrument1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "Max10Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10
    },
    "Max128Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "Max140Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 140
    },
    "Max15NumericText": {
      "type": "string",
      "pattern": "^(?:[0-9]{1,15})$"
    },
    "Max16Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16
    },
    "Max2048Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "Max34Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 34
    },
    "Max350Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 350
    },
    "Max35Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 35
    },
    "Max4Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "Max70Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 70
    },
    "NameAndAddress16": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "Adr": {
          "$ref": "#/$defs/PostalAddress24"
        }
      },
      "required": [
        "Nm",
        "Adr"
      ]
    },
    "NamePrefix2Code": {
      "type": "string",
      "enum": [
        "DOCT",
        "MADM",
        "MISS",
        "MIST",
        "MIKS"
      ]
    },
    "Number": {
      "type": "string",
      "pattern": "^[+-]?[0-9]{1,18}$"
    },
    "OrganisationIdentification29": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "AnyBIC": {
          "$ref": "#/$defs/AnyBICDec2014Identifier"
        },
        "LEI": {
          "$ref": "#/$defs/LEIIdentifier"
        },
        "Othr": {
          "anyOf": [
            {
              "$ref": "#/$defs/GenericOrganisationIdentification1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/GenericOrganisationIdentification1"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "OrganisationIdentificationSchemeName1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalOrganisationIdentification1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "OtherContact1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ChanlTp": {
          "$ref": "#/$defs/Max4Text"
        },
        "Id": {
          "$ref": "#/$defs/Max128Text"
        }
      },
      "required": [
        "ChanlTp"
      ]
    },
    "Party38Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "OrgId": {
          "$ref": "#/$defs/OrganisationIdentification29"
        },
        "PrvtId": {
          "$ref": "#/$defs/PersonIdentification13"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "PartyIdentification135": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/PostalAddress24"
        },
        "Id": {
          "$ref": "#/$defs/Party38Choice"
        },
        "CtryOfRes": {
          "$ref": "#/$defs/CountryCode"
        },
        "CtctDtls": {
          "$ref": "#/$defs/Contact4"
        }
      },
      "minProperties": 1
    },
    "PaymentIdentification6": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "InstrId": {
          "$ref": "#/$defs/Max35Text"
        },
        "EndToEndId": {
          "$ref": "#/$defs/Max35Text"
        },
        "UETR": {
          "$ref": "#/$defs/UUIDv4Identifier"
        }
      },
      "required": [
        "EndToEndId"
      ]
    },
    "PaymentInstruction30": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "PmtInfId": {
          "$ref": "#/$defs/Max35Text"
        },
        "PmtMtd": {
          "$ref": "#/$defs/PaymentMethod3Code"
        },
        "BtchBookg": {
          "$ref": "#/$defs/BatchBookingIndicator"
        },
        "NbOfTxs": {
          "$ref": "#/$defs/Max15NumericText"
        },
        "CtrlSum": {
          "$ref": "#/$defs/DecimalNumber"
        },
        "PmtTpInf": {
          "$ref": "#/$defs/PaymentTypeInformation26"
        },
        "ReqdExctnDt": {
          "$ref": "#/$defs/DateAndDateTime2Choice"
        },
        "PoolgAdjstmntDt": {
          "$ref": "#/$defs/ISODate"
        },
        "Dbtr": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "DbtrAcct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "DbtrAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification6"
        },
        "DbtrAgtAcct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "InstrForDbtrAgt": {
          "$ref": "#/$defs/Max140Text"
        },
        "UltmtDbtr": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "ChrgBr": {
          "$ref": "#/$defs/ChargeBearerType1Code"
        },
        "ChrgsAcct": {
          "$ref": "#/$defs/CashAccount38"
        },
        "ChrgsAcctAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification6"
        },
        "CdtTrfTxInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/CreditTransferTransaction34"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/CreditTransferTransaction34"
              }
            }
          ]
        }
      },
      "required": [
        "PmtInfId",
        "PmtMtd",
        "ReqdExctnDt",
        "Dbtr",
        "DbtrAcct",
        "DbtrAgt",
        "CdtTrfTxInf"
      ]
    },
    "PaymentMethod3Code": {
      "type": "string",
      "enum": [
        "CHK",
        "TRF",
        "TRA"
      ]
    },
    "PaymentTypeInformation26": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "InstrPrty": {
          "$ref": "#/$defs/Priority2Code"
        },
        "SvcLvl": {
          "anyOf": [
            {
              "$ref": "#/$defs/ServiceLevel8Choice"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/ServiceLevel8Choice"
              }
            }
          ]
        },
        "LclInstrm": {
          "$ref": "#/$defs/LocalInstrument2Choice"
        },
        "CtgyPurp": {
          "$ref": "#/$defs/CategoryPurpose1Choice"
        }
      },
      "minProperties": 1
    },
    "PercentageRate": {
      "type": "string",
      "pattern": "^[+-]?(?:[0-9]{1,11}|(?=[0-9.]{2,12}$)[0-9]*\\.[0-9]{0,10})$"
    },
    "PersonIdentification13": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "DtAndPlcOfBirth": {
          "$ref": "#/$defs/DateAndPlaceOfBirth1"
        },
        "Othr": {
          "anyOf": [
            {
              "$ref": "#/$defs/GenericPersonIdentification1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/GenericPersonIdentification1"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "PersonIdentificationSchemeName1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalPersonIdentification1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "PhoneNumber": {
      "type": "string",
      "pattern": "^(?:\\+[0-9]{1,3}-[0-9()+\\-]{1,30})$"
    },
    "PostalAddress24": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "AdrTp": {
          "$ref": "#/$defs/AddressType3Choice"
        },
        "Dept": {
          "$ref": "#/$defs/Max70Text"
        },
        "SubDept": {
          "$ref": "#/$defs/Max70Text"
        },
        "StrtNm": {
          "$ref": "#/$defs/Max70Text"
        },
        "BldgNb": {
          "$ref": "#/$defs/Max16Text"
        },
        "BldgNm": {
          "$ref": "#/$defs/Max35Text"
        },
        "Flr": {
          "$ref": "#/$defs/Max70Text"
        },
        "PstBx": {
          "$ref": "#/$defs/Max16Text"
        },
        "Room": {
          "$ref": "#/$defs/Max70Text"
        },
        "PstCd": {
          "$ref": "#/$defs/Max16Text"
        },
        "TwnNm": {
          "$ref": "#/$defs/Max35Text"
        },
        "TwnLctnNm": {
          "$ref": "#/$defs/Max35Text"
        },
        "DstrctNm": {
          "$ref": "#/$defs/Max35Text"
        },
        "CtrySubDvsn": {
          "$ref": "#/$defs/Max35Text"
        },
        "Ctry": {
          "$ref": "#/$defs/CountryCode"
        },
        "AdrLine": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max70Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max70Text"
              },
              "maxItems": 7
            }
          ]
        }
      },
      "minProperties": 1
    },
    "PreferredContactMethod1Code": {
      "type": "string",
      "enum": [
        "LETT",
        "MAIL",
        "PHON",
        "FAXX",
        "CELL"
      ]
    },
    "Priority2Code": {
      "type": "string",
      "enum": [
        "HIGH",
        "NORM"
      ]
    },
    "ProxyAccountIdentification1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/ProxyAccountType1Choice"
        },
        "Id": {
          "$ref": "#/$defs/Max2048Text"
        }
      },
      "required": [
        "Id"
      ]
    },
    "ProxyAccountType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalProxyAccountType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "Purpose2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalPurpose1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "ReferredDocumentInformation7": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/ReferredDocumentType4"
        },
        "Nb": {
          "$ref": "#/$defs/Max35Text"
        },
        "RltdDt": {
          "$ref": "#/$defs/ISODate"
        },
        "LineDtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentLineInformation1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DocumentLineInformation1"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "ReferredDocumentType3Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/DocumentType6Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "ReferredDocumentType4": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "CdOrPrtry": {
          "$ref": "#/$defs/ReferredDocumentType3Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "CdOrPrtry"
      ]
    },
    "RegulatoryAuthority2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "Ctry": {
          "$ref": "#/$defs/CountryCode"
        }
      },
      "minProperties": 1
    },
    "RegulatoryReporting3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "DbtCdtRptgInd": {
          "$ref": "#/$defs/RegulatoryReportingType1Code"
        },
        "Authrty": {
          "$ref": "#/$defs/RegulatoryAuthority2"
        },
        "Dtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/StructuredRegulatoryReporting3"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/StructuredRegulatoryReporting3"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "RegulatoryReportingType1Code": {
      "type": "string",
      "enum": [
        "CRED",
        "DEBT",
        "BOTH"
      ]
    },
    "RemittanceAmount2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "DuePyblAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "DscntApldAmt": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiscountAmountAndType1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DiscountAmountAndType1"
              }
            }
          ]
        },
        "CdtNoteAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "TaxAmt": {
          "anyOf": [
            {
              "$ref": "#/$defs/TaxAmountAndType1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/TaxAmountAndType1"
              }
            }
          ]
        },
        "AdjstmntAmtAndRsn": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentAdjustment1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DocumentAdjustment1"
              }
            }
          ]
        },
        "RmtdAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        }
      },
      "minProperties": 1
    },
    "RemittanceAmount3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "DuePyblAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "DscntApldAmt": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiscountAmountAndType1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DiscountAmountAndType1"
              }
            }
          ]
        },
        "CdtNoteAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "TaxAmt": {
          "anyOf": [
            {
              "$ref": "#/$defs/TaxAmountAndType1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/TaxAmountAndType1"
              }
            }
          ]
        },
        "AdjstmntAmtAndRsn": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentAdjustment1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DocumentAdjustment1"
              }
            }
          ]
        },
        "RmtdAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        }
      },
      "minProperties": 1
    },
    "RemittanceInformation16": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Ustrd": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max140Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max140Text"
              }
            }
          ]
        },
        "Strd": {
          "anyOf": [
            {
              "$ref": "#/$defs/StructuredRemittanceInformation16"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/StructuredRemittanceInformation16"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "RemittanceLocation7": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "RmtId": {
          "$ref": "#/$defs/Max35Text"
        },
        "RmtLctnDtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/RemittanceLocationData1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/RemittanceLocationData1"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "RemittanceLocationData1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Mtd": {
          "$ref": "#/$defs/RemittanceLocationMethod2Code"
        },
        "ElctrncAdr": {
          "$ref": "#/$defs/Max2048Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/NameAndAddress16"
        }
      },
      "required": [
        "Mtd"
      ]
    },
    "RemittanceLocationMethod2Code": {
      "type": "string",
      "enum": [
        "FAXI",
        "EDIC",
        "URID",
        "EMAL",
        "POST",
        "SMSM"
      ]
    },
    "ServiceLevel8Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalServiceLevel1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "StructuredRegulatoryReporting3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/Max35Text"
        },
        "Dt": {
          "$ref": "#/$defs/ISODate"
        },
        "Ctry": {
          "$ref": "#/$defs/CountryCode"
        },
        "Cd": {
          "$ref": "#/$defs/Max10Text"
        },
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "Inf": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max35Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max35Text"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "StructuredRemittanceInformation16": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "RfrdDocInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferredDocumentInformation7"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/ReferredDocumentInformation7"
              }
            }
          ]
        },
        "RfrdDocAmt": {
          "$ref": "#/$defs/RemittanceAmount2"
        },
        "CdtrRefInf": {
          "$ref": "#/$defs/CreditorReferenceInformation2"
        },
        "Invcr": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "Invcee": {
          "$ref": "#/$defs/PartyIdentification135"
        },
        "TaxRmt": {
          "$ref": "#/$defs/TaxInformation7"
        },
        "GrnshmtRmt": {
          "$ref": "#/$defs/Garnishment3"
        },
        "AddtlRmtInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max140Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max140Text"
              },
              "maxItems": 3
            }
          ]
        }
      },
      "minProperties": 1
    },
    "SupplementaryData1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "PlcAndNm": {
          "$ref": "#/$defs/Max350Text"
        },
        "Envlp": {
          "$ref": "#/$defs/SupplementaryDataEnvelope1"
        }
      },
      "required": [
        "Envlp"
      ]
    },
    "SupplementaryDataEnvelope1": {
      "type": "object",
      "description": "ExternalSchema"
    },
    "TaxAmount2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Rate": {
          "$ref": "#/$defs/PercentageRate"
        },
        "TaxblBaseAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "TtlAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "Dtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/TaxRecordDetails2"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/TaxRecordDetails2"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "TaxAmountAndType1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/TaxAmountType1Choice"
        },
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        }
      },
      "required": [
        "Amt"
      ]
    },
    "TaxAmountType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalTaxAmountType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "TaxAuthorisation1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Titl": {
          "$ref": "#/$defs/Max35Text"
        },
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "minProperties": 1
    },
    "TaxInformation7": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cdtr": {
          "$ref": "#/$defs/TaxParty1"
        },
        "Dbtr": {
          "$ref": "#/$defs/TaxParty2"
        },
        "UltmtDbtr": {
          "$ref": "#/$defs/TaxParty2"
        },
        "AdmstnZone": {
          "$ref": "#/$defs/Max35Text"
        },
        "RefNb": {
          "$ref": "#/$defs/Max140Text"
        },
        "Mtd": {
          "$ref": "#/$defs/Max35Text"
        },
        "TtlTaxblBaseAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "TtlTaxAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "Dt": {
          "$ref": "#/$defs/ISODate"
        },
        "SeqNb": {
          "$ref": "#/$defs/Number"
        },
        "Rcrd": {
          "anyOf": [
            {
              "$ref": "#/$defs/TaxRecord2"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/TaxRecord2"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "TaxInformation8": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cdtr": {
          "$ref": "#/$defs/TaxParty1"
        },
        "Dbtr": {
          "$ref": "#/$defs/TaxParty2"
        },
        "AdmstnZone": {
          "$ref": "#/$defs/Max35Text"
        },
        "RefNb": {
          "$ref": "#/$defs/Max140Text"
        },
        "Mtd": {
          "$ref": "#/$defs/Max35Text"
        },
        "TtlTaxblBaseAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "TtlTaxAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "Dt": {
          "$ref": "#/$defs/ISODate"
        },
        "SeqNb": {
          "$ref": "#/$defs/Number"
        },
        "Rcrd": {
          "anyOf": [
            {
              "$ref": "#/$defs/TaxRecord2"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/TaxRecord2"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "TaxParty1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "TaxId": {
          "$ref": "#/$defs/Max35Text"
        },
        "RegnId": {
          "$ref": "#/$defs/Max35Text"
        },
        "TaxTp": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1
    },
    "TaxParty2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "TaxId": {
          "$ref": "#/$defs/Max35Text"
        },
        "RegnId": {
          "$ref": "#/$defs/Max35Text"
        },
        "TaxTp": {
          "$ref": "#/$defs/Max35Text"
        },
        "Authstn": {
          "$ref": "#/$defs/TaxAuthorisation1"
        }
      },
      "minProperties": 1
    },
    "TaxPeriod2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Yr": {
          "$ref": "#/$defs/ISODate"
        },
        "Tp": {
          "$ref": "#/$defs/TaxRecordPeriod1Code"
        },
        "FrToDt": {
          "$ref": "#/$defs/DatePeriod2"
        }
      },
      "minProperties": 1
    },
    "TaxRecord2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/Max35Text"
        },
        "Ctgy": {
          "$ref": "#/$defs/Max35Text"
        },
        "CtgyDtls": {
          "$ref": "#/$defs/Max35Text"
        },
        "DbtrSts": {
          "$ref": "#/$defs/Max35Text"
        },
        "CertId": {
          "$ref": "#/$defs/Max35Text"
        },
        "FrmsCd": {
          "$ref": "#/$defs/Max35Text"
        },
        "Prd": {
          "$ref": "#/$defs/TaxPeriod2"
        },
        "TaxAmt": {
          "$ref": "#/$defs/TaxAmount2"
        },
        "AddtlInf": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "minProperties": 1
    },
    "TaxRecordDetails2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Prd": {
          "$ref": "#/$defs/TaxPeriod2"
        },
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        }
      },
      "required": [
        "Amt"
      ]
    },
    "TaxRecordPeriod1Code": {
      "type": "string",
      "enum": [
        "MM01",
        "MM02",
        "MM03",
        "MM04",
        "MM05",
        "MM06",
        "MM07",
        "MM08",
        "MM09",
        "MM10",
        "MM11",
        "MM12",
        "QTR1",
        "QTR2",
        "QTR3",
        "QTR4",
        "HLF1",
        "HLF2"
      ]
    },
    "TrueFalseIndicator": {
      "type": "string",
      "enum": [
        "true",
        "false",
        "1",
        "0"
      ]
    },
    "UUIDv4Identifier": {
      "type": "string",
      "pattern": "^(?:[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12})$"
    }
  }
}
