content: {
    "$defs": {
      "Card": {
        "description": "Card contains simplified card holder data as a reference for the customer.",
        "properties": {
          "holder": {
            "description": "Name of the person whom the card belongs to.",
            "title": "Holder Name",
            "type": "string"
          },
          "last4": {
            "description": "Last 4 digits of the card's Primary Account Number (PAN).",
            "title": "Last 4",
            "type": "string"
          }
        },
        "required": [
          "last4",
          "holder"
        ],
        "type": "object"
      },
      "CreditTransfer": {
        "description": "CreditTransfer contains fields that can be used for making payments via a bank transfer or wire.",
        "properties": {
          "bic": {
            "description": "Bank Identifier Code used for international transfers.",
            "title": "BIC",
            "type": "string"
          },
          "branch": {
            "$ref": "https://gobl.org/draft-0/org/address",
            "description": "Bank office branch address, not normally required.",
            "title": "Branch"
          },
          "iban": {
            "description": "International Bank Account Number",
            "title": "IBAN",
            "type": "string"
          },
          "name": {
            "description": "Name of the bank.",
            "title": "Name",
            "type": "string"
          },
          "number": {
            "description": "Account number, if IBAN not available.",
            "title": "Number",
            "type": "string"
          }
        },
        "type": "object"
      },
      "DirectDebit": {
        "description": "DirectDebit defines the data that will be used to make the direct debit.",
        "properties": {
          "account": {
            "description": "Account identifier to be debited by the direct debit.",
            "title": "Account",
            "type": "string"
          },
          "creditor": {
            "description": "Unique banking reference that identifies the payee or seller assigned by the bank.",
            "title": "Creditor ID",
            "type": "string"
          },
          "ref": {
            "description": "Unique identifier assigned by the payee for referencing the direct debit.",
            "title": "Mandate Reference",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Instructions": {
        "description": "Instructions determine how the payment has or should be made.",
        "properties": {
          "card": {
            "$ref": "#/$defs/Card",
            "description": "Details of the payment that will be made via a credit or debit card.",
            "title": "Card"
          },
          "credit_transfer": {
            "description": "Instructions for sending payment via a bank transfer.",
            "items": {
              "$ref": "#/$defs/CreditTransfer"
            },
            "title": "Credit Transfer",
            "type": "array"
          },
          "detail": {
            "description": "Optional text description of the payment method",
            "title": "Detail",
            "type": "string"
          },
          "direct_debit": {
            "$ref": "#/$defs/DirectDebit",
            "description": "A group of terms that can be used by the customer or payer to consolidate direct debit payments.",
            "title": "Direct Debit"
          },
          "key": {
            "$ref": "https://gobl.org/draft-0/cbc/key",
            "anyOf": [
              {
                "const": "any",
                "description": "Any method available, no preference.",
                "title": "Any"
              },
              {
                "const": "card",
                "description": "Payment card.",
                "title": "Card"
              },
              {
                "const": "credit-transfer",
                "description": "Sender initiated bank or wire transfer.",
                "title": "Credit Transfer"
              },
              {
                "const": "debit-transfer",
                "description": "Receiver initiated bank or wire transfer.",
                "title": "Debit Transfer"
              },
              {
                "const": "cash",
                "description": "Cash in hand.",
                "title": "Cash"
              },
              {
                "const": "cheque",
                "description": "Cheque from bank.",
                "title": "Cheque"
              },
              {
                "const": "bank-draft",
                "description": "Bankers Draft or Bank Cheque.",
                "title": "Draft"
              },
              {
                "const": "direct-debit",
                "description": "Direct debit from the customers bank account.",
                "title": "Direct Debit"
              },
              {
                "const": "online",
                "description": "Online or web payment.",
                "title": "Online"
              },
              {
                "const": "promissory-note",
                "description": "Promissory note contract.",
                "title": "Promissory Note"
              },
              {
                "const": "netting",
                "description": "Intercompany clearing or clearing between partners.",
                "title": "Netting"
              },
              {
                "const": "other",
                "description": "Other or mutually defined means of payment.",
                "title": "Other"
              },
              {
                "pattern": "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$",
                "title": "Regime Specific Key"
              }
            ],
            "description": "The payment means expected or that have been arranged to be used to make the payment.",
            "title": "Key"
          },
          "meta": {
            "$ref": "https://gobl.org/draft-0/cbc/meta",
            "description": "Non-structured additional data that may be useful.",
            "title": "Meta"
          },
          "notes": {
            "description": "Any additional instructions that may be required to make the payment.",
            "title": "Notes",
            "type": "string"
          },
          "online": {
            "description": "Array of online payment options",
            "items": {
              "$ref": "#/$defs/Online"
            },
            "title": "Online",
            "type": "array"
          },
          "ref": {
            "description": "Remittance information or concept, a text value used to link the payment with the invoice.",
            "title": "Reference",
            "type": "string"
          }
        },
        "required": [
          "key"
        ],
        "type": "object"
      },
      "Online": {
        "description": "Online provides the details required to make a payment online using a website",
        "properties": {
          "addr": {
            "description": "Full URL to be used for payment.",
            "title": "Address",
            "type": "string"
          },
          "name": {
            "description": "Descriptive name given to the online provider.",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "addr"
        ],
        "type": "object"
      }
    },
    "$id": "https://gobl.org/draft-0/pay/instructions",
    "$ref": "#/$defs/Instructions",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  }