SHARE
TWEET

Untitled

a guest Sep 18th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const individual_data = (user_id) => {
  2.   return {
  3.     "description": "",
  4.     "applicant": {
  5.       "email": "",
  6.       "requiredIdDocs": {
  7.         "docSets": [
  8.           {
  9.             "idDocSetType": "IDENTITY",
  10.             "types": ["ID_CARD","PASSPORT","DRIVERS","RESIDENCE_PERMIT"],
  11.             "fields": null,
  12.             "subTypes": null,
  13.             "imageIds": null,
  14.             "mode": null
  15.           },
  16.           {
  17.             "idDocSetType":"SELFIE",
  18.             "types": ["SELFIE"],
  19.             "fields": null,
  20.             "subTypes": null,
  21.             "imageIds": null,
  22.             "mode": null
  23.           }
  24.         ]
  25.       },
  26.       "externalUserId": user_id
  27.     }
  28.   };
  29. };
  30.  
  31. const business_data = (user_id) => {
  32.   return {
  33.     "description": "",
  34.     "applicant": {
  35.       "email": "",
  36.       "requiredIdDocs": {
  37.         "docSets": [
  38.           {
  39.             "idDocSetType": "IDENTITY",
  40.             "types": ["ID_CARD","PASSPORT","DRIVERS","RESIDENCE_PERMIT"],
  41.             "fields": null,
  42.             "subTypes": null,
  43.             "imageIds": null,
  44.             "mode": null
  45.           },
  46.           {
  47.             "idDocSetType": "SELFIE",
  48.             "types": ["SELFIE"],
  49.             "fields": null,
  50.             "subTypes": null,
  51.             "imageIds": null,
  52.             "mode": null
  53.           },
  54.           {
  55.             "idDocSetType": "INVESTABILITY",
  56.             "types": ["UTILITY_BILL","BANK_STATEMENT"],
  57.             "fields": null,
  58.             "subTypes": null,
  59.             "imageIds": null,
  60.             "mode": null
  61.           },
  62.           {
  63.             "idDocSetType": "COMPANY",
  64.             "types": ["COMPANY_DOC"],
  65.             "fields": null,
  66.             "subTypes": null,
  67.             "imageIds": null,
  68.             "mode": null
  69.           }
  70.         ]
  71.       },
  72.       "externalUserId": user_id
  73.     }
  74.   };
  75. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top