{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Approve Payment Details| BeGreen Seed Funding",
    "description": "This process is part of a partnership between UNICEF's Generation Unlimited, Umuzi, and the Tony Elumelu Foundation.",
    "pages": [
      {
        "name": "introduction",
        "elements": [
          {
            "type": "html",
            "name": "dcterms:description",
            "html": "    <div style='line-height:1.6;'>\n      <h4>Please check your details</h4>\n      <p style='margin: 0 0 16px 0;'>This form shows the information we already have for your BeGreen seed funding payment. Please read every detail carefully. If everything is correct, you approve it. If something is wrong, you can tell us so we can fix it.</p>\n\n      <h4>Why this step matters</h4>\n      <p style='margin: 0 0 16px 0;'>Your approval confirms that you are the right person and that the payment details match the account you want to use. This helps make sure your funds go to the right place.</p>\n\n      <h4>Is my information safe?</h4>\n      <p style='margin: 0 0 16px 0;'>Your information is used only for seed funding verification and review. Your personal and bank details are handled as part of a controlled process to confirm your eligibility and prepare the next step safely.</p>\n\n      <h4>Who can see my information?</h4>\n      <p style='margin: 0 0 16px 0;'>Only authorised people involved in verification, programme administration, and seed funding review can see your information.</p>\n\n      <h4>What happens after I approve?</h4>\n      <p style='margin: 0 0 16px 0;'>After you approve, your details move into final review. You will be told if your approval is accepted or if anything still needs to change. Once accepted, funds will be transferred to the account shown here.</p>\n\n      <h4>What to do</h4>\n      <p style='margin: 0 0 16px 0;'>Read each detail on the next pages. On the last page, tell us if everything is correct. If it is, tick the approval box and submit. If something is wrong, choose \"No\" and tell us what to fix.</p>\n    </div>"
          }
        ]
      },
      {
        "name": "umuzi:milestonePaymentBaseInformation",
        "elements": [
          {
            "type": "text",
            "name": "schema:name",
            "title": "Applicant Full Name"
          },
          {
            "type": "text",
            "name": "schema:telephone",
            "title": "Phone Number",
            "inputType": "tel"
          },
          {
            "type": "text",
            "name": "schema:email",
            "title": "Email",
            "inputType": "email"
          },
          {
            "type": "text",
            "name": "schema:address",
            "title": "Street Address"
          },
          {
            "type": "text",
            "name": "schema:birthDate",
            "title": "Date of Birth",
            "inputType": "date"
          },
          {
            "type": "text",
            "name": "schema:identityNumber",
            "title": "National ID Number"
          }
        ],
        "title": "Your Personal Information",
        "description": "Please check that these details are correct. You cannot change them here. If something is wrong, tell us on the last page."
      },
      {
        "name": "umuzi:paymentDetails",
        "elements": [
          {
            "type": "dropdown",
            "name": "schema:country",
            "title": "Country",
            "choices": [
              {
                "value": "ZA",
                "text": "South Africa"
              },
              {
                "value": "NG",
                "text": "Nigeria"
              }
            ]
          },
          {
            "type": "checkbox",
            "name": "umuzi:paymentCurrency",
            "visibleIf": "{schema:country} notempty",
            "title": "Payout Currency",
            "description": "This is set automatically from your country.",
            "setValueExpression": "iif({schema:country} = 'NG', 'NGN', iif({schema:country} = 'ZA', 'ZAR', ''))",
            "readOnly": true,
            "choices": [
              {
                "value": "NGN",
                "text": "NGN — Nigerian Naira"
              },
              {
                "value": "ZAR",
                "text": "ZAR — South African Rand"
              }
            ]
          },
          {
            "type": "text",
            "name": "org:bankName",
            "title": "Bank Name "
          },
          {
            "type": "text",
            "name": "schema:accountNumber",
            "title": "Bank Account Number"
          }
        ],
        "title": "Your Payment Details",
        "description": "Please check that your bank details are correct. This is where your funds will be sent."
      },
      {
        "name": "umuzi:reviewAndApprove",
        "elements": [
          {
            "type": "html",
            "name": "umuzi:approvalIntro",
            "html": "<p style='line-height:1.6; margin:0 0 8px 0;'>You have now seen all your details. Please tell us if they are correct.</p>"
          },
          {
            "type": "radiogroup",
            "name": "umuzi:detailsCorrect",
            "title": "Are all the details above correct?",
            "isRequired": true,
            "requiredErrorText": "Please tell us if your details are correct.",
            "choices": [
              {
                "value": "yes",
                "text": "Yes, everything is correct"
              },
              {
                "value": "no",
                "text": "No, something is wrong"
              }
            ]
          },
          {
            "type": "comment",
            "name": "umuzi:correctionNote",
            "visibleIf": "{umuzi:detailsCorrect} = 'no'",
            "title": "What needs to be fixed?",
            "description": "Tell us which detail is wrong and what it should be. We will not approve the payment until this is fixed.",
            "isRequired": true,
            "requiredErrorText": "Please tell us what needs to be fixed."
          },
          {
            "type": "boolean",
            "name": "umuzi:applicantApproval",
            "visibleIf": "{umuzi:detailsCorrect} = 'yes'",
            "title": "I have checked my details above. I confirm they are correct and I approve this payment to my bank account.",
            "isRequired": true,
            "requiredErrorText": "Please approve before you submit.",
            "validators": [
              {
                "type": "expression",
                "text": "You must approve before you can submit. If something is wrong, choose \"No\" above instead.",
                "expression": "{umuzi:applicantApproval} = true"
              }
            ],
            "labelTrue": "Yes, I approve",
            "labelFalse": "Not yet"
          }
        ],
        "title": "Check and Approve"
      }
    ],
    "questionErrorLocation": "bottom",
    "showProgressBar": true,
    "progressBarLocation": "top",
    "clearInvisibleValues": "on",
    "pagePrevText": "Back",
    "pageNextText": "Next",
    "completeText": "Submit"
  }
}