openapi: "3.0.0"
info:
  title: "Account Information API"
  description: >
    In this document, you'll find the steps your organization needs to take to use our API services. Included in this guide are details of request and response messages used to support your organization’s integration.
    The intended audience for this document are **Technical Architects**, **Development Engineers**, **Test Engineers**, and **Operation & Maintenance Engineers** involved in development and support of your organization’s integration.
    Setting up our API Services is best completed with the assistance of your organization’s IT team, or someone with experience and knowledge of application programming interfaces. This should include experience with **JSON payloads**, **security** and **public key infrastructure (PKI)**.
    This Document describes the following request and response structure of **HSBCnet UK - Account Information API**. For detail implementation guidelines, please refer to the respective section of Documentation page.
  version: "4.0"
tags:
  - name: "Account Access Consents"
    description: "The Account Access Consents API is used by an AISP to request an ASPSP to create a new account-access-consent resource, retrieve the status of account-access-consent resource and delete the account-access-consent resource."
  - name: "Accounts"
    description: "The accounts resource is used by an AISP to retrieve full list of accounts and account infromation that the PSU has authorised to access."
  - name: "Balances"
    description: "The balances resource is used by an AISP to retrieve in bulk or single account balance information for a specific AccountId for that the PSU has authorised to access."
  - name: "Transactions"
    description: "The transactions resource is used by an AISP to retrieve the transactions for a specific AccountId or to retrieve the transactions in bulk for account(s) that the PSU has authorised to access."
  - name: "Beneficiaries"
    description: "The beneficiaries resource is used by an AISP to retrieve the account beneficiaries information for a specific AccountId or to retrieve the beneficiaries information in bulk for account(s) that the PSU has authorised to access."
  - name: "Direct Debits"
    description: "The direct-debits resource is used by an AISP to retrieve the direct debits for a specific account identified by AccountId or to retrieve direct debits for all accounts that the PSU has consented to."
  - name: "Standing Orders"
    description: "The standing-orders resource is used by an AISP to retrieve the standing orders for a specific AccountId or to retrieve the standing orders in bulk for all the accounts that the PSU has consented to."
  - name: "Products"
    description: "The product resource is used by an AISP to retrieve the account product information for a specific AccountId."
  - name: "Parties"
    description: "The parties resource is used by an AISP to retrieve the details on the account owner(s)/holder(s) and operator(s) for a specific account identified by AccountId."
  - name: "Scheduled Payments"
    description: "The scheduled-payments resource is used by an AISP to retrieve the scheduled payments for a specific account identified by AccountId or to retrieve scheduled payments for all accounts that the PSU has consented to."

paths:
  /account-access-consents:
    post:
      tags:
        - "Account Access Consents"
      summary: "Create Account Access Consents"
      description: This endpoint enables TPP to create account access consent. Supported product types - Business Current Account, Foreign Currency Account, Credit Cards (UK and Malta only), Working Capital
      operationId: "CreateAccountAccessConsents"
      parameters:
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization1"
        - $ref: "#/components/parameters/x-customer-user-agent"
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/OBReadConsent1"
          application/jose+jwe:
            schema:
              $ref: "#/components/schemas/OBReadConsent1"
        required: true
      responses:
        "201":
          $ref: "#/components/responses/201AccountAccessConsentsCreated"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "415":
          $ref: "#/components/responses/415Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - TPPOAuth2Security:
            - "accounts"
  /account-access-consents/{ConsentId}:
    get:
      tags:
        - "Account Access Consents"
      summary: "Get Account Access Consents"
      description: This endpoint enables TPP to get account access consent by ConsentId. Supported product types - Business Current Account, Foreign Currency Account, Credit Cards (UK and Malta only), Working Capital
      operationId: "GetAccountAccessConsentsConsentId"
      parameters:
        - $ref: "#/components/parameters/ConsentId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization1"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountAccessConsentsConsentIdRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - TPPOAuth2Security:
            - "accounts"
    delete:
      tags:
        - "Account Access Consents"
      summary: "Delete Account Access Consents"
      description: This endpoint enables TPP to delete account access consent. Supported product types - Business Current Account, Foreign Currency Account, Credit Cards (UK and Malta only), Working Capital
      operationId: "DeleteAccountAccessConsentsConsentId"
      parameters:
        - $ref: "#/components/parameters/ConsentId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization1"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "204":
          $ref: "#/components/responses/204AccountAccessConsentsConsentIdDeleted"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - TPPOAuth2Security:
            - "accounts"
  /accounts:
    get:
      tags:
        - "Accounts"
      summary: "Get Accounts"
      description: This endpoint enables to get Accounts. Supported product types - Business Current Account, Foreign Currency Account, Credit Cards (UK and Malta only)
      operationId: "GetAccounts"
      parameters:
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}:
    get:
      tags:
        - "Accounts"
      summary: "Get Accounts by AccountId"
      description: This endpoint enables to get Account by AccountId. Supported product types - Business Current Account, Foreign Currency Account, Credit Cards (UK and Malta only), Working Capital
      operationId: "GetAccountsAccountId"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/balances:
    get:
      tags:
        - "Balances"
      summary: "Get Account Balances"
      description: This endpoint enables to get Balances by AccountId. Supported product types - Business Current Account, Foreign Currency Account, Credit Cards (UK and Malta only), Working Capital
      operationId: "GetAccountsAccountIdBalances"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdBalancesRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/direct-debits:
    get:
      tags:
        - "Direct Debits"
      summary: "Get Account Direct Debits"
      description: This endpoint enables to get Direct Debits by AccountId. Supported product type is Business Current Account
      operationId: "GetAccountsAccountIdDirectDebits"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdDirectDebitsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/scheduled-payments:
    get:
      tags:
        - "Scheduled Payments"
      summary: "Get Account Scheduled Payments"
      description: This endpoint enables to get Scheduled Payments by AccountId. Supported product type is Business Current Account
      operationId: "GetAccountsAccountIdScheduledPayments"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdScheduledPaymentsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/standing-orders:
    get:
      tags:
        - "Standing Orders"
      summary: "Get Account Standing Orders"
      description: This endpoint enables to get Standing Orders by AccountId. Supported product type is Business Current Account
      operationId: "GetAccountsAccountIdStandingOrders"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdStandingOrdersRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/transactions:
    get:
      tags:
        - "Transactions"
      summary: "Get Account Transactions"
      description: This endpoint enables to get account Transactions by AccountId. Supported product types - Business Current Account, Foreign Currency Account, Credit Cards (UK and Malta only), Working Capital
      operationId: "GetAccountsAccountIdTransactions"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
        - $ref: "#/components/parameters/FromBookingDateTimeParam"
        - $ref: "#/components/parameters/ToBookingDateTimeParam"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdTransactionsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/beneficiaries:
    get:
      tags:
        - "Beneficiaries"
      summary: "Get Account Beneficiaries"
      description: This endpoint enables to get Beneficiaries by AccountId
      operationId: "GetAccountsAccountIdBeneficiaries"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdBeneficiariesRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: [ ]
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/parties:
    get:
      tags:
        - "Parties"
      summary: "Get Account Parties"
      description: This endpoint enables to get Parties by AccountId
      operationId: "GetAccountsAccountIdParties"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdPartiesRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: [ ]
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/product:
    get:
      tags:
        - "Products"
      summary: "Get Account Products"
      description: This endpoint enables to get Products by AccountId
      operationId: "GetAccountsAccountIdProduct"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdProductRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
servers:
  - url: "https://sandbox.ob.hsbcnet.com/mock/obie/open-banking/v4.0/aisp"
