{
    "schema": "http://json-schema.org/draft-06/schema#",
    "id": "file://po11#",
    "description": "Dbtr object schema for a business originator",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "Dbtr": {
            "type": "object",
            "description": "Party that owes an amount of money to the creditor.",
            "properties": {
                "Nm": {
                    "type": "string",
                    "description": "Allows the name of the Debtor to be held as a single value.\n\nRequirements:\n\n\u2022 Must include one (1) name string.\n\n\u2022 Allowable characters: Alphanumeric and space.\n\n\u2022 Names with multiple words must be separated by a space. For example, specify \"Widgets Org\", as `Widgets Org`.\n\n\u2022 Provide a truncated name if longer than 140 characters.",
                    "pattern": "^[a-zA-Z0-9 \\t]+$",
                    "minLength": 1,
                    "maxLength": 140
                },
                "PstlAdr": {
                    "type": "object",
                    "description": "The address of the party who is originating the payment.",
                    "required": [
                        "Ctry"
                    ],
                    "properties": {
                        "AdrLine": {
                            "description": "Information that locates and identifies the street address for the party, as defined by postal services.",
                            "type": "array",
                            "maxLength": 70
                        },
                        "PstCd": {
                            "description": "Information that locates and identifies the postal code for the party, as defined by postal services.",
                            "type": "string",
                            "maxLength": 16
                        },
                        "TwnNm": {
                            "description": "Information that locates and identifies the party's city or town name, as defined by postal services.",
                            "type": "string",
                            "maxLength": 35
                        },
                        "Ctry": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$",
                            "description": "Information that locates and identifies the country for the party, as defined by postal services. Use Alpha-2 Code as defined in the [ISO CountryCode ISO 3166-1](https://www.iso.org/obp/ui/#search) list."
                        }
                    }
                },
                "Id": {
                    "type": "object",
                    "description": "Unique and unambiguous way to identify the Debtor.",
                    "properties": {
                        "OrgId": {
                            "type": "object",
                            "description": "Unique and unambiguous way to identify an individual or organization.",
                            "properties": {
                                "Othr": {
                                    "type": "array",
                                    "description": "An array of objects, each containing unique identification of an organization, as assigned by an institution, using an identification scheme.",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "Id": {
                                                "description": "Identification assigned by an institution.",
                                                "type": "string",
                                                "maxLength": 35
                                            },
                                            "SchmeNm": {
                                                "type": "object",
                                                "description": "Name of the organization identification scheme.",
                                                "properties": {
                                                    "Cd": {
                                                        "type": "string",
                                                        "description": "List based on ExternalorganizationIdentification1Code List",
                                                        "enum": [
                                                            "BANK",
                                                            "CBID",
                                                            "CHID",
                                                            "CINC",
                                                            "COID",
                                                            "CUST",
                                                            "DUNS",
                                                            "EMPL",
                                                            "GS1G",
                                                            "SREN",
                                                            "SRET",
                                                            "TXID",
                                                            "USCC"
                                                        ],
                                                        "x-enumDescriptions": {
                                                            "BANK": "Bank Party Identification",
                                                            "CBID": "Central Bank Identification Number",
                                                            "CHID": "Clearing Identification Number",
                                                            "CINC": "Certificate Of Incorporation Number",
                                                            "COID": "Country Identification Code",
                                                            "CUST": "Customer Number",
                                                            "DUNS": "Data Universal Numbering System",
                                                            "EMPL": "Employer Identification Number",
                                                            "GS1G": "GS1GLN Identifier",
                                                            "SREN": "SIREN",
                                                            "SRET": "SIRET",
                                                            "TXID": "Tax Identification Number",
                                                            "USCC": "Unified Social Credit Code"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                },
                                "DtAndPlcofIncorprtn": {
                                    "type": "object",
                                    "description": "Indicates the organization's date and place of incorporation.",
                                    "properties": {
                                        "CtryofIncorprtn": {
                                            "type": "string",
                                            "description": "Information that locates and identifies the country, as defined by postal services where the organization was incorporated. Use Alpha-2 Code as defined in the ISO CountryCode ISO 3166-1 list.",
                                            "pattern": "^[A-Z]{2}"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "required": [
        "Dbtr"
    ]
}