{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:iso:std:iso:20022:tech:json:pain.001.001.13",
  "title": "ISO JSON twin of pain.001.001.13",
  "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
    },
    "ActiveCurrencyAndAmount": {
      "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})$"
        }
      }
    },
    "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
    },
    "AdviceType1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "CdtAdvc": {
          "$ref": "#/$defs/AdviceType1Choice"
        },
        "DbtAdvc": {
          "$ref": "#/$defs/AdviceType1Choice"
        }
      },
      "minProperties": 1
    },
    "AdviceType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/AdviceType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "AdviceType1Code": {
      "type": "string",
      "enum": [
        "ADWD",
        "ADND"
      ]
    },
    "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"
      ]
    },
    "BranchAndFinancialInstitutionIdentification8": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "FinInstnId": {
          "$ref": "#/$defs/FinancialInstitutionIdentification23"
        },
        "BrnchId": {
          "$ref": "#/$defs/BranchData5"
        }
      },
      "required": [
        "FinInstnId"
      ]
    },
    "BranchData5": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max35Text"
        },
        "LEI": {
          "$ref": "#/$defs/LEIIdentifier"
        },
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/PostalAddress27"
        }
      },
      "minProperties": 1
    },
    "CashAccount40": {
      "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"
        }
      },
      "minProperties": 1
    },
    "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"
      ]
    },
    "Cheque19": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ChqTp": {
          "$ref": "#/$defs/ChequeType2Code"
        },
        "ChqNb": {
          "$ref": "#/$defs/Max35Text"
        },
        "ChqFr": {
          "$ref": "#/$defs/NameAndAddress18"
        },
        "DlvryMtd": {
          "$ref": "#/$defs/ChequeDeliveryMethod1Choice"
        },
        "DlvrTo": {
          "$ref": "#/$defs/NameAndAddress18"
        },
        "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"
      ]
    },
    "Contact13": {
      "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"
        },
        "URLAdr": {
          "$ref": "#/$defs/Max2048Text"
        },
        "EmailAdr": {
          "$ref": "#/$defs/Max256Text"
        },
        "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/PreferredContactMethod2Code"
        }
      },
      "minProperties": 1
    },
    "CountryCode": {
      "type": "string",
      "pattern": "^(?:[A-Z]{2,2})$"
    },
    "CreditDebitCode": {
      "type": "string",
      "enum": [
        "CRDT",
        "DBIT"
      ]
    },
    "CreditTransferMandateData1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "MndtId": {
          "$ref": "#/$defs/Max35Text"
        },
        "Tp": {
          "$ref": "#/$defs/MandateTypeInformation2"
        },
        "DtOfSgntr": {
          "$ref": "#/$defs/ISODate"
        },
        "DtOfVrfctn": {
          "$ref": "#/$defs/ISODateTime"
        },
        "ElctrncSgntr": {
          "$ref": "#/$defs/Max10KBinary"
        },
        "FrstPmtDt": {
          "$ref": "#/$defs/ISODate"
        },
        "FnlPmtDt": {
          "$ref": "#/$defs/ISODate"
        },
        "Frqcy": {
          "$ref": "#/$defs/Frequency36Choice"
        },
        "Rsn": {
          "$ref": "#/$defs/MandateSetupReason1Choice"
        }
      },
      "minProperties": 1
    },
    "CreditTransferTransaction76": {
      "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"
        },
        "MndtRltdInf": {
          "$ref": "#/$defs/CreditTransferMandateData1"
        },
        "ChqInstr": {
          "$ref": "#/$defs/Cheque19"
        },
        "UltmtDbtr": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "IntrmyAgt1": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification8"
        },
        "IntrmyAgt1Acct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "IntrmyAgt2": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification8"
        },
        "IntrmyAgt2Acct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "IntrmyAgt3": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification8"
        },
        "IntrmyAgt3Acct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "CdtrAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification8"
        },
        "CdtrAgtAcct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "Cdtr": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "CdtrAcct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "UltmtCdtr": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "InstrForCdtrAgt": {
          "anyOf": [
            {
              "$ref": "#/$defs/InstructionForCreditorAgent3"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/InstructionForCreditorAgent3"
              }
            }
          ]
        },
        "InstrForDbtrAgt": {
          "$ref": "#/$defs/InstructionForDebtorAgent1"
        },
        "Purp": {
          "$ref": "#/$defs/Purpose2Choice"
        },
        "RgltryRptg": {
          "anyOf": [
            {
              "$ref": "#/$defs/RegulatoryReporting10"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/RegulatoryReporting10"
              },
              "maxItems": 10
            }
          ]
        },
        "Tax": {
          "$ref": "#/$defs/TaxData1"
        },
        "RltdRmtInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/RemittanceLocation8"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/RemittanceLocation8"
              },
              "maxItems": 10
            }
          ]
        },
        "RmtInf": {
          "$ref": "#/$defs/RemittanceInformation26"
        },
        "SplmtryData": {
          "anyOf": [
            {
              "$ref": "#/$defs/SupplementaryData1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/SupplementaryData1"
              }
            }
          ]
        }
      },
      "required": [
        "PmtId",
        "Amt"
      ]
    },
    "CreditorReferenceInformation3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/CreditorReferenceType3"
        },
        "Ref": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1
    },
    "CreditorReferenceType2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalCreditorReferenceType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "CreditorReferenceType3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "CdOrPrtry": {
          "$ref": "#/$defs/CreditorReferenceType2Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "CdOrPrtry"
      ]
    },
    "CustomerCreditTransferInitiationV13": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "GrpHdr": {
          "$ref": "#/$defs/GroupHeader114"
        },
        "PmtInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentInstruction51"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/PaymentInstruction51"
              }
            }
          ]
        },
        "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"
      ]
    },
    "DateAndType1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/DateType2Choice"
        },
        "Dt": {
          "$ref": "#/$defs/ISODate"
        }
      },
      "required": [
        "Tp",
        "Dt"
      ]
    },
    "DatePeriod2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "FrDt": {
          "$ref": "#/$defs/ISODate"
        },
        "ToDt": {
          "$ref": "#/$defs/ISODate"
        }
      },
      "required": [
        "FrDt",
        "ToDt"
      ]
    },
    "DateType2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalDateType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "DecimalNumber": {
      "type": "string",
      "pattern": "^[+-]?(?:[0-9]{1,18}|(?=[0-9.]{2,19}$)[0-9]*\\.[0-9]{0,17})$"
    },
    "Document": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "CstmrCdtTrfInitn"
      ],
      "properties": {
        "CstmrCdtTrfInitn": {
          "$ref": "#/$defs/CustomerCreditTransferInitiationV13"
        }
      }
    },
    "DocumentAdjustment1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "CdtDbtInd": {
          "$ref": "#/$defs/CreditDebitCode"
        },
        "Rsn": {
          "$ref": "#/$defs/Max4Text"
        },
        "AddtlInf": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "required": [
        "Amt"
      ]
    },
    "DocumentAmount1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/DocumentAmountType1Choice"
        },
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        }
      },
      "required": [
        "Tp",
        "Amt"
      ]
    },
    "DocumentAmountType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalDocumentAmountType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "DocumentLineIdentification1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/DocumentLineType1"
        },
        "Nb": {
          "$ref": "#/$defs/Max35Text"
        },
        "RltdDt": {
          "$ref": "#/$defs/ISODate"
        }
      },
      "minProperties": 1
    },
    "DocumentLineInformation2": {
      "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/RemittanceAmount4"
        }
      },
      "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
    },
    "DocumentType1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "CdOrPrtry": {
          "$ref": "#/$defs/DocumentType2Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "CdOrPrtry"
      ]
    },
    "DocumentType2Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalDocumentType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "EquivalentAmount2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "CcyOfTrf": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyCode"
        }
      },
      "required": [
        "Amt",
        "CcyOfTrf"
      ]
    },
    "Exact2NumericText": {
      "type": "string",
      "pattern": "^(?:[0-9]{2})$"
    },
    "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
    },
    "ExternalCreditorAgentInstruction1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalCreditorReferenceType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalDateType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalDebtorAgentInstruction1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalDocumentAmountType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalDocumentLineType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalDocumentType1Code": {
      "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
    },
    "ExternalMandateSetupReason1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "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
    },
    "ExternalRegulatoryReportingType1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "ExternalServiceLevel1Code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4
    },
    "FinancialIdentificationSchemeName1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalFinancialInstitutionIdentification1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "FinancialInstitutionIdentification23": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "BICFI": {
          "$ref": "#/$defs/BICFIDec2014Identifier"
        },
        "ClrSysMmbId": {
          "$ref": "#/$defs/ClearingSystemMemberIdentification2"
        },
        "LEI": {
          "$ref": "#/$defs/LEIIdentifier"
        },
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/PostalAddress27"
        },
        "Othr": {
          "$ref": "#/$defs/GenericFinancialIdentification1"
        }
      },
      "minProperties": 1
    },
    "Frequency36Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/Frequency6Code"
        },
        "Prd": {
          "$ref": "#/$defs/FrequencyPeriod1"
        },
        "PtInTm": {
          "$ref": "#/$defs/FrequencyAndMoment1"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "Frequency6Code": {
      "type": "string",
      "enum": [
        "YEAR",
        "MNTH",
        "QURT",
        "MIAN",
        "WEEK",
        "DAIL",
        "ADHO",
        "INDA",
        "FRTN"
      ]
    },
    "FrequencyAndMoment1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/Frequency6Code"
        },
        "PtInTm": {
          "$ref": "#/$defs/Exact2NumericText"
        }
      },
      "required": [
        "Tp",
        "PtInTm"
      ]
    },
    "FrequencyPeriod1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/Frequency6Code"
        },
        "CntPerPrd": {
          "$ref": "#/$defs/DecimalNumber"
        }
      },
      "required": [
        "Tp",
        "CntPerPrd"
      ]
    },
    "Garnishment4": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/GarnishmentType1"
        },
        "Grnshee": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "GrnshmtAdmstr": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "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"
      ]
    },
    "GenericOrganisationIdentification3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max256Text"
        },
        "SchmeNm": {
          "$ref": "#/$defs/OrganisationIdentificationSchemeName1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Id"
      ]
    },
    "GenericPersonIdentification2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Id": {
          "$ref": "#/$defs/Max256Text"
        },
        "SchmeNm": {
          "$ref": "#/$defs/PersonIdentificationSchemeName1Choice"
        },
        "Issr": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Id"
      ]
    },
    "GroupHeader114": {
      "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/PartyIdentification272"
        },
        "FwdgAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification8"
        },
        "InitnSrc": {
          "$ref": "#/$defs/PaymentInitiationSource1"
        }
      },
      "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})?$"
    },
    "ISOYear": {
      "type": "string",
      "pattern": "^-?[0-9]{4}(Z|[+-][0-9]{2}:[0-9]{2})?$"
    },
    "InstructionForCreditorAgent3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalCreditorAgentInstruction1Code"
        },
        "InstrInf": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "minProperties": 1
    },
    "InstructionForDebtorAgent1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalDebtorAgentInstruction1Code"
        },
        "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
    },
    "MandateClassification1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/MandateClassification1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "MandateClassification1Code": {
      "type": "string",
      "enum": [
        "FIXE",
        "USGB",
        "VARI"
      ]
    },
    "MandateSetupReason1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalMandateSetupReason1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max70Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "MandateTypeInformation2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "SvcLvl": {
          "$ref": "#/$defs/ServiceLevel8Choice"
        },
        "LclInstrm": {
          "$ref": "#/$defs/LocalInstrument2Choice"
        },
        "CtgyPurp": {
          "$ref": "#/$defs/CategoryPurpose1Choice"
        },
        "Clssfctn": {
          "$ref": "#/$defs/MandateClassification1Choice"
        }
      },
      "minProperties": 1
    },
    "Max10KBinary": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10240
    },
    "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
    },
    "Max256Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "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
    },
    "NameAndAddress18": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "Adr": {
          "$ref": "#/$defs/PostalAddress27"
        }
      },
      "required": [
        "Nm",
        "Adr"
      ]
    },
    "NamePrefix2Code": {
      "type": "string",
      "enum": [
        "DOCT",
        "MADM",
        "MISS",
        "MIST",
        "MIKS"
      ]
    },
    "Number": {
      "type": "string",
      "pattern": "^[+-]?[0-9]{1,18}$"
    },
    "OrganisationIdentification39": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "AnyBIC": {
          "$ref": "#/$defs/AnyBICDec2014Identifier"
        },
        "LEI": {
          "$ref": "#/$defs/LEIIdentifier"
        },
        "Othr": {
          "anyOf": [
            {
              "$ref": "#/$defs/GenericOrganisationIdentification3"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/GenericOrganisationIdentification3"
              }
            }
          ]
        }
      },
      "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"
      ]
    },
    "Party52Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "OrgId": {
          "$ref": "#/$defs/OrganisationIdentification39"
        },
        "PrvtId": {
          "$ref": "#/$defs/PersonIdentification18"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "PartyIdentification272": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/PostalAddress27"
        },
        "Id": {
          "$ref": "#/$defs/Party52Choice"
        },
        "CtryOfRes": {
          "$ref": "#/$defs/CountryCode"
        },
        "CtctDtls": {
          "$ref": "#/$defs/Contact13"
        }
      },
      "minProperties": 1
    },
    "PaymentIdentification6": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "InstrId": {
          "$ref": "#/$defs/Max35Text"
        },
        "EndToEndId": {
          "$ref": "#/$defs/Max35Text"
        },
        "UETR": {
          "$ref": "#/$defs/UUIDv4Identifier"
        }
      },
      "required": [
        "EndToEndId"
      ]
    },
    "PaymentInitiationSource1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "Prvdr": {
          "$ref": "#/$defs/Max35Text"
        },
        "Vrsn": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "required": [
        "Nm"
      ]
    },
    "PaymentInstruction51": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "PmtInfId": {
          "$ref": "#/$defs/Max35Text"
        },
        "PmtMtd": {
          "$ref": "#/$defs/PaymentMethod3Code"
        },
        "ReqdAdvcTp": {
          "$ref": "#/$defs/AdviceType1"
        },
        "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/PartyIdentification272"
        },
        "DbtrAcct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "DbtrAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification8"
        },
        "DbtrAgtAcct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "InstrForDbtrAgt": {
          "$ref": "#/$defs/Max140Text"
        },
        "UltmtDbtr": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "ChrgBr": {
          "$ref": "#/$defs/ChargeBearerType1Code"
        },
        "ChrgsAcct": {
          "$ref": "#/$defs/CashAccount40"
        },
        "ChrgsAcctAgt": {
          "$ref": "#/$defs/BranchAndFinancialInstitutionIdentification8"
        },
        "CdtTrfTxInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/CreditTransferTransaction76"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/CreditTransferTransaction76"
              }
            }
          ]
        }
      },
      "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})$"
    },
    "PersonIdentification18": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "DtAndPlcOfBirth": {
          "$ref": "#/$defs/DateAndPlaceOfBirth1"
        },
        "Othr": {
          "anyOf": [
            {
              "$ref": "#/$defs/GenericPersonIdentification2"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/GenericPersonIdentification2"
              }
            }
          ]
        }
      },
      "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})$"
    },
    "PostalAddress27": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "AdrTp": {
          "$ref": "#/$defs/AddressType3Choice"
        },
        "CareOf": {
          "$ref": "#/$defs/Max140Text"
        },
        "Dept": {
          "$ref": "#/$defs/Max70Text"
        },
        "SubDept": {
          "$ref": "#/$defs/Max70Text"
        },
        "StrtNm": {
          "$ref": "#/$defs/Max140Text"
        },
        "BldgNb": {
          "$ref": "#/$defs/Max16Text"
        },
        "BldgNm": {
          "$ref": "#/$defs/Max140Text"
        },
        "Flr": {
          "$ref": "#/$defs/Max70Text"
        },
        "UnitNb": {
          "$ref": "#/$defs/Max16Text"
        },
        "PstBx": {
          "$ref": "#/$defs/Max16Text"
        },
        "Room": {
          "$ref": "#/$defs/Max70Text"
        },
        "PstCd": {
          "$ref": "#/$defs/Max16Text"
        },
        "TwnNm": {
          "$ref": "#/$defs/Max140Text"
        },
        "TwnLctnNm": {
          "$ref": "#/$defs/Max140Text"
        },
        "DstrctNm": {
          "$ref": "#/$defs/Max140Text"
        },
        "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
    },
    "PreferredContactMethod2Code": {
      "type": "string",
      "enum": [
        "MAIL",
        "FAXX",
        "LETT",
        "CELL",
        "ONLI",
        "PHON"
      ]
    },
    "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
    },
    "ReferredDocumentInformation8": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/DocumentType1"
        },
        "Nb": {
          "$ref": "#/$defs/Max35Text"
        },
        "RltdDt": {
          "$ref": "#/$defs/DateAndType1"
        },
        "LineDtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentLineInformation2"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DocumentLineInformation2"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "RegulatoryAuthority2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        },
        "Ctry": {
          "$ref": "#/$defs/CountryCode"
        }
      },
      "minProperties": 1
    },
    "RegulatoryReporting10": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "DbtCdtRptgInd": {
          "$ref": "#/$defs/RegulatoryReportingType1Code"
        },
        "Authrty": {
          "$ref": "#/$defs/RegulatoryAuthority2"
        },
        "Dtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/StructuredRegulatoryReporting5"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/StructuredRegulatoryReporting5"
              }
            }
          ]
        }
      },
      "required": [
        "DbtCdtRptgInd"
      ]
    },
    "RegulatoryReportingType1Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalRegulatoryReportingType1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "RegulatoryReportingType1Code": {
      "type": "string",
      "enum": [
        "CRED",
        "DEBT",
        "BOTH"
      ]
    },
    "RemittanceAmount4": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "RmtAmtAndTp": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentAmount1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DocumentAmount1"
              }
            }
          ]
        },
        "AdjstmntAmtAndRsn": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentAdjustment1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/DocumentAdjustment1"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "RemittanceInformation26": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Ustrd": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max140Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max140Text"
              }
            }
          ]
        },
        "Strd": {
          "anyOf": [
            {
              "$ref": "#/$defs/StructuredRemittanceInformation22"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/StructuredRemittanceInformation22"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "RemittanceLocation8": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "RmtId": {
          "$ref": "#/$defs/Max35Text"
        },
        "RmtLctnDtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/RemittanceLocationData2"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/RemittanceLocationData2"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "RemittanceLocationData2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Mtd": {
          "$ref": "#/$defs/RemittanceLocationMethod2Code"
        },
        "ElctrncAdr": {
          "$ref": "#/$defs/Max2048Text"
        },
        "PstlAdr": {
          "$ref": "#/$defs/NameAndAddress18"
        }
      },
      "required": [
        "Mtd"
      ]
    },
    "RemittanceLocationMethod2Code": {
      "type": "string",
      "enum": [
        "FAXI",
        "EDIC",
        "URID",
        "EMAL",
        "POST",
        "SMSM"
      ]
    },
    "SecuritiesAttributes1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "UnqTxIdr": {
          "$ref": "#/$defs/UTIIdentifier"
        },
        "Amt": {
          "$ref": "#/$defs/ActiveCurrencyAndAmount"
        }
      },
      "required": [
        "UnqTxIdr"
      ]
    },
    "ServiceLevel8Choice": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Cd": {
          "$ref": "#/$defs/ExternalServiceLevel1Code"
        },
        "Prtry": {
          "$ref": "#/$defs/Max35Text"
        }
      },
      "minProperties": 1,
      "maxProperties": 1
    },
    "StructuredRegulatoryReporting5": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Tp": {
          "$ref": "#/$defs/RegulatoryReportingType1Choice"
        },
        "Dt": {
          "$ref": "#/$defs/ISODate"
        },
        "Ctry": {
          "$ref": "#/$defs/CountryCode"
        },
        "RptgCd": {
          "$ref": "#/$defs/Max10Text"
        },
        "Amt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "Inf": {
          "anyOf": [
            {
              "$ref": "#/$defs/Max35Text"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/Max35Text"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "StructuredRemittanceInformation22": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "RfrdDocInf": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferredDocumentInformation8"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/ReferredDocumentInformation8"
              }
            }
          ]
        },
        "RfrdDocAmt": {
          "$ref": "#/$defs/RemittanceAmount4"
        },
        "CdtrRefInf": {
          "$ref": "#/$defs/CreditorReferenceInformation3"
        },
        "Invcr": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "Invcee": {
          "$ref": "#/$defs/PartyIdentification272"
        },
        "TaxRmt": {
          "$ref": "#/$defs/TaxData1"
        },
        "GrnshmtRmt": {
          "$ref": "#/$defs/Garnishment4"
        },
        "SctiesData": {
          "anyOf": [
            {
              "$ref": "#/$defs/SecuritiesAttributes1"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/SecuritiesAttributes1"
              }
            }
          ]
        },
        "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"
    },
    "TaxAmount3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Rate": {
          "$ref": "#/$defs/PercentageRate"
        },
        "TaxblBaseAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "TtlAmt": {
          "$ref": "#/$defs/ActiveOrHistoricCurrencyAndAmount"
        },
        "Dtls": {
          "anyOf": [
            {
              "$ref": "#/$defs/TaxRecordDetails3"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/TaxRecordDetails3"
              }
            }
          ]
        }
      },
      "minProperties": 1
    },
    "TaxAuthorisation1": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Titl": {
          "$ref": "#/$defs/Max35Text"
        },
        "Nm": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "minProperties": 1
    },
    "TaxData1": {
      "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/TaxRecord3"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/TaxRecord3"
              }
            }
          ]
        }
      },
      "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
    },
    "TaxPeriod3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Yr": {
          "$ref": "#/$defs/ISOYear"
        },
        "Tp": {
          "$ref": "#/$defs/TaxRecordPeriod1Code"
        },
        "FrToDt": {
          "$ref": "#/$defs/DatePeriod2"
        }
      },
      "minProperties": 1
    },
    "TaxRecord3": {
      "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/TaxPeriod3"
        },
        "TaxAmt": {
          "$ref": "#/$defs/TaxAmount3"
        },
        "AddtlInf": {
          "$ref": "#/$defs/Max140Text"
        }
      },
      "minProperties": 1
    },
    "TaxRecordDetails3": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Prd": {
          "$ref": "#/$defs/TaxPeriod3"
        },
        "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"
      ]
    },
    "UTIIdentifier": {
      "type": "string",
      "pattern": "^(?:[A-Z0-9]{18}[0-9]{2}[A-Z0-9]{0,32})$"
    },
    "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})$"
    }
  }
}