components:
  parameters:
    FromBookingDateTimeParam:
      in: "query"
      name: "fromBookingDateTime"
      description: "The UTC ISO 8601 Date Time to filter transactions FROM\nNB Time component is optional - set to 00:00:00 for just Date.\nIf the Date Time contains a timezone, the ASPSP must ignore the timezone component."
      schema:
        type: "string"
        format: "date-time"
      example: "2023-01-04T13:21:07+00:00"
    ToBookingDateTimeParam:
      in: "query"
      name: "toBookingDateTime"
      description: "The UTC ISO 8601 Date Time to filter transactions TO\nNB Time component is optional - set to 00:00:00 for just Date.\nIf the Date Time contains a timezone, the ASPSP must ignore the timezone component."
      schema:
        type: "string"
        format: "date-time"
      example: "2023-02-04T13:21:07+00:00"
    ConsentId:
      name: "ConsentId"
      in: "path"
      description: "ConsentId"
      required: true
      schema:
        type: "string"
      example: "7404e99b-1a4d-4b08-b441-c327661527f0"
    AccountId:
      name: "AccountId"
      in: "path"
      description: "AccountId"
      required: true
      schema:
        type: "string"
      example: "ThR-RpLMV5lZzDu8vrfEFg"
    Authorization1:
      in: "header"
      name: "Authorization"
      required: true
      description: "An authorisation token which was obtained from an authorisation server using Client Credentials Grant (https://www.rfc-editor.org/rfc/rfc6749#section-4.4). The obtained token must be sent using 'Bearer' scheme (https://tools.ietf.org/html/rfc6750#section-2) for this request"
      example: "Bearer LbGDbcFVVfE-ngpjj8KaH5wrEfg"
      schema:
        type: "string"
    Authorization2:
      in: "header"
      name: "Authorization"
      required: true
      description: "An authorisation token which was obtained from an authorisation server using Authorisation Code Grant (https://www.rfc-editor.org/rfc/rfc6749#section-4.1). The obtained token must be sent using 'Bearer' scheme (https://tools.ietf.org/html/rfc6750#section-2) for this request"
      example: "Bearer GtbuGXK9ByYYHX-Fg9cT_8b31S8"
      schema:
        type: "string"
    x-customer-user-agent:
      in: "header"
      name: "x-customer-user-agent"
      description: "Indicates the user-agent that the PSU is using."
      required: false
      schema:
        type: "string"
      example: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
    x-fapi-customer-ip-address:
      in: "header"
      name: "x-fapi-customer-ip-address"
      required: false
      description: "The PSU's IP address if the PSU is currently logged in with the TPP."
      schema:
        type: "string"
        pattern: ^((((25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\s?)|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\s?),?\s?)+$
      example: "12.201.45.125"
    x-fapi-auth-date:
      in: "header"
      name: "x-fapi-auth-date"
      required: false
      description: "The time when the PSU last logged in with the TPP. \nAll dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: \nSun, 10 Sep 2017 19:43:31 UTC"
      schema:
        type: "string"
        pattern: "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
      example: "Tue, 18 Apr 2023 14:42:25 UTC"
    x-fapi-interaction-id:
      in: "header"
      name: "x-fapi-interaction-id"
      required: false
      description: "An RFC4122 UID used as a correlation id."
      schema:
        type: "string"
      example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
  responses:
    200AccountsAccountIdBeneficiariesRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadBeneficiary5"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadBeneficiary5"
    200AccountsAccountIdPartiesRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadParty3"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadParty3"
    201AccountAccessConsentsCreated:
      description: "Created"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
    200AccountAccessConsentsConsentIdRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
    204AccountAccessConsentsConsentIdDeleted:
      description: "No Content"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
    200AccountsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
    200AccountsAccountIdRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
    200AccountsAccountIdBalancesRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadBalance1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadBalance1"
    200AccountsAccountIdDirectDebitsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadDirectDebit2"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadDirectDebit2"
    200AccountsAccountIdScheduledPaymentsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadScheduledPayment3"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadScheduledPayment3"
    200AccountsAccountIdStandingOrdersRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadStandingOrder6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadStandingOrder6"
    200AccountsAccountIdTransactionsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadTransaction6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadTransaction6"
    200AccountsAccountIdProductRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadProduct2"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadProduct2"
    400Error:
      description: "Bad request"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
    401Error:
      description: "Unauthorized"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
            example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
    403Error:
      description: "Forbidden"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
    404Error:
      description: "Not found"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
    405Error:
      description: "Method Not Allowed"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
    406Error:
      description: "Not Acceptable"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
    415Error:
      description: "Unsupported Media Type"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
    429Error:
      description: "Too Many Requests"
      headers:
        Retry-After:
          description: "Number in seconds to wait"
          schema:
            type: "integer"
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          schema:
            type: "string"
          example: "1452697e-68ff-499e-a1f2-980da8e2cea1"
    500Error:
      description: "Internal Server Error"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization scheme used to authenticate & authorize access to a protected resource on a web server. It is used in conjunction with the OAuth 2.0 protocol for securing API endpoints.
    TPPOAuth2Security:
      type: oauth2
      description: TPP client credential authorisation flow with the ASPSP. Token URL to be used by TPP to obtain a token. Check the well-known configuration endpoint, the 'token_endpoint' property.
      flows:
        clientCredentials:
          tokenUrl: "/obie/open-banking/v1.1/oauth2/token"
          scopes:
            accounts: "Ability to read Accounts information"
    PSUOAuth2Security:
      type: oauth2
      description: OAuth flow, it is required when the PSU needs to perform SCA with
        the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU. Authorization URL to be used by TPP to redirect the PSU in order to start consent authorization journey. Check the well-known configuration endpoint, the 'authorization_endpoint' property. Token URL to be used by TPP to obtain a token. Check the well-known configuration endpoint, the 'token_endpoint' property.
      flows:
        authorizationCode:
          authorizationUrl: "/obie/open-banking/v1.1/oauth2/authorize"
          tokenUrl: "/obie/open-banking/v1.1/oauth2/token"
          scopes:
            accounts: "Ability to read Accounts information"
  schemas:
    AccountId:
      description: "A unique and immutable identifier used to identify the account resource. This identifier has no meaning to the account owner."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "WQEF7_6iy3HEWspIs8CDOw"
    ActiveOrHistoricCurrencyCode_0:
      description: "Identification of the currency in which the account is held. \nUsage: Currency should only be used in case one and the same account number covers several currencies\nand the initiating party needs to identify which currency needs to be used for settlement on the account."
      type: "string"
      pattern: "^[A-Z]{3,3}$"
      example: "USD"
    ActiveOrHistoricCurrencyCode_1:
      description: "A code allocated to a currency by a Maintenance Agency under an international identification scheme, as described in the latest edition of the international standard ISO 4217 \"Codes for the representation of currencies and funds\"."
      type: "string"
      pattern: "^[A-Z]{3,3}$"
      example: "USD"
    AddressLine:
      description: "Information that locates and identifies a specific address for a transaction entry, that is presented in free format text."
      type: "string"
      minLength: 1
      maxLength: 70
      example: "17 Dean's Yard, Westminster, London"
    BookingDateTime:
      description: "Date and time when a transaction entry is posted to an account on the account servicer's books.\nUsage: Booking date is the expected booking date, unless the status is booked, in which case it is the actual booking date.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:22:20+00:00"
    CreationDateTime:
      description: "Date and time at which the resource was created.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:22:20+00:00"
    DebtorReference:
      description: "A reference value provided by the PSU to the PISP while setting up the scheduled payment."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "A sample referance."
    Description_0:
      description: "Specifies the description of the account type."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "Test Description"
    DirectDebitId:
      description: "A unique and immutable identifier used to identify the direct debit resource. This identifier has no meaning to the account owner."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "DDid"
    FinalPaymentDateTime:
      description: "The date on which the final payment for a Standing Order schedule will be made.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-02-04T13:21:59+00:00"
    FirstPaymentDateTime:
      description: "The date on which the first payment for a Standing Order schedule will be made.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:21:59+00:00"
    ISODateTime:
      description: "All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:21:59+00:00"
    Name_4:
      description: "Long name associated with the code"
      type: "string"
      minLength: 1
      maxLength: 70
      example: "ABC"
    OB_CodeMnemonic:
      description: "The four letter Mnemonic used within an XML file to identify a code"
      type: "string"
      pattern: "^\\\\w{0,4}$"
      example: "10"
    Description_3:
      description: "Description to describe the purpose of the code"
      type: "string"
      minLength: 1
      maxLength: 350
      example: "Test Description"
    Number_0:
      description: "Indicates whether the advertised overdraft rate is guaranteed to be offered to a borrower by the bank e.g. if it�s part of a government scheme, or whether the rate may vary dependent on the applicant�s circumstances."
      type: "integer"
      example: "1"
    Number_1:
      description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
      type: "integer"
      example: "10"
    OBReadBeneficiary5:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          properties:
            Beneficiary:
              type: "array"
              items:
                $ref: "#/components/schemas/OBBeneficiary5"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
    Identification_0:
      description: "Identification assigned by an institution to identify an account. This identification is known by the account owner. Credit Cards - AccountCountryCode+AccountInstitution+AccountType+Un-masked
control card account number. For commercial cards, the Identification will contain the
control commercial card account number, and not the individual commercial card number.
As such, the Identification will always contain the unmasked number, even if the ReadPan
attribute has not been specifically provided.
Global Wallet identification is 19 alphanumeric characters
“WAXXXXXXXXXXXXXXYYY”
WA denotes a Global Wallet account, followed by 14-digit account number and 3 letter
currency code (e.g. USD, EUR, AUD etc.)"
      type: "string"
      minLength: 1
      maxLength: 256
      example: "Sample Identyfication0"
    OBParty2:
      type: "object"
      required:
        - "PartyId"
      properties:
        PartyId:
          $ref: "#/components/schemas/PartyId"
        PartyNumber:
          $ref: "#/components/schemas/PartyNumber"
        PartyType:
          $ref: "#/components/schemas/OBExternalPartyType1Code"
        Name:
          $ref: "#/components/schemas/Name_3"
        FullLegalName:
          $ref: "#/components/schemas/FullLegalName"
        LegalStructure:
          $ref: "#/components/schemas/OBExternalLegalStructureType1Code"
        BeneficialOwnership:
          type: "boolean"
        AccountRole:
          $ref: "#/components/schemas/OBExternalAccountRole1Code"
        EmailAddress:
          $ref: "#/components/schemas/EmailAddress"
        Phone:
          $ref: "#/components/schemas/PhoneNumber_0"
        Mobile:
          $ref: "#/components/schemas/PhoneNumber_1"
        Relationships:
          $ref: "#/components/schemas/OBPartyRelationships1"
        Address:
          type: "array"
          items:
            $ref: "#/components/schemas/OBPostalAddress7"
      additionalProperties: false
    PartyId:
      description: "A unique and immutable identifier used to identify the customer resource. This identifier has no meaning to the account owner."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "PPA"
    PartyNumber:
      description: "Number assigned by an agent to identify its customer."
      type: "string"
      minLength: 1
      maxLength: 35
    PhoneNumber_0:
      description: "Collection of information that identifies a phone number, as defined by telecom services."
      type: "string"
      pattern: "\\+[0-9]{1,3}-[0-9()+\\-]{1,30}"
      example: "9999 88 54"
    PhoneNumber_1:
      description: "Collection of information that identifies a mobile phone number, as defined by telecom services."
      type: "string"
      pattern: "\\+[0-9]{1,3}-[0-9()+\\-]{1,30}"
      example: "9999 88 54"
    BeneficiaryId:
      description: "A unique and immutable identifier used to identify the beneficiary resource. This identifier has no meaning to the account owner."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "BeneficiaryId"
    OBExternalPartyType1Code:
      description: "Party type, in a coded form."
      type: "string"
      example: "Joint"
      enum:
        - "Delegate"
        - "Joint"
        - "Sole"
    OBBranchAndFinancialInstitutionIdentification6_0:
      type: "object"
      description: "Party that manages the account on behalf of the account owner, that is manages the registration and booking of entries on the account, calculates balances on the account and provides information about the account.\nThis is the servicer of the beneficiary account."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_1"
        Name:
          $ref: "#/components/schemas/Name_1"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress7"
    Identification_1:
      description: "Unique and unambiguous identification of the servicing institution."
      type: "string"
      minLength: 1
      maxLength: 35
    Identification_2:
      description: "Unique and unambiguous identification of a financial institution or a branch of a financial institution."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "Identification_2"
    LastPaymentDateTime:
      description: "The date on which the last (most recent) payment for a Standing Order schedule was made.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:21:59+00:00"
    Links:
      type: "object"
      description: "Links relevant to the payload"
      properties:
        Self:
          description: "A link to the same resource used for the current request."
          type: "string"
          format: "uri"
        First:
          type: "string"
          format: "uri"
        Prev:
          type: "string"
          format: "uri"
        Next:
          type: "string"
          format: "uri"
        Last:
          type: "string"
          format: "uri"
      additionalProperties: false
      required:
        - "Self"
    MaturityDate:
      description: "Maturity date of the account.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:21:59+00:00"
    Meta:
      title: "MetaData"
      type: "object"
      description: "Meta Data relevant to the payload"
      properties:
        TotalPages:
          type: "integer"
        FirstAvailableDateTime:
          $ref: "#/components/schemas/ISODateTime"
        LastAvailableDateTime:
          $ref: "#/components/schemas/ISODateTime"
      additionalProperties: false
    Name_0:
      description: "The account name is the name or names of the account owner(s) represented at an account level, as displayed by the ASPSP's online channels.\nNote, the account name is not the product name or the nickname of the account."
      type: "string"
      minLength: 1
      maxLength: 350
      example: "ABC"
    Name_1:
      description: "Name by which an agent is known and which is usually used to identify that agent."
      type: "string"
      minLength: 1
      maxLength: 140
      example: "ABC"
    Name_2:
      description: "Name of Service User."
      type: "string"
      minLength: 1
      maxLength: 70
      example: "ABC"
    Name_3:
      description: "Name by which a party is known and which is usually used to identify that party."
      type: "string"
      minLength: 1
      maxLength: 350
      example: "ABC"
    NextPaymentDateTime:
      description: "The date on which the next payment for a Standing Order schedule will be made.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:21:59+00:00"
    Nickname:
      description: "The nickname of the account, assigned by the account owner in order to provide an additional means of identification of the account."
      type: "string"
      minLength: 1
      maxLength: 70
      example: "CAB ALL CARE"
    NumberOfPayments:
      description: "Number of the payments that will be made in completing this frequency sequence including any executed since the sequence start date."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "10"
    OBBeneficiary5:
      type: "object"
      description: TO DO
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        BeneficiaryId:
          $ref: "#/components/schemas/BeneficiaryId"
        BeneficiaryType:
          $ref: "#/components/schemas/OBInternalBeneficiaryType1Code"
        Reference:
          $ref: "#/components/schemas/Reference"
        SupplementaryData:
          $ref: "#/components/schemas/OBSupplementaryData1"
        CreditorAgent:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification6_0"
        CreditorAccount:
          $ref: "#/components/schemas/OBCashAccount5_0"
      additionalProperties: false
    OBCashAccount5_0:
      type: "object"
      required:
        - "SchemeName"
        - "Identification"
      description: "Provides the details to identify the beneficiary account."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalAccountIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_0"
        Name:
          $ref: "#/components/schemas/Name_0"
        SecondaryIdentification:
          $ref: "#/components/schemas/SecondaryIdentification"
    OBAccount6:
      type: "object"
      description: "Unambiguous identification of the account to which credit and debit entries are made. The following fields are optional only for accounts that are switched:\n\n  * Data.Currency  \n  * Data.AccountType  \n  * Data.AccountSubType\n\nFor all other accounts, the fields must be populated by the ASPSP."
      required:
        - "AccountId"
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        Status:
          $ref: "#/components/schemas/OBAccountStatus1Code"
        StatusUpdateDateTime:
          $ref: "#/components/schemas/StatusUpdateDateTime"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_0"
        AccountCategory:
          $ref: "#/components/schemas/OBInternalAccountType1Code"
        AccountTypeCode:
          $ref: "#/components/schemas/OBExternalCashAccountType1Code"
        Description:
          $ref: "#/components/schemas/Description_0"
        Nickname:
          $ref: "#/components/schemas/Nickname"
        OpeningDate:
          $ref: "#/components/schemas/OpeningDate"
        MaturityDate:
          $ref: "#/components/schemas/MaturityDate"
        SwitchStatus:
          $ref: "#/components/schemas/OBExternalSwitchStatusCode"
        Account:
          type: "array"
          items:
            type: "object"
            description: "Provides the details to identify an account."
            required:
              - "SchemeName"
              - "Identification"
            properties:
              SchemeName:
                description: "Name of the identification scheme, in a coded form as published in an external list."
                type: "string"
                enum:
                  - "UK.OBIE.BBAN"
                  - "UK.OBIE.IBAN"
                  - "UK.OBIE.PAN"
                  - "UK.OBIE.Paym"
                  - "UK.OBIE.SortCodeAccountNumber"
                  - "UK.OBIE.Wallet"
                example: "UK.OBIE.BBAN"
              Identification:
                $ref: "#/components/schemas/Identification_0"
              Name:
                $ref: "#/components/schemas/Name_0"
              SecondaryIdentification:
                $ref: "#/components/schemas/SecondaryIdentification"
        Servicer:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification5_0"
        StatementFrequencyAndFormat:
          $ref: "#/components/schemas/StatementFrequencyAndFormat"
      additionalProperties: false
    OBAccountStatus1Code:
      description: "Specifies the status of account resource in code form."
      type: "string"
      enum:
        - "Deleted"
        - "Disabled"
        - "Enabled"
        - "Pending"
        - "ProForma"
      example: "Enabled"
    OBActiveCurrencyAndAmount_SimpleType:
      description: "A number of monetary units specified in an active currency where the unit of currency is explicit and compliant with ISO 4217."
      type: "string"
      pattern: "^\\d{1,13}$|^\\d{1,13}\\.\\d{1,5}$"
      example: "1000"
    FullLegalName:
      description: "Specifies a character string with a maximum length of 350 characters."
      type: "string"
      minLength: 1
      maxLength: 350
      example: "PTTestB7003"
    EmailAddress:
      description: "Address for electronic mail (e-mail)."
      type: "string"
      minLength: 1
      maxLength: 256
      example: "@google.com"
    OBPartyRelationships1:
      type: "object"
      description: "The Party's relationships with other resources."
      properties:
        Account:
          type: "object"
          required:
            - "Related"
            - "Id"
          description: "Relationship to the Account resource."
          properties:
            Related:
              description: "Absolute URI to the related resource."
              type: "string"
              format: "uri"
            Id:
              description: "Unique identification as assigned by the ASPSP to uniquely identify the related resource."
              type: "string"
              minLength: 1
              maxLength: 40
    OBActiveOrHistoricCurrencyAndAmount_0:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "The amount of the most recent direct debit collection."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_1:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Amount of money to be moved between the debtor and creditor, before deduction of charges, expressed in the currency as ordered by the initiating party.\nUsage: This amount has to be transported unchanged through the transaction chain."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_10:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Transaction charges to be paid by the charge bearer."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_11:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "The amount of the last (most recent) Standing Order instruction."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_2:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "The amount of the first Standing Order"
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_3:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "The amount of the next Standing Order."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_4:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "The amount of the final Standing Order"
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_9:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Amount of money in the cash transaction entry."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBBankTransactionCodeStructure1:
      type: "object"
      required:
        - "Code"
        - "SubCode"
      description: "Set of elements used to fully identify the type of underlying transaction resulting in an entry."
      properties:
        Code:
          $ref: "#/components/schemas/ExternalBankTransactionFamily1Code"
        SubCode:
          $ref: "#/components/schemas/ExternalBankTransactionSubFamily1Code"
    OBBranchAndFinancialInstitutionIdentification5_0:
      type: "object"
      required:
        - "SchemeName"
        - "Identification"
      description: "Party that manages the account on behalf of the account owner, that is manages the registration and booking of entries on the account, calculates balances on the account and provides information about the account."
      properties:
        Name:
          description: "Name of Service User."
          type: "string"
          maxLength: 140
        SchemeName:
          $ref: "#/components/schemas/OBExternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_1"
    OBBranchAndFinancialInstitutionIdentification5_1:
      type: "object"
      required:
        - "SchemeName"
        - "Identification"
      description: "Party that manages the account on behalf of the account owner, that is manages the registration and booking of entries on the account, calculates balances on the account and provides information about the account.\nThis is the servicer of the beneficiary account."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_1"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress7"
        LEI:
          $ref: "#/components/schemas/LEI"
        Name:
          description: "Name by which an agent is known and which is usually used to identify that agent."
          type: "string"
          minLength: 1
          maxLength: 140
    OBBranchAndFinancialInstitutionIdentification6_1:
      type: "object"
      description: "Financial institution servicing an account for the creditor."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_2"
        Name:
          $ref: "#/components/schemas/Name_1"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress7"
    OBBranchAndFinancialInstitutionIdentification6_2:
      type: "object"
      description: "Financial institution servicing an account for the debtor."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_2"
        Name:
          $ref: "#/components/schemas/Name_1"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress7"
    OBCashAccount5_1:
      type: "object"
      required:
        - "SchemeName"
        - "Identification"
      description: "Provides the details to identify the beneficiary account."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalAccountIdentification4Code"
        Identification:
          description: "Beneficiary account identification."
          type: "string"
          minLength: 1
          maxLength: 256
        Name:
          $ref: "#/components/schemas/Name_0"
        SecondaryIdentification:
          $ref: "#/components/schemas/SecondaryIdentification"
        Proxy:
          $ref: "#/components/schemas/OBProxy1"
    OBCashAccount6_0:
      type: "object"
      description: "Unambiguous identification of the account of the creditor, in the case of a debit transaction."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalAccountIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_0"
        Name:
          $ref: "#/components/schemas/Name_0"
        SecondaryIdentification:
          $ref: "#/components/schemas/SecondaryIdentification"
        Proxy:
          $ref: "#/components/schemas/OBProxy1"
    OBCashAccount6_1:
      type: "object"
      description: "Unambiguous identification of the account of the debtor, in the case of a crebit transaction."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBInternalAccountIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_0"
        Name:
          $ref: "#/components/schemas/Name_0"
        SecondaryIdentification:
          $ref: "#/components/schemas/SecondaryIdentification"
        Proxy:
          $ref: "#/components/schemas/OBProxy1"
    OBCurrencyExchange5:
      type: "object"
      required:
        - "SourceCurrency"
        - "ExchangeRate"
      description: "Set of elements used to provide details on the currency exchange."
      properties:
        SourceCurrency:
          description: "Currency from which an amount is to be converted in a currency conversion."
          type: "string"
          pattern: "^[A-Z]{3,3}$"
          example: "EUR"
        TargetCurrency:
          description: "Currency into which an amount is to be converted in a currency conversion."
          type: "string"
          pattern: "^[A-Z]{3,3}$"
          example: "USD"
        UnitCurrency:
          description: "Currency in which the rate of exchange is expressed in a currency exchange. In the example 1GBP = xxxCUR, the unit currency is GBP."
          type: "string"
          pattern: "^[A-Z]{3,3}$"
          example: "USD"
        ExchangeRate:
          description: "Factor used to convert an amount from one currency into another. This reflects the price at which one currency was bought with another currency.\nUsage: ExchangeRate expresses the ratio between UnitCurrency and QuotedCurrency (ExchangeRate = UnitCurrency/QuotedCurrency)."
          type: "number"
          example: "1"
        ContractIdentification:
          description: "Unique identification to unambiguously identify the foreign exchange contract."
          type: "string"
          minLength: 1
          maxLength: 35
          example: "7774890001212"
        QuotationDate:
          description: "Date and time at which an exchange rate is quoted.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
          type: "string"
          format: "date-time"
        InstructedAmount:
          type: "object"
          required:
            - "Amount"
            - "Currency"
          description: "Amount of money to be moved between the debtor and creditor, before deduction of charges, expressed in the currency as ordered by the initiating party."
          properties:
            Amount:
              $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
            Currency:
              $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBError1:
      type: "object"
      properties:
        ErrorCode:
          $ref: "#/components/schemas/OBExternalStatusReason1Code"
        Message:
          description: "A description of the error that occurred. e.g., 'A mandatory field isn't supplied' or 'RequestedExecutionDateTime must be in future'\nOBIE doesn't standardise this field"
          type: "string"
          minLength: 1
          maxLength: 500
          example: "This action is not allowed on the account type in the request"
        Path:
          description: "Recommended but optional reference to the JSON Path of the field with error, e.g., Data.Initiation.InstructedAmount.Currency"
          type: "string"
          minLength: 1
          maxLength: 500
        Url:
          description: "URL to help remediate the problem, or provide more information, or to API Reference, or help etc"
          type: "string"
      required:
        - "ErrorCode"
        - "Message"
      additionalProperties: false
      minProperties: 1
    OBErrorResponse1:
      description: "An array of detail error codes, and messages, and URLs to documentation to help remediation."
      type: "object"
      properties:
        Code:
          description: "High level textual error code, to help categorize the errors."
          type: "string"
          minLength: 1
          maxLength: 40
          example: "ABC"
        Id:
          description: "A unique reference for the error instance, for audit purposes, in case of unknown/unclassified errors."
          type: "string"
          minLength: 1
          maxLength: 40
          example: "1ec1bb5f-0dbd-46b9-a9eb-fa49a4e38315"
        Message:
          description: "Brief Error message, e.g., 'There is something wrong with the request parameters provided'"
          type: "string"
          minLength: 1
          maxLength: 500
          example: "test error message"
        Errors:
          items:
            $ref: "#/components/schemas/OBError1"
          type: "array"
          minItems: 1
      required:
        - "Code"
        - "Message"
        - "Errors"
      additionalProperties: false
    OBExternalAccountRole1Code:
      description: "A party’s role with respect to the related account."
      type: "string"
      enum:
        - "UK.OBIE.Administrator"
        - "UK.OBIE.Beneficiary"
        - "UK.OBIE.CustodianForMinor"
        - "UK.OBIE.Granter"
        - "UK.OBIE.LegalGuardian"
        - "UK.OBIE.OtherParty"
        - "UK.OBIE.PowerOfAttorney"
        - "UK.OBIE.Principal"
        - "UK.OBIE.Protector"
        - "UK.OBIE.RegisteredShareholderName"
        - "UK.OBIE.SecondaryOwner"
        - "UK.OBIE.SeniorManagingOfficial"
        - "UK.OBIE.Settlor"
        - "UK.OBIE.SuccessorOnDeath"
      example: "UK.OBIE.Administrator"
    OBExternalFinancialInstitutionIdentification4Code:
      description: "Name of the identification scheme, in a coded form as published in an external list."
      type: "string"
      example: "UK.OBIE.BICFI"
      enum:
        - "UK.OBIE.BICFI"
    OBExternalSwitchStatusCode:
      description: "Specifies the switch status for the account, in a coded form."
      type: "string"
      example: "UK.CASS.NotSwitched"
      enum:
        - "UK.CASS.NotSwitched"
        - "UK.CASS.SwitchCompleted"
    OBExternalLegalStructureType1Code:
      description: "Legal standing of the party."
      type: "string"
      example: "UK.OBIE.CI"
      enum:
        - "UK.OBIE.CIC"
        - "UK.OBIE.CIO"
        - "UK.OBIE.Charity"
        - "UK.OBIE.CoOp"
        - "UK.OBIE.GeneralPartnership"
        - "UK.OBIE.Individual"
        - "UK.OBIE.LimitedLiabilityPartnership"
        - "UK.OBIE.LimitedPartnership"
        - "UK.OBIE.PrivateLimitedCompany"
        - "UK.OBIE.PublicLimitedCompany"
        - "UK.OBIE.ScottishLimitedPartnership"
        - "UK.OBIE.Sole"
    OBMerchantDetails1:
      type: "object"
      description: "Details of the merchant involved in the transaction."
      properties:
        MerchantName:
          description: "Name by which the merchant is known."
          type: "string"
          minLength: 1
          maxLength: 350
          example: "TDG00231"
        MerchantCategoryCode:
          description: "Category code conform to ISO 18245, related to the type of services or goods the merchant provides for the transaction."
          type: "string"
          minLength: 3
          maxLength: 4
          example: "18245"
    OBReadAccount6:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          properties:
            Account:
              type: "array"
              items:
                $ref: "#/components/schemas/OBAccount6"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadParty3:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          properties:
            Party:
              type: "array"
              items:
                $ref: "#/components/schemas/OBParty2"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadBalance1:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          required:
            - "Balance"
          properties:
            Balance:
              type: "array"
              items:
                type: "object"
                description: "Set of elements used to define the balance details."
                required:
                  - "AccountId"
                  - "CreditDebitIndicator"
                  - "Type"
                  - "DateTime"
                  - "Amount"
                properties:
                  AccountId:
                    $ref: "#/components/schemas/AccountId"
                  CreditDebitIndicator:
                    $ref: "#/components/schemas/OBInternalCreditDebitCode"
                  Type:
                    $ref: "#/components/schemas/ExternalBalanceType1Code"
                  DateTime:
                    description: "Indicates the date (and time) of the balance.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
                    type: "string"
                    format: "date-time"
                    example: "2017-04-05T10:43:07+00:00"
                  Amount:
                    type: "object"
                    required:
                      - "Amount"
                      - "Currency"
                    description: "Amount of money of the cash balance."
                    properties:
                      Amount:
                        $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
                      Currency:
                        $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
                      SubType:
                        $ref: "#/components/schemas/ExternalBalanceSubType1Code"
                  CreditLine:
                    type: "array"
                    items:
                      type: "object"
                      description: "Set of elements used to provide details on the credit line."
                      required:
                        - "Included"
                      properties:
                        Included:
                          description: "Indicates whether or not the credit line is included in the balance of the account.\nUsage: If not present, credit line is not included in the balance amount of the account."
                          type: "boolean"
                          example: "True"
                        Type:
                          $ref: "#/components/schemas/OBInternalLimitType1Code"
                        Amount:
                          type: "object"
                          required:
                            - "Amount"
                            - "Currency"
                          description: "Amount of money of the credit line."
                          properties:
                            Amount:
                              $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
                            Currency:
                              $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
                  LocalAmount:
                    $ref: "#/components/schemas/LocalAmount"
                  TotalValue:
                    $ref: "#/components/schemas/TotalValue"
              minItems: 1
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadConsent1:
      type: "object"
      required:
        - "Data"
        - "Risk"
      properties:
        Data:
          type: "object"
          required:
            - "Permissions"
          properties:
            Permissions:
              type: "array"
              items:
                description: "Specifies the Open Banking account access data types. This is a list of the data clusters being consented by the PSU, and requested for authorisation with the ASPSP."
                type: "string"
                enum:
                  - "ReadAccountsBasic"
                  - "ReadAccountsDetail"
                  - "ReadBalances"
                  - "ReadDirectDebits"
                  - "ReadPAN"
                  - "ReadScheduledPaymentsBasic"
                  - "ReadScheduledPaymentsDetail"
                  - "ReadStandingOrdersBasic"
                  - "ReadStandingOrdersDetail"
                  - "ReadTransactionsBasic"
                  - "ReadTransactionsCredits"
                  - "ReadTransactionsDebits"
                  - "ReadTransactionsDetail"
                  - "ReadBeneficiariesBasic"
                  - "ReadBeneficiariesDetail"
                  - "ReadProducts"
                  - "ReadParty"
              minItems: 1
            ExpirationDateTime:
              description: "Specified date and time the permissions will expire.\nIf this is not populated, the permissions will be open ended.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
              type: "string"
              format: "date-time"
              example: "2017-04-05T10:43:07+00:00"
            TransactionFromDateTime:
              description: "Specified start date and time for the transaction query period.\nIf this is not populated, the start date will be open ended, and data will be returned from the earliest available transaction.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
              type: "string"
              format: "date-time"
              example: "2017-04-05T10:43:07+00:00"
            TransactionToDateTime:
              description: "Specified end date and time for the transaction query period.\nIf this is not populated, the end date will be open ended, and data will be returned to the latest available transaction.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
              type: "string"
              format: "date-time"
              example: "2017-04-05T10:43:07+00:00"
        Risk:
          $ref: "#/components/schemas/OBRisk2"
      additionalProperties: false
    OBReadConsentResponse1:
      type: "object"
      required:
        - "Data"
        - "Risk"
      properties:
        Data:
          type: "object"
          required:
            - "ConsentId"
            - "CreationDateTime"
            - "Status"
            - "StatusUpdateDateTime"
            - "Permissions"
          properties:
            ConsentId:
              description: "Unique identification as assigned to identify the account access consent resource."
              type: "string"
              minLength: 1
              maxLength: 128
              example: "699588e-b5c9-48d5-b0fc-00d52b229f7d"
            CreationDateTime:
              $ref: "#/components/schemas/CreationDateTime"
            Status:
              $ref: "#/components/schemas/OBInternalConsentStatus1Code"
            StatusUpdateDateTime:
              $ref: "#/components/schemas/StatusUpdateDateTime"
            Permissions:
              type: "array"
              items:
                description: "Specifies the Open Banking account access data types. This is a list of the data clusters being consented by the PSU, and requested for authorisation with the ASPSP."
                type: "string"
                enum:
                  - "ReadAccountsBasic"
                  - "ReadAccountsDetail"
                  - "ReadBalances"
                  - "ReadDirectDebits"
                  - "ReadPAN"
                  - "ReadScheduledPaymentsBasic"
                  - "ReadScheduledPaymentsDetail"
                  - "ReadStandingOrdersBasic"
                  - "ReadStandingOrdersDetail"
                  - "ReadTransactionsBasic"
                  - "ReadTransactionsCredits"
                  - "ReadTransactionsDebits"
                  - "ReadTransactionsDetail"
                  - "ReadBeneficiariesBasic"
                  - "ReadBeneficiariesDetail"
                  - "ReadProducts"
                  - "ReadParty"
              minItems: 1
            ExpirationDateTime:
              description: "Specified date and time the permissions will expire.\nIf this is not populated, the permissions will be open ended.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
              type: "string"
              format: "date-time"
              example: "2017-04-05T10:43:07+00:00"
            TransactionFromDateTime:
              description: "Specified start date and time for the transaction query period.\nIf this is not populated, the start date will be open ended, and data will be returned from the earliest available transaction.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
              type: "string"
              format: "date-time"
              example: "2017-04-05T10:43:07+00:00"
            TransactionToDateTime:
              description: "Specified end date and time for the transaction query period.\nIf this is not populated, the end date will be open ended, and data will be returned to the latest available transaction.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
              type: "string"
              format: "date-time"
              example: "2017-04-05T10:43:07+00:00"
        Risk:
          $ref: "#/components/schemas/OBRisk2"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadDataTransaction6:
      type: "object"
      properties:
        Transaction:
          type: "array"
          items:
            $ref: "#/components/schemas/OBTransaction6"
      additionalProperties: false
    OBReadDirectDebit2:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          properties:
            DirectDebit:
              type: "array"
              items:
                type: "object"
                description: "Account to or from which a cash entry is made."
                required:
                  - "AccountId"
                  - "Name"
                properties:
                  AccountId:
                    $ref: "#/components/schemas/AccountId"
                  DirectDebitId:
                    $ref: "#/components/schemas/DirectDebitId"
                  DirectDebitStatusCode:
                    $ref: "#/components/schemas/ExternalMandateStatus1Code"
                  Name:
                    $ref: "#/components/schemas/Name_2"
                  PreviousPaymentDateTime:
                    $ref: "#/components/schemas/PreviousPaymentDateTime"
                  Frequency:
                    description: "Regularity with which direct debit instructions are to be created and processed."
                    type: "string"
                    enum:
                      - "UK.OBIE.Annual"
                      - "UK.OBIE.Daily"
                      - "UK.OBIE.Fortnightly"
                      - "UK.OBIE.HalfYearly"
                      - "UK.OBIE.Monthly"
                      - "UK.OBIE.NotKnown"
                      - "UK.OBIE.Quarterly"
                      - "UK.OBIE.Weekly"
                  PreviousPaymentAmount:
                    $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_0"
                  MandateRelatedInformation:
                    $ref: "#/components/schemas/OBMandateRelatedInformation1_0"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadScheduledPayment3:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          properties:
            ScheduledPayment:
              type: "array"
              items:
                $ref: "#/components/schemas/OBScheduledPayment3"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadStandingOrder6:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          properties:
            StandingOrder:
              type: "array"
              items:
                $ref: "#/components/schemas/OBStandingOrder6"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadTransaction6:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          $ref: "#/components/schemas/OBReadDataTransaction6"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBRisk2:
      description: "The Risk section is sent by the initiating party to the ASPSP. It is used to specify additional details for risk scoring for Account Info."
      type: "object"
      properties: { }
      additionalProperties: false
    OBScheduledPayment3:
      type: "object"
      required:
        - "AccountId"
        - "ScheduledPaymentDateTime"
        - "ScheduledType"
        - "InstructedAmount"
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        ScheduledPaymentId:
          $ref: "#/components/schemas/ScheduledPaymentId"
        ScheduledPaymentDateTime:
          $ref: "#/components/schemas/ScheduledPaymentDateTime"
        ScheduledType:
          $ref: "#/components/schemas/OBInternalScheduleType1Code"
        Reference:
          $ref: "#/components/schemas/Reference"
        DebtorReference:
          $ref: "#/components/schemas/DebtorReference"
        InstructedAmount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_1"
        CreditorAgent:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification5_1"
        CreditorAccount:
          $ref: "#/components/schemas/OBCashAccount5_1"
      additionalProperties: false
    OBStandingOrder6:
      type: "object"
      required:
        - "AccountId"
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        StandingOrderId:
          $ref: "#/components/schemas/StandingOrderId"
        Reference:
          $ref: "#/components/schemas/Reference"
        NextPaymentDateTime:
          $ref: "#/components/schemas/NextPaymentDateTime"
        LastPaymentDateTime:
          $ref: "#/components/schemas/LastPaymentDateTime"
        NumberOfPayments:
          $ref: "#/components/schemas/NumberOfPayments"
        StandingOrderStatusCode:
          $ref: "#/components/schemas/ExternalMandateStatus1Code"
        FirstPaymentAmount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_2"
        NextPaymentAmount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_3"
        LastPaymentAmount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_11"
        FinalPaymentAmount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_4"
        CreditorAgent:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification5_1"
        CreditorAccount:
          $ref: "#/components/schemas/OBCashAccount5_1"
        MandateRelatedInformation:
          $ref: "#/components/schemas/OBMandateRelatedInformation1_1"
        RemittanceInformation:
            $ref: "#/components/schemas/OBRemittanceInformation2"
        SupplementaryData:
          $ref: "#/components/schemas/OBSupplementaryData1"
      additionalProperties: false
    OBSupplementaryData1:
      type: "object"
      properties: { }
      additionalProperties: true
      description: "Additional information that can not be captured in the structured fields and/or any other specific block."
    OBTransaction6:
      type: "object"
      description: "Provides further details on an entry in the report."
      required:
        - "AccountId"
        - "CreditDebitIndicator"
        - "Status"
        - "BookingDateTime"
        - "Amount"
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        TransactionId:
          $ref: "#/components/schemas/TransactionId"
        TransactionReference:
          $ref: "#/components/schemas/TransactionReference"
        StatementReference:
          type: "array"
          items:
            $ref: "#/components/schemas/StatementReference"
        CreditDebitIndicator:
          $ref: "#/components/schemas/OBInternalCreditDebitCode"
        Status:
          $ref: "#/components/schemas/ExternalEntryStatus1Code"
        TransactionMutability:
          $ref: "#/components/schemas/OBInternalTransactionMutability1Code"
        BookingDateTime:
          $ref: "#/components/schemas/BookingDateTime"
        ValueDateTime:
          $ref: "#/components/schemas/ValueDateTime"
        TransactionInformation:
          $ref: "#/components/schemas/TransactionInformation"
        AddressLine:
          $ref: "#/components/schemas/AddressLine"
        Amount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_9"
        ChargeAmount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_10"
        CurrencyExchange:
          $ref: "#/components/schemas/OBCurrencyExchange5"
        BankTransactionCode:
          $ref: "#/components/schemas/OBBankTransactionCodeStructure1"
        ProprietaryBankTransactionCode:
          $ref: "#/components/schemas/ProprietaryBankTransactionCodeStructure1"
        Balance:
          $ref: "#/components/schemas/OBTransactionCashBalance"
        MerchantDetails:
          $ref: "#/components/schemas/OBMerchantDetails1"
        CreditorAgent:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification6_1"
        CreditorAccount:
          $ref: "#/components/schemas/OBCashAccount6_0"
        DebtorAgent:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification6_2"
        DebtorAccount:
          $ref: "#/components/schemas/OBCashAccount6_1"
        CardInstrument:
          $ref: "#/components/schemas/OBTransactionCardInstrument1"
        SupplementaryData:
          $ref: "#/components/schemas/OBSupplementaryData1"
        UltimateDebtor:
          $ref: "#/components/schemas/OBUltimateDebtor1"
        UltimateCreditor:
          $ref: "#/components/schemas/OBUltimateCreditor1"
        CategoryPurposeCode:
          $ref: "#/components/schemas/ExternalCategoryPurpose1Code"
      additionalProperties: false
    OBTransactionCardInstrument1:
      type: "object"
      required:
        - "CardSchemeName"
      description: "Set of elements to describe the card instrument used in the transaction."
      properties:
        CardSchemeName:
          $ref: "#/components/schemas/OBInternalCardSchemeType1Code"
        AuthorisationType:
          $ref: "#/components/schemas/OBInternalCardAuthorisationType1Code"
        Name:
          description: "Name of the cardholder using the card instrument."
          type: "string"
          minLength: 1
          maxLength: 70
        Identification:
          description: "Identification assigned by an institution to identify the card instrument used in the transaction. This identification is known by the account owner, and may be masked."
          type: "string"
          minLength: 1
          maxLength: 34
      additionalProperties: false
    OBTransactionCashBalance:
      type: "object"
      required:
        - "CreditDebitIndicator"
        - "Type"
        - "Amount"
      description: "Set of elements used to define the balance as a numerical representation of the net increases and decreases in an account after a transaction entry is applied to the account."
      properties:
        CreditDebitIndicator:
          $ref: "#/components/schemas/OBInternalCreditDebitCode"
        Type:
          $ref: "#/components/schemas/ExternalBalanceType1Code"
        Amount:
          type: "object"
          required:
            - "Amount"
            - "Currency"
          description: "Amount of money of the cash balance after a transaction entry is applied to the account.."
          properties:
            Amount:
              $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
            Currency:
              $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
      additionalProperties: false
    OB_Amount1_0:
      description: "Cap amount charged for a fee/charge"
      type: "string"
      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
      example: "10"
    OB_Amount1_1:
      description: "Every additional tranche of an overdraft balance to which an overdraft fee is applied"
      type: "string"
      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
      example: "10"
    OB_Amount1_2:
      description: "Amount charged for an overdraft fee/charge (where it is charged in terms of an amount rather than a rate)"
      type: "string"
      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
      example: "10"
    OB_Amount1_3:
      description: "Fee Amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
      type: "string"
      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
      example: "10"
    OB_Amount1_4:
      description: "Cap amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
      type: "string"
      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
      example: "10"
    OB_FeeCategory1Code:
      description: "Categorisation of fees and charges into standard categories."
      type: "string"
      example: "FCSV"
      enum:
        - "FCOT"
        - "FCRE"
        - "FCSV"
    OB_FeeFrequency1Code_0:
      description: "Frequency at which the overdraft charge is applied to the account"
      type: "string"
      example: "FEAC"
      enum:
        - "FEAC"
        - "FEAO"
        - "FECP"
        - "FEDA"
        - "FEHO"
        - "FEI"
        - "FEMO"
        - "FEOA"
        - "FEOT"
        - "FEPC"
        - "FEPH"
        - "FEPO"
        - "FEPS"
        - "FEPT"
        - "FEPTA"
        - "FEPTP"
        - "FEQU"
        - "FESM"
        - "FEST"
        - "FEWE"
        - "FEYE"
    OB_FeeFrequency1Code_1:
      description: "How often is the overdraft fee/charge calculated for the account."
      type: "string"
      example: "FEAC"
      enum:
        - "FEAC"
        - "FEAO"
        - "FECP"
        - "FEDA"
        - "FEHO"
        - "FEI"
        - "FEMO"
        - "FEOA"
        - "FEOT"
        - "FEPC"
        - "FEPH"
        - "FEPO"
        - "FEPS"
        - "FEPT"
        - "FEPTA"
        - "FEPTP"
        - "FEQU"
        - "FESM"
        - "FEST"
        - "FEWE"
        - "FEYE"
    OB_FeeFrequency1Code_2:
      description: "How frequently the fee/charge is applied to the account"
      type: "string"
      example: "FEAC"
      enum:
        - "FEAC"
        - "FEAO"
        - "FECP"
        - "FEDA"
        - "FEHO"
        - "FEI"
        - "FEMO"
        - "FEOA"
        - "FEOT"
        - "FEPC"
        - "FEPH"
        - "FEPO"
        - "FEPS"
        - "FEPT"
        - "FEPTA"
        - "FEPTP"
        - "FEQU"
        - "FESM"
        - "FEST"
        - "FEWE"
        - "FEYE"
    OB_FeeFrequency1Code_3:
      description: "How frequently the fee/charge is calculated"
      type: "string"
      example: "FEAC"
      enum:
        - "FEAC"
        - "FEAO"
        - "FECP"
        - "FEDA"
        - "FEHO"
        - "FEI"
        - "FEMO"
        - "FEOA"
        - "FEOT"
        - "FEPC"
        - "FEPH"
        - "FEPO"
        - "FEPS"
        - "FEPT"
        - "FEPTA"
        - "FEPTP"
        - "FEQU"
        - "FESM"
        - "FEST"
        - "FEWE"
        - "FEYE"
    OB_FeeFrequency1Code_4:
      description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
      type: "string"
      example: "FEAC"
      enum:
        - "FEAC"
        - "FEAO"
        - "FECP"
        - "FEDA"
        - "FEHO"
        - "FEI"
        - "FEMO"
        - "FEOA"
        - "FEOT"
        - "FEPC"
        - "FEPH"
        - "FEPO"
        - "FEPS"
        - "FEPT"
        - "FEPTA"
        - "FEPTP"
        - "FEQU"
        - "FESM"
        - "FEST"
        - "FEWE"
        - "FEYE"
    OB_FeeType1Code:
      description: "Fee/Charge Type"
      type: "string"
      example: "FEPF"
      enum:
        - "FEPF"
        - "FTOT"
        - "FYAF"
        - "FYAM"
        - "FYAQ"
        - "FYCP"
        - "FYDB"
        - "FYMI"
        - "FYXX"
    OB_InterestCalculationMethod1Code:
      description: "Methods of calculating interest"
      type: "string"
      example: "ITCO"
      enum:
        - "ITCO"
        - "ITOT"
        - "ITSI"
    OB_InterestFixedVariableType1Code:
      description: "Type of interest rate, Fixed or Variable"
      type: "string"
      example: "INFI"
      enum:
        - "INFI"
        - "INVA"
    OB_InterestRateType1Code_0:
      description: "Rate type for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
      type: "string"
      example: "INBB"
      enum:
        - "INBB"
        - "INFR"
        - "INGR"
        - "INLR"
        - "INNE"
        - "INOT"
    OB_InterestRateType1Code_1:
      description: "Rate type for Fee/Charge (where it is charged in terms of a rate rather than an amount)"
      type: "string"
      example: "INOT"
      enum:
        - "INBB"
        - "INFR"
        - "INGR"
        - "INLR"
        - "INNE"
        - "INOT"
    OB_MinMaxType1Code:
      description: "Min Max type"
      type: "string"
      example: "FMMX"
      enum:
        - "FMMN"
        - "FMMX"
    OB_OtherCodeType1_1:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other application frequencies that are not available in the standard code list"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherCodeType1_2:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other calculation frequency which is not available in the standard code set."
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherCodeType1_3:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other Fee type which is not available in the standard code set"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherCodeType1_4:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other fee rate type code which is not available in the standard code set"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherCodeType1_5:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other fee rate type which is not in the standard rate type list"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherCodeType1_6:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other application frequencies not covered in the standard code list"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherCodeType1_7:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other calculation frequency which is not available in standard code set."
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherCodeType1_8:
      type: "object"
      required:
        - "Name"
        - "Description"
      description: "Other fee rate type which is not available in the standard code set"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OtherFeeChargeDetailType:
      type: "object"
      required:
        - "FeeCategory"
        - "Name"
        - "Description"
      description: "Other Fee/charge type which is not available in the standard code set"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        FeeCategory:
          $ref: "#/components/schemas/OB_FeeCategory1Code"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OB_OverdraftFeeType1Code:
      description: "Overdraft fee type"
      type: "string"
      example: "FTUT"
      enum:
        - "FBAO"
        - "FBAR"
        - "FBEB"
        - "FBIT"
        - "FBOR"
        - "FBOS"
        - "FBSC"
        - "FBTO"
        - "FBUB"
        - "FBUT"
        - "FTOT"
        - "FTUT"
    OB_Period1Code:
      description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
      type: "string"
      example: "PYER"
      enum:
        - "PACT"
        - "PDAY"
        - "PHYR"
        - "PMTH"
        - "PQTR"
        - "PWEK"
        - "PYER"
    OB_Rate1_0:
      description: "Rate charged for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
      type: "string"
      pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
      example: "0"
    OB_Rate1_1:
      description: "Rate charged for Fee/Charge (where it is charged in terms of a rate rather than an amount)"
      type: "string"
      pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
      example: "0"
    OpeningDate:
      description: "Date on which the account and related basic services are effectively operational for the account owner.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T00:00:00+00:00"
    PreviousPaymentDateTime:
      description: "Date of most recent direct debit collection.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T00:00:00+00:00"
    ProprietaryBankTransactionCodeStructure1:
      type: "object"
      required:
        - "Code"
      description: "Set of elements to fully identify a proprietary bank transaction code."
      properties:
        Code:
          description: "Proprietary bank transaction code to identify the underlying transaction.
          Populated with the following values for Current Account and Savings Account:
              ))) - Contactless debit card payment
              ATM - Cash machine
              BP - Bill payment
              CHQ - Cheque
              CR - Credit
              DD - Direct Debit or other BACS debit
              DIV - Dividend
              DR – Debit
              OBP - Open Banking Payment
              OBT - Open Banking Transfer (me to me)
              PYM - Paym
              SO - Standing order
              TFR - Transfer
              VIS – Visa
          Populated with the following values for Credit Cards:
              MAIL_ORDER_OR_TELEPHONE_ORDER_PURCH
              ONLINE_PURCHASE
              CONTACTLESS_PURCHASE
              OTHER_PURCHASE
              ATM_CASH_WITHDRAWAL
              OTHER_CASH_WITHDRAWAL
              PAYMENT
              FEES
              INTEREST
              RETURNS_OR_REFUNDS
              OTHER_TRANSACTIONS"
          type: "string"
          minLength: 1
          maxLength: 35
          example: "SGDI"
        Issuer:
          description: "Identification of the issuer of the proprietary bank transaction code."
          type: "string"
          minLength: 1
          maxLength: 35
          example: "NBP"
      additionalProperties: false
    Reference:
      description: "Unique reference, as assigned by the creditor, to unambiguously refer to the payment transaction.\nUsage: If available, the initiating party should provide this reference in the structured remittance information, to enable reconciliation by the creditor upon receipt of the amount of money.\nIf the business context requires the use of a creditor reference or a payment remit identification, and only one identifier can be passed through the end-to-end chain, the creditor's reference or payment remittance identification should be quoted in the end-to-end transaction identification."
      type: "string"
      minLength: 1
      maxLength: 35
    ScheduledPaymentDateTime:
      description: "The date on which the scheduled payment will be made.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T00:00:00+00:00"
    ScheduledPaymentId:
      description: "A unique and immutable identifier used to identify the scheduled payment resource. This identifier has no meaning to the account owner."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "ScheduledPaymentId"
    SecondaryIdentification:
      description: "This is secondary identification of the account, as assigned by the account servicing institution. \nThis can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination)."
      type: "string"
      minLength: 1
      maxLength: 34
      example: "4941202460847847"
    StandingOrderId:
      description: "A unique and immutable identifier used to identify the standing order resource. This identifier has no meaning to the account owner."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "StandingOrderId"
    StatementReference:
      description: "Unique reference for the statement. This reference may be optionally populated if available."
      type: "string"
      minLength: 1
      maxLength: 35
    StatusUpdateDateTime:
      description: "Date and time at which the resource status was updated.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
      example: "2023-01-04T00:00:00+00:00"
    TransactionId:
      description: "Unique identifier for the transaction within an servicing institution. This identifier is both unique and immutable. Note: For credit card transactions, which incur a fee (for example ATM withdrawal, foreign currency transaction), the transaction and the corresponding fee will have the same transaction ID"
      type: "string"
      minLength: 1
      maxLength: 210
      example: "0432023004141005879040000-0326P10000000000000010000000000000010000000000OBP"
    TransactionInformation:
      description: "Further details of the transaction. \nThis is the transaction narrative, which is unstructured text."
      type: "string"
      minLength: 1
      maxLength: 500
    TransactionReference:
      description: "Unique reference for the transaction. This reference is optionally populated, and may as an example be the FPID in the Faster Payments context. Acquirer Reference Number (for Credit Cards)"
      type: "string"
      minLength: 1
      maxLength: 210
    ValueDateTime:
      description: "Date and time at which assets become available to the account owner in case of a credit entry, or cease to be available to the account owner in case of a debit transaction entry.\nUsage: If transaction entry status is pending and value date is present, then the value date refers to an expected/requested value date.\nFor transaction entries subject to availability/float and for which availability information is provided, the value date must not be used. In this case the availability component identifies the number of availability days.All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00"
      type: "string"
      format: "date-time"
    OBReadProduct2:
      type: "object"
      required:
        - "Data"
      description: "Product details of Other Product which is not avaiable in the standard list"
      properties:
        Data:
          type: "object"
          description: "Aligning with the read write specs structure."
          properties:
            Product:
              type: "array"
              items:
                type: "object"
                description: "Product details associated with the Account"
                required:
                  - "AccountId"
                  - "ProductType"
                properties:
                  ProductName:
                    description: "The name of the Product used for marketing purposes from a customer perspective. I.e. what the customer would recognise."
                    type: "string"
                    minLength: 1
                    maxLength: 350
                    example: "CurrentAccount"
                  ProductId:
                    description: "The unique ID that has been internally assigned by the financial institution to each of the current account banking products they market to their retail and/or small to medium enterprise (SME) customers."
                    type: "string"
                    minLength: 1
                    maxLength: 40
                    example: "test ID"
                  AccountId:
                    $ref: "#/components/schemas/AccountId"
                  SecondaryProductId:
                    description: "Any secondary Identification which  supports Product Identifier to uniquely identify the current account banking products."
                    type: "string"
                    minLength: 1
                    maxLength: 70
                    example: "secondary Product value"
                  ProductType:
                    $ref: "#/components/schemas/OBInternalProductType1Code"
                  MarketingStateId:
                    description: "Unique and unambiguous identification of a  Product Marketing State."
                    type: "string"
                    minLength: 1
                    maxLength: 35
                    example: "5d6b9480-44d5-4c72-8dc5-3ae24f510b7d"
                  OtherProductType:
                    type: "object"
                    required:
                      - "Name"
                      - "Description"
                    description: "Other product type details associated with the account."
                    properties:
                      Name:
                        description: "Long name associated with the product"
                        type: "string"
                        minLength: 1
                        maxLength: 350
                        example: "test name"
                      Description:
                        description: "Description of the Product associated with the account"
                        type: "string"
                        minLength: 1
                        maxLength: 350
                      ProductDetails:
                        type: "object"
                        properties:
                          Segment:
                            type: "array"
                            items:
                              description: "Market segmentation is a marketing term referring to the aggregating of prospective buyers into groups, or segments, that have common needs and respond similarly to a marketing action. Market segmentation enables companies to target different categories of consumers who perceive the full value of certain products and services differently from one another.\nRead more: Market Segmentation http://www.investopedia.com/terms/m/marketsegmentation.asp#ixzz4gfEEalTd "
                              type: "string"
                              enum:
                                - "GEAS"
                                - "GEBA"
                                - "GEBR"
                                - "GEBU"
                                - "GECI"
                                - "GECS"
                                - "GEFB"
                                - "GEFG"
                                - "GEG"
                                - "GEGR"
                                - "GEGS"
                                - "GEOT"
                                - "GEOV"
                                - "GEPA"
                                - "GEPR"
                                - "GERE"
                                - "GEST"
                                - "GEYA"
                                - "GEYO"
                                - "PSCA"
                                - "PSES"
                                - "PSNC"
                                - "PSNP"
                                - "PSRG"
                                - "PSSS"
                                - "PSST"
                                - "PSSW"
                          FeeFreeLength:
                            description: "The length/duration of the fee free period"
                            type: "integer"
                          FeeFreeLengthPeriod:
                            description: "The unit of period (days, weeks, months etc.) of the promotional length"
                            type: "string"
                            enum:
                              - "PACT"
                              - "PDAY"
                              - "PHYR"
                              - "PMTH"
                              - "PQTR"
                              - "PWEK"
                              - "PYER"
                          MonthlyMaximumCharge:
                            description: "The maximum relevant charges that could accrue as defined fully in Part 7 of the CMA order"
                            type: "string"
                            pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          Notes:
                            type: "array"
                            items:
                              description: "Optional additional notes to supplement the Core product details"
                              type: "string"
                              minLength: 1
                              maxLength: 2000
                          OtherSegment:
                            $ref: "#/components/schemas/OB_OtherCodeType1_0"
                      CreditInterest:
                        type: "object"
                        required:
                          - "TierBandSet"
                        description: "Details about the interest that may be payable to the Account holders"
                        properties:
                          TierBandSet:
                            type: "array"
                            items:
                              type: "object"
                              description: "The group of tiers or bands for which credit interest can be applied."
                              required:
                                - "TierBandMethod"
                                - "Destination"
                                - "TierBand"
                              properties:
                                TierBandMethod:
                                  description: "The methodology of how credit interest is paid/applied. It can be:-\n1. Banded\nInterest rates are banded. i.e. Increasing rate on whole balance as balance increases.\n2. Tiered\nInterest rates are tiered. i.e. increasing rate for each tier as balance increases, but interest paid on tier fixed for that tier and not on whole balance.\n3. Whole\nThe same interest rate is applied irrespective of the product holder's account balance"
                                  type: "string"
                                  example: "INBA"
                                  enum:
                                    - "INBA"
                                    - "INTI"
                                    - "INWH"
                                CalculationMethod:
                                  $ref: "#/components/schemas/OB_InterestCalculationMethod1Code"
                                Destination:
                                  description: "Describes whether accrued interest is payable only to the BCA or to another bank account"
                                  type: "string"
                                  example: "INOT"
                                  enum:
                                    - "INOT"
                                    - "INPA"
                                    - "INSC"
                                Notes:
                                  type: "array"
                                  items:
                                    description: "Optional additional notes to supplement the Tier Band Set details"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 2000
                                OtherCalculationMethod:
                                  $ref: "#/components/schemas/OB_OtherCodeType1_0"
                                OtherDestination:
                                  $ref: "#/components/schemas/OB_OtherCodeType1_0"
                                TierBand:
                                  type: "array"
                                  items:
                                    type: "object"
                                    description: "Tier Band Details"
                                    required:
                                      - "TierValueMinimum"
                                      - "ApplicationFrequency"
                                      - "FixedVariableInterestRateType"
                                      - "AER"
                                    properties:
                                      Identification:
                                        description: "Unique and unambiguous identification of a  Tier Band for the Product."
                                        type: "string"
                                        minLength: 1
                                        maxLength: 35
                                        example: "test value"
                                      TierValueMinimum:
                                        description: "Minimum deposit value for which the credit interest tier applies."
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "test value"
                                      TierValueMaximum:
                                        description: "Maximum deposit value for which the credit interest tier applies."
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "test value"
                                      CalculationFrequency:
                                        description: "How often is credit interest calculated for the account."
                                        type: "string"
                                        example: "test value"
                                        enum:
                                          - "FQAT"
                                          - "FQDY"
                                          - "FQHY"
                                          - "FQMY"
                                          - "FQOT"
                                          - "FQQY"
                                          - "FQSD"
                                          - "FQWY"
                                          - "FQYY"
                                      ApplicationFrequency:
                                        description: "How often is interest applied to the Product for this tier/band i.e. how often the financial institution pays accumulated interest to the customer's account."
                                        type: "string"
                                        example: "FQAT"
                                        enum:
                                          - "FQAT"
                                          - "FQDY"
                                          - "FQHY"
                                          - "FQMY"
                                          - "FQOT"
                                          - "FQQY"
                                          - "FQSD"
                                          - "FQWY"
                                          - "FQYY"
                                      DepositInterestAppliedCoverage:
                                        description: "Amount on which Interest applied."
                                        type: "string"
                                        example: "INBA"
                                        enum:
                                          - "INBA"
                                          - "INTI"
                                          - "INWH"
                                      FixedVariableInterestRateType:
                                        $ref: "#/components/schemas/OB_InterestFixedVariableType1Code"
                                      AER:
                                        description: "The annual equivalent rate (AER) is interest that is calculated under the assumption that any interest paid is combined with the original balance and the next interest payment will be based on the slightly higher account balance. Overall, this means that interest can be compounded several times in a year depending on the number of times that interest payments are made. \nRead more: Annual Equivalent Rate (AER) http://www.investopedia.com/terms/a/aer.asp#ixzz4gfR7IO1A"
                                        type: "string"
                                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "test value"
                                      BankInterestRateType:
                                        description: "Interest rate types, other than AER, which financial institutions may use to describe the annual interest rate payable to the account holder's account."
                                        type: "string"
                                        example: "INBB"
                                        enum:
                                          - "INBB"
                                          - "INFR"
                                          - "INGR"
                                          - "INLR"
                                          - "INNE"
                                          - "INOT"
                                      BankInterestRate:
                                        description: "Bank Interest for the product"
                                        type: "string"
                                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "test value"
                                      Notes:
                                        type: "array"
                                        items:
                                          description: "Optional additional notes to supplement the Tier Band details"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 2000
                                      OtherBankInterestType:
                                        type: "object"
                                        required:
                                          - "Name"
                                          - "Description"
                                        description: "Other interest rate types which are not available in the standard code list"
                                        properties:
                                          Code:
                                            $ref: "#/components/schemas/OB_CodeMnemonic"
                                          Name:
                                            $ref: "#/components/schemas/Name_4"
                                          Description:
                                            $ref: "#/components/schemas/Description_3"
                                      OtherApplicationFrequency:
                                        $ref: "#/components/schemas/OB_OtherCodeType1_1"
                                      OtherCalculationFrequency:
                                        $ref: "#/components/schemas/OB_OtherCodeType1_2"
                                  minItems: 1
                            minItems: 1
                      Overdraft:
                        type: "object"
                        required:
                          - "OverdraftTierBandSet"
                        description: "Borrowing details"
                        properties:
                          Notes:
                            type: "array"
                            items:
                              description: "Associated Notes about the overdraft rates"
                              type: "string"
                              minLength: 1
                              maxLength: 2000
                          OverdraftTierBandSet:
                            type: "array"
                            items:
                              type: "object"
                              description: "Tier band set details"
                              required:
                                - "TierBandMethod"
                                - "OverdraftTierBand"
                              properties:
                                TierBandMethod:
                                  description: "The methodology of how overdraft is charged. It can be:\n'Whole'  Where the same charge/rate is applied to the entirety of the overdraft balance (where charges are applicable). \n'Tiered' Where different charges/rates are applied dependent on overdraft maximum and minimum balance amount tiers defined by the lending financial organisation\n'Banded' Where different charges/rates are applied dependent on overdraft maximum and minimum balance amount bands defined by a government organisation."
                                  type: "string"
                                  example: "INBA"
                                  enum:
                                    - "INBA"
                                    - "INTI"
                                    - "INWH"
                                OverdraftType:
                                  description: "An overdraft can either be 'committed' which means that the facility cannot be withdrawn without reasonable notification before it's agreed end date, or 'on demand' which means that the financial institution can demand repayment at any point in time."
                                  type: "string"
                                  example: "OVCO"
                                  enum:
                                    - "OVCO"
                                    - "OVOD"
                                    - "OVOT"
                                Identification:
                                  description: "Unique and unambiguous identification of a  Tier Band for a overdraft product."
                                  type: "string"
                                  minLength: 1
                                  maxLength: 35
                                  example: "test id"
                                AuthorisedIndicator:
                                  description: "Indicates if the Overdraft is authorised (Y) or unauthorised (N)"
                                  type: "boolean"
                                  example: "True"
                                BufferAmount:
                                  description: "When a customer exceeds their credit limit, a financial institution will not charge the customer unauthorised overdraft charges if they do not exceed by more than the buffer amount. Note: Authorised overdraft charges may still apply."
                                  type: "string"
                                  pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                  example: "test value"
                                Notes:
                                  type: "array"
                                  items:
                                    description: "Optional additional notes to supplement the overdraft Tier Band Set details"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 2000
                                OverdraftTierBand:
                                  type: "array"
                                  items:
                                    type: "object"
                                    description: "Provides overdraft details for a specific tier or band"
                                    required:
                                      - "TierValueMin"
                                    properties:
                                      Identification:
                                        description: "Unique and unambiguous identification of a  Tier Band for a overdraft."
                                        type: "string"
                                        minLength: 1
                                        maxLength: 35
                                        example: "test value"
                                      TierValueMin:
                                        description: "Minimum value of Overdraft Tier/Band"
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "test value"
                                      TierValueMax:
                                        description: "Maximum value of Overdraft Tier/Band"
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "test value"
                                      EAR:
                                        description: "EAR means Effective Annual Rate and/or Equivalent Annual Rate (frequently\nused interchangeably), being the actual annual interest rate of an Overdraft."
                                        type: "string"
                                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "test value"
                                      AgreementLengthMin:
                                        description: "Specifies the minimum length of a band for a fixed overdraft agreement"
                                        type: "integer"
                                        example: "test value"
                                      AgreementLengthMax:
                                        description: "Specifies the maximum length of a band for a fixed overdraft agreement"
                                        type: "integer"
                                        example: "test value"
                                      AgreementPeriod:
                                        description: "Specifies the period of a fixed length overdraft agreement"
                                        type: "string"
                                        example: "test value"
                                        enum:
                                          - "PACT"
                                          - "PDAY"
                                          - "PHYR"
                                          - "PMTH"
                                          - "PQTR"
                                          - "PWEK"
                                          - "PYER"
                                      OverdraftInterestChargingCoverage:
                                        description: "Refers to which interest rate is applied when interests are tiered. For example, if an overdraft balance is �2k and the interest tiers are:- 0-�500 0.1%, 500-1000 0.2%, 1000-10000 0.5%, then the applicable interest rate could either be 0.5% of the entire balance (since the account balance sits in the top interest tier) or (0.1%*500)+(0.2%*500)+(0.5%*1000). In the 1st situation, we say the interest is applied to the �Whole� of the account balance,  and in the 2nd that it is �Tiered�."
                                        type: "string"
                                        example: "test value"
                                        enum:
                                          - "INBA"
                                          - "INTI"
                                          - "INWH"
                                      BankGuaranteedIndicator:
                                        description: "Indicates whether the advertised overdraft rate is guaranteed to be offered to a borrower by the bank e.g. if it�s part of a government scheme, or whether the rate may vary dependent on the applicant�s circumstances."
                                        type: "boolean"
                                      Notes:
                                        type: "array"
                                        items:
                                          description: "Optional additional notes to supplement the Tier/band details"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 2000
                                      OverdraftFeesCharges:
                                        type: "array"
                                        items:
                                          type: "object"
                                          description: "Overdraft fees and charges"
                                          required:
                                            - "OverdraftFeeChargeDetail"
                                          properties:
                                            OverdraftFeeChargeCap:
                                              type: "array"
                                              items:
                                                type: "object"
                                                description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                                required:
                                                  - "FeeType"
                                                  - "MinMaxType"
                                                properties:
                                                  FeeType:
                                                    type: "array"
                                                    items:
                                                      description: "Fee/charge type which is being capped"
                                                      type: "string"
                                                      enum:
                                                        - "FBAO"
                                                        - "FBAR"
                                                        - "FBEB"
                                                        - "FBIT"
                                                        - "FBOR"
                                                        - "FBOS"
                                                        - "FBSC"
                                                        - "FBTO"
                                                        - "FBUB"
                                                        - "FBUT"
                                                        - "FTOT"
                                                        - "FTUT"
                                                    minItems: 1
                                                  MinMaxType:
                                                    $ref: "#/components/schemas/OB_MinMaxType1Code"
                                                  FeeCapOccurrence:
                                                    $ref: "#/components/schemas/Number_0"
                                                  FeeCapAmount:
                                                    $ref: "#/components/schemas/OB_Amount1_0"
                                                  CappingPeriod:
                                                    $ref: "#/components/schemas/OB_Period1Code"
                                                  Notes:
                                                    type: "array"
                                                    items:
                                                      description: "Notes related to Overdraft fee charge cap"
                                                      type: "string"
                                                      minLength: 1
                                                      maxLength: 2000
                                                  OtherFeeType:
                                                    type: "array"
                                                    items:
                                                      type: "object"
                                                      description: "Other fee type code which is not available in the standard code set"
                                                      required:
                                                        - "Name"
                                                        - "Description"
                                                      properties:
                                                        Code:
                                                          $ref: "#/components/schemas/OB_CodeMnemonic"
                                                        Name:
                                                          $ref: "#/components/schemas/Name_4"
                                                        Description:
                                                          $ref: "#/components/schemas/Description_3"
                                            OverdraftFeeChargeDetail:
                                              type: "array"
                                              items:
                                                type: "object"
                                                description: "Details about the fees/charges"
                                                required:
                                                  - "FeeType"
                                                  - "ApplicationFrequency"
                                                properties:
                                                  FeeType:
                                                    $ref: "#/components/schemas/OB_OverdraftFeeType1Code"
                                                  NegotiableIndicator:
                                                    description: "Indicates whether fee and charges are negotiable"
                                                    type: "boolean"
                                                    example: "True"
                                                  OverdraftControlIndicator:
                                                    description: "Indicates if the fee/charge is already covered by an 'Overdraft Control' fee or not."
                                                    type: "boolean"
                                                    example: "True"
                                                  IncrementalBorrowingAmount:
                                                    $ref: "#/components/schemas/OB_Amount1_1"
                                                  FeeAmount:
                                                    $ref: "#/components/schemas/OB_Amount1_2"
                                                  FeeRate:
                                                    $ref: "#/components/schemas/OB_Rate1_0"
                                                  FeeRateType:
                                                    $ref: "#/components/schemas/OB_InterestRateType1Code_0"
                                                  ApplicationFrequency:
                                                    $ref: "#/components/schemas/OB_FeeFrequency1Code_0"
                                                  CalculationFrequency:
                                                    $ref: "#/components/schemas/OB_FeeFrequency1Code_1"
                                                  Notes:
                                                    type: "array"
                                                    items:
                                                      description: "Free text for capturing any other info related to Overdraft Fees Charge Details"
                                                      type: "string"
                                                      minLength: 1
                                                      maxLength: 2000
                                                  OverdraftFeeChargeCap:
                                                    type: "array"
                                                    items:
                                                      type: "object"
                                                      description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                                      required:
                                                        - "FeeType"
                                                        - "MinMaxType"
                                                      properties:
                                                        FeeType:
                                                          type: "array"
                                                          items:
                                                            description: "Fee/charge type which is being capped"
                                                            type: "string"
                                                            enum:
                                                              - "FBAO"
                                                              - "FBAR"
                                                              - "FBEB"
                                                              - "FBIT"
                                                              - "FBOR"
                                                              - "FBOS"
                                                              - "FBSC"
                                                              - "FBTO"
                                                              - "FBUB"
                                                              - "FBUT"
                                                              - "FTOT"
                                                              - "FTUT"
                                                          minItems: 1
                                                        MinMaxType:
                                                          $ref: "#/components/schemas/OB_MinMaxType1Code"
                                                        FeeCapOccurrence:
                                                          $ref: "#/components/schemas/Number_0"
                                                        FeeCapAmount:
                                                          $ref: "#/components/schemas/OB_Amount1_0"
                                                        CappingPeriod:
                                                          $ref: "#/components/schemas/OB_Period1Code"
                                                        Notes:
                                                          type: "array"
                                                          items:
                                                            description: "Notes related to Overdraft fee charge cap"
                                                            type: "string"
                                                            minLength: 1
                                                            maxLength: 2000
                                                        OtherFeeType:
                                                          type: "array"
                                                          items:
                                                            type: "object"
                                                            description: "Other fee type code which is not available in the standard code set"
                                                            required:
                                                              - "Name"
                                                              - "Description"
                                                            properties:
                                                              Code:
                                                                $ref: "#/components/schemas/OB_CodeMnemonic"
                                                              Name:
                                                                $ref: "#/components/schemas/Name_4"
                                                              Description:
                                                                $ref: "#/components/schemas/Description_3"
                                                  OtherFeeType:
                                                    $ref: "#/components/schemas/OB_OtherCodeType1_3"
                                                  OtherFeeRateType:
                                                    $ref: "#/components/schemas/OB_OtherCodeType1_4"
                                                  OtherApplicationFrequency:
                                                    $ref: "#/components/schemas/OB_OtherCodeType1_1"
                                                  OtherCalculationFrequency:
                                                    $ref: "#/components/schemas/OB_OtherCodeType1_2"
                                              minItems: 1
                                  minItems: 1
                                OverdraftFeesCharges:
                                  type: "array"
                                  items:
                                    type: "object"
                                    description: "Overdraft fees and charges details"
                                    required:
                                      - "OverdraftFeeChargeDetail"
                                    properties:
                                      OverdraftFeeChargeCap:
                                        type: "array"
                                        items:
                                          type: "object"
                                          description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                          required:
                                            - "FeeType"
                                            - "MinMaxType"
                                          properties:
                                            FeeType:
                                              type: "array"
                                              items:
                                                description: "Fee/charge type which is being capped"
                                                type: "string"
                                                enum:
                                                  - "FBAO"
                                                  - "FBAR"
                                                  - "FBEB"
                                                  - "FBIT"
                                                  - "FBOR"
                                                  - "FBOS"
                                                  - "FBSC"
                                                  - "FBTO"
                                                  - "FBUB"
                                                  - "FBUT"
                                                  - "FTOT"
                                                  - "FTUT"
                                              minItems: 1
                                            MinMaxType:
                                              $ref: "#/components/schemas/OB_MinMaxType1Code"
                                            FeeCapOccurrence:
                                              $ref: "#/components/schemas/Number_0"
                                            FeeCapAmount:
                                              $ref: "#/components/schemas/OB_Amount1_0"
                                            CappingPeriod:
                                              $ref: "#/components/schemas/OB_Period1Code"
                                            Notes:
                                              type: "array"
                                              items:
                                                description: "Notes related to Overdraft fee charge cap"
                                                type: "string"
                                                minLength: 1
                                                maxLength: 2000
                                            OtherFeeType:
                                              type: "array"
                                              items:
                                                type: "object"
                                                description: "Other fee type code which is not available in the standard code set"
                                                required:
                                                  - "Name"
                                                  - "Description"
                                                properties:
                                                  Code:
                                                    $ref: "#/components/schemas/OB_CodeMnemonic"
                                                  Name:
                                                    $ref: "#/components/schemas/Name_4"
                                                  Description:
                                                    $ref: "#/components/schemas/Description_3"
                                      OverdraftFeeChargeDetail:
                                        type: "array"
                                        items:
                                          type: "object"
                                          description: "Details about the fees/charges"
                                          required:
                                            - "FeeType"
                                            - "ApplicationFrequency"
                                          properties:
                                            FeeType:
                                              $ref: "#/components/schemas/OB_OverdraftFeeType1Code"
                                            NegotiableIndicator:
                                              description: "Indicates whether fee and charges are negotiable"
                                              type: "boolean"
                                            OverdraftControlIndicator:
                                              description: "Indicates if the fee/charge is already covered by an 'Overdraft Control' fee or not."
                                              type: "boolean"
                                            IncrementalBorrowingAmount:
                                              $ref: "#/components/schemas/OB_Amount1_1"
                                            FeeAmount:
                                              $ref: "#/components/schemas/OB_Amount1_2"
                                            FeeRate:
                                              $ref: "#/components/schemas/OB_Rate1_0"
                                            FeeRateType:
                                              $ref: "#/components/schemas/OB_InterestRateType1Code_0"
                                            ApplicationFrequency:
                                              $ref: "#/components/schemas/OB_FeeFrequency1Code_0"
                                            CalculationFrequency:
                                              $ref: "#/components/schemas/OB_FeeFrequency1Code_1"
                                            Notes:
                                              type: "array"
                                              items:
                                                description: "Free text for capturing any other info related to Overdraft Fees Charge Details"
                                                type: "string"
                                                minLength: 1
                                                maxLength: 2000
                                            OverdraftFeeChargeCap:
                                              type: "array"
                                              items:
                                                type: "object"
                                                description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                                required:
                                                  - "FeeType"
                                                  - "MinMaxType"
                                                properties:
                                                  FeeType:
                                                    type: "array"
                                                    items:
                                                      description: "Fee/charge type which is being capped"
                                                      type: "string"
                                                      enum:
                                                        - "FBAO"
                                                        - "FBAR"
                                                        - "FBEB"
                                                        - "FBIT"
                                                        - "FBOR"
                                                        - "FBOS"
                                                        - "FBSC"
                                                        - "FBTO"
                                                        - "FBUB"
                                                        - "FBUT"
                                                        - "FTOT"
                                                        - "FTUT"
                                                    minItems: 1
                                                  MinMaxType:
                                                    $ref: "#/components/schemas/OB_MinMaxType1Code"
                                                  FeeCapOccurrence:
                                                    $ref: "#/components/schemas/Number_0"
                                                  FeeCapAmount:
                                                    $ref: "#/components/schemas/OB_Amount1_0"
                                                  CappingPeriod:
                                                    $ref: "#/components/schemas/OB_Period1Code"
                                                  Notes:
                                                    type: "array"
                                                    items:
                                                      description: "Notes related to Overdraft fee charge cap"
                                                      type: "string"
                                                      minLength: 1
                                                      maxLength: 2000
                                                  OtherFeeType:
                                                    type: "array"
                                                    items:
                                                      type: "object"
                                                      description: "Other fee type code which is not available in the standard code set"
                                                      required:
                                                        - "Name"
                                                        - "Description"
                                                      properties:
                                                        Code:
                                                          $ref: "#/components/schemas/OB_CodeMnemonic"
                                                        Name:
                                                          $ref: "#/components/schemas/Name_4"
                                                        Description:
                                                          $ref: "#/components/schemas/Description_3"
                                            OtherFeeType:
                                              $ref: "#/components/schemas/OB_OtherCodeType1_3"
                                            OtherFeeRateType:
                                              $ref: "#/components/schemas/OB_OtherCodeType1_4"
                                            OtherApplicationFrequency:
                                              $ref: "#/components/schemas/OB_OtherCodeType1_1"
                                            OtherCalculationFrequency:
                                              $ref: "#/components/schemas/OB_OtherCodeType1_2"
                                        minItems: 1
                            minItems: 1
                      LoanInterest:
                        type: "object"
                        required:
                          - "LoanInterestTierBandSet"
                        description: "Details about the interest that may be payable to the SME Loan holders"
                        properties:
                          Notes:
                            type: "array"
                            items:
                              description: "Optional additional notes to supplement the LoanInterest"
                              type: "string"
                              minLength: 1
                              maxLength: 2000
                          LoanInterestTierBandSet:
                            type: "array"
                            items:
                              type: "object"
                              description: "The group of tiers or bands for which debit interest can be applied."
                              required:
                                - "TierBandMethod"
                                - "CalculationMethod"
                                - "LoanInterestTierBand"
                              properties:
                                TierBandMethod:
                                  description: "The methodology of how credit interest is charged. It can be:-\n1. Banded\nInterest rates are banded. i.e. Increasing rate on whole balance as balance increases.\n2. Tiered\nInterest rates are tiered. i.e. increasing rate for each tier as balance increases, but interest paid on tier fixed for that tier and not on whole balance.\n3. Whole\nThe same interest rate is applied irrespective of the SME Loan balance"
                                  type: "string"
                                  example: "INBA"
                                  enum:
                                    - "INBA"
                                    - "INTI"
                                    - "INWH"
                                Identification:
                                  description: "Loan interest tierbandset identification. Used by  loan providers for internal use purpose."
                                  type: "string"
                                  minLength: 1
                                  maxLength: 35
                                  example: "949388009"
                                CalculationMethod:
                                  $ref: "#/components/schemas/OB_InterestCalculationMethod1Code"
                                Notes:
                                  type: "array"
                                  items:
                                    description: "Optional additional notes to supplement the Tier Band Set details"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 2000
                                OtherCalculationMethod:
                                  $ref: "#/components/schemas/OB_OtherCodeType1_0"
                                LoanInterestTierBand:
                                  type: "array"
                                  items:
                                    type: "object"
                                    description: "Tier Band Details"
                                    required:
                                      - "TierValueMinimum"
                                      - "TierValueMinTerm"
                                      - "MinTermPeriod"
                                      - "FixedVariableInterestRateType"
                                      - "RepAPR"
                                    properties:
                                      Identification:
                                        description: "Unique and unambiguous identification of a  Tier Band for a SME Loan."
                                        type: "string"
                                        minLength: 1
                                        maxLength: 35
                                        example: "923912485238"
                                      TierValueMinimum:
                                        description: "Minimum loan value for which the loan interest tier applies."
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "10000"
                                      TierValueMaximum:
                                        description: "Maximum loan value for which the loan interest tier applies."
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example:
                                      TierValueMinTerm:
                                        description: "Minimum loan term for which the loan interest tier applies."
                                        type: "integer"
                                        example: "test value"
                                      MinTermPeriod:
                                        description: "The unit of period (days, weeks, months etc.) of the Minimum Term"
                                        type: "string"
                                        example: "PACT"
                                        enum:
                                          - "PACT"
                                          - "PDAY"
                                          - "PHYR"
                                          - "PMTH"
                                          - "PQTR"
                                          - "PWEK"
                                          - "PYER"
                                      TierValueMaxTerm:
                                        description: "Maximum loan term for which the loan interest tier applies."
                                        type: "integer"
                                        example: "64"
                                      MaxTermPeriod:
                                        description: "The unit of period (days, weeks, months etc.) of the Maximum Term"
                                        type: "string"
                                        example: "PACT"
                                        enum:
                                          - "PACT"
                                          - "PDAY"
                                          - "PHYR"
                                          - "PMTH"
                                          - "PQTR"
                                          - "PWEK"
                                          - "PYER"
                                      FixedVariableInterestRateType:
                                        $ref: "#/components/schemas/OB_InterestFixedVariableType1Code"
                                      RepAPR:
                                        description: "The annual equivalent rate (AER) is interest that is calculated under the assumption that any interest paid is combined with the original balance and the next interest payment will be based on the slightly higher account balance. Overall, this means that interest can be compounded several times in a year depending on the number of times that interest payments are made. \nFor SME Loan, this APR is the representative APR which includes any account fees."
                                        type: "string"
                                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                      LoanProviderInterestRateType:
                                        description: "Interest rate types, other than APR, which financial institutions may use to describe the annual interest rate payable for the SME Loan."
                                        type: "string"
                                        example: "INOT"
                                        enum:
                                          - "INBB"
                                          - "INFR"
                                          - "INGR"
                                          - "INLR"
                                          - "INNE"
                                          - "INOT"
                                      LoanProviderInterestRate:
                                        description: "Loan provider Interest for the SME Loan product"
                                        type: "string"
                                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "1"
                                      Notes:
                                        type: "array"
                                        items:
                                          description: "Optional additional notes to supplement the Tier Band details"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 2000
                                      OtherLoanProviderInterestRateType:
                                        type: "object"
                                        required:
                                          - "Name"
                                          - "Description"
                                        description: "Other loan interest rate types which are not available in the standard code list"
                                        properties:
                                          Code:
                                            $ref: "#/components/schemas/OB_CodeMnemonic"
                                          Name:
                                            $ref: "#/components/schemas/Name_4"
                                          Description:
                                            $ref: "#/components/schemas/Description_3"
                                      LoanInterestFeesCharges:
                                        type: "array"
                                        items:
                                          type: "object"
                                          description: "Contains details of fees and charges which are not associated with either LoanRepayment or features/benefits"
                                          required:
                                            - "LoanInterestFeeChargeDetail"
                                          properties:
                                            LoanInterestFeeChargeDetail:
                                              type: "array"
                                              items:
                                                type: "object"
                                                description: "Other fees/charges details"
                                                required:
                                                  - "FeeType"
                                                  - "ApplicationFrequency"
                                                  - "CalculationFrequency"
                                                properties:
                                                  FeeType:
                                                    $ref: "#/components/schemas/OB_FeeType1Code"
                                                  NegotiableIndicator:
                                                    description: "Fee/charge which is usually negotiable rather than a fixed amount"
                                                    type: "boolean"
                                                  FeeAmount:
                                                    $ref: "#/components/schemas/OB_Amount1_3"
                                                  FeeRate:
                                                    $ref: "#/components/schemas/OB_Rate1_1"
                                                  FeeRateType:
                                                    $ref: "#/components/schemas/OB_InterestRateType1Code_1"
                                                  ApplicationFrequency:
                                                    $ref: "#/components/schemas/OB_FeeFrequency1Code_2"
                                                  CalculationFrequency:
                                                    $ref: "#/components/schemas/OB_FeeFrequency1Code_3"
                                                  Notes:
                                                    type: "array"
                                                    items:
                                                      description: "Optional additional notes to supplement the fee/charge details."
                                                      type: "string"
                                                      minLength: 1
                                                      maxLength: 2000
                                                  OtherFeeType:
                                                    $ref: "#/components/schemas/OB_OtherFeeChargeDetailType"
                                                  OtherFeeRateType:
                                                    $ref: "#/components/schemas/OB_OtherCodeType1_5"
                                                  OtherApplicationFrequency:
                                                    $ref: "#/components/schemas/OB_OtherCodeType1_6"
                                                  OtherCalculationFrequency:
                                                    $ref: "#/components/schemas/OB_OtherCodeType1_7"
                                              minItems: 1
                                            LoanInterestFeeChargeCap:
                                              type: "array"
                                              items:
                                                type: "object"
                                                description: "Details about any caps (minimum/maximum charges) that apply to a particular fee/charge"
                                                required:
                                                  - "FeeType"
                                                  - "MinMaxType"
                                                properties:
                                                  FeeType:
                                                    type: "array"
                                                    items:
                                                      description: "Fee/charge type which is being capped"
                                                      type: "string"
                                                      enum:
                                                        - "FEPF"
                                                        - "FTOT"
                                                        - "FYAF"
                                                        - "FYAM"
                                                        - "FYAQ"
                                                        - "FYCP"
                                                        - "FYDB"
                                                        - "FYMI"
                                                        - "FYXX"
                                                    minItems: 1
                                                  MinMaxType:
                                                    $ref: "#/components/schemas/OB_MinMaxType1Code"
                                                  FeeCapOccurrence:
                                                    $ref: "#/components/schemas/Number_1"
                                                  FeeCapAmount:
                                                    $ref: "#/components/schemas/OB_Amount1_4"
                                                  CappingPeriod:
                                                    $ref: "#/components/schemas/OB_FeeFrequency1Code_4"
                                                  Notes:
                                                    type: "array"
                                                    items:
                                                      description: "Free text for adding  extra details for fee charge cap"
                                                      type: "string"
                                                      minLength: 1
                                                      maxLength: 2000
                                                  OtherFeeType:
                                                    type: "array"
                                                    items:
                                                      type: "object"
                                                      description: "Other fee type code which is not available in the standard code set"
                                                      required:
                                                        - "Name"
                                                        - "Description"
                                                      properties:
                                                        Code:
                                                          $ref: "#/components/schemas/OB_CodeMnemonic"
                                                        Name:
                                                          $ref: "#/components/schemas/Name_4"
                                                        Description:
                                                          $ref: "#/components/schemas/Description_3"
                                  minItems: 1
                                LoanInterestFeesCharges:
                                  type: "array"
                                  items:
                                    type: "object"
                                    description: "Contains details of fees and charges which are not associated with either LoanRepayment or features/benefits"
                                    required:
                                      - "LoanInterestFeeChargeDetail"
                                    properties:
                                      LoanInterestFeeChargeDetail:
                                        type: "array"
                                        items:
                                          type: "object"
                                          description: "Other fees/charges details"
                                          required:
                                            - "FeeType"
                                            - "ApplicationFrequency"
                                            - "CalculationFrequency"
                                          properties:
                                            FeeType:
                                              $ref: "#/components/schemas/OB_FeeType1Code"
                                            NegotiableIndicator:
                                              description: "Fee/charge which is usually negotiable rather than a fixed amount"
                                              type: "boolean"
                                            FeeAmount:
                                              $ref: "#/components/schemas/OB_Amount1_3"
                                            FeeRate:
                                              $ref: "#/components/schemas/OB_Rate1_1"
                                            FeeRateType:
                                              $ref: "#/components/schemas/OB_InterestRateType1Code_1"
                                            ApplicationFrequency:
                                              $ref: "#/components/schemas/OB_FeeFrequency1Code_2"
                                            CalculationFrequency:
                                              $ref: "#/components/schemas/OB_FeeFrequency1Code_3"
                                            Notes:
                                              type: "array"
                                              items:
                                                description: "Optional additional notes to supplement the fee/charge details."
                                                type: "string"
                                                minLength: 1
                                                maxLength: 2000
                                            OtherFeeType:
                                              $ref: "#/components/schemas/OB_OtherFeeChargeDetailType"
                                            OtherFeeRateType:
                                              $ref: "#/components/schemas/OB_OtherCodeType1_5"
                                            OtherApplicationFrequency:
                                              $ref: "#/components/schemas/OB_OtherCodeType1_6"
                                            OtherCalculationFrequency:
                                              $ref: "#/components/schemas/OB_OtherCodeType1_7"
                                        minItems: 1
                                      LoanInterestFeeChargeCap:
                                        type: "array"
                                        items:
                                          type: "object"
                                          description: "Details about any caps (minimum/maximum charges) that apply to a particular fee/charge"
                                          required:
                                            - "FeeType"
                                            - "MinMaxType"
                                          properties:
                                            FeeType:
                                              type: "array"
                                              items:
                                                description: "Fee/charge type which is being capped"
                                                type: "string"
                                                enum:
                                                  - "FEPF"
                                                  - "FTOT"
                                                  - "FYAF"
                                                  - "FYAM"
                                                  - "FYAQ"
                                                  - "FYCP"
                                                  - "FYDB"
                                                  - "FYMI"
                                                  - "FYXX"
                                              minItems: 1
                                            MinMaxType:
                                              $ref: "#/components/schemas/OB_MinMaxType1Code"
                                            FeeCapOccurrence:
                                              $ref: "#/components/schemas/Number_1"
                                            FeeCapAmount:
                                              $ref: "#/components/schemas/OB_Amount1_4"
                                            CappingPeriod:
                                              $ref: "#/components/schemas/OB_FeeFrequency1Code_4"
                                            Notes:
                                              type: "array"
                                              items:
                                                description: "Free text for adding  extra details for fee charge cap"
                                                type: "string"
                                                minLength: 1
                                                maxLength: 2000
                                            OtherFeeType:
                                              type: "array"
                                              items:
                                                type: "object"
                                                description: "Other fee type code which is not available in the standard code set"
                                                required:
                                                  - "Name"
                                                  - "Description"
                                                properties:
                                                  Code:
                                                    $ref: "#/components/schemas/OB_CodeMnemonic"
                                                  Name:
                                                    $ref: "#/components/schemas/Name_4"
                                                  Description:
                                                    $ref: "#/components/schemas/Description_3"
                            minItems: 1
                      Repayment:
                        type: "object"
                        description: "Repayment details of the Loan product"
                        properties:
                          RepaymentType:
                            description: "Repayment type"
                            type: "string"
                            example: "USBA"
                            enum:
                              - "USBA"
                              - "USBU"
                              - "USCI"
                              - "USCS"
                              - "USER"
                              - "USFA"
                              - "USFB"
                              - "USFI"
                              - "USIO"
                              - "USOT"
                              - "USPF"
                              - "USRW"
                              - "USSL"
                          RepaymentFrequency:
                            description: "Repayment frequency"
                            type: "string"
                            example: "SMDA"
                            enum:
                              - "SMDA"
                              - "SMFL"
                              - "SMFO"
                              - "SMHY"
                              - "SMMO"
                              - "SMOT"
                              - "SMQU"
                              - "SMWE"
                              - "SMYE"
                          AmountType:
                            description: "The repayment is for paying just the interest only or both interest and capital or bullet amount or balance to date etc"
                            type: "string"
                            example: "RABD"
                            enum:
                              - "RABD"
                              - "RABL"
                              - "RACI"
                              - "RAFC"
                              - "RAIO"
                              - "RALT"
                              - "USOT"
                          Notes:
                            type: "array"
                            items:
                              description: "Optional additional notes to supplement the Repayment"
                              type: "string"
                              minLength: 1
                              maxLength: 2000
                          OtherRepaymentType:
                            type: "object"
                            required:
                              - "Name"
                              - "Description"
                            description: "Other repayment type which is not in the standard code list"
                            properties:
                              Code:
                                $ref: "#/components/schemas/OB_CodeMnemonic"
                              Name:
                                $ref: "#/components/schemas/Name_4"
                              Description:
                                $ref: "#/components/schemas/Description_3"
                          OtherRepaymentFrequency:
                            type: "object"
                            required:
                              - "Name"
                              - "Description"
                            description: "Other repayment frequency which is not in the standard code list"
                            properties:
                              Code:
                                $ref: "#/components/schemas/OB_CodeMnemonic"
                              Name:
                                $ref: "#/components/schemas/Name_4"
                              Description:
                                $ref: "#/components/schemas/Description_3"
                          OtherAmountType:
                            type: "object"
                            required:
                              - "Name"
                              - "Description"
                            description: "Other amount type which is not in the standard code list"
                            properties:
                              Code:
                                $ref: "#/components/schemas/OB_CodeMnemonic"
                              Name:
                                $ref: "#/components/schemas/Name_4"
                              Description:
                                $ref: "#/components/schemas/Description_3"
                          RepaymentFeeCharges:
                            type: "object"
                            required:
                              - "RepaymentFeeChargeDetail"
                            description: "Applicable fee/charges for repayment such as prepayment, full early repayment or non repayment."
                            properties:
                              RepaymentFeeChargeDetail:
                                type: "array"
                                items:
                                  type: "object"
                                  description: "Details about specific fees/charges that are applied for repayment"
                                  required:
                                    - "FeeType"
                                    - "ApplicationFrequency"
                                    - "CalculationFrequency"
                                  properties:
                                    FeeType:
                                      $ref: "#/components/schemas/OB_FeeType1Code"
                                    NegotiableIndicator:
                                      description: "Fee/charge which is usually negotiable rather than a fixed amount"
                                      type: "boolean"
                                    FeeAmount:
                                      $ref: "#/components/schemas/OB_Amount1_3"
                                    FeeRate:
                                      $ref: "#/components/schemas/OB_Rate1_1"
                                    FeeRateType:
                                      $ref: "#/components/schemas/OB_InterestRateType1Code_1"
                                    ApplicationFrequency:
                                      $ref: "#/components/schemas/OB_FeeFrequency1Code_2"
                                    CalculationFrequency:
                                      $ref: "#/components/schemas/OB_FeeFrequency1Code_3"
                                    Notes:
                                      type: "array"
                                      items:
                                        description: "Optional additional notes to supplement the fee/charge details."
                                        type: "string"
                                        minLength: 1
                                        maxLength: 2000
                                    OtherFeeType:
                                      $ref: "#/components/schemas/OB_OtherFeeChargeDetailType"
                                    OtherFeeRateType:
                                      $ref: "#/components/schemas/OB_OtherCodeType1_8"
                                    OtherApplicationFrequency:
                                      $ref: "#/components/schemas/OB_OtherCodeType1_6"
                                    OtherCalculationFrequency:
                                      $ref: "#/components/schemas/OB_OtherCodeType1_7"
                                minItems: 1
                              RepaymentFeeChargeCap:
                                type: "array"
                                items:
                                  type: "object"
                                  description: "RepaymentFeeChargeCap sets daily, weekly, monthly, yearly limits on the fees that are charged"
                                  required:
                                    - "FeeType"
                                    - "MinMaxType"
                                  properties:
                                    FeeType:
                                      type: "array"
                                      items:
                                        description: "Fee/charge type which is being capped"
                                        type: "string"
                                        enum:
                                          - "FEPF"
                                          - "FTOT"
                                          - "FYAF"
                                          - "FYAM"
                                          - "FYAQ"
                                          - "FYCP"
                                          - "FYDB"
                                          - "FYMI"
                                          - "FYXX"
                                      minItems: 1
                                    MinMaxType:
                                      $ref: "#/components/schemas/OB_MinMaxType1Code"
                                    FeeCapOccurrence:
                                      $ref: "#/components/schemas/Number_1"
                                    FeeCapAmount:
                                      $ref: "#/components/schemas/OB_Amount1_4"
                                    CappingPeriod:
                                      $ref: "#/components/schemas/OB_Period1Code"
                                    Notes:
                                      type: "array"
                                      items:
                                        description: "Free text for adding  extra details for fee charge cap"
                                        type: "string"
                                        minLength: 1
                                        maxLength: 2000
                                    OtherFeeType:
                                      type: "array"
                                      items:
                                        type: "object"
                                        description: "Other fee type code which is not available in the standard code set"
                                        required:
                                          - "Name"
                                          - "Description"
                                        properties:
                                          Code:
                                            $ref: "#/components/schemas/OB_CodeMnemonic"
                                          Name:
                                            $ref: "#/components/schemas/Name_4"
                                          Description:
                                            $ref: "#/components/schemas/Description_3"
                          RepaymentHoliday:
                            type: "array"
                            items:
                              type: "object"
                              description: "Details of capital repayment holiday if any"
                              properties:
                                MaxHolidayLength:
                                  description: "The maximum length/duration of a Repayment Holiday"
                                  type: "integer"
                                MaxHolidayPeriod:
                                  description: "The unit of period (days, weeks, months etc.) of the repayment holiday"
                                  type: "string"
                                  example: "PACT"
                                  enum:
                                    - "PACT"
                                    - "PDAY"
                                    - "PHYR"
                                    - "PMTH"
                                    - "PQTR"
                                    - "PWEK"
                                    - "PYER"
                                Notes:
                                  type: "array"
                                  items:
                                    description: "Free text for adding details for repayment holiday"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 2000
                      OtherFeesCharges:
                        type: "array"
                        items:
                          type: "object"
                          description: "Contains details of fees and charges which are not associated with either Overdraft or features/benefits"
                          required:
                            - "FeeChargeDetail"
                          properties:
                            TariffType:
                              description: "TariffType which defines the fee and charges."
                              type: "string"
                              enum:
                                - "TTEL"
                                - "TTMX"
                                - "TTOT"
                            TariffName:
                              description: "Name of the tariff"
                              type: "string"
                              minLength: 1
                              maxLength: 350
                            OtherTariffType:
                              type: "object"
                              required:
                                - "Name"
                                - "Description"
                              description: "Other tariff type which is not in the standard list."
                              properties:
                                Code:
                                  $ref: "#/components/schemas/OB_CodeMnemonic"
                                Name:
                                  $ref: "#/components/schemas/Name_4"
                                Description:
                                  $ref: "#/components/schemas/Description_3"
                            FeeChargeDetail:
                              type: "array"
                              items:
                                type: "object"
                                description: "Other fees/charges details"
                                required:
                                  - "FeeCategory"
                                  - "FeeType"
                                  - "ApplicationFrequency"
                                properties:
                                  FeeCategory:
                                    $ref: "#/components/schemas/OB_FeeCategory1Code"
                                  FeeType:
                                    $ref: "#/components/schemas/OB_FeeType1Code"
                                  NegotiableIndicator:
                                    description: "Fee/charge which is usually negotiable rather than a fixed amount"
                                    type: "boolean"
                                  FeeAmount:
                                    $ref: "#/components/schemas/OB_Amount1_3"
                                  FeeRate:
                                    $ref: "#/components/schemas/OB_Rate1_1"
                                  FeeRateType:
                                    $ref: "#/components/schemas/OB_InterestRateType1Code_1"
                                  ApplicationFrequency:
                                    $ref: "#/components/schemas/OB_FeeFrequency1Code_2"
                                  CalculationFrequency:
                                    $ref: "#/components/schemas/OB_FeeFrequency1Code_3"
                                  Notes:
                                    type: "array"
                                    items:
                                      description: "Optional additional notes to supplement the fee/charge details."
                                      type: "string"
                                      minLength: 1
                                      maxLength: 2000
                                  FeeChargeCap:
                                    type: "array"
                                    items:
                                      type: "object"
                                      description: "Details about any caps (maximum charges) that apply to a particular or group of fee/charge"
                                      required:
                                        - "FeeType"
                                        - "MinMaxType"
                                      properties:
                                        FeeType:
                                          type: "array"
                                          items:
                                            description: "Fee/charge type which is being capped"
                                            type: "string"
                                            enum:
                                              - "FEPF"
                                              - "FTOT"
                                              - "FYAF"
                                              - "FYAM"
                                              - "FYAQ"
                                              - "FYCP"
                                              - "FYDB"
                                              - "FYMI"
                                              - "FYXX"
                                          minItems: 1
                                        MinMaxType:
                                          $ref: "#/components/schemas/OB_MinMaxType1Code"
                                        FeeCapOccurrence:
                                          $ref: "#/components/schemas/Number_1"
                                        FeeCapAmount:
                                          $ref: "#/components/schemas/OB_Amount1_4"
                                        CappingPeriod:
                                          $ref: "#/components/schemas/OB_Period1Code"
                                        Notes:
                                          type: "array"
                                          items:
                                            description: "Free text for adding  extra details for fee charge cap"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 2000
                                        OtherFeeType:
                                          type: "array"
                                          items:
                                            type: "object"
                                            description: "Other fee type code which is not available in the standard code set"
                                            required:
                                              - "Name"
                                              - "Description"
                                            properties:
                                              Code:
                                                $ref: "#/components/schemas/OB_CodeMnemonic"
                                              Name:
                                                $ref: "#/components/schemas/Name_4"
                                              Description:
                                                $ref: "#/components/schemas/Description_3"
                                  OtherFeeCategoryType:
                                    $ref: "#/components/schemas/OB_OtherCodeType1_0"
                                  OtherFeeType:
                                    $ref: "#/components/schemas/OB_OtherFeeChargeDetailType"
                                  OtherFeeRateType:
                                    $ref: "#/components/schemas/OB_OtherCodeType1_8"
                                  OtherApplicationFrequency:
                                    $ref: "#/components/schemas/OB_OtherCodeType1_6"
                                  OtherCalculationFrequency:
                                    $ref: "#/components/schemas/OB_OtherCodeType1_7"
                                  FeeApplicableRange:
                                    type: "object"
                                    description: "Range or amounts or rates for which the fee/charge applies"
                                    properties:
                                      MinimumAmount:
                                        description: "Minimum Amount on which fee/charge is applicable (where it is expressed as an amount)"
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "10"
                                      MaximumAmount:
                                        description: "Maximum Amount on which fee is applicable (where it is expressed as an amount)"
                                        type: "string"
                                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "100"
                                      MinimumRate:
                                        description: "Minimum rate on which fee/charge is applicable(where it is expressed as an rate)"
                                        type: "string"
                                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "0"
                                      MaximumRate:
                                        description: "Maximum rate on which fee/charge is applicable(where it is expressed as an rate)"
                                        type: "string"
                                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                        example: "5"
                              minItems: 1
                            FeeChargeCap:
                              type: "array"
                              items:
                                type: "object"
                                description: "Details about any caps (maximum charges) that apply to a particular or group of fee/charge"
                                required:
                                  - "FeeType"
                                  - "MinMaxType"
                                properties:
                                  FeeType:
                                    type: "array"
                                    items:
                                      description: "Fee/charge type which is being capped"
                                      type: "string"
                                      enum:
                                        - "FEPF"
                                        - "FTOT"
                                        - "FYAF"
                                        - "FYAM"
                                        - "FYAQ"
                                        - "FYCP"
                                        - "FYDB"
                                        - "FYMI"
                                        - "FYXX"
                                    minItems: 1
                                  MinMaxType:
                                    $ref: "#/components/schemas/OB_MinMaxType1Code"
                                  FeeCapOccurrence:
                                    $ref: "#/components/schemas/Number_1"
                                  FeeCapAmount:
                                    $ref: "#/components/schemas/OB_Amount1_4"
                                  CappingPeriod:
                                    $ref: "#/components/schemas/OB_Period1Code"
                                  Notes:
                                    type: "array"
                                    items:
                                      description: "Free text for adding  extra details for fee charge cap"
                                      type: "string"
                                      minLength: 1
                                      maxLength: 2000
                                  OtherFeeType:
                                    type: "array"
                                    items:
                                      type: "object"
                                      description: "Other fee type code which is not available in the standard code set"
                                      required:
                                        - "Name"
                                        - "Description"
                                      properties:
                                        Code:
                                          $ref: "#/components/schemas/OB_CodeMnemonic"
                                        Name:
                                          $ref: "#/components/schemas/Name_4"
                                        Description:
                                          $ref: "#/components/schemas/Description_3"
                      SupplementaryData:
                        $ref: "#/components/schemas/OBSupplementaryData1"
                  BCA:
                    $ref: "#/components/schemas/OBBCAData1"
                  PCA:
                    $ref: "#/components/schemas/OBPCAData1"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OB_OtherCodeType1_0:
      type: "object"
      required:
        - "Name"
        - "Description"
      properties:
        Code:
          $ref: "#/components/schemas/OB_CodeMnemonic"
        Name:
          $ref: "#/components/schemas/Name_4"
        Description:
          $ref: "#/components/schemas/Description_3"
      additionalProperties: false
    OBBCAData1:
      type: "object"
      title: "BCA"
      properties:
        ProductDetails:
          type: "object"
          title: "ProductDetails"
          properties:
            Segment:
              description: "Market segmentation is a marketing term referring to the aggregating of prospective buyers into groups, or segments, that have common needs and respond similarly to a marketing action. Market segmentation enables companies to target different categories of consumers who perceive the full value of certain products and services differently from one another.\n\nRead more: Market Segmentation http://www.investopedia.com/terms/m/marketsegmentation.asp#ixzz4gfEEalTd \nWith respect to BCA products, they are segmented in relation to different markets that they wish to focus on. "
              title: "Segment"
              type: "array"
              items:
                description: "Market segmentation is a marketing term referring to the aggregating of prospective buyers into groups, or segments, that have common needs and respond similarly to a marketing action. Market segmentation enables companies to target different categories of consumers who perceive the full value of certain products and services differently from one another.\n\nRead more: Market Segmentation http://www.investopedia.com/terms/m/marketsegmentation.asp#ixzz4gfEEalTd \nWith respect to BCA products, they are segmented in relation to different markets that they wish to focus on. "
                type: "string"
                enum:
                  - "ClientAccount"
                  - "Standard"
                  - "NonCommercialChaitiesClbSoc"
                  - "NonCommercialPublicAuthGovt"
                  - "Religious"
                  - "SectorSpecific"
                  - "Startup"
                  - "Switcher"
            FeeFreeLength:
              description: "The length/duration of the fee free period"
              title: "FeeFreeLength"
              type: "number"
              format: "float"
              example: "10"
            FeeFreeLengthPeriod:
              description: "The unit of period (days, weeks, months etc.) of the promotional length"
              title: "FeeFreeLengthPeriod"
              type: "string"
              enum:
                - "Day"
                - "Half Year"
                - "Month"
                - "Quarter"
                - "Week"
                - "Year"
              example: "Day"
            Notes:
              description: "Optional additional notes to supplement the Core product details"
              title: "Notes"
              type: "array"
              items:
                description: "maxLength 2000 text"
                type: "string"
                minLength: 1
                maxLength: 2000
          additionalProperties: false
        CreditInterest:
          description: "Details about the interest that may be payable to the BCA account holders"
          type: "object"
          title: "CreditInterest"
          properties:
            TierBandSet:
              description: "The group of tiers or bands for which credit interest can be applied."
              type: "array"
              title: "TierBandSet"
              items:
                description: "The group of tiers or bands for which credit interest can be applied."
                type: "object"
                properties:
                  TierBandMethod:
                    description: "The methodology of how credit interest is paid/applied. It can be:-\n\n1. Banded\nInterest rates are banded. i.e. Increasing rate on whole balance as balance increases.\n\n2. Tiered\nInterest rates are tiered. i.e. increasing rate for each tier as balance increases, but interest paid on tier fixed for that tier and not on whole balance.\n\n3. Whole\nThe same interest rate is applied irrespective of the BCA balance"
                    title: "TierBandMethod"
                    type: "string"
                    enum:
                      - "Banded"
                      - "Tiered"
                      - "Whole"
                    example: "Whole"
                  CalculationMethod:
                    description: "Methods of calculating interest"
                    title: "CalculationMethod"
                    type: "string"
                    enum:
                      - "Compound"
                      - "SimpleInterest"
                    example: "Compound"
                  Destination:
                    description: "Describes whether accrued interest is payable only to the BCA or to another bank account"
                    title: "Destination"
                    type: "string"
                    enum:
                      - "PayAway"
                      - "SelfCredit"
                    example: "PayAway"
                  Notes:
                    description: "Optional additional notes to supplement the Tier Band Set details"
                    title: "Notes"
                    type: "array"
                    items:
                      description: "maxLength 2000 text"
                      type: "string"
                      minLength: 1
                      maxLength: 2000
                  TierBand:
                    description: "Tier Band Details"
                    type: "array"
                    title: "TierBand"
                    items:
                      description: "Tier Band Details"
                      type: "object"
                      properties:
                        Identification:
                          description: "Unique and unambiguous identification of a  Tier Band for a BCA."
                          title: "Identification"
                          type: "string"
                          minLength: 1
                          maxLength: 35
                          example: "40180000173916"
                        TierValueMinimum:
                          description: "Minimum deposit value for which the credit interest tier applies."
                          title: "TierValueMinimum"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "100"
                        TierValueMaximum:
                          description: "Maximum deposit value for which the credit interest tier applies."
                          title: "TierValueMaximum"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "1000"
                        CalculationFrequency:
                          description: "How often is credit interest calculated for the account."
                          title: "CalculationFrequency"
                          type: "string"
                          enum:
                            - "Daily"
                            - "HalfYearly"
                            - "Monthly"
                            - "Other"
                            - "Quarterly"
                            - "PerStatementDate"
                            - "Weekly"
                            - "Yearly"
                          example: "Monthly"
                        ApplicationFrequency:
                          description: "How often is interest applied to the BCA for this tier/band i.e. how often the financial institution pays accumulated interest to the customer's BCA."
                          title: "ApplicationFrequency"
                          type: "string"
                          enum:
                            - "Daily"
                            - "HalfYearly"
                            - "Monthly"
                            - "Other"
                            - "Quarterly"
                            - "PerStatementDate"
                            - "Weekly"
                            - "Yearly"
                          example: "Weekly"
                        DepositInterestAppliedCoverage:
                          description: "Amount on which Interest applied."
                          title: "DepositInterestAppliedCoverage"
                          type: "string"
                          enum:
                            - "Banded"
                            - "Tiered"
                            - "Whole"
                          example: "Whole"
                        FixedVariableInterestRateType:
                          description: "Type of interest rate, Fixed or Variable"
                          title: "FixedVariableInterestRateType"
                          type: "string"
                          enum:
                            - "Fixed"
                            - "Variable"
                          example: "Variable"
                        AER:
                          description: "The annual equivalent rate (AER) is interest that is calculated under the assumption that any interest paid is combined with the original balance and the next interest payment will be based on the slightly higher account balance. Overall, this means that interest can be compounded several times in a year depending on the number of times that interest payments are made. \n\nRead more: Annual Equivalent Rate (AER) http://www.investopedia.com/terms/a/aer.asp#ixzz4gfR7IO1A"
                          title: "AER"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "1,5%"
                        BankInterestRateType:
                          description: "Interest rate types, other than AER, which financial institutions may use to describe the annual interest rate payable to the BCA."
                          title: "BankInterestRateType"
                          type: "string"
                          enum:
                            - "Gross"
                            - "Other"
                          example: "Gross"
                        BankInterestRate:
                          description: "Bank Interest for the BCA product"
                          title: "BankInterestRate"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "0.25%"
                        Notes:
                          description: "Optional additional notes to supplement the Tier Band details"
                          title: "Notes"
                          type: "array"
                          items:
                            description: "maxLength 2000 text"
                            type: "string"
                            minLength: 1
                            maxLength: 2000
                        OtherBankInterestType:
                          description: "Other interest rate types which are not available in the standard code list"
                          type: "object"
                          title: "OtherBankInterestType"
                          properties:
                            Code:
                              description: "The four letter Mnemonic used within an XML file to identify a code"
                              title: "Code"
                              type: "string"
                              pattern: "^\\w{0,4}$"
                              minLength: 0
                              maxLength: 4
                              example: "ABC"
                            Name:
                              description: "Long name associated with the code"
                              title: "Name"
                              type: "string"
                              minLength: 1
                              maxLength: 70
                              example: "Bobby Lee"
                            Description:
                              description: "Description to describe the purpose of the code"
                              title: "Description"
                              type: "string"
                              minLength: 1
                              maxLength: 350
                              example: "desc."
                          additionalProperties: false
                          required:
                            - "Name"
                            - "Description"
                        OtherApplicationFrequency:
                          description: "Other application frequencies that are not available in the standard code list"
                          type: "object"
                          title: "OtherApplicationFrequency"
                          properties:
                            Code:
                              description: "The four letter Mnemonic used within an XML file to identify a code"
                              title: "Code"
                              type: "string"
                              pattern: "^\\w{0,4}$"
                              minLength: 0
                              maxLength: 4
                            Name:
                              description: "Long name associated with the code"
                              title: "Name"
                              type: "string"
                              minLength: 1
                              maxLength: 70
                              example: "Jerry Smith"
                            Description:
                              description: "Description to describe the purpose of the code"
                              title: "Description"
                              type: "string"
                              minLength: 1
                              maxLength: 350
                              example: "desc."
                          additionalProperties: false
                          required:
                            - "Name"
                            - "Description"
                        OtherCalculationFrequency:
                          description: "Other calculation frequency which is not available in the standard code set."
                          type: "object"
                          title: "OtherCalculationFrequency"
                          properties:
                            Code:
                              description: "The four letter Mnemonic used within an XML file to identify a code"
                              title: "Code"
                              type: "string"
                              pattern: "^\\w{0,4}$"
                              minLength: 0
                              maxLength: 4
                              example: "ABC"
                            Name:
                              description: "Long name associated with the code"
                              title: "Name"
                              type: "string"
                              minLength: 1
                              maxLength: 70
                              example: "Jerry Smith"
                            Description:
                              description: "Description to describe the purpose of the code"
                              title: "Description"
                              type: "string"
                              minLength: 1
                              maxLength: 350
                              example: "desc."
                          additionalProperties: false
                          required:
                            - "Name"
                            - "Description"
                      required:
                        - "TierValueMinimum"
                        - "ApplicationFrequency"
                        - "FixedVariableInterestRateType"
                        - "AER"
                    minItems: 1
                required:
                  - "TierBandMethod"
                  - "Destination"
                  - "TierBand"
              minItems: 1
          additionalProperties: false
          required:
            - "TierBandSet"
        Overdraft:
          description: "Borrowing details"
          type: "object"
          title: "Overdraft"
          properties:
            Notes:
              description: "Associated Notes about the overdraft rates"
              title: "Notes"
              type: "array"
              items:
                description: "maxLength 2000 text"
                type: "string"
                minLength: 1
                maxLength: 2000
            OverdraftTierBandSet:
              description: "Tier band set details"
              type: "array"
              title: "OverdraftTierBandSet"
              items:
                description: "Tier band set details"
                type: "object"
                properties:
                  TierBandMethod:
                    description: "The methodology of how overdraft is charged. It can be:\n'Whole'  Where the same charge/rate is applied to the entirety of the overdraft balance (where charges are applicable). \n'Tiered' Where different charges/rates are applied dependent on overdraft maximum and minimum balance amount tiers defined by the lending financial organisation\n'Banded' Where different charges/rates are applied dependent on overdraft maximum and minimum balance amount bands defined by a government organisation."
                    title: "TierBandMethod"
                    type: "string"
                    enum:
                      - "Banded"
                      - "Tiered"
                      - "Whole"
                    example: "Banded"
                  OverdraftType:
                    description: "An overdraft can either be 'committed' which means that the facility cannot be withdrawn without reasonable notification before it's agreed end date, or 'on demand' which means that the financial institution can demand repayment at any point in time."
                    title: "OverdraftType"
                    type: "string"
                    enum:
                      - "Committed"
                      - "OnDemand"
                    example: "Committed"
                  Identification:
                    description: "Unique and unambiguous identification of a  Tier Band for a overdraft product."
                    title: "Identification"
                    type: "string"
                    minLength: 1
                    maxLength: 35
                    example: "idstring"
                  AuthorisedIndicator:
                    description: "Indicates if the Overdraft is authorised (Y) or unauthorised (N)"
                    title: "AuthorisedIndicator"
                    type: "boolean"
                    example: "AuthorisedIndicator"
                  BufferAmount:
                    description: "When a customer exceeds their credit limit, a financial institution will not charge the customer unauthorised overdraft charges if they do not exceed by more than the buffer amount. Note: Authorised overdraft charges may still apply."
                    title: "BufferAmount"
                    type: "string"
                    pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                    example: "100"
                  Notes:
                    description: "Optional additional notes to supplement the overdraft Tier Band Set details"
                    title: "Notes"
                    type: "array"
                    items:
                      description: "maxLength 2000 text"
                      type: "string"
                      minLength: 1
                      maxLength: 2000
                  OverdraftTierBand:
                    description: "Provides overdraft details for a specific tier or band"
                    type: "array"
                    title: "OverdraftTierBand"
                    items:
                      description: "Provides overdraft details for a specific tier or band"
                      type: "object"
                      properties:
                        Identification:
                          description: "Unique and unambiguous identification of a  Tier Band for a overdraft."
                          title: "Identification"
                          type: "string"
                          minLength: 1
                          maxLength: 35
                        TierValueMin:
                          description: "Minimum value of Overdraft Tier/Band"
                          title: "TierValueMin"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                        TierValueMax:
                          description: "Maximum value of Overdraft Tier/Band"
                          title: "TierValueMax"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                        EAR:
                          description: "EAR means Effective Annual Rate and/or Equivalent Annual Rate (frequently\nused interchangeably), being the actual annual interest rate of an Overdraft."
                          title: "EAR"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                        RepresentativeAPR:
                          description: "An annual percentage rate (APR) is the annual rate charged for borrowing or earned through an investment. APR is expressed as a percentage that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction but does not take compounding into account."
                          title: "RepresentativeAPR"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "0"
                        AgreementLengthMin:
                          description: "Specifies the minimum length of a band for a fixed overdraft agreement"
                          title: "AgreementLengthMin"
                          type: "number"
                          format: "float"
                          example: "2.2"
                        AgreementLengthMax:
                          description: "Specifies the maximum length of a band for a fixed overdraft agreement"
                          title: "AgreementLengthMax"
                          type: "number"
                          format: "float"
                          example: "1.1"
                        AgreementPeriod:
                          description: "Specifies the period of a fixed length overdraft agreement"
                          title: "AgreementPeriod"
                          type: "string"
                          enum:
                            - "Day"
                            - "Half Year"
                            - "Month"
                            - "Quarter"
                            - "Week"
                            - "Year"
                          example: "Day"
                        OverdraftInterestChargingCoverage:
                          description: "Refers to which interest rate is applied when interests are tiered. For example, if an overdraft balance is £2k and the interest tiers are:- 0-£500 0.1%, 500-1000 0.2%, 1000-10000 0.5%, then the applicable interest rate could either be 0.5% of the entire balance (since the account balance sits in the top interest tier) or (0.1%*500)+(0.2%*500)+(0.5%*1000). In the 1st situation, we say the interest is applied to the ‘Whole’ of the account balance,  and in the 2nd that it is ‘Tiered’."
                          title: "OverdraftInterestChargingCoverage"
                          type: "string"
                          enum:
                            - "Banded"
                            - "Tiered"
                            - "Whole"
                          example: "Whole"
                        BankGuaranteedIndicator:
                          description: "Indicates whether the advertised overdraft rate is guaranteed to be offered to a borrower by the bank e.g. if it’s part of a government scheme, or whether the rate may vary dependent on the applicant’s circumstances."
                          title: "BankGuaranteedIndicator"
                          type: "boolean"
                        Notes:
                          description: "Optional additional notes to supplement the Tier/band details"
                          title: "Notes"
                          type: "array"
                          items:
                            description: "maxLength 2000 text"
                            type: "string"
                            minLength: 1
                            maxLength: 2000
                        OverdraftFeesCharges:
                          description: "Overdraft fees and charges"
                          type: "array"
                          title: "OverdraftFeesCharges"
                          items:
                            description: "Overdraft fees and charges"
                            type: "object"
                            properties:
                              OverdraftFeeChargeCap:
                                description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                type: "array"
                                title: "OverdraftFeeChargeCap"
                                items:
                                  description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                  type: "object"
                                  properties:
                                    FeeType:
                                      description: "Fee/charge type which is being capped"
                                      title: "FeeType"
                                      type: "array"
                                      items:
                                        description: "Overdraft fee type"
                                        type: "string"
                                        enum:
                                          - "ArrangedOverdraft"
                                          - "AnnualReview"
                                          - "EmergencyBorrowing"
                                          - "BorrowingItem"
                                          - "OverdraftRenewal"
                                          - "OverdraftSetup"
                                          - "Surcharge"
                                          - "TempOverdraft"
                                          - "UnauthorisedBorrowing"
                                          - "UnauthorisedPaidTrans"
                                          - "Other"
                                          - "UnauthorisedUnpaidTrans"
                                      minItems: 1
                                      example: "AnnualReview"
                                    MinMaxType:
                                      description: "Min Max type"
                                      title: "MinMaxType"
                                      type: "string"
                                      enum:
                                        - "Minimum"
                                        - "Maximum"
                                      example: "Minimum"
                                    FeeCapOccurrence:
                                      description: "Indicates whether the advertised overdraft rate is guaranteed to be offered to a borrower by the bank e.g. if it’s part of a government scheme, or whether the rate may vary dependent on the applicant’s circumstances."
                                      title: "FeeCapOccurrence"
                                      type: "number"
                                      format: "float"
                                      example: "0"
                                    FeeCapAmount:
                                      description: "Cap amount charged for a fee/charge"
                                      title: "FeeCapAmount"
                                      type: "string"
                                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "0"
                                    CappingPeriod:
                                      description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                      title: "CappingPeriod"
                                      type: "string"
                                      enum:
                                        - "Day"
                                        - "Half Year"
                                        - "Month"
                                        - "Quarter"
                                        - "Week"
                                        - "Year"
                                      example: "Day"
                                    Notes:
                                      description: "Notes related to Overdraft fee charge cap"
                                      title: "Notes"
                                      type: "array"
                                      items:
                                        description: "maxLength 2000 text"
                                        type: "string"
                                        minLength: 1
                                        maxLength: 2000
                                    OtherFeeType:
                                      description: "Other fee type code which is not available in the standard code set"
                                      type: "array"
                                      title: "OtherFeeType"
                                      items:
                                        description: "Other fee type code which is not available in the standard code set"
                                        type: "object"
                                        properties:
                                          Code:
                                            description: "The four letter Mnemonic used within an XML file to identify a code"
                                            title: "Code"
                                            type: "string"
                                            pattern: "^\\w{0,4}$"
                                            minLength: 0
                                            maxLength: 4
                                            example: "ABC"
                                          Name:
                                            description: "Long name associated with the code"
                                            title: "Name"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 70
                                            example: "Jerry Smith"
                                          Description:
                                            description: "Description to describe the purpose of the code"
                                            title: "Description"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 350
                                            example: "smaple desc"
                                        required:
                                          - "Name"
                                          - "Description"
                                  required:
                                    - "FeeType"
                                    - "MinMaxType"
                              OverdraftFeeChargeDetail:
                                description: "Details about the fees/charges"
                                type: "array"
                                title: "OverdraftFeeChargeDetail"
                                items:
                                  description: "Details about the fees/charges"
                                  type: "object"
                                  properties:
                                    FeeType:
                                      description: "Overdraft fee type"
                                      title: "FeeType"
                                      type: "string"
                                      enum:
                                        - "ArrangedOverdraft"
                                        - "AnnualReview"
                                        - "EmergencyBorrowing"
                                        - "BorrowingItem"
                                        - "OverdraftRenewal"
                                        - "OverdraftSetup"
                                        - "Surcharge"
                                        - "TempOverdraft"
                                        - "UnauthorisedBorrowing"
                                        - "UnauthorisedPaidTrans"
                                        - "Other"
                                        - "UnauthorisedUnpaidTrans"
                                    NegotiableIndicator:
                                      description: "Indicates whether fee and charges are negotiable"
                                      title: "NegotiableIndicator"
                                      type: "boolean"
                                      example: "true"
                                    OverdraftControlIndicator:
                                      description: "Indicates if the fee/charge is already covered by an 'Overdraft Control' fee or not."
                                      title: "OverdraftControlIndicator"
                                      type: "boolean"
                                      example: "true"
                                    IncrementalBorrowingAmount:
                                      description: "Every additional tranche of an overdraft balance to which an overdraft fee is applied"
                                      title: "IncrementalBorrowingAmount"
                                      type: "string"
                                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "0"
                                    FeeAmount:
                                      description: "Amount charged for an overdraft fee/charge (where it is charged in terms of an amount rather than a rate)"
                                      title: "FeeAmount"
                                      type: "string"
                                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "0"
                                    FeeRate:
                                      description: "Rate charged for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                      title: "FeeRate"
                                      type: "string"
                                      pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "0"
                                    FeeRateType:
                                      description: "Rate type for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                      title: "FeeRateType"
                                      type: "string"
                                      enum:
                                        - "Gross"
                                        - "Other"
                                      example: "Other"
                                    ApplicationFrequency:
                                      description: "Frequency at which the overdraft charge is applied to the account"
                                      title: "ApplicationFrequency"
                                      type: "string"
                                      enum:
                                        - "OnClosing"
                                        - "OnOpening"
                                        - "ChargingPeriod"
                                        - "Daily"
                                        - "PerItem"
                                        - "Monthly"
                                        - "OnAnniversary"
                                        - "Other"
                                        - "PerHundredPounds"
                                        - "PerHour"
                                        - "PerOccurrence"
                                        - "PerSheet"
                                        - "PerTransaction"
                                        - "PerTransactionAmount"
                                        - "PerTransactionPercentage"
                                        - "Quarterly"
                                        - "SixMonthly"
                                        - "StatementMonthly"
                                        - "Weekly"
                                        - "Yearly"
                                      example: "Weekly"
                                    CalculationFrequency:
                                      description: "How often is the overdraft fee/charge calculated for the account."
                                      title: "CalculationFrequency"
                                      type: "string"
                                      enum:
                                        - "OnClosing"
                                        - "OnOpening"
                                        - "ChargingPeriod"
                                        - "Daily"
                                        - "PerItem"
                                        - "Monthly"
                                        - "OnAnniversary"
                                        - "Other"
                                        - "PerHundredPounds"
                                        - "PerHour"
                                        - "PerOccurrence"
                                        - "PerSheet"
                                        - "PerTransaction"
                                        - "PerTransactionAmount"
                                        - "PerTransactionPercentage"
                                        - "Quarterly"
                                        - "SixMonthly"
                                        - "StatementMonthly"
                                        - "Weekly"
                                        - "Yearly"
                                      example: "Yearly"
                                    Notes:
                                      description: "Free text for capturing any other info related to Overdraft Fees Charge Details"
                                      title: "Notes"
                                      type: "array"
                                      items:
                                        description: "maxLength 2000 text"
                                        type: "string"
                                        minLength: 1
                                        maxLength: 2000
                                    OverdraftFeeChargeCap:
                                      description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                      type: "array"
                                      title: "OverdraftFeeChargeCap"
                                      items:
                                        description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                        type: "object"
                                        properties:
                                          FeeType:
                                            description: "Fee/charge type which is being capped"
                                            title: "FeeType"
                                            type: "array"
                                            items:
                                              description: "Overdraft fee type"
                                              type: "string"
                                              enum:
                                                - "ArrangedOverdraft"
                                                - "AnnualReview"
                                                - "EmergencyBorrowing"
                                                - "BorrowingItem"
                                                - "OverdraftRenewal"
                                                - "OverdraftSetup"
                                                - "Surcharge"
                                                - "TempOverdraft"
                                                - "UnauthorisedBorrowing"
                                                - "UnauthorisedPaidTrans"
                                                - "Other"
                                                - "UnauthorisedUnpaidTrans"
                                            minItems: 1
                                          MinMaxType:
                                            description: "Min Max type"
                                            title: "MinMaxType"
                                            type: "string"
                                            enum:
                                              - "Minimum"
                                              - "Maximum"
                                            example: "Minimum"
                                          FeeCapOccurrence:
                                            description: "Indicates whether the advertised overdraft rate is guaranteed to be offered to a borrower by the bank e.g. if it’s part of a government scheme, or whether the rate may vary dependent on the applicant’s circumstances."
                                            title: "FeeCapOccurrence"
                                            type: "number"
                                            format: "float"
                                            example: "0.25"
                                          FeeCapAmount:
                                            description: "Cap amount charged for a fee/charge"
                                            title: "FeeCapAmount"
                                            type: "string"
                                            pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                            example: "33.1"
                                          CappingPeriod:
                                            description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                            title: "CappingPeriod"
                                            type: "string"
                                            enum:
                                              - "Day"
                                              - "Half Year"
                                              - "Month"
                                              - "Quarter"
                                              - "Week"
                                              - "Year"
                                            example: "Day"
                                          Notes:
                                            description: "Notes related to Overdraft fee charge cap"
                                            title: "Notes"
                                            type: "array"
                                            items:
                                              description: "maxLength 2000 text"
                                              type: "string"
                                              minLength: 1
                                              maxLength: 2000
                                          OtherFeeType:
                                            description: "Other fee type code which is not available in the standard code set"
                                            type: "array"
                                            title: "OtherFeeType"
                                            items:
                                              description: "Other fee type code which is not available in the standard code set"
                                              type: "object"
                                              properties:
                                                Code:
                                                  description: "The four letter Mnemonic used within an XML file to identify a code"
                                                  title: "Code"
                                                  type: "string"
                                                  pattern: "^\\w{0,4}$"
                                                  minLength: 0
                                                  maxLength: 4
                                                  example: "ABC"
                                                Name:
                                                  description: "Long name associated with the code"
                                                  title: "Name"
                                                  type: "string"
                                                  minLength: 1
                                                  maxLength: 70
                                                  example: "Jerry Smith"
                                                Description:
                                                  description: "Description to describe the purpose of the code"
                                                  title: "Description"
                                                  type: "string"
                                                  minLength: 1
                                                  maxLength: 350
                                                  example: "desc."
                                              required:
                                                - "Name"
                                                - "Description"
                                        required:
                                          - "FeeType"
                                          - "MinMaxType"
                                    OtherFeeType:
                                      description: "Other Fee type which is not available in the standard code set"
                                      type: "object"
                                      title: "OtherFeeType"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "ABC"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "Jerry Smith"
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "desc."
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                    OtherFeeRateType:
                                      description: "Other fee rate type code which is not available in the standard code set"
                                      type: "object"
                                      title: "OtherFeeRateType"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "ABC"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "Jerry Smith"
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "desc."
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                    OtherApplicationFrequency:
                                      description: "Other application frequencies that are not available in the standard code list"
                                      type: "object"
                                      title: "OtherApplicationFrequency"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "OBP"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "ABC"
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "Desc"
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                    OtherCalculationFrequency:
                                      description: "Other calculation frequency which is not available in the standard code set."
                                      type: "object"
                                      title: "OtherCalculationFrequency"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "OBP"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "ABC"
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "DESC"
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                  required:
                                    - "FeeType"
                                    - "ApplicationFrequency"
                                minItems: 1
                            required:
                              - "OverdraftFeeChargeDetail"
                      required:
                        - "TierValueMin"
                    minItems: 1
                  OverdraftFeesCharges:
                    description: "Overdraft fees and charges details"
                    type: "array"
                    title: "OverdraftFeesCharges"
                    items:
                      description: "Overdraft fees and charges details"
                      type: "object"
                      properties:
                        OverdraftFeeChargeCap:
                          description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                          type: "array"
                          title: "OverdraftFeeChargeCap"
                          items:
                            description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                            type: "object"
                            properties:
                              FeeType:
                                description: "Fee/charge type which is being capped"
                                title: "FeeType"
                                type: "array"
                                items:
                                  description: "Overdraft fee type"
                                  type: "string"
                                  enum:
                                    - "ArrangedOverdraft"
                                    - "AnnualReview"
                                    - "EmergencyBorrowing"
                                    - "BorrowingItem"
                                    - "OverdraftRenewal"
                                    - "OverdraftSetup"
                                    - "Surcharge"
                                    - "TempOverdraft"
                                    - "UnauthorisedBorrowing"
                                    - "UnauthorisedPaidTrans"
                                    - "Other"
                                    - "UnauthorisedUnpaidTrans"
                                minItems: 1
                              MinMaxType:
                                description: "Min Max type"
                                title: "MinMaxType"
                                type: "string"
                                enum:
                                  - "Minimum"
                                  - "Maximum"
                                example: "Minimum"
                              FeeCapOccurrence:
                                description: "Indicates whether the advertised overdraft rate is guaranteed to be offered to a borrower by the bank e.g. if it’s part of a government scheme, or whether the rate may vary dependent on the applicant’s circumstances."
                                title: "FeeCapOccurrence"
                                type: "number"
                                format: "float"
                                example: "1.1"
                              FeeCapAmount:
                                description: "Cap amount charged for a fee/charge"
                                title: "FeeCapAmount"
                                type: "string"
                                pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                example: "0"
                              CappingPeriod:
                                description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                title: "CappingPeriod"
                                type: "string"
                                enum:
                                  - "Day"
                                  - "Half Year"
                                  - "Month"
                                  - "Quarter"
                                  - "Week"
                                  - "Year"
                                example: "Day"
                              Notes:
                                description: "Notes related to Overdraft fee charge cap"
                                title: "Notes"
                                type: "array"
                                items:
                                  description: "maxLength 2000 text"
                                  type: "string"
                                  minLength: 1
                                  maxLength: 2000
                              OtherFeeType:
                                description: "Other fee type code which is not available in the standard code set"
                                type: "array"
                                title: "OtherFeeType"
                                items:
                                  description: "Other fee type code which is not available in the standard code set"
                                  type: "object"
                                  properties:
                                    Code:
                                      description: "The four letter Mnemonic used within an XML file to identify a code"
                                      title: "Code"
                                      type: "string"
                                      pattern: "^\\w{0,4}$"
                                      minLength: 0
                                      maxLength: 4
                                      example: "SDR"
                                    Name:
                                      description: "Long name associated with the code"
                                      title: "Name"
                                      type: "string"
                                      minLength: 1
                                      maxLength: 70
                                    Description:
                                      description: "Description to describe the purpose of the code"
                                      title: "Description"
                                      type: "string"
                                      minLength: 1
                                      maxLength: 350
                                      example: "Desc test"
                                  required:
                                    - "Name"
                                    - "Description"
                            required:
                              - "FeeType"
                              - "MinMaxType"
                        OverdraftFeeChargeDetail:
                          description: "Details about the fees/charges"
                          type: "array"
                          title: "OverdraftFeeChargeDetail"
                          items:
                            description: "Details about the fees/charges"
                            type: "object"
                            properties:
                              FeeType:
                                description: "Overdraft fee type"
                                title: "FeeType"
                                type: "string"
                                enum:
                                  - "ArrangedOverdraft"
                                  - "AnnualReview"
                                  - "EmergencyBorrowing"
                                  - "BorrowingItem"
                                  - "OverdraftRenewal"
                                  - "OverdraftSetup"
                                  - "Surcharge"
                                  - "TempOverdraft"
                                  - "UnauthorisedBorrowing"
                                  - "UnauthorisedPaidTrans"
                                  - "Other"
                                  - "UnauthorisedUnpaidTrans"
                              NegotiableIndicator:
                                description: "Indicates whether fee and charges are negotiable"
                                title: "NegotiableIndicator"
                                type: "boolean"
                                example: "true"
                              OverdraftControlIndicator:
                                description: "Indicates if the fee/charge is already covered by an 'Overdraft Control' fee or not."
                                title: "OverdraftControlIndicator"
                                type: "boolean"
                                example: "true"
                              IncrementalBorrowingAmount:
                                description: "Every additional tranche of an overdraft balance to which an overdraft fee is applied"
                                title: "IncrementalBorrowingAmount"
                                type: "string"
                                pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                example: "0"
                              FeeAmount:
                                description: "Amount charged for an overdraft fee/charge (where it is charged in terms of an amount rather than a rate)"
                                title: "FeeAmount"
                                type: "string"
                                pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                example: "0"
                              FeeRate:
                                description: "Rate charged for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                title: "FeeRate"
                                type: "string"
                                pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                example: "0"
                              FeeRateType:
                                description: "Rate type for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                title: "FeeRateType"
                                type: "string"
                                enum:
                                  - "Gross"
                                  - "Other"
                                example: "Gross"
                              ApplicationFrequency:
                                description: "Frequency at which the overdraft charge is applied to the account"
                                title: "ApplicationFrequency"
                                type: "string"
                                enum:
                                  - "OnClosing"
                                  - "OnOpening"
                                  - "ChargingPeriod"
                                  - "Daily"
                                  - "PerItem"
                                  - "Monthly"
                                  - "OnAnniversary"
                                  - "Other"
                                  - "PerHundredPounds"
                                  - "PerHour"
                                  - "PerOccurrence"
                                  - "PerSheet"
                                  - "PerTransaction"
                                  - "PerTransactionAmount"
                                  - "PerTransactionPercentage"
                                  - "Quarterly"
                                  - "SixMonthly"
                                  - "StatementMonthly"
                                  - "Weekly"
                                  - "Yearly"
                                example: "Yearly"
                              CalculationFrequency:
                                description: "How often is the overdraft fee/charge calculated for the account."
                                title: "CalculationFrequency"
                                type: "string"
                                enum:
                                  - "OnClosing"
                                  - "OnOpening"
                                  - "ChargingPeriod"
                                  - "Daily"
                                  - "PerItem"
                                  - "Monthly"
                                  - "OnAnniversary"
                                  - "Other"
                                  - "PerHundredPounds"
                                  - "PerHour"
                                  - "PerOccurrence"
                                  - "PerSheet"
                                  - "PerTransaction"
                                  - "PerTransactionAmount"
                                  - "PerTransactionPercentage"
                                  - "Quarterly"
                                  - "SixMonthly"
                                  - "StatementMonthly"
                                  - "Weekly"
                                  - "Yearly"
                                example: "Daily"
                              Notes:
                                description: "Free text for capturing any other info related to Overdraft Fees Charge Details"
                                title: "Notes"
                                type: "array"
                                items:
                                  description: "maxLength 2000 text"
                                  type: "string"
                                  minLength: 1
                                  maxLength: 2000
                              OverdraftFeeChargeCap:
                                description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                type: "array"
                                title: "OverdraftFeeChargeCap"
                                items:
                                  description: "Details about any caps (maximum charges) that apply to a particular fee/charge. Capping can either be based on an amount (in gbp), an amount (in items) or a rate."
                                  type: "object"
                                  properties:
                                    FeeType:
                                      description: "Fee/charge type which is being capped"
                                      title: "FeeType"
                                      type: "array"
                                      items:
                                        description: "Overdraft fee type"
                                        type: "string"
                                        enum:
                                          - "ArrangedOverdraft"
                                          - "AnnualReview"
                                          - "EmergencyBorrowing"
                                          - "BorrowingItem"
                                          - "OverdraftRenewal"
                                          - "OverdraftSetup"
                                          - "Surcharge"
                                          - "TempOverdraft"
                                          - "UnauthorisedBorrowing"
                                          - "UnauthorisedPaidTrans"
                                          - "Other"
                                          - "UnauthorisedUnpaidTrans"
                                      minItems: 1
                                    MinMaxType:
                                      description: "Min Max type"
                                      title: "MinMaxType"
                                      type: "string"
                                      enum:
                                        - "Minimum"
                                        - "Maximum"
                                      example: "Minimum"
                                    FeeCapOccurrence:
                                      description: "Indicates whether the advertised overdraft rate is guaranteed to be offered to a borrower by the bank e.g. if it’s part of a government scheme, or whether the rate may vary dependent on the applicant’s circumstances."
                                      title: "FeeCapOccurrence"
                                      type: "number"
                                      format: "float"
                                      example: "1.1"
                                    FeeCapAmount:
                                      description: "Cap amount charged for a fee/charge"
                                      title: "FeeCapAmount"
                                      type: "string"
                                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "0"
                                    CappingPeriod:
                                      description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                      title: "CappingPeriod"
                                      type: "string"
                                      enum:
                                        - "Day"
                                        - "Half Year"
                                        - "Month"
                                        - "Quarter"
                                        - "Week"
                                        - "Year"
                                      example: "Quarter"
                                    Notes:
                                      description: "Notes related to Overdraft fee charge cap"
                                      title: "Notes"
                                      type: "array"
                                      items:
                                        description: "maxLength 2000 text"
                                        type: "string"
                                        minLength: 1
                                        maxLength: 2000
                                    OtherFeeType:
                                      description: "Other fee type code which is not available in the standard code set"
                                      type: "array"
                                      title: "OtherFeeType"
                                      items:
                                        description: "Other fee type code which is not available in the standard code set"
                                        type: "object"
                                        properties:
                                          Code:
                                            description: "The four letter Mnemonic used within an XML file to identify a code"
                                            title: "Code"
                                            type: "string"
                                            pattern: "^\\w{0,4}$"
                                            minLength: 0
                                            maxLength: 4
                                            example: "ABC"
                                          Name:
                                            description: "Long name associated with the code"
                                            title: "Name"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 70
                                            example: "Bobby Lee"
                                          Description:
                                            description: "Description to describe the purpose of the code"
                                            title: "Description"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 350
                                            example: "desc."
                                        required:
                                          - "Name"
                                          - "Description"
                                  required:
                                    - "FeeType"
                                    - "MinMaxType"
                              OtherFeeType:
                                description: "Other Fee type which is not available in the standard code set"
                                type: "object"
                                title: "OtherFeeType"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "ABC"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "Jerry Smith"
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "desc."
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                              OtherFeeRateType:
                                description: "Other fee rate type code which is not available in the standard code set"
                                type: "object"
                                title: "OtherFeeRateType"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "ABC"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "Jerry Smith"
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "desc."
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                              OtherApplicationFrequency:
                                description: "Other application frequencies that are not available in the standard code list"
                                type: "object"
                                title: "OtherApplicationFrequency"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "ABC"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "Jerry Smith"
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "desc."
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                              OtherCalculationFrequency:
                                description: "Other calculation frequency which is not available in the standard code set."
                                type: "object"
                                title: "OtherCalculationFrequency"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "ABC"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "Bobby Lee"
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "dsec."
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                            required:
                              - "FeeType"
                              - "ApplicationFrequency"
                          minItems: 1
                      required:
                        - "OverdraftFeeChargeDetail"
                required:
                  - "TierBandMethod"
                  - "OverdraftTierBand"
              minItems: 1
          additionalProperties: false
          required:
            - "OverdraftTierBandSet"
        OtherFeesCharges:
          description: "Contains details of fees and charges which are not associated with either Overdraft or features/benefits"
          type: "array"
          title: "OtherFeesCharges"
          items:
            description: "Contains details of fees and charges which are not associated with either Overdraft or features/benefits"
            type: "object"
            properties:
              TariffType:
                description: "TariffType which defines the fee and charges."
                title: "TariffType"
                type: "string"
                enum:
                  - "Electronic"
                  - "Mixed"
                  - "Other"
              TariffName:
                description: "Name of the tariff"
                title: "TariffName"
                type: "string"
                minLength: 1
                maxLength: 350
              OtherTariffType:
                description: "Other tariff type which is not in the standard list."
                type: "object"
                title: "OtherTariffType"
                properties:
                  Code:
                    description: "The four letter Mnemonic used within an XML file to identify a code"
                    title: "Code"
                    type: "string"
                    pattern: "^\\w{0,4}$"
                    minLength: 0
                    maxLength: 4
                    example: "XXX"
                  Name:
                    description: "Long name associated with the code"
                    title: "Name"
                    type: "string"
                    minLength: 1
                    maxLength: 70
                    example: "Bobby Lee"
                  Description:
                    description: "Description to describe the purpose of the code"
                    title: "Description"
                    type: "string"
                    minLength: 1
                    maxLength: 350
                    example: "desc."
                additionalProperties: false
                required:
                  - "Name"
                  - "Description"
              FeeChargeDetail:
                description: "Other fees/charges details"
                type: "array"
                title: "FeeChargeDetail"
                items:
                  description: "Other fees/charges details"
                  type: "object"
                  properties:
                    FeeCategory:
                      description: "Categorisation of fees and charges into standard categories."
                      title: "FeeCategory"
                      type: "string"
                      enum:
                        - "Other"
                        - "Servicing"
                    FeeType:
                      description: "Fee/Charge Type"
                      title: "FeeType"
                      type: "string"
                      enum:
                        - "Other"
                        - "ServiceCAccountFee"
                        - "ServiceCAccountFeeMonthly"
                        - "ServiceCAccountFeeQuarterly"
                        - "ServiceCFixedTariff"
                        - "ServiceCBusiDepAccBreakage"
                        - "ServiceCMinimumMonthlyFee"
                        - "ServiceCOther"
                    NegotiableIndicator:
                      description: "Fee/charge which is usually negotiable rather than a fixed amount"
                      title: "NegotiableIndicator"
                      type: "boolean"
                      example: "True"
                    FeeAmount:
                      description: "Fee Amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
                      title: "FeeAmount"
                      type: "string"
                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                      example: "0"
                    FeeRate:
                      description: "Rate charged for Fee/Charge (where it is charged in terms of a rate rather than an amount)"
                      title: "FeeRate"
                      type: "string"
                      pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                      example: "0"
                    FeeRateType:
                      description: "Rate type for Fee/Charge (where it is charged in terms of a rate rather than an amount)"
                      title: "FeeRateType"
                      type: "string"
                      enum:
                        - "Gross"
                        - "Other"
                      example: "Gross"
                    ApplicationFrequency:
                      description: "How frequently the fee/charge is applied to the account"
                      title: "ApplicationFrequency"
                      type: "string"
                      enum:
                        - "OnClosing"
                        - "OnOpening"
                        - "ChargingPeriod"
                        - "Daily"
                        - "PerItem"
                        - "Monthly"
                        - "OnAnniversary"
                        - "Other"
                        - "PerHundredPounds"
                        - "PerHour"
                        - "PerOccurrence"
                        - "PerSheet"
                        - "PerTransaction"
                        - "PerTransactionAmount"
                        - "PerTransactionPercentage"
                        - "Quarterly"
                        - "SixMonthly"
                        - "StatementMonthly"
                        - "Weekly"
                        - "Yearly"
                      example: "PerTransactionPercentage"
                    CalculationFrequency:
                      description: "How frequently the fee/charge is calculated"
                      title: "CalculationFrequency"
                      type: "string"
                      enum:
                        - "OnClosing"
                        - "OnOpening"
                        - "ChargingPeriod"
                        - "Daily"
                        - "PerItem"
                        - "Monthly"
                        - "OnAnniversary"
                        - "Other"
                        - "PerHundredPounds"
                        - "PerHour"
                        - "PerOccurrence"
                        - "PerSheet"
                        - "PerTransaction"
                        - "PerTransactionAmount"
                        - "PerTransactionPercentage"
                        - "Quarterly"
                        - "SixMonthly"
                        - "StatementMonthly"
                        - "Weekly"
                        - "Yearly"
                      example: "PerHour"
                    Notes:
                      description: "Optional additional notes to supplement the fee/charge details."
                      title: "Notes"
                      type: "array"
                      items:
                        description: "maxLength 2000 text"
                        type: "string"
                        minLength: 1
                        maxLength: 2000
                    FeeChargeCap:
                      description: "Details about any caps (maximum charges) that apply to a particular or group of fee/charge"
                      type: "array"
                      title: "FeeChargeCap"
                      items:
                        description: "Details about any caps (maximum charges) that apply to a particular or group of fee/charge"
                        type: "object"
                        properties:
                          FeeType:
                            description: "Fee/charge type which is being capped"
                            title: "FeeType"
                            type: "array"
                            items:
                              description: "Fee/charge type which is being capped"
                              type: "string"
                              enum:
                                - "Other"
                                - "ServiceCAccountFee"
                                - "ServiceCAccountFeeMonthly"
                                - "ServiceCAccountFeeQuarterly"
                                - "ServiceCFixedTariff"
                                - "ServiceCBusiDepAccBreakage"
                                - "ServiceCMinimumMonthlyFee"
                                - "ServiceCOther"
                            minItems: 1
                          MinMaxType:
                            description: "Min Max type"
                            title: "MinMaxType"
                            type: "string"
                            enum:
                              - "Minimum"
                              - "Maximum"
                            example: "Minimum"
                          FeeCapOccurrence:
                            description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                            title: "FeeCapOccurrence"
                            type: "number"
                            format: "float"
                            example: "0"
                          FeeCapAmount:
                            description: "Cap amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
                            title: "FeeCapAmount"
                            type: "string"
                            pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                            example: "0"
                          CappingPeriod:
                            description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                            title: "CappingPeriod"
                            type: "string"
                            enum:
                              - "Day"
                              - "Half Year"
                              - "Month"
                              - "Quarter"
                              - "Week"
                              - "Year"
                            example: "Day"
                          Notes:
                            description: "Free text for adding  extra details for fee charge cap"
                            title: "Notes"
                            type: "array"
                            items:
                              description: "maxLength 2000 text"
                              type: "string"
                              minLength: 1
                              maxLength: 2000
                          OtherFeeType:
                            description: "Other fee type code which is not available in the standard code set"
                            type: "array"
                            title: "OtherFeeType"
                            items:
                              description: "Other fee type code which is not available in the standard code set"
                              type: "object"
                              properties:
                                Code:
                                  description: "The four letter Mnemonic used within an XML file to identify a code"
                                  title: "Code"
                                  type: "string"
                                  pattern: "^\\w{0,4}$"
                                  minLength: 0
                                  maxLength: 4
                                  example: "ABC"
                                Name:
                                  description: "Long name associated with the code"
                                  title: "Name"
                                  type: "string"
                                  minLength: 1
                                  maxLength: 70
                                  example: "Bobby Lee"
                                Description:
                                  description: "Description to describe the purpose of the code"
                                  title: "Description"
                                  type: "string"
                                  minLength: 1
                                  maxLength: 350
                                  example: "desc."
                              required:
                                - "Name"
                                - "Description"
                        required:
                          - "FeeType"
                          - "MinMaxType"
                    OtherFeeCategoryType:
                      type: "object"
                      title: "OtherFeeCategoryType"
                      properties:
                        Code:
                          description: "The four letter Mnemonic used within an XML file to identify a code"
                          title: "Code"
                          type: "string"
                          pattern: "^\\w{0,4}$"
                          minLength: 0
                          maxLength: 4
                          example: "ABC"
                        Name:
                          description: "Long name associated with the code"
                          title: "Name"
                          type: "string"
                          minLength: 1
                          maxLength: 70
                          example: "Bobby Lee"
                        Description:
                          description: "Description to describe the purpose of the code"
                          title: "Description"
                          type: "string"
                          minLength: 1
                          maxLength: 350
                          example: "desc"
                      additionalProperties: false
                      required:
                        - "Name"
                        - "Description"
                    OtherFeeType:
                      description: "Other Fee/charge type which is not available in the standard code set"
                      type: "object"
                      title: "OtherFeeType"
                      properties:
                        Code:
                          description: "The four letter Mnemonic used within an XML file to identify a code"
                          title: "Code"
                          type: "string"
                          pattern: "^\\w{0,4}$"
                          minLength: 0
                          maxLength: 4
                          example: "ABC"
                        FeeCategory:
                          description: "Categorisation of fees and charges into standard categories."
                          title: "FeeCategory"
                          type: "string"
                          enum:
                            - "Other"
                            - "Servicing"
                          example: "Other"
                        Name:
                          description: "Long name associated with the code"
                          title: "Name"
                          type: "string"
                          minLength: 1
                          maxLength: 70
                          example: "Bobby Lee"
                        Description:
                          description: "Description to describe the purpose of the code"
                          title: "Description"
                          type: "string"
                          minLength: 1
                          maxLength: 350
                          example: "desc."
                      additionalProperties: false
                      required:
                        - "FeeCategory"
                        - "Name"
                        - "Description"
                    OtherFeeRateType:
                      description: "Other fee rate type which is not available in the standard code set"
                      type: "object"
                      title: "OtherFeeRateType"
                      properties:
                        Code:
                          description: "The four letter Mnemonic used within an XML file to identify a code"
                          title: "Code"
                          type: "string"
                          pattern: "^\\w{0,4}$"
                          minLength: 0
                          maxLength: 4
                          example: "ABC"
                        Name:
                          description: "Long name associated with the code"
                          title: "Name"
                          type: "string"
                          minLength: 1
                          maxLength: 70
                          example: "Bobby Lee"
                        Description:
                          description: "Description to describe the purpose of the code"
                          title: "Description"
                          type: "string"
                          minLength: 1
                          maxLength: 350
                          example: "desc"
                      additionalProperties: false
                      required:
                        - "Name"
                        - "Description"
                    OtherApplicationFrequency:
                      description: "Other application frequencies not covered in the standard code list"
                      type: "object"
                      title: "OtherApplicationFrequency"
                      properties:
                        Code:
                          description: "The four letter Mnemonic used within an XML file to identify a code"
                          title: "Code"
                          type: "string"
                          pattern: "^\\w{0,4}$"
                          minLength: 0
                          maxLength: 4
                          example: "ABC"
                        Name:
                          description: "Long name associated with the code"
                          title: "Name"
                          type: "string"
                          minLength: 1
                          maxLength: 70
                          example: "Bobby Lee"
                        Description:
                          description: "Description to describe the purpose of the code"
                          title: "Description"
                          type: "string"
                          minLength: 1
                          maxLength: 350
                          example: "desc."
                      additionalProperties: false
                      required:
                        - "Name"
                        - "Description"
                    OtherCalculationFrequency:
                      description: "Other calculation frequency which is not available in standard code set."
                      type: "object"
                      title: "OtherCalculationFrequency"
                      properties:
                        Code:
                          description: "The four letter Mnemonic used within an XML file to identify a code"
                          title: "Code"
                          type: "string"
                          pattern: "^\\w{0,4}$"
                          minLength: 0
                          maxLength: 4
                          example: "ABC"
                        Name:
                          description: "Long name associated with the code"
                          title: "Name"
                          type: "string"
                          minLength: 1
                          maxLength: 70
                          example: "Jim Morrison"
                        Description:
                          description: "Description to describe the purpose of the code"
                          title: "Description"
                          type: "string"
                          minLength: 1
                          maxLength: 350
                          example: "desc."
                      additionalProperties: false
                      required:
                        - "Name"
                        - "Description"
                    FeeApplicableRange:
                      description: "Range or amounts or rates for which the fee/charge applies"
                      type: "object"
                      title: "FeeApplicableRange"
                      properties:
                        MinimumAmount:
                          description: "Minimum Amount on which fee/charge is applicable (where it is expressed as an amount)"
                          title: "MinimumAmount"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "10"
                        MaximumAmount:
                          description: "Maximum Amount on which fee is applicable (where it is expressed as an amount)"
                          title: "MaximumAmount"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "100"
                        MinimumRate:
                          description: "Minimum rate on which fee/charge is applicable(where it is expressed as an rate)"
                          title: "MinimumRate"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "0"
                        MaximumRate:
                          description: "Maximum rate on which fee/charge is applicable(where it is expressed as an rate)"
                          title: "MaximumRate"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "1"
                      additionalProperties: false
                  required:
                    - "FeeCategory"
                    - "FeeType"
                    - "ApplicationFrequency"
                minItems: 1
              FeeChargeCap:
                description: "Details about any caps (maximum charges) that apply to a particular or group of fee/charge"
                type: "array"
                title: "FeeChargeCap"
                items:
                  description: "Details about any caps (maximum charges) that apply to a particular or group of fee/charge"
                  type: "object"
                  properties:
                    FeeType:
                      description: "Fee/charge type which is being capped"
                      title: "FeeType"
                      type: "array"
                      items:
                        description: "Fee/charge type which is being capped"
                        type: "string"
                        enum:
                          - "Other"
                          - "ServiceCAccountFee"
                          - "ServiceCAccountFeeMonthly"
                          - "ServiceCAccountFeeQuarterly"
                          - "ServiceCFixedTariff"
                          - "ServiceCBusiDepAccBreakage"
                          - "ServiceCMinimumMonthlyFee"
                          - "ServiceCOther"
                      minItems: 1
                    MinMaxType:
                      description: "Min Max type"
                      title: "MinMaxType"
                      type: "string"
                      enum:
                        - "Minimum"
                        - "Maximum"
                      example: "Minimum"
                    FeeCapOccurrence:
                      description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                      title: "FeeCapOccurrence"
                      type: "number"
                      format: "float"
                      example: "3.41234"
                    FeeCapAmount:
                      description: "Cap amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
                      title: "FeeCapAmount"
                      type: "string"
                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                      example: "test value"
                    CappingPeriod:
                      description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                      title: "CappingPeriod"
                      type: "string"
                      enum:
                        - "Day"
                        - "Half Year"
                        - "Month"
                        - "Quarter"
                        - "Week"
                        - "Year"
                      example: "Day"
                    Notes:
                      description: "Free text for adding  extra details for fee charge cap"
                      title: "Notes"
                      type: "array"
                      items:
                        description: "maxLength 2000 text"
                        type: "string"
                        minLength: 1
                        maxLength: 2000
                    OtherFeeType:
                      description: "Other fee type code which is not available in the standard code set"
                      type: "array"
                      title: "OtherFeeType"
                      items:
                        description: "Other fee type code which is not available in the standard code set"
                        type: "object"
                        properties:
                          Code:
                            description: "The four letter Mnemonic used within an XML file to identify a code"
                            title: "Code"
                            type: "string"
                            pattern: "^\\w{0,4}$"
                            minLength: 0
                            maxLength: 4
                            example: "ABC"
                          Name:
                            description: "Aaron Lomas"
                            title: "Name"
                            type: "string"
                            minLength: 1
                            maxLength: 70
                            example: "John Pame"
                          Description:
                            description: "Description to describe the purpose of the code"
                            title: "Description"
                            type: "string"
                            minLength: 1
                            maxLength: 350
                            example: "sample description"
                        required:
                          - "Name"
                          - "Description"
                  required:
                    - "FeeType"
                    - "MinMaxType"
            required:
              - "FeeChargeDetail"
      additionalProperties: false
    ExternalBalanceType1Code:
      description: "Balance type, in a coded form."
      type: "string"
      enum:
        - "CLAV"
        - "CLBD"
        - "FWAV"
        - "INFO"
        - "ITAV"
        - "ITBD"
        - "OPAV"
        - "OPBD"
        - "PRCD"
        - "XPCD"
    OBInternalCreditDebitCode:
      description: "Indicates whether the balance is a credit or a debit balance. \nUsage: A zero balance is considered to be a credit balance."
      type: "string"
      enum:
        - "Credit"
        - "Debit"
      example: "Credit"
    OBInternalTransactionMutability1Code:
      description: "Specifies the Mutability of the Transaction record."
      type: "string"
      enum:
        - "Mutable"
        - "Immutable"
      example: "Mutable"
    OBInternalAccountIdentification4Code:
      description: "Name of the identification scheme, in a coded form as published in an external list."
      type: "string"
      enum:
        - "UK.OBIE.BBAN"
        - "UK.OBIE.IBAN"
        - "UK.OBIE.PAN"
        - "UK.OBIE.Paym"
        - "UK.OBIE.SortCodeAccountNumber"
        - "UK.OBIE.Wallet"
      example: "UK.OBIE.BBAN"
    OBExternalCashAccountType1Code:
      description: "Specifies the sub type of account (product family group)."
      type: "string"
      enum:
        - "CHAR"
        - "CARD"
        - "CACC"
        - "LOAN"
        - "SVGS"
        - "WALT"
      example: "CHAR"
    OBInternalAccountType1Code:
      description: "Specifies the type of account (personal or business)."
      type: "string"
      enum:
        - "Business"
        - "Personal"
      example: "Personal"
    ExternalMandateStatus1Code:
      description: "Specifies the external mandate status code in the format of character string with a maximum length of 4 characters.\r\nThe list of valid codes is an external code list published separately.\r\nExternal code sets can be downloaded from www.iso20022.org.\n*`ACTV`-The mandate is active.\n*`CANC`-The mandate is cancelled.\n*`EXPI`-The mandate has passed the end date.\n*`SUSP`-The mandate is put on hold."
      type: "string"
      enum:
        - "SUSP"
        - "ACTV"
        - "CANC"
        - "EXPI"
      example: "ACTV"
    OBInternalFinancialInstitutionIdentification4Code:
      description: "Name of the identification scheme, in a coded form as published in an external list."
      type: "string"
      example: "UK.OBIE.BICFI"
      enum:
        - "UK.OBIE.BICFI"
        - "UK.OBIE.NCC.[ISO3166-aplha2-CountryCode]"
    OBInternalScheduleType1Code:
      description: "Specifies the scheduled payment date type requested"
      type: "string"
      example: "Arrival"
      enum:
        - "Arrival"
        - "Execution"
    OBPCAData1:
      type: "object"
      title: "PCA"
      properties:
        ProductDetails:
          type: "object"
          title: "ProductDetails"
          properties:
            Segment:
              description: "Market segmentation is a marketing term referring to the aggregating of prospective buyers into groups, or segments, that have common needs and respond similarly to a marketing action. Market segmentation enables companies to target different categories of consumers who perceive the full value of certain products and services differently from one another.\n\nRead more: Market Segmentation http://www.investopedia.com/terms/m/marketsegmentation.asp#ixzz4gfEEalTd \nWith respect to PCA products, they are segmented in relation to different markets that they wish to focus on. "
              title: "Segment"
              type: "array"
              items:
                description: "Market segmentation is a marketing term referring to the aggregating of prospective buyers into groups, or segments, that have common needs and respond similarly to a marketing action. Market segmentation enables companies to target different categories of consumers who perceive the full value of certain products and services differently from one another.\n\nRead more: Market Segmentation http://www.investopedia.com/terms/m/marketsegmentation.asp#ixzz4gfEEalTd \nWith respect to PCA products, they are segmented in relation to different markets that they wish to focus on. "
                type: "string"
                enum:
                  - "Basic"
                  - "BenefitAndReward"
                  - "CreditInterest"
                  - "Cashback"
                  - "General"
                  - "Graduate"
                  - "Other"
                  - "Overdraft"
                  - "Packaged"
                  - "Premium"
                  - "Reward"
                  - "Student"
                  - "YoungAdult"
                  - "Youth"
            MonthlyMaximumCharge:
              description: "The maximum relevant charges that could accrue as defined fully in Part 7 of the CMA order"
              title: "MonthlyMaximumCharge"
              type: "string"
              pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
              example: "99"
            Notes:
              description: "Optional additional notes to supplement the Core product details"
              title: "Notes"
              type: "array"
              items:
                description: "maxLength 2000 text"
                type: "string"
                minLength: 1
                maxLength: 2000
          additionalProperties: false
        CreditInterest:
          description: "Details about the interest that may be payable to the PCA account holders"
          type: "object"
          title: "CreditInterest"
          properties:
            TierBandSet:
              description: "The group of tiers or bands for which credit interest can be applied."
              type: "array"
              title: "TierBandSet"
              items:
                description: "The group of tiers or bands for which credit interest can be applied."
                type: "object"
                properties:
                  TierBandMethod:
                    description: "The methodology of how credit interest is charged. It can be:-\n\n1. Banded\nInterest rates are banded. i.e. Increasing rate on whole balance as balance increases.\n\n2. Tiered\nInterest rates are tiered. i.e. increasing rate for each tier as balance increases, but interest paid on tier fixed for that tier and not on whole balance.\n\n3. Whole\nThe same interest rate is applied irrespective of the PCA balance"
                    title: "TierBandMethod"
                    type: "string"
                    example: "Tiered"
                    enum:
                      - "Tiered"
                      - "Whole"
                  CalculationMethod:
                    description: "Methods of calculating interest"
                    title: "CalculationMethod"
                    type: "string"
                    example: "Compound"
                    enum:
                      - "Compound"
                      - "SimpleInterest"
                  Destination:
                    description: "Describes whether accrued interest is payable only to the PCA or to another bank account"
                    title: "Destination"
                    type: "string"
                    example: "PayAway"
                    enum:
                      - "PayAway"
                      - "SelfCredit"
                  Notes:
                    description: "Optional additional notes to supplement the Tier Band Set details"
                    title: "Notes"
                    type: "array"
                    items:
                      description: "maxLength 2000 text"
                      type: "string"
                      minLength: 1
                      maxLength: 2000
                  TierBand:
                    description: "Tier Band Details"
                    type: "array"
                    title: "TierBand"
                    items:
                      description: "Tier Band Details"
                      type: "object"
                      properties:
                        Identification:
                          description: "Unique and unambiguous identification of a  Tier Band for a PCA."
                          title: "Identification"
                          type: "string"
                          minLength: 1
                          maxLength: 35
                        TierValueMinimum:
                          description: "Minimum deposit value for which the credit interest tier applies."
                          title: "TierValueMinimum"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "21,000"
                        TierValueMaximum:
                          description: "Maximum deposit value for which the credit interest tier applies."
                          title: "TierValueMaximum"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "100,000.00"
                        CalculationFrequency:
                          description: "How often is credit interest calculated for the account."
                          title: "CalculationFrequency"
                          type: "string"
                          example: "HalfYearly"
                          enum:
                            - "PerAcademicTerm"
                            - "Daily"
                            - "HalfYearly"
                            - "Monthly"
                            - "Other"
                            - "Quarterly"
                            - "PerStatementDate"
                            - "Weekly"
                            - "Yearly"
                        ApplicationFrequency:
                          description: "How often is interest applied to the PCA for this tier/band i.e. how often the financial institution pays accumulated interest to the customer's PCA."
                          title: "ApplicationFrequency"
                          type: "string"
                          example: "Daily"
                          enum:
                            - "PerAcademicTerm"
                            - "Daily"
                            - "HalfYearly"
                            - "Monthly"
                            - "Other"
                            - "Quarterly"
                            - "PerStatementDate"
                            - "Weekly"
                            - "Yearly"
                        DepositInterestAppliedCoverage:
                          description: "Amount on which Interest applied."
                          title: "DepositInterestAppliedCoverage"
                          type: "string"
                          example: "Tiered"
                          enum:
                            - "Tiered"
                            - "Whole"
                        FixedVariableInterestRateType:
                          description: "Type of interest rate, Fixed or Variable"
                          title: "FixedVariableInterestRateType"
                          type: "string"
                          example: "Variable"
                          enum:
                            - "Fixed"
                            - "Variable"
                        AER:
                          description: "The annual equivalent rate (AER) is interest that is calculated under the assumption that any interest paid is combined with the original balance and the next interest payment will be based on the slightly higher account balance. Overall, this means that interest can be compounded several times in a year depending on the number of times that interest payments are made. \n\nRead more: Annual Equivalent Rate (AER) http://www.investopedia.com/terms/a/aer.asp#ixzz4gfR7IO1A"
                          title: "AER"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                        BankInterestRateType:
                          description: "Interest rate types, other than AER, which financial institutions may use to describe the annual interest rate payable to the PCA."
                          title: "BankInterestRateType"
                          type: "string"
                          example: "Gross"
                          enum:
                            - "LinkedBaseRate"
                            - "Gross"
                            - "Net"
                            - "Other"
                        BankInterestRate:
                          description: "Bank Interest for the PCA product"
                          title: "BankInterestRate"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "test value"
                        Notes:
                          description: "Optional additional notes to supplement the Tier Band details"
                          title: "Notes"
                          type: "array"
                          items:
                            description: "maxLength 2000 text"
                            type: "string"
                            minLength: 1
                            maxLength: 2000
                        OtherBankInterestType:
                          description: "Other interest rate types which are not available in the standard code list"
                          type: "object"
                          title: "OtherBankInterestType"
                          properties:
                            Code:
                              description: "The four letter Mnemonic used within an XML file to identify a code"
                              title: "Code"
                              type: "string"
                              pattern: "^\\w{0,4}$"
                              minLength: 0
                              maxLength: 4
                              example: "XYZ"
                            Name:
                              description: "Long name associated with the code"
                              title: "Name"
                              type: "string"
                              minLength: 1
                              maxLength: 70
                              example: "Code Name"
                            Description:
                              description: "Description to describe the purpose of the code"
                              title: "Description"
                              type: "string"
                              minLength: 1
                              maxLength: 350
                              example: "test value"
                          additionalProperties: false
                          required:
                            - "Name"
                            - "Description"
                        OtherApplicationFrequency:
                          description: "Other application frequencies that are not available in the standard code list"
                          type: "object"
                          title: "OtherApplicationFrequency"
                          properties:
                            Code:
                              description: "The four letter Mnemonic used within an XML file to identify a code"
                              title: "Code"
                              type: "string"
                              pattern: "^\\w{0,4}$"
                              minLength: 0
                              maxLength: 4
                              example: "XYZ"
                            Name:
                              description: "Long name associated with the code"
                              title: "Name"
                              type: "string"
                              minLength: 1
                              maxLength: 70
                              example: "CodeName"
                            Description:
                              description: "Description to describe the purpose of the code"
                              title: "Description"
                              type: "string"
                              minLength: 1
                              maxLength: 350
                              example: "description"
                          additionalProperties: false
                          required:
                            - "Name"
                            - "Description"
                        OtherCalculationFrequency:
                          description: "Other calculation frequency which is not available in the standard code set."
                          type: "object"
                          title: "OtherCalculationFrequency"
                          properties:
                            Code:
                              description: "The four letter Mnemonic used within an XML file to identify a code"
                              title: "Code"
                              type: "string"
                              pattern: "^\\w{0,4}$"
                              minLength: 0
                              maxLength: 4
                              example: "XYZ"
                            Name:
                              description: "Long name associated with the code"
                              title: "Name"
                              type: "string"
                              minLength: 1
                              maxLength: 70
                              example: "CodeName"
                            Description:
                              description: "Description to describe the purpose of the code"
                              title: "Description"
                              type: "string"
                              minLength: 1
                              maxLength: 350
                              example: "code description"
                          additionalProperties: false
                          required:
                            - "Name"
                            - "Description"
                      required:
                        - "TierValueMinimum"
                        - "ApplicationFrequency"
                        - "FixedVariableInterestRateType"
                        - "AER"
                    minItems: 1
                required:
                  - "TierBandMethod"
                  - "TierBand"
              minItems: 1
          additionalProperties: false
          required:
            - "TierBandSet"
        Overdraft:
          description: "Details about Overdraft rates, fees & charges"
          type: "object"
          title: "Overdraft"
          properties:
            Notes:
              description: "Associated Notes about the overdraft rates"
              title: "Notes"
              type: "array"
              items:
                description: "maxLength 2000 text"
                type: "string"
                minLength: 1
                maxLength: 2000
            OverdraftTierBandSet:
              description: "Tier band set details"
              type: "array"
              title: "OverdraftTierBandSet"
              items:
                description: "Tier band set details"
                type: "object"
                properties:
                  TierBandMethod:
                    description: "The methodology of how overdraft is charged. It can be:\n'Whole'  Where the same charge/rate is applied to the entirety of the overdraft balance (where charges are applicable). \n'Tiered' Where different charges/rates are applied dependent on overdraft maximum and minimum balance amount tiers defined by the lending financial organisation\n'Banded' Where different charges/rates are applied dependent on overdraft maximum and minimum balance amount bands defined by a government organisation."
                    title: "TierBandMethod"
                    type: "string"
                    example: "Wholee"
                    enum:
                      - "Tiered"
                      - "Whole"
                      - "Banded"
                  OverdraftType:
                    description: "An overdraft can either be 'committed' which means that the facility cannot be withdrawn without reasonable notification before it's agreed end date, or 'on demand' which means that the financial institution can demand repayment at any point in time."
                    title: "OverdraftType"
                    type: "string"
                    example: "Other"
                    enum:
                      - "Committed"
                      - "OnDemand"
                      - "Other"
                  Identification:
                    description: "Unique and unambiguous identification of a  Tier Band for a overdraft product."
                    title: "Identification"
                    type: "string"
                    minLength: 1
                    maxLength: 35
                    example: "4005208277148"
                  AuthorisedIndicator:
                    description: "Indicates if the Overdraft is authorised (Y) or unauthorised (N)"
                    title: "AuthorisedIndicator"
                    type: "boolean"
                    example: "Y"
                  BufferAmount:
                    description: "When a customer exceeds their credit limit, a financial institution will not charge the customer unauthorised overdraft charges if they do not exceed by more than the buffer amount. Note: Authorised overdraft charges may still apply."
                    title: "BufferAmount"
                    type: "string"
                    pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                    example: "10,000.00 USD"
                  Notes:
                    description: "Optional additional notes to supplement the overdraft Tier Band Set details"
                    title: "Notes"
                    type: "array"
                    items:
                      description: "maxLength 2000 text"
                      type: "string"
                      minLength: 1
                      maxLength: 2000
                  OverdraftTierBand:
                    description: "Provides overdraft details for a specific tier or band"
                    type: "array"
                    title: "OverdraftTierBand"
                    items:
                      description: "Provides overdraft details for a specific tier or band"
                      type: "object"
                      properties:
                        Identification:
                          description: "Unique and unambiguous identification of a  Tier Band for a overdraft."
                          title: "Identification"
                          type: "string"
                          minLength: 1
                          maxLength: 35
                          example: "32209458637"
                        TierValueMin:
                          description: "Minimum value of Overdraft Tier/Band"
                          title: "TierValueMin"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "5,000.00"
                        TierValueMax:
                          description: "Maximum value of Overdraft Tier/Band"
                          title: "TierValueMax"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "100,000.00"
                        OverdraftInterestChargingCoverage:
                          description: "Interest charged on whole amount or tiered/banded"
                          title: "OverdraftInterestChargingCoverage"
                          type: "string"
                          example: "Tiered"
                          enum:
                            - "Tiered"
                            - "Whole"
                        BankGuaranteedIndicator:
                          description: "Indicates that a bank provides the overdraft limit up to TierValueMIn to all customers automatically"
                          title: "BankGuaranteedIndicator"
                          type: "boolean"
                          example: "True"
                        EAR:
                          description: "EAR means Effective Annual Rate and/or Equivalent Annual Rate (frequently\nused interchangeably), being the actual annual interest rate of an Overdraft."
                          title: "EAR"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "0.1"
                        RepresentativeAPR:
                          description: "An annual percentage rate (APR) is the annual rate charged for borrowing or earned through an investment. APR is expressed as a percentage that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction but does not take compounding into account."
                          title: "RepresentativeAPR"
                          type: "string"
                          pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                          example: "0.11"
                        Notes:
                          description: "Optional additional notes to supplement the Tier/band details"
                          title: "Notes"
                          type: "array"
                          items:
                            description: "maxLength 2000 text"
                            type: "string"
                            minLength: 1
                            maxLength: 2000
                        OverdraftFeesCharges:
                          description: "Overdraft fees and charges"
                          type: "array"
                          title: "OverdraftFeesCharges"
                          items:
                            description: "Overdraft fees and charges"
                            type: "object"
                            properties:
                              OverdraftFeeChargeCap:
                                description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                                type: "array"
                                title: "OverdraftFeeChargeCap"
                                items:
                                  description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                                  type: "object"
                                  properties:
                                    FeeType:
                                      description: "Fee/charge type which is being capped"
                                      title: "FeeType"
                                      type: "array"
                                      items:
                                        description: "Overdraft fee type"
                                        type: "string"
                                        enum:
                                          - "ArrangedOverdraft"
                                          - "EmergencyBorrowing"
                                          - "BorrowingItem"
                                          - "OverdraftRenewal"
                                          - "AnnualReview"
                                          - "OverdraftSetup"
                                          - "Surcharge"
                                          - "TempOverdraft"
                                          - "UnauthorisedBorrowing"
                                          - "UnauthorisedPaidTrans"
                                          - "Other"
                                          - "UnauthorisedUnpaidTrans"
                                      minItems: 1
                                    OverdraftControlIndicator:
                                      description: "Specifies for the overdraft control feature/benefit"
                                      title: "OverdraftControlIndicator"
                                      type: "boolean"
                                      example: "True"
                                    MinMaxType:
                                      description: "Indicates that this is the minimum/ maximum fee/charge that can be applied by the financial institution"
                                      title: "MinMaxType"
                                      type: "string"
                                      example: "Minimum"
                                      enum:
                                        - "Minimum"
                                        - "Maximum"
                                    FeeCapOccurrence:
                                      description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                                      title: "FeeCapOccurrence"
                                      type: "number"
                                      format: "float"
                                      example: "20"
                                    FeeCapAmount:
                                      description: "Cap amount charged for a fee/charge"
                                      title: "FeeCapAmount"
                                      type: "string"
                                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "5,000.00"
                                    CappingPeriod:
                                      description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                      title: "CappingPeriod"
                                      type: "string"
                                      enum:
                                        - "AcademicTerm"
                                        - "Day"
                                        - "Half Year"
                                        - "Month"
                                        - "Quarter"
                                        - "Week"
                                        - "Year"
                                    Notes:
                                      description: "Notes related to Overdraft fee charge cap"
                                      title: "Notes"
                                      type: "array"
                                      items:
                                        description: "maxLength 2000 text"
                                        type: "string"
                                        minLength: 1
                                        maxLength: 2000
                                    OtherFeeType:
                                      description: "Other fee type code which is not available in the standard code set"
                                      type: "array"
                                      title: "OtherFeeType"
                                      items:
                                        description: "Other fee type code which is not available in the standard code set"
                                        type: "object"
                                        properties:
                                          Code:
                                            description: "The four letter Mnemonic used within an XML file to identify a code"
                                            title: "Code"
                                            type: "string"
                                            pattern: "^\\w{0,4}$"
                                            minLength: 0
                                            maxLength: 4
                                            example: "XYZ"
                                          Name:
                                            description: "Long name associated with the code"
                                            title: "Name"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 70
                                            example: "Sample Name Ltd."
                                          Description:
                                            description: "Description to describe the purpose of the code"
                                            title: "Description"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 350
                                            example: "desc."
                                        required:
                                          - "Name"
                                          - "Description"
                                  required:
                                    - "FeeType"
                                    - "MinMaxType"
                              OverdraftFeeChargeDetail:
                                description: "Details about the fees/charges"
                                type: "array"
                                title: "OverdraftFeeChargeDetail"
                                items:
                                  description: "Details about the fees/charges"
                                  type: "object"
                                  properties:
                                    FeeType:
                                      description: "Overdraft fee type"
                                      title: "FeeType"
                                      type: "string"
                                      enum:
                                        - "ArrangedOverdraft"
                                        - "EmergencyBorrowing"
                                        - "BorrowingItem"
                                        - "OverdraftRenewal"
                                        - "AnnualReview"
                                        - "OverdraftSetup"
                                        - "Surcharge"
                                        - "TempOverdraft"
                                        - "UnauthorisedBorrowing"
                                        - "UnauthorisedPaidTrans"
                                        - "Other"
                                        - "UnauthorisedUnpaidTrans"
                                    OverdraftControlIndicator:
                                      description: "Specifies for the overdraft control feature/benefit"
                                      title: "OverdraftControlIndicator"
                                      type: "boolean"
                                      example: "True"
                                    IncrementalBorrowingAmount:
                                      description: "Every additional tranche of an overdraft balance to which an overdraft fee is applied"
                                      title: "IncrementalBorrowingAmount"
                                      type: "string"
                                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "100.00"
                                    FeeAmount:
                                      description: "Amount charged for an overdraft fee/charge (where it is charged in terms of an amount rather than a rate)"
                                      title: "FeeAmount"
                                      type: "string"
                                      pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "5,000.00"
                                    FeeRate:
                                      description: "Rate charged for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                      title: "FeeRate"
                                      type: "string"
                                      pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                      example: "0.11"
                                    FeeRateType:
                                      description: "Rate type for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                      title: "FeeRateType"
                                      type: "string"
                                      example: "Gross"
                                      enum:
                                        - "LinkedBaseRate"
                                        - "Gross"
                                        - "Net"
                                        - "Other"
                                    ApplicationFrequency:
                                      description: "Frequency at which the overdraft charge is applied to the account"
                                      title: "ApplicationFrequency"
                                      type: "string"
                                      example: "AccountOpening"
                                      enum:
                                        - "AccountClosing"
                                        - "AccountOpening"
                                        - "AcademicTerm"
                                        - "ChargingPeriod"
                                        - "Daily"
                                        - "PerItem"
                                        - "Monthly"
                                        - "OnAccountAnniversary"
                                        - "Other"
                                        - "PerHour"
                                        - "PerOccurrence"
                                        - "PerSheet"
                                        - "PerTransaction"
                                        - "PerTransactionAmount"
                                        - "PerTransactionPercentage"
                                        - "Quarterly"
                                        - "SixMonthly"
                                        - "StatementMonthly"
                                        - "Weekly"
                                        - "Yearly"
                                    CalculationFrequency:
                                      description: "How often is the overdraft fee/charge calculated for the account."
                                      title: "CalculationFrequency"
                                      type: "string"
                                      example: "Daily"
                                      enum:
                                        - "AccountClosing"
                                        - "AccountOpening"
                                        - "AcademicTerm"
                                        - "ChargingPeriod"
                                        - "Daily"
                                        - "PerItem"
                                        - "Monthly"
                                        - "OnAccountAnniversary"
                                        - "Other"
                                        - "PerHour"
                                        - "PerOccurrence"
                                        - "PerSheet"
                                        - "PerTransaction"
                                        - "PerTransactionAmount"
                                        - "PerTransactionPercentage"
                                        - "Quarterly"
                                        - "SixMonthly"
                                        - "StatementMonthly"
                                        - "Weekly"
                                        - "Yearly"
                                    Notes:
                                      description: "Free text for capturing any other info related to Overdraft Fees Charge Details"
                                      title: "Notes"
                                      type: "array"
                                      items:
                                        description: "maxLength 2000 text"
                                        type: "string"
                                        minLength: 1
                                        maxLength: 2000
                                    OtherFeeType:
                                      description: "Other Fee type which is not available in the standard code set"
                                      type: "object"
                                      title: "OtherFeeType"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "XYZ"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "Big Named Company"
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "test description for Company"
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                    OtherFeeRateType:
                                      description: "Other fee rate type code which is not available in the standard code set"
                                      type: "object"
                                      title: "OtherFeeRateType"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "XYZ"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "Specific Name LTD."
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "description..."
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                    OtherApplicationFrequency:
                                      description: "Other application frequencies that are not available in the standard code list"
                                      type: "object"
                                      title: "OtherApplicationFrequency"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "XYZ"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "Long Name Holding"
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "description..."
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                    OtherCalculationFrequency:
                                      description: "Other calculation frequency which is not available in the standard code set."
                                      type: "object"
                                      title: "OtherCalculationFrequency"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "XYZ"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "Long Name Comp."
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "descrition..."
                                      additionalProperties: false
                                      required:
                                        - "Name"
                                        - "Description"
                                    OverdraftFeeChargeCap:
                                      description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                                      type: "object"
                                      title: "OverdraftFeeChargeCap"
                                      properties:
                                        FeeType:
                                          description: "Fee/charge type which is being capped"
                                          title: "FeeType"
                                          type: "array"
                                          items:
                                            description: "Overdraft fee type"
                                            type: "string"
                                            enum:
                                              - "ArrangedOverdraft"
                                              - "EmergencyBorrowing"
                                              - "BorrowingItem"
                                              - "OverdraftRenewal"
                                              - "AnnualReview"
                                              - "OverdraftSetup"
                                              - "Surcharge"
                                              - "TempOverdraft"
                                              - "UnauthorisedBorrowing"
                                              - "UnauthorisedPaidTrans"
                                              - "Other"
                                              - "UnauthorisedUnpaidTrans"
                                          minItems: 1
                                        OverdraftControlIndicator:
                                          description: "Specifies for the overdraft control feature/benefit"
                                          title: "OverdraftControlIndicator"
                                          type: "boolean"
                                          example: "True"
                                        MinMaxType:
                                          description: "Indicates that this is the minimum/ maximum fee/charge that can be applied by the financial institution"
                                          title: "MinMaxType"
                                          type: "string"
                                          example: "Minimum"
                                          enum:
                                            - "Minimum"
                                            - "Maximum"
                                        FeeCapOccurrence:
                                          description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                                          title: "FeeCapOccurrence"
                                          type: "number"
                                          format: "float"
                                          example: "0.99"
                                        FeeCapAmount:
                                          description: "Cap amount charged for a fee/charge"
                                          title: "FeeCapAmount"
                                          type: "string"
                                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                          example: "10"
                                        CappingPeriod:
                                          description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                          title: "CappingPeriod"
                                          type: "string"
                                          example: "Day"
                                          enum:
                                            - "AcademicTerm"
                                            - "Day"
                                            - "Half Year"
                                            - "Month"
                                            - "Quarter"
                                            - "Week"
                                            - "Year"
                                        Notes:
                                          description: "Notes related to Overdraft fee charge cap"
                                          title: "Notes"
                                          type: "array"
                                          items:
                                            description: "maxLength 2000 text"
                                            type: "string"
                                            minLength: 1
                                            maxLength: 2000
                                        OtherFeeType:
                                          description: "Other fee type code which is not available in the standard code set"
                                          type: "array"
                                          title: "OtherFeeType"
                                          items:
                                            description: "Other fee type code which is not available in the standard code set"
                                            type: "object"
                                            properties:
                                              Code:
                                                description: "The four letter Mnemonic used within an XML file to identify a code"
                                                title: "Code"
                                                type: "string"
                                                pattern: "^\\w{0,4}$"
                                                minLength: 0
                                                maxLength: 4
                                                example: "XYZ"
                                              Name:
                                                description: "Long name associated with the code"
                                                title: "Name"
                                                type: "string"
                                                minLength: 1
                                                maxLength: 70
                                                example: "Very Long Red Company"
                                              Description:
                                                description: "Description to describe the purpose of the code"
                                                title: "Description"
                                                type: "string"
                                                minLength: 1
                                                maxLength: 350
                                                example: "description..."
                                            required:
                                              - "Name"
                                              - "Description"
                                      additionalProperties: false
                                      required:
                                        - "FeeType"
                                        - "MinMaxType"
                                  required:
                                    - "FeeType"
                                    - "ApplicationFrequency"
                                minItems: 1
                            required:
                              - "OverdraftFeeChargeDetail"
                      required:
                        - "TierValueMin"
                    minItems: 1
                  OverdraftFeesCharges:
                    description: "Overdraft fees and charges details"
                    type: "array"
                    title: "OverdraftFeesCharges"
                    items:
                      description: "Overdraft fees and charges details"
                      type: "object"
                      properties:
                        OverdraftFeeChargeCap:
                          description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                          type: "array"
                          title: "OverdraftFeeChargeCap"
                          items:
                            description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                            type: "object"
                            properties:
                              FeeType:
                                description: "Fee/charge type which is being capped"
                                title: "FeeType"
                                type: "array"
                                items:
                                  description: "Overdraft fee type"
                                  type: "string"
                                  enum:
                                    - "ArrangedOverdraft"
                                    - "EmergencyBorrowing"
                                    - "BorrowingItem"
                                    - "OverdraftRenewal"
                                    - "AnnualReview"
                                    - "OverdraftSetup"
                                    - "Surcharge"
                                    - "TempOverdraft"
                                    - "UnauthorisedBorrowing"
                                    - "UnauthorisedPaidTrans"
                                    - "Other"
                                    - "UnauthorisedUnpaidTrans"
                                minItems: 1
                              OverdraftControlIndicator:
                                description: "Specifies for the overdraft control feature/benefit"
                                title: "OverdraftControlIndicator"
                                type: "boolean"
                                example: "test value"
                              MinMaxType:
                                description: "Indicates that this is the minimum/ maximum fee/charge that can be applied by the financial institution"
                                title: "MinMaxType"
                                type: "string"
                                example: "test value"
                                enum:
                                  - "Minimum"
                                  - "Maximum"
                              FeeCapOccurrence:
                                description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                                title: "FeeCapOccurrence"
                                type: "number"
                                format: "float"
                                example: "0.99"
                              FeeCapAmount:
                                description: "Cap amount charged for a fee/charge"
                                title: "FeeCapAmount"
                                type: "string"
                                pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                example: "test value"
                              CappingPeriod:
                                description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                title: "CappingPeriod"
                                type: "string"
                                example: "Day"
                                enum:
                                  - "AcademicTerm"
                                  - "Day"
                                  - "Half Year"
                                  - "Month"
                                  - "Quarter"
                                  - "Week"
                                  - "Year"
                              Notes:
                                description: "Notes related to Overdraft fee charge cap"
                                title: "Notes"
                                type: "array"
                                items:
                                  description: "maxLength 2000 text"
                                  type: "string"
                                  minLength: 1
                                  maxLength: 2000
                              OtherFeeType:
                                description: "Other fee type code which is not available in the standard code set"
                                type: "array"
                                title: "OtherFeeType"
                                items:
                                  description: "Other fee type code which is not available in the standard code set"
                                  type: "object"
                                  properties:
                                    Code:
                                      description: "The four letter Mnemonic used within an XML file to identify a code"
                                      title: "Code"
                                      type: "string"
                                      pattern: "^\\w{0,4}$"
                                      minLength: 0
                                      maxLength: 4
                                      example: "test value"
                                    Name:
                                      description: "Long name associated with the code"
                                      title: "Name"
                                      type: "string"
                                      minLength: 1
                                      maxLength: 70
                                      example: "test value"
                                    Description:
                                      description: "Description to describe the purpose of the code"
                                      title: "Description"
                                      type: "string"
                                      minLength: 1
                                      maxLength: 350
                                      example: "test value"
                                  required:
                                    - "Name"
                                    - "Description"
                            required:
                              - "FeeType"
                              - "MinMaxType"
                        OverdraftFeeChargeDetail:
                          description: "Details about the fees/charges"
                          type: "array"
                          title: "OverdraftFeeChargeDetail"
                          items:
                            description: "Details about the fees/charges"
                            type: "object"
                            properties:
                              FeeType:
                                description: "Overdraft fee type"
                                title: "FeeType"
                                type: "string"
                                enum:
                                  - "ArrangedOverdraft"
                                  - "EmergencyBorrowing"
                                  - "BorrowingItem"
                                  - "OverdraftRenewal"
                                  - "AnnualReview"
                                  - "OverdraftSetup"
                                  - "Surcharge"
                                  - "TempOverdraft"
                                  - "UnauthorisedBorrowing"
                                  - "UnauthorisedPaidTrans"
                                  - "Other"
                                  - "UnauthorisedUnpaidTrans"
                              OverdraftControlIndicator:
                                description: "Specifies for the overdraft control feature/benefit"
                                title: "OverdraftControlIndicator"
                                type: "boolean"
                                example: "True"
                              IncrementalBorrowingAmount:
                                description: "Every additional tranche of an overdraft balance to which an overdraft fee is applied"
                                title: "IncrementalBorrowingAmount"
                                type: "string"
                                pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                example: "0"
                              FeeAmount:
                                description: "Amount charged for an overdraft fee/charge (where it is charged in terms of an amount rather than a rate)"
                                title: "FeeAmount"
                                type: "string"
                                pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                example: "1,000.00"
                              FeeRate:
                                description: "Rate charged for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                title: "FeeRate"
                                type: "string"
                                pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                                example: "0.01"
                              FeeRateType:
                                description: "Rate type for overdraft fee/charge (where it is charged in terms of a rate rather than an amount)"
                                title: "FeeRateType"
                                type: "string"
                                example: "Net"
                                enum:
                                  - "LinkedBaseRate"
                                  - "Gross"
                                  - "Net"
                                  - "Other"
                              ApplicationFrequency:
                                description: "Frequency at which the overdraft charge is applied to the account"
                                title: "ApplicationFrequency"
                                type: "string"
                                example: "Daily"
                                enum:
                                  - "AccountClosing"
                                  - "AccountOpening"
                                  - "AcademicTerm"
                                  - "ChargingPeriod"
                                  - "Daily"
                                  - "PerItem"
                                  - "Monthly"
                                  - "OnAccountAnniversary"
                                  - "Other"
                                  - "PerHour"
                                  - "PerOccurrence"
                                  - "PerSheet"
                                  - "PerTransaction"
                                  - "PerTransactionAmount"
                                  - "PerTransactionPercentage"
                                  - "Quarterly"
                                  - "SixMonthly"
                                  - "StatementMonthly"
                                  - "Weekly"
                                  - "Yearly"
                              CalculationFrequency:
                                description: "How often is the overdraft fee/charge calculated for the account."
                                title: "CalculationFrequency"
                                type: "string"
                                example: "Daily"
                                enum:
                                  - "AccountClosing"
                                  - "AccountOpening"
                                  - "AcademicTerm"
                                  - "ChargingPeriod"
                                  - "Daily"
                                  - "PerItem"
                                  - "Monthly"
                                  - "OnAccountAnniversary"
                                  - "Other"
                                  - "PerHour"
                                  - "PerOccurrence"
                                  - "PerSheet"
                                  - "PerTransaction"
                                  - "PerTransactionAmount"
                                  - "PerTransactionPercentage"
                                  - "Quarterly"
                                  - "SixMonthly"
                                  - "StatementMonthly"
                                  - "Weekly"
                                  - "Yearly"
                              Notes:
                                description: "Free text for capturing any other info related to Overdraft Fees Charge Details"
                                title: "Notes"
                                type: "array"
                                items:
                                  description: "maxLength 2000 text"
                                  type: "string"
                                  minLength: 1
                                  maxLength: 2000
                              OtherFeeType:
                                description: "Other Fee type which is not available in the standard code set"
                                type: "object"
                                title: "OtherFeeType"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "test value"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "test value"
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "test value"
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                              OtherFeeRateType:
                                description: "Other fee rate type code which is not available in the standard code set"
                                type: "object"
                                title: "OtherFeeRateType"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "XYZ"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "State Street Corp."
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "descrition test"
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                              OtherApplicationFrequency:
                                description: "Other application frequencies that are not available in the standard code list"
                                type: "object"
                                title: "OtherApplicationFrequency"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "XYZ"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "Green Company"
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "green description"
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                              OtherCalculationFrequency:
                                description: "Other calculation frequency which is not available in the standard code set."
                                type: "object"
                                title: "OtherCalculationFrequency"
                                properties:
                                  Code:
                                    description: "The four letter Mnemonic used within an XML file to identify a code"
                                    title: "Code"
                                    type: "string"
                                    pattern: "^\\w{0,4}$"
                                    minLength: 0
                                    maxLength: 4
                                    example: "XYZ"
                                  Name:
                                    description: "Long name associated with the code"
                                    title: "Name"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 70
                                    example: "Test Named Copany"
                                  Description:
                                    description: "Description to describe the purpose of the code"
                                    title: "Description"
                                    type: "string"
                                    minLength: 1
                                    maxLength: 350
                                    example: "description here"
                                additionalProperties: false
                                required:
                                  - "Name"
                                  - "Description"
                              OverdraftFeeChargeCap:
                                description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                                type: "object"
                                title: "OverdraftFeeChargeCap"
                                properties:
                                  FeeType:
                                    description: "Fee/charge type which is being capped"
                                    title: "FeeType"
                                    type: "array"
                                    items:
                                      description: "Overdraft fee type"
                                      type: "string"
                                      enum:
                                        - "ArrangedOverdraft"
                                        - "EmergencyBorrowing"
                                        - "BorrowingItem"
                                        - "OverdraftRenewal"
                                        - "AnnualReview"
                                        - "OverdraftSetup"
                                        - "Surcharge"
                                        - "TempOverdraft"
                                        - "UnauthorisedBorrowing"
                                        - "UnauthorisedPaidTrans"
                                        - "Other"
                                        - "UnauthorisedUnpaidTrans"
                                    minItems: 1
                                  OverdraftControlIndicator:
                                    description: "Specifies for the overdraft control feature/benefit"
                                    title: "OverdraftControlIndicator"
                                    type: "boolean"
                                    example: "False"
                                  MinMaxType:
                                    description: "Indicates that this is the minimum/ maximum fee/charge that can be applied by the financial institution"
                                    title: "MinMaxType"
                                    type: "string"
                                    example: "Minimum"
                                    enum:
                                      - "Minimum"
                                      - "Maximum"
                                  FeeCapOccurrence:
                                    description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                                    title: "FeeCapOccurrence"
                                    type: "number"
                                    format: "float"
                                    example: "0.99"
                                  FeeCapAmount:
                                    description: "Cap amount charged for a fee/charge"
                                    title: "FeeCapAmount"
                                    type: "string"
                                    pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                                    example: "100.00"
                                  CappingPeriod:
                                    description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                                    title: "CappingPeriod"
                                    type: "string"
                                    example: "Year"
                                    enum:
                                      - "AcademicTerm"
                                      - "Day"
                                      - "Half Year"
                                      - "Month"
                                      - "Quarter"
                                      - "Week"
                                      - "Year"
                                  Notes:
                                    description: "Notes related to Overdraft fee charge cap"
                                    title: "Notes"
                                    type: "array"
                                    items:
                                      description: "maxLength 2000 text"
                                      type: "string"
                                      minLength: 1
                                      maxLength: 2000
                                  OtherFeeType:
                                    description: "Other fee type code which is not available in the standard code set"
                                    type: "array"
                                    title: "OtherFeeType"
                                    items:
                                      description: "Other fee type code which is not available in the standard code set"
                                      type: "object"
                                      properties:
                                        Code:
                                          description: "The four letter Mnemonic used within an XML file to identify a code"
                                          title: "Code"
                                          type: "string"
                                          pattern: "^\\w{0,4}$"
                                          minLength: 0
                                          maxLength: 4
                                          example: "XYZ"
                                        Name:
                                          description: "Long name associated with the code"
                                          title: "Name"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 70
                                          example: "test name"
                                        Description:
                                          description: "Description to describe the purpose of the code"
                                          title: "Description"
                                          type: "string"
                                          minLength: 1
                                          maxLength: 350
                                          example: "test description"
                                      required:
                                        - "Name"
                                        - "Description"
                                additionalProperties: false
                                required:
                                  - "FeeType"
                                  - "MinMaxType"
                            required:
                              - "FeeType"
                              - "ApplicationFrequency"
                          minItems: 1
                      required:
                        - "OverdraftFeeChargeDetail"
                required:
                  - "TierBandMethod"
                  - "OverdraftTierBand"
              minItems: 1
          additionalProperties: false
          required:
            - "OverdraftTierBandSet"
        OtherFeesCharges:
          description: "Contains details of fees and charges which are not associated with either borrowing or features/benefits"
          type: "object"
          title: "OtherFeesCharges"
          properties:
            FeeChargeDetail:
              description: "Other fees/charges details"
              type: "array"
              title: "FeeChargeDetail"
              items:
                description: "Other fees/charges details"
                type: "object"
                properties:
                  FeeCategory:
                    description: "Categorisation of fees and charges into standard categories."
                    title: "FeeCategory"
                    type: "string"
                    example: "test value"
                    enum:
                      - "Other"
                      - "Servicing"
                  FeeType:
                    description: "Fee/Charge Type"
                    title: "FeeType"
                    type: "string"
                    example: "Other"
                    enum:
                      - "ServiceCAccountFee"
                      - "ServiceCAccountFeeMonthly"
                      - "ServiceCOther"
                      - "Other"
                  FeeAmount:
                    description: "Fee Amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
                    title: "FeeAmount"
                    type: "string"
                    pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                    example: "100.00"
                  FeeRate:
                    description: "Rate charged for Fee/Charge (where it is charged in terms of a rate rather than an amount)"
                    title: "FeeRate"
                    type: "string"
                    pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                    example: "0.1"
                  FeeRateType:
                    description: "Rate type for Fee/Charge (where it is charged in terms of a rate rather than an amount)"
                    title: "FeeRateType"
                    type: "string"
                    example: "Other"
                    enum:
                      - "LinkedBaseRate"
                      - "Gross"
                      - "Net"
                      - "Other"
                  ApplicationFrequency:
                    description: "How frequently the fee/charge is applied to the account"
                    title: "ApplicationFrequency"
                    type: "string"
                    example: "Daily"
                    enum:
                      - "AccountClosing"
                      - "AccountOpening"
                      - "AcademicTerm"
                      - "ChargingPeriod"
                      - "Daily"
                      - "PerItem"
                      - "Monthly"
                      - "OnAccountAnniversary"
                      - "Other"
                      - "PerHour"
                      - "PerOccurrence"
                      - "PerSheet"
                      - "PerTransaction"
                      - "PerTransactionAmount"
                      - "PerTransactionPercentage"
                      - "Quarterly"
                      - "SixMonthly"
                      - "StatementMonthly"
                      - "Weekly"
                      - "Yearly"
                  CalculationFrequency:
                    description: "How frequently the fee/charge is calculated"
                    title: "CalculationFrequency"
                    type: "string"
                    example: "Weekly"
                    enum:
                      - "AccountClosing"
                      - "AccountOpening"
                      - "AcademicTerm"
                      - "ChargingPeriod"
                      - "Daily"
                      - "PerItem"
                      - "Monthly"
                      - "OnAccountAnniversary"
                      - "Other"
                      - "PerHour"
                      - "PerOccurrence"
                      - "PerSheet"
                      - "PerTransaction"
                      - "PerTransactionAmount"
                      - "PerTransactionPercentage"
                      - "Quarterly"
                      - "SixMonthly"
                      - "StatementMonthly"
                      - "Weekly"
                      - "Yearly"
                  Notes:
                    description: "Optional additional notes to supplement the fee/charge details."
                    title: "Notes"
                    type: "array"
                    items:
                      description: "maxLength 2000 text"
                      type: "string"
                      minLength: 1
                      maxLength: 2000
                  OtherFeeCategoryType:
                    type: "object"
                    title: "OtherFeeCategoryType"
                    properties:
                      Code:
                        description: "The four letter Mnemonic used within an XML file to identify a code"
                        title: "Code"
                        type: "string"
                        pattern: "^\\w{0,4}$"
                        minLength: 0
                        maxLength: 4
                        example: "test code"
                      Name:
                        description: "Long name associated with the code"
                        title: "Name"
                        type: "string"
                        minLength: 1
                        maxLength: 70
                        example: "test name"
                      Description:
                        description: "Description to describe the purpose of the code"
                        title: "Description"
                        type: "string"
                        minLength: 1
                        maxLength: 350
                        example: "test value"
                    additionalProperties: false
                    required:
                      - "Name"
                      - "Description"
                  OtherFeeType:
                    description: "Other Fee/charge type which is not available in the standard code set"
                    type: "object"
                    title: "OtherFeeType"
                    properties:
                      Code:
                        description: "The four letter Mnemonic used within an XML file to identify a code"
                        title: "Code"
                        type: "string"
                        pattern: "^\\w{0,4}$"
                        minLength: 0
                        maxLength: 4
                        example: "test code"
                      FeeCategory:
                        description: "Categorisation of fees and charges into standard categories."
                        title: "FeeCategory"
                        type: "string"
                        example: "Other"
                        enum:
                          - "Other"
                          - "Servicing"
                      Name:
                        description: "Long name associated with the code"
                        title: "Name"
                        type: "string"
                        minLength: 1
                        maxLength: 70
                        example: "test name"
                      Description:
                        description: "Description to describe the purpose of the code"
                        title: "Description"
                        type: "string"
                        minLength: 1
                        maxLength: 350
                        example: "test description"
                    additionalProperties: false
                    required:
                      - "FeeCategory"
                      - "Name"
                      - "Description"
                  OtherFeeRateType:
                    description: "Other fee rate type which is not available in the standard code set"
                    type: "object"
                    title: "OtherFeeRateType"
                    properties:
                      Code:
                        description: "The four letter Mnemonic used within an XML file to identify a code"
                        title: "Code"
                        type: "string"
                        pattern: "^\\w{0,4}$"
                        minLength: 0
                        maxLength: 4
                        example: "test code"
                      Name:
                        description: "Long name associated with the code"
                        title: "Name"
                        type: "string"
                        minLength: 1
                        maxLength: 70
                        example: "test name"
                      Description:
                        description: "Description to describe the purpose of the code"
                        title: "Description"
                        type: "string"
                        minLength: 1
                        maxLength: 350
                        example: "test description"
                    additionalProperties: false
                    required:
                      - "Name"
                      - "Description"
                  OtherApplicationFrequency:
                    description: "Other application frequencies not covered in the standard code list"
                    type: "object"
                    title: "OtherApplicationFrequency"
                    properties:
                      Code:
                        description: "The four letter Mnemonic used within an XML file to identify a code"
                        title: "Code"
                        type: "string"
                        pattern: "^\\w{0,4}$"
                        minLength: 0
                        maxLength: 4
                        example: "test code"
                      Name:
                        description: "Long name associated with the code"
                        title: "Name"
                        type: "string"
                        minLength: 1
                        maxLength: 70
                        example: "test name"
                      Description:
                        description: "Description to describe the purpose of the code"
                        title: "Description"
                        type: "string"
                        minLength: 1
                        maxLength: 350
                        example: "test description"
                    additionalProperties: false
                    required:
                      - "Name"
                      - "Description"
                  OtherCalculationFrequency:
                    description: "Other calculation frequency which is not available in standard code set."
                    type: "object"
                    title: "OtherCalculationFrequency"
                    properties:
                      Code:
                        description: "The four letter Mnemonic used within an XML file to identify a code"
                        title: "Code"
                        type: "string"
                        pattern: "^\\w{0,4}$"
                        minLength: 0
                        maxLength: 4
                        example: "test code"
                      Name:
                        description: "Long name associated with the code"
                        title: "Name"
                        type: "string"
                        minLength: 1
                        maxLength: 70
                        example: "test name"
                      Description:
                        description: "Description to describe the purpose of the code"
                        title: "Description"
                        type: "string"
                        minLength: 1
                        maxLength: 350
                        example: "test description"
                    additionalProperties: false
                    required:
                      - "Name"
                      - "Description"
                  FeeChargeCap:
                    description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                    type: "array"
                    title: "FeeChargeCap"
                    items:
                      description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                      type: "object"
                      properties:
                        FeeType:
                          description: "Fee/charge type which is being capped"
                          title: "FeeType"
                          type: "array"
                          items:
                            description: "Fee/charge type which is being capped"
                            type: "string"
                            example: "Other"
                            enum:
                              - "ServiceCAccountFee"
                              - "ServiceCAccountFeeMonthly"
                              - "ServiceCOther"
                              - "Other"
                          minItems: 1
                        MinMaxType:
                          description: "Indicates that this is the minimum/ maximum fee/charge that can be applied by the financial institution"
                          title: "MinMaxType"
                          type: "string"
                          example: "Minimum"
                          enum:
                            - "Minimum"
                            - "Maximum"
                        FeeCapOccurrence:
                          description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                          title: "FeeCapOccurrence"
                          type: "number"
                          format: "float"
                          example: "True"
                        FeeCapAmount:
                          description: "Cap amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
                          title: "FeeCapAmount"
                          type: "string"
                          pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                          example: "0.34"
                        CappingPeriod:
                          description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                          title: "CappingPeriod"
                          type: "string"
                          example: "AcademicTerm"
                          enum:
                            - "AcademicTerm"
                            - "Day"
                            - "Half Year"
                            - "Month"
                            - "Quarter"
                            - "Week"
                            - "Year"
                        Notes:
                          description: "Free text for adding  extra details for fee charge cap"
                          title: "Notes"
                          type: "array"
                          items:
                            description: "maxLength 2000 text"
                            type: "string"
                            minLength: 1
                            maxLength: 2000
                        OtherFeeType:
                          description: "Other fee type code which is not available in the standard code set"
                          type: "array"
                          title: "OtherFeeType"
                          items:
                            description: "Other fee type code which is not available in the standard code set"
                            type: "object"
                            properties:
                              Code:
                                description: "The four letter Mnemonic used within an XML file to identify a code"
                                title: "Code"
                                type: "string"
                                pattern: "^\\w{0,4}$"
                                minLength: 0
                                maxLength: 4
                                example: "test code"
                              Name:
                                description: "Long name associated with the code"
                                title: "Name"
                                type: "string"
                                minLength: 1
                                maxLength: 70
                                example: "test Named Comapny"
                              Description:
                                description: "Description to describe the purpose of the code"
                                title: "Description"
                                type: "string"
                                minLength: 1
                                maxLength: 350
                                example: "test Description"
                            required:
                              - "Name"
                              - "Description"
                      required:
                        - "FeeType"
                        - "MinMaxType"
                  FeeApplicableRange:
                    description: "Range or amounts or rates for which the fee/charge applies"
                    type: "object"
                    title: "FeeApplicableRange"
                    properties:
                      MinimumAmount:
                        description: "Minimum Amount on which fee/charge is applicable (where it is expressed as an amount)"
                        title: "MinimumAmount"
                        type: "string"
                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                        example: "1200.00"
                      MaximumAmount:
                        description: "Maximum Amount on which fee is applicable (where it is expressed as an amount)"
                        title: "MaximumAmount"
                        type: "string"
                        pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                        example: "100,000.00"
                      MinimumRate:
                        description: "Minimum rate on which fee/charge is applicable(where it is expressed as an rate)"
                        title: "MinimumRate"
                        type: "string"
                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                        example: "0.01"
                      MaximumRate:
                        description: "Maximum rate on which fee/charge is applicable(where it is expressed as an rate)"
                        title: "MaximumRate"
                        type: "string"
                        pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
                        example: "4.5"
                    additionalProperties: false
                required:
                  - "FeeCategory"
                  - "FeeType"
                  - "ApplicationFrequency"
              minItems: 1
            FeeChargeCap:
              description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
              type: "array"
              title: "FeeChargeCap"
              items:
                description: "Details about any caps (maximum charges) that apply to a particular fee/charge"
                type: "object"
                properties:
                  FeeType:
                    description: "Fee/charge type which is being capped"
                    title: "FeeType"
                    type: "array"
                    items:
                      description: "Fee/charge type which is being capped"
                      type: "string"
                      enum:
                        - "ServiceCAccountFee"
                        - "ServiceCAccountFeeMonthly"
                        - "ServiceCOther"
                        - "Other"
                    minItems: 1
                  MinMaxType:
                    description: "Indicates that this is the minimum/ maximum fee/charge that can be applied by the financial institution"
                    title: "MinMaxType"
                    type: "string"
                    example: "Minimum"
                    enum:
                      - "Minimum"
                      - "Maximum"
                  FeeCapOccurrence:
                    description: "fee/charges are captured dependent on the number of occurrences rather than capped at a particular amount"
                    title: "FeeCapOccurrence"
                    type: "number"
                    format: "float"
                    example: "0.12"
                  FeeCapAmount:
                    description: "Cap amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)"
                    title: "FeeCapAmount"
                    type: "string"
                    pattern: "^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$"
                  CappingPeriod:
                    description: "Period e.g. day, week, month etc. for which the fee/charge is capped"
                    title: "CappingPeriod"
                    type: "string"
                    example: "Day"
                    enum:
                      - "AcademicTerm"
                      - "Day"
                      - "Half Year"
                      - "Month"
                      - "Quarter"
                      - "Week"
                      - "Year"
                  Notes:
                    description: "Free text for adding  extra details for fee charge cap"
                    title: "Notes"
                    type: "array"
                    items:
                      description: "maxLength 2000 text"
                      type: "string"
                      minLength: 1
                      maxLength: 2000
                  OtherFeeType:
                    description: "Other fee type code which is not available in the standard code set"
                    type: "array"
                    title: "OtherFeeType"
                    items:
                      description: "Other fee type code which is not available in the standard code set"
                      type: "object"
                      properties:
                        Code:
                          description: "The four letter Mnemonic used within an XML file to identify a code"
                          title: "Code"
                          type: "string"
                          pattern: "^\\w{0,4}$"
                          minLength: 0
                          maxLength: 4
                          example: "test value"
                        Name:
                          description: "Long name associated with the code"
                          title: "Name"
                          type: "string"
                          minLength: 1
                          maxLength: 70
                          example: "test value"
                        Description:
                          description: "Description to describe the purpose of the code"
                          title: "Description"
                          type: "string"
                          minLength: 1
                          maxLength: 350
                          example: "test value"
                      required:
                        - "Name"
                        - "Description"
                required:
                  - "FeeType"
                  - "MinMaxType"
          additionalProperties: false
          required:
            - "FeeChargeDetail"
      additionalProperties: false
    OBInternalBeneficiaryType1Code:
      description: "Specifies the Beneficiary Type."
      type: "string"
      example: "Trusted"
      enum:
        - "Trusted"
        - "Ordinary"
    StatementFrequencyAndFormat:
      description: "The frequency and format of the statements delivered for the account"
      type: "object"
      properties:
        Frequency:
          $ref: "#/components/schemas/OBFrequency6Code_0"
        Format:
          $ref: "#/components/schemas/OBExternalDocumentFormat1Code"
    OBFrequency6Code_0:
      description: >
        A code indicating the point in time for the credit transfer.
        <dl>
          <dt>ADHO</dt>Adhoc - Event takes place on request or as necessary.</dd>
          <dt>YEAR</dt>Annual - Event takes place every year or once a year.</dd>
          <dt>DAIL</dt>Daily - Event takes place every day.</dd>
          <dt>FRTN</dt>Fortnightly - Event takes place every two weeks.</dd>
          <dt>INDA</dt>Intra Day - Event takes place several times a day.</dd>
          <dt>MNTH</dt>Monthly - Event takes place every month or once a month.</dd>
          <dt>QURT</dt>Quarterly - Event takes place every three months or four times a year.</dd>
          <dt>MIAN</dt>Semi Annual - Event takes place every six months or two times a year.</dd>
          <dt>WEEK</dt>Weekly - Event takes place once a week.</dd>
        </dl>
      type: "string"
      enum:
        - "ADHO"
        - "YEAR"
        - "DAIL"
        - "FRTN"
        - "INDA"
        - "MNTH"
        - "QURT"
        - "MIAN"
        - "WEEK"
      example: "WEEK"
    OBFrequency6Code_1:
      description: >
        A code indicating the point in time for the credit transfer.
        <dl>
          <dt>YEAR</dt>Annual - Event takes place every year or once a year.</dd>
          <dt>FRTN</dt>Fortnightly - Event takes place every two weeks.</dd>
          <dt>MNTH</dt>Monthly - Event takes place every month or once a month.</dd>
          <dt>QURT</dt>Quarterly - Event takes place every three months or four times a year.</dd>
          <dt>WEEK</dt>Weekly - Event takes place once a week.</dd>
          <dt>WODL</dt>Working day - Event takes place every working day.</dd>
        </dl>
      type: "string"
      enum:
        - "YEAR"
        - "FRTN"
        - "MNTH"
        - "QURT"
        - "WEEK"
        - "WODL"
      example: "WODL"
    OBExternalDocumentFormat1Code:
      type: "string"
      enum:
        - "DPDF"
        - "DXML"
        - "SDSH"
        - "WORD"
        - "XSLT"
      example: "DPDF"
    ExternalBalanceSubType1Code:
      description: >
        Balance sub type, in a coded form.
        <dl>
          <dt>ADJT</dt><dd>Adjustment - Balance to be held in the settlement account in order to comply with the average reserve due, in the event that the bank's balance is equal to the reserve due during the remaining days of the maintenance period.</dd>
          <dt>BCUR</dt><dd>BaseCurrency - Balance representing the amount in the domestic or base accounting currency.</dd>
          <dt>BLCK</dt><dd>Blocked - Balance representing the regulatory reserve that a financial institution must have with the account servicing institution, eg, the minimum credit balance a financial institution is to keep with its Central Bank for mandatory reserve purposes. In some countries, a blocked balance is known as a 'reserve' balance.</dd>
          <dt>BLKD</dt><dd>BlockedFunds - Balance representing funds that cannot be touched by the account owner.</dd>
          <dt>DLOD</dt><dd>DaylightOverdraft - Balance representing the intra day overdraft granted by the Central Bank to financial institutions participating in a RTGS system. This balance may vary over time and shall be offset at the end of the day.</dd>
          <dt>EAST</dt><dd>EligibleAssets - Balance representing the potential loan a Central Bank would make in cash if the collateral is pledged, eg, securities available and eligible as collateral with the Central Bank.</dd>
          <dt>FCOL</dt><dd>FirmCollateralization - Balance representing the forecast of the cash-equivalent resulting from evaluation of existing holdings at CSD that are qualified to serve as collateral.</dd>
          <dt>FCOU</dt><dd>AmountsThatHaveBeenUsedToServeAsFirmCollateral - Balance representing the cash equivalent resulting from evaluation of existing holdings at CSD that are qualified to serve as collateral and have been used as collateral.</dd>
          <dt>FORC</dt><dd>SecuritiesForecast - Balance representing the total of all balance types representing the forecast of transactions to settle, blocked items, custody transactions and corporate actions cash disbursements.</dd>
          <dt>FUND</dt><dd>NetFunding - Balance representing the net amount to be funded resulting from the difference between the total of all transactions with a cash impact and the existing cash coverage.</dd>
          <dt>INTM</dt><dd>Intermediate - Balance representing an intermediate amount such as the opening or closing balance incrementally carried forward from one page to the next in a multi-page statement or report.</dd>
          <dt>LCUR</dt><dd>LocalCurrency - Balance representing the amount in the local market currency for which the asset is held.</dd>
          <dt>LRLD</dt><dd>LimitRelated - Balance of a specific limit value, eg, a bilateral balance is calculated in relation to a given bilateral limit.</dd>
          <dt>NOTE</dt><dd>ReservedLiquidity - Balance representing the amount that a financial institution has set aside for a specific reason and which is therefore not available. In the context of CSDs, reservation of liquidity made to meet settlement obligations.</dd>
          <dt>PDNG</dt><dd>SecuritiesPending - Balance of securities pending delivery, such as orders to sell securities have been executed but settlement of the open transactions has not been confirmed.</dd>
          <dt>PIPO</dt><dd>PayInPayOut - Balance representing the fictive amount of automated direct debits or payment based on standing arrangements between the CSD and the user. Usage: Pay-Ins and Pay-Outs can be different based on individual payment instructions or available funds.</dd>
          <dt>PRAV</dt><dd>ProgressiveAverage - Average of the daily balances on the account used to fulfil the reserve requirements calculated from the beginning of the maintenance period.</dd>
          <dt>RESV</dt><dd>Reserve - Balance representing the regulatory reserve that a financial institution must have with the account servicing institution, eg, the minimum credit balance a financial institution is to keep with its Central Bank for mandatory reserve purposes.</dd>
          <dt>SCOL</dt><dd>SelfCollateralization - Balance representing the forecast of the cash-equivalent resulting from evaluation of the net incoming balance of securities qualified to serve as collateral for which settlement instructions are held at.</dd>
          <dt>SCOU</dt><dd>AmountsThatHaveBeenUsedToServeAsSelfCollateral - Balance representing the cash-equivalent resulting from evaluation of incoming securities, qualified to serve as collateral and actually used as collateral, which have been settled during the settlement process.</dd>
          <dt>THRE</dt><dd>Threshold - Balance representing the amount that will be destined for investment. Difference between available balance and threshold for investment limit.</dd>
        </dl>
      type: "string"
      enum:
        - "ADJT"
        - "BCUR"
        - "BLCK"
        - "BLKD"
        - "DLOD"
        - "EAST"
        - "FCOL"
        - "FCOU"
        - "FORC"
        - "FUND"
        - "INTM"
        - "LCUR"
        - "LRLD"
        - "NOTE"
        - "PDNG"
        - "PIPO"
        - "PRAV"
        - "RESV"
        - "SCOL"
        - "SCOU"
        - "THRE"
      example: "ADJT"
    LocalAmount:
      description: "Optional component providing the equivalent of Amount in local currency"
      type: "object"
      required:
        - "Amount"
        - "Currency"
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBInternalLimitType1Code:
      description: "Limit type, in a coded form"
      type: "string"
      enum:
        - "Available"
        - "Credit"
        - "Emergency"
        - "Pre-Agreed"
        - "Temporary"
    TotalValue:
      description: "Combined sum of all Amounts in the accounts base currency."
      type: "object"
      required:
        - "Amount"
        - "Currency"
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBMandateRelatedInformation1_0:
      type: "object"
      required:
        - "Frequency"
      properties:
        MandateIdentification:
          description: "Unique identification, as assigned by the creditor, to unambiguously identify the mandate."
          type: "string"
          maxLength: 35
          example: "40010000010901"
        Classification:
          $ref: "#/components/schemas/OBExternalMandateClassification1Code"
        CategoryPurposeCode:
          $ref: "#/components/schemas/ExternalCategoryPurpose1Code"
        FirstPaymentDateTime:
          $ref: "#/components/schemas/FirstPaymentDateTime"
        FinalPaymentDateTime:
          $ref: "#/components/schemas/FinalPaymentDateTime"
        Frequency:
          description: "Regularity with which credit transfer instructions are to be created and processed"
          type: "object"
          required:
            - "Type"
          properties:
            Type:
              $ref: "#/components/schemas/OBFrequency6Code_0"
    OBMandateRelatedInformation1_1:
      type: "object"
      required:
        - "Frequency"
      properties:
        MandateIdentification:
          description: "Unique identification, as assigned by the creditor, to unambiguously identify the mandate."
          type: "string"
          maxLength: 35
          example: "40010000010901"
        Classification:
          $ref: "#/components/schemas/OBExternalMandateClassification1Code"
        CategoryPurposeCode:
          $ref: "#/components/schemas/ExternalCategoryPurpose1Code"
        FirstPaymentDateTime:
          $ref: "#/components/schemas/FirstPaymentDateTime"
        FinalPaymentDateTime:
          $ref: "#/components/schemas/FinalPaymentDateTime"
        Frequency:
          description: "Regularity with which credit transfer instructions are to be created and processed"
          type: "object"
          required:
            - "Type"
          properties:
            Type:
              $ref: "#/components/schemas/OBFrequency6Code_1"
    ExternalCategoryPurpose1Code:
      description: "Specifies the high level purpose of the mandate based on a set of pre-defined categories."
      type: "string"
      enum:
        - "BONU"
        - "CASH"
        - "CBLK"
        - "CCRD"
        - "CORT"
        - "DCRD"
        - "DIVI"
        - "DVPM"
        - "EPAY"
        - "FCIN"
        - "FCOL"
        - "GP2P"
        - "GOVT"
        - "HEDG"
        - "ICCP"
        - "IDCP"
        - "INTC"
        - "INTE"
        - "LBOX"
        - "LOAN"
        - "MP2B"
        - "MP2P"
        - "OTHR"
        - "PENS"
        - "RPRE"
        - "RRCT"
        - "RVPM"
        - "SALA"
        - "SECU"
        - "SSBE"
        - "SUPP"
        - "TAXS"
        - "TRAD"
        - "TREA"
        - "VATX"
        - "WHLD"
        - "SWEP"
        - "TOPG"
        - "ZABA"
        - "VOST"
        - "FCDT"
        - "CIPC"
        - "CONC"
        - "CGWV"
    OBExternalMandateClassification1Code:
      description: "Type of mandate instruction."
      type: "string"
      enum:
        - "FIXE"
        - "USGB"
        - "VARI"
    OBPostalAddress7:
      description: "Postal address of a party"
      type: "object"
      properties:
        AddressType:
          $ref: "#/components/schemas/OBAddressType2Code"
        Department:
          description: "Identification of a division of a large organisation or building."
          type: "string"
          maxLength: 70
        SubDepartment:
          description: "Identification of a sub-division of a large organisation or building."
          type: "string"
          maxLength: 70
        StreetName:
          description: "Name of a street or thoroughfare."
          type: "string"
          maxLength: 70
        BuildingNumber:
          description: "Number that identifies the position of a building on a street."
          type: "string"
          maxLength: 16
        PostCode:
          description: "Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail."
          type: "string"
          maxLength: 16
        TownName:
          description: "Name of a built-up area, with defined boundaries, and a local government."
          type: "string"
          maxLength: 35
        CountrySubDivision:
          description: "Identifies a subdivision of a country such as state, region, county."
          type: "string"
          maxLength: 35
        Country:
          description: "Nation with its own government."
          type: "string"
          pattern: "^[A-Z]{2,2}$"
        AddressLine:
          type: "array"
          items:
            description: "Information that locates and identifies a specific address, as defined by postal services, presented in free format text."
            type: "string"
            minLength: 1
            maxLength: 70
          minItems: 0
          maxItems: 7
        BuildingName:
          description: "Name of a referenced building."
          type: "string"
          maxLength: 140
        CareOf:
          description: "The 'care of' address is used whenever sending mail to a person or organisation who does not actually live or work at the address.
          They will receive the mail for the individual."
          type: "string"
          maxLength: 140
        DistrictName:
          description: "Number that of the regional area, known as a district, which forms part of an address."
          type: "string"
          maxLength: 140
        Floor:
          description: "Number that identifies the level within a building."
          type: "string"
          maxLength: 70
        PostBox:
          description: "Numbered box in a post office, assigned to a person or organisation, where letters are kept until called for."
          type: "string"
          maxLength: 16
        Room:
          description: "Information that locates and identifies a room to form part of an address."
          type: "string"
          maxLength: 70
        TownLocationName:
          description: "Name of a built-up area, with defined boundaries, and a local government."
          type: "string"
          maxLength: 140
        UnitNumber:
          description: "Number that identifies the unit of a specific address."
          type: "string"
          maxLength: 16
    OBAddressType2Code:
      description: "Identifies the nature of the postal address."
      type: "string"
      enum:
        - "BIZZ"
        - "DLVY"
        - "MLTO"
        - "PBOX"
        - "ADDR"
        - "HOME"
        - "CORR"
        - "STAT"
      example: "BIZZ"
    ExternalEntryStatus1Code:
      description: "Status of a transaction entry on the books of the account servicer."
      type: "string"
      enum:
        - "BOOK"
        - "FUTR"
        - "INFO"
        - "PDNG"
      example: "BOOK"
    ExternalBankTransactionFamily1Code:
      description: "Specifies the family within a domain."
      type: "string"
      enum:
        - "RCDT"
        - "ICDT"
        - "RCCN"
        - "ICCN"
        - "RDDT"
        - "IDDT"
        - "RCHQ"
        - "ICHQ"
        - "CCRD"
        - "MCRD"
        - "LBOX"
        - "CNTR"
        - "DRFT"
        - "NTAV"
        - "OTHR"
        - "MCOP"
        - "MDOP"
        - "CAPL"
        - "ACCB"
        - "OCRD"
        - "OIRT"
        - "OEQT"
        - "OBND"
        - "OSED"
        - "OSWP"
        - "LFUT"
    ExternalBankTransactionSubFamily1Code:
      description: "Specifies the sub-product family within a specific family."
      type: "string"
      enum:
        - "NTAV"
        - "FEES"
        - "COMM"
        - "COME"
        - "COMI"
        - "COMT"
        - "TAXE"
        - "CHRG"
        - "INTR"
        - "RIMB"
        - "ADJT"
        - "OTHR"
    LEI:
      description: >
        Legal entity identification as an alternate identification for a party.
        Legal Entity Identifier is a code allocated to a party as described in ISO 17442 >>Financial Services - Legal Entity Identifier (LEI)<<.
      type: "string"
      pattern: "^[0-9]{4}[0]{2}[A-Z0-9]{12}[0-9]{2}$"
      example: "123400AB12CD34EF5678"
    OBProxy1:
      description: "Specifies an alternate assumed name for the identification of the account."
      type: "object"
      required:
        - "Identification"
        - "Code"
      properties:
        Identification:
          description: "Identification used to indicate the account identification under another specified name."
          type: "string"
          maxLength: 2048
        Type:
          description: "Type of the proxy identification."
          type: "string"
          maxLength: 35
        Code:
          $ref: "#/components/schemas/ExternalProxyAccountType1Code"
    ExternalProxyAccountType1Code:
      description: "Specifies the external proxy account type code, as published in the proxy account type external code set."
      type: "string"
      enum:
        - "TELE"
        - "EMAL"
        - "DNAM"
        - "CINC"
        - "COTX"
        - "COID"
        - "CUST"
        - "DRLC"
        - "EIDN"
        - "EWAL"
        - "PVTX"
        - "LEIC"
        - "MBNO"
        - "NIDN"
        - "CCPT"
        - "SHID"
        - "SOSE"
        - "TOKN"
        - "UBIL"
        - "VIPN"
        - "BIID"
      example: "TELE"
    OBUltimateDebtor1:
      description: "Ultimate party that owes an amount of money to the (ultimate) creditor."
      type: "object"
      properties:
        Name:
          description: "Name by which a party is known and which is usually used to identify that party."
          type: "string"
          maxLength: 140
        Identification:
          description: "Identification assigned by an institution."
          type: "string"
          maxLength: 256
        LEI:
          $ref: "#/components/schemas/LEI"
        SchemeName:
          $ref: "#/components/schemas/OBInternalAccountIdentification4Code"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress7"
    OBUltimateCreditor1:
      description: "Ultimate party to which an amount of money is due."
      type: "object"
      properties:
        Name:
          description: "Name by which a party is known and which is usually used to identify that party."
          type: "string"
          maxLength: 140
        Identification:
          description: "Identification assigned by an institution."
          type: "string"
          maxLength: 256
        LEI:
          $ref: "#/components/schemas/LEI"
        SchemeName:
          $ref: "#/components/schemas/OBInternalAccountIdentification4Code"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress7"
    OBInternalCardSchemeType1Code:
      description: "Name of the card scheme."
      type: "string"
      enum:
        - "AmericanExpress"
        - "Diners"
        - "Discover"
        - "MasterCard"
        - "VISA"
        - "BusinessCurrentAccount"
      example: "AmericanExpress"
    OBInternalCardAuthorisationType1Code:
      description: "The card authorisation type."
      type: "string"
      enum:
        - "ConsumerDevice"
        - "Contactless"
        - "None"
        - "PIN"
      example: "ConsumerDevice"
    OBInternalProductType1Code:
      description: "Descriptive code for the product category."
      type: "string"
      example: "CommercialCreditCard"
      enum:
        - "CommercialCreditCard"
        - "Other"
        - "PersonalCurrentAccount"
        - "SMELoan"
        - "BusinessCurrentAccount"
    OBInternalConsentStatus1Code:
      description: "Specifies the status of consent resource in code form."
      type: "string"
      example: "AUTH"
      enum:
        - "AWAU"
        - "RJCT"
        - "AUTH"
        - "CANC"
        - "EXPD"
        - "COND"
        - "AWUP"
    OBExternalStatusReason1Code:
      description: >
        Specifies the status reason in a code form.
        <dl>
          <dt>U001</dt><dd>Field is expected</dd>
          <dt>U002</dt><dd>Field is invalid</dd>
          <dt>U003</dt><dd>Field has a invalid date</dd>
          <dt>U004</dt><dd>A required field is missing</dd>
          <dt>U005</dt><dd>A value is provided when not required</dd>
          <dt>U006</dt><dd>Header is invalid</dd>
          <dt>U007</dt><dd>Header is missing</dd>
          <dt>U008</dt><dd>Mismatch between staged consent and payment order request</dd>
          <dt>U009</dt><dd>Unexpected consent status</dd>
          <dt>U010</dt><dd>Invalid schema</dd>
          <dt>U011</dt><dd>Resource cannot be found</dd>
          <dt>U012</dt><dd>Payment received after cutoff date and time</dd>
          <dt>U013</dt><dd>Reference found is duplicate</dd>
          <dt>U014</dt><dd>Payment outside control parameters</dd>
          <dt>U015</dt><dd>Invalid signature</dd>
          <dt>U016</dt><dd>Invalid claim in a signature</dd>
          <dt>U017</dt><dd>Invalid or missing claim in a signature</dd>
          <dt>U018</dt><dd>Signature is malformed</dd>
          <dt>U019</dt><dd>Missing information related to signature</dd>
          <dt>U020</dt><dd>Signature was not expected in header but was provided</dd>
          <dt>U021</dt><dd>Unsupported account identified has been provided</dd>
          <dt>U022</dt><dd>Unsupported secondary account identified has been provided</dd>
          <dt>U023</dt><dd>Unsupported currency is provided. Also use U002 or provide path.</dd>
          <dt>U024</dt><dd>Unsupported event type</dd>
          <dt>U025</dt><dd>Unsupported frequency</dd>
          <dt>U026</dt><dd>Unsupported localInstrument</dd>
          <dt>U027</dt><dd>Unsupported scheme</dd>
          <dt>U028</dt><dd>Reauthentication is required by PSU</dd>
          <dt>U029</dt><dd>Duplicate resource submitted</dd>
          <dt>U000</dt><dd>Can use this in conjunction with NARR code to specific the specific unexpected error
        </dl>
      type: "string"
      enum:
        - "U001"
        - "U002"
        - "U003"
        - "U004"
        - "U005"
        - "U006"
        - "U007"
        - "U008"
        - "U009"
        - "U010"
        - "U011"
        - "U012"
        - "U013"
        - "U014"
        - "U015"
        - "U016"
        - "U017"
        - "U018"
        - "U019"
        - "U020"
        - "U021"
        - "U022"
        - "U023"
        - "U024"
        - "U025"
        - "U026"
        - "U027"
        - "U028"
        - "U029"
        - "U000"
        - "AM06"
        - "AM07"
        - "AM09"
        - "AM10"
        - "AM11"
        - "AM12"
        - "AM13"
        - "AM14"
        - "AM15"
        - "AM16"
        - "AM17"
        - "AM18"
        - "AM19"
        - "AM20"
        - "AM21"
        - "AM22"
        - "AM23"
        - "BE01"
        - "BE04"
        - "BE05"
        - "BE06"
        - "BE07"
        - "BE08"
        - "BE09"
        - "BE10"
        - "BE11"
        - "BE12"
        - "BE13"
        - "BE14"
        - "BE15"
        - "BE16"
        - "BE17"
        - "BE18"
        - "BE19"
        - "BE20"
        - "BE21"
        - "BE22"
        - "BE23"
        - "CERI"
        - "CH03"
        - "CH04"
        - "CH07"
        - "CH09"
        - "CH10"
        - "CH11"
        - "CH12"
        - "CH13"
        - "CH14"
        - "CH15"
        - "CH16"
        - "CH17"
        - "CH19"
        - "CH20"
        - "CH21"
        - "CH22"
        - "CHQC"
        - "CNOR"
        - "CURR"
        - "CUST"
        - "DNOR"
        - "DS01"
        - "DS02"
        - "DS03"
        - "DS04"
        - "DS05"
        - "DS06"
        - "DS07"
        - "DS08"
        - "DS09"
        - "DS0A"
        - "DS0B"
        - "DS0C"
        - "DS0D"
        - "DS0E"
        - "DS0F"
        - "DS0G"
        - "DS0H"
        - "DS0K"
        - "DS10"
        - "DS11"
        - "DS12"
        - "DS13"
        - "DS14"
        - "DS15"
        - "DS16"
        - "DS17"
        - "DS18"
        - "DS19"
        - "DS20"
        - "DS21"
        - "DS22"
        - "DS23"
        - "DS24"
        - "DS25"
        - "DS26"
        - "DS27"
        - "DT01"
        - "DT02"
        - "DT03"
        - "DT04"
        - "DT05"
        - "DT06"
        - "DU01"
        - "DU02"
        - "DU03"
        - "DU04"
        - "DU05"
        - "DUPL"
        - "ED01"
        - "ED03"
        - "ED05"
        - "ED06"
        - "ERIN"
        - "FF01"
        - "FF02"
        - "FF03"
        - "FF04"
        - "FF05"
        - "FF06"
        - "FF07"
        - "FF08"
        - "FF09"
        - "FF10"
        - "FF11"
        - "G000"
        - "G001"
        - "G002"
        - "G003"
        - "G004"
        - "G005"
        - "G006"
        - "ID01"
        - "MD01"
        - "MD02"
        - "MD05"
        - "MD06"
        - "MD07"
        - "MS02"
        - "MS03"
        - "NARR"
        - "NERI"
        - "RC01"
        - "RC02"
        - "RC03"
        - "RC04"
        - "RC05"
        - "RC06"
        - "RC07"
        - "RC08"
        - "RC09"
        - "RC10"
        - "RC11"
        - "RC12"
        - "RCON"
        - "RECI"
        - "RF01"
        - "RR01"
        - "RR02"
        - "RR03"
        - "RR04"
        - "RR05"
        - "RR06"
        - "RR07"
        - "RR08"
        - "RR09"
        - "RR10"
        - "RR11"
        - "RR12"
        - "S000"
        - "S001"
        - "S002"
        - "S003"
        - "S004"
        - "SL01"
        - "SL02"
        - "SL03"
        - "SL11"
        - "SL12"
        - "SL13"
        - "SL14"
        - "TA01"
        - "TD01"
        - "TD02"
        - "TD03"
        - "TK01"
        - "TK02"
        - "TK03"
        - "TK09"
        - "TKCM"
        - "TKSG"
        - "TKSP"
        - "TKVE"
        - "TKXP"
        - "TM01"
        - "TS01"
        - "TS04"
        - "CN01"
        - "FOCR"
        - "FR01"
        - "NOCM"
        - "NOAS"
        - "RUTA"
        - "UPAY"
        - "ALAC"
        - "AEXR"
        - "ARFR"
        - "ARJR"
        - "ATNS"
        - "EDTR"
        - "EDTL"
        - "FRAD"
        - "IEDT"
        - "IRNR"
        - "NOAR"
        - "NOPG"
        - "NRCH"
        - "RTNS"
        - "REPR"
        - "SPII"
        - "PINS"
        - "UCRD"
        - "FF12"
        - "FF13"
        - "DC02"
        - "APAR"
      example: "U000"
    OBRemittanceInformation2:
      type: "object"
      description: "Information supplied to enable the matching of an entry with the items that the transfer is intended to settle, such as commercial invoices in an accounts' receivable system."
      properties:
        Structured:
          type: "array"
          items:
            $ref: "#/components/schemas/OBRemittanceInformationStructured1"
        Unstructured:
          description: "Information supplied to enable the matching/reconciliation of an entry with the items that the payment is intended to settle, such as commercial invoices in an accounts' receivable system, in an unstructured form."
          type: "array"
          items:
            type: "string"
            maxLength: 140
    OBRemittanceInformationStructured1:
      description: "Information supplied to enable the matching/reconciliation of an entry with the items that the payment is intended to settle, such as commercial invoices in an accounts' receivable system, in an structured form."
      type: "object"
      properties:
        ReferredDocumentAmount:
          description: "Provides details on the amounts of the referred document."
          type: "integer"
        Invoicer:
          description: "Identification of the organisation issuing the invoice, when it is different from the creditor or ultimate creditor"
          type: "string"
          maxLength: 256
        Invoicee:
          description: "Identification of the party to whom an invoice is issued, when it is different from the debtor or ultimate debtor."
          type: "string"
          maxLength: 256
        TaxRemittance:
          description: "Provides remittance information about a payment made for tax-related purposes."
          type: "string"
          maxLength: 140
        AdditionalRemittanceInformation:
          description: "Additional information, in free text form, to complement the structured remittance information."
          type: "array"
          items:
            type: "string"
            maxLength: 140
          maxItems: 3
        CreditorReferenceInformation:
          $ref: "#/components/schemas/OBCreditorReferenceInformation1"
        ReferredDocumentInformation:
          description: "Provides the identification and the content of the referred document."
          type: "array"
          items:
            type: "object"
            properties:
              Code:
                $ref: "#/components/schemas/ExternalDocumentType1Code"
              Issuer:
                description: "Identification of the issuer of the reference document type."
                type: "string"
                maxLength: 35
              LineDetails:
                description: "Set of elements used to provide the content of the referred document line."
                type: "array"
                items:
                  type: "string"
              Number:
                description: "Identification of the type specified for the referred document line."
                type: "string"
                maxLength: 35
              RelatedDate:
                description: "Date associated with the referred document line."
                type: "string"
                format: "date-time"
                example: "2024-10-16T12:00:00+00:00"
    ExternalDocumentType1Code:
      description: >
        Type of remittance document, as published in an external document type code set.
        <dl>
          <dt>CINV</dt><dd>CommercialInvoice - Document is an invoice.</dd>
          <dt>CNFA</dt><dd>CreditNoteRelatedToFinancialAdjustment - Document is a credit note for the final amount settled for a commercial transaction.</dd>
          <dt>CONT</dt><dd>Contract - Document is a contract evidencing an agreement between the seller and buyer for the supply of goods and/or services.</dd>
          <dt>CREN</dt><dd>CreditNote - Document is a credit note.</dd>
          <dt>DEBN</dt><dd>DebitNote - Document is a debit note.</dd>
          <dt>DISP</dt><dd>DispatchAdvice - Document is an advice of dispatch of the goods.</dd>
          <dt>DNFA</dt><dd>DebitNoteRelatedToFinancialAdjustment - Document is a debit note for the final amount settled for a commercial transaction.</dd>
          <dt>HIRI</dt><dd>HireInvoice - Document is an invoice for the hiring of human resources or renting goods or equipment.</dd>
          <dt>INVS</dt><dd>InvoiceSigned - Document is a signed invoice.</dd>
          <dt>MSIN</dt><dd>MeteredServiceInvoice - Document is an invoice claiming payment for the supply of metered services, eg. Gas or electricity, supplied to a fixed meter.</dd>
          <dt>PROF</dt><dd>ProformaInvoice - In trade transactions, a pro forma invoice is a document that states a commitment from the seller to sell goods to the buyer at specified prices and terms. It is used to declare the value of the trade. It is not a true invoice, because it is not used to record accounts receivable for the seller and accounts payable for the buyer.</dd>
          <dt>PUOR</dt><dd>PurchaseOrder - Document is a purchase order.</dd>
          <dt>QUOT</dt><dd>Quotation - Document is a quotation setting out the conditions under which the goods and/or services are offered.</dd>
          <dt>SBIN</dt><dd>SelfBilledInvoice - Document is a statement of the transactions posted to the debtor's account at the supplier.</dd>
          <dt>SPRR</dt><dd>SellerPresentment - Document is a document presented by the seller in support of the procurement of goods and/or services.</dd>
          <dt>TISH</dt><dd>TimeSheet - Document is a timesheet recording times for the provision of services and/or delivery of goods.</dd>
          <dt>USAR</dt><dd>UsageReport - Document is a usage report indicating the consumption pattern for designated goods and/or services.</dd>
          <dt>AROI</dt><dd>AccountReceivableOpenItem - Document is a payment that applies to a specific source document.</dd>
          <dt>BOLD</dt><dd>BillOfLading - Document is a shipping notice.</dd>
          <dt>CMCN</dt><dd>CommercialContract - Document is an agreement between the parties, stipulating the terms and conditions of the delivery of goods or services.</dd>
          <dt>SOAC</dt><dd>StatementOfAccount - Document is a statement of the transactions posted to the debtor's account at the supplier.</dd>
          <dt>TSUT</dt><dd>TradeServicesUtilityTransaction - Document is a transaction identifier as assigned by the Trade Services Utility.</dd>
          <dt>VCHR</dt><dd>Voucher - Document is an electronic payment document.</dd>
        </dl>
      type: "string"
      enum:
        - "CINV"
        - "CNFA"
        - "CONT"
        - "CREN"
        - "DEBN"
        - "DISP"
        - "DNFA"
        - "HIRI"
        - "INVS"
        - "MSIN"
        - "PROF"
        - "PUOR"
        - "QUOT"
        - "SBIN"
        - "SPRR"
        - "TISH"
        - "USAR"
        - "AROI"
        - "BOLD"
        - "CMCN"
        - "SOAC"
        - "TSUT"
        - "VCHR"
      example: "CINV"
    OBCreditorReferenceInformation1:
      description: "Reference information provided by the creditor to allow the identification of the underlying documents."
      type: "object"
      properties:
        Code:
          $ref: "#/components/schemas/ExternalCreditorReferenceType1Code"
        Issuer:
          description: "Entity that assigns the identification."
          type: "string"
          maxLength: 35
        Reference:
          description: "Unique reference, as assigned by the creditor, to unambiguously refer to the payment transaction."
          type: "string"
          maxLength: 35
    ExternalCreditorReferenceType1Code:
      description: >
        Specifies the amount type, as published in an external referred amount code set.
        <dl>
          <dt>DISP</dt><dd>DispatchAdvice - Document is a dispatch advice.</dd>
          <dt>FXDR</dt><dd>ForeignExchangeDealReference - Document is a pre-agreed or pre-arranged foreign exchange transaction to which the payment transaction refers.</dd>
          <dt>PUOR</dt><dd>PurchaseOrder - Document is a purchase order.</dd>
          <dt>RPIN</dt><dd>RelatedPaymentInstruction - Document is a linked payment instruction to which the current payment instruction is related, for example, in a cover scenario.</dd>
          <dt>RADM</dt><dd>RemittanceAdviceMessage - Document is a remittance advice sent separately from the current transaction.</dd>
          <dt>SCOR</dt><dd>StructuredCommunicationReference - Document is a structured communication reference provided by the creditor to identify the referred transaction.</dd>
        </dl>
      type: "string"
      enum:
        - "DISP"
        - "FXDR"
        - "PUOR"
        - "RPIN"
        - "RADM"
        - "SCOR"
      example: "DISP"