🐔requestDeveloperVerification

TODO @lukas

Input parameters

  • UserUID

How to call from app

HTTP request to: /reqest-Developer-verification

Logic

  1. The frontend (app.tasksource.io) calls the API

  2. validate if the following fields in the user Document are not empty:

  • country

  • allowPublicViewingOfProfile (boolean)

  • allowGeneralPrivacyPolicy (boolean)

  • termsAndConditionsAgreement (boolean)

  • postalCode

  • lastName

  • firstName

  • city

  • skills (array != empty)

  • languageSkills (array != empty)

  • githubUrl

  • linkedinUrl

  • streetAddress

  • email

  • legalInvoiceInformation

  • bankInformation

  • profileImage

  1. If field is invalid

    return name of the field with error

  2. If all fields are valid do:

    1. add a field to the user: hasRequestedVerification: true

    2. Send email:

      1. to_email_adress = "user_email"

      2. template_name = "request-developer-verification->us"

      3. data = {}

Last updated