src/Service/AccountService.php line 1267

Open in your IDE?
  1. <?php
  2. namespace App\Service;
  3. use App\Entity\District;
  4. use App\Entity\Ekyc;
  5. use Doctrine\ORM\EntityManagerInterface;
  6. class AccountService
  7. {
  8.     /**
  9.      * @var EntityManagerInterface
  10.      */
  11.     private EntityManagerInterface $entityManager;
  12.     public function __construct(EntityManagerInterface $entityManager)
  13.     {
  14.         $this->entityManager $entityManager;
  15.     }
  16.     public function getRepository()
  17.     {
  18.         return $this->entityManager->getRepository(District::class);
  19.     }
  20.     public function create(Ekyc $ekyc): array
  21.     {
  22.         // @TODO : Move to .env
  23.         //$url = "http://103.17.69.149:8080/omnitest/omni/ekyc/kycinfo";
  24.         $url "http://omniaccount.bankasia-bd.com/omni/apiomni/omni2ekyc/ekyc";
  25.         $applicationId 'DVNT'.mt_rand(10000009999999);
  26.         $xmlRequestData $this->prepareRequestXml($ekyc$applicationId);
  27.         if ($xmlRequestData['error']) {
  28.             return [
  29.                 'cbs_response' => array(),
  30.                 'account_no' => '',
  31.                 'response_code' => '01',
  32.                 'response_message' => $xmlRequestData['msg']
  33.             ];
  34.         }
  35.         $xml $xmlRequestData['data'];
  36.         $headers = array(
  37.             "Content-type: text/xml",
  38.             "Content-length: " strlen($xml),
  39.             "In_UserId: OEKYC01",
  40.             "In_AuthKey: 123456",
  41.             "In_Chksum: 123456",
  42.             "in_reqid: 2343231",
  43.             "in_reqtype: BA_OMNI_EKYC01",
  44.             "out_xmldata: YES",
  45.             "in_xmldata: $xml",
  46.             "Connection: close",
  47.         );
  48.         $ch curl_init();
  49.         curl_setopt($chCURLOPT_URL$url);
  50.         curl_setopt($chCURLOPT_RETURNTRANSFER1);
  51.         curl_setopt($chCURLOPT_TIMEOUT1000);
  52.         curl_setopt($chCURLOPT_POSTtrue);
  53.         curl_setopt($chCURLOPT_HTTPHEADER$headers);
  54.         $data curl_exec($ch);
  55.         if (curl_errno($ch)) {
  56.             throw new \RuntimeException(curl_error($ch));
  57.         } else {
  58.             curl_close($ch);
  59.             $responseArray json_decode($datatrue);
  60.             $dataXML simplexml_load_string($responseArray['out_xmldata']);
  61.             $accountNo $dataXML->xpath('/NEWACOPNREQUEST/CUSTOMERINFO/ACTNUM')[0]->__toString();
  62.             $responseCode $dataXML->xpath('/NEWACOPNREQUEST/STATUSCODE')[0]->__toString();
  63.             $responseMessage $dataXML->xpath('/NEWACOPNREQUEST/MESSAGE')[0]->__toString();
  64.             $cuscod $dataXML->xpath('/NEWACOPNREQUEST/CUSTOMERINFO/CUSCOD')[0]->__toString();
  65.             return [
  66.                 'cbs_response' => $data,
  67.                 'account_no' => (string)$accountNo.'_'.$cuscod,
  68.                 'response_code' => $responseCode,
  69.                 'response_message' => ($responseCode == '00') ? $responseMessage 'Ref: '.$applicationId.'. '.$responseMessage
  70.             ];
  71.         }
  72.     }
  73.     // Mapping Functions
  74.     private function mapGender($value)
  75.     {
  76.         $gender = [
  77.             'male' => 'M',
  78.             'female' => 'F',
  79.             'other' => 'O'
  80.         ];
  81.         return (isset($gender[strtolower($value)])) ? $gender[strtolower($value)] : 'O';
  82.     }
  83.     private function mapManageType($value)
  84.     {
  85.         $manageType = [
  86.             'individual' => 'I',
  87.             'joint' => 'J',
  88.             'company' => 'C'
  89.         ];
  90.         return (isset($manageType[strtolower($value)])) ? $manageType[strtolower($value)] : 'I';
  91.     }
  92.     // @TODO : Move the mapping to dedicated Type class
  93.     private function mapOperationType($value)
  94.     {
  95.         $operationType = [
  96.             'any three' => 'AN3',
  97.             'any two jointly or survivors or survivor' => 'AN2',
  98.             'either or survivor' => 'EOS',
  99.             'joint a/c' => 'JNT',
  100.             'single a/c' => 'SIN'
  101.         ];
  102.         return (isset($operationType[strtolower($value)])) ? $operationType[strtolower($value)] : 'SIN';
  103.     }
  104.     // @TODO : Move the mapping to dedicated Type class
  105.     private function mapNationality($value)
  106.     {
  107.         $nationality = [
  108.             'american' => 'AMR',
  109.             'anguilla' => 'AGU',
  110.             'australian' => 'AUS',
  111.             'argentina' => 'ARG',
  112.             'austria' => 'AST',
  113.             'bangladeshi' => 'BNG',
  114.             'belgiumese' => 'BEL',
  115.             'brazilian' => 'BRA',
  116.             'bahamian' => 'BAH',
  117.             'bhutanist' => 'BHT',
  118.             'canadian' => 'CAD',
  119.             'caribbeans' => 'CAR',
  120.             'chinese' => 'CHI',
  121.             'croatia' => 'CRO',
  122.             'czech republic' => 'CZH',
  123.             'denmark' => 'DEN',
  124.             'dutch' => 'HOL',
  125.             'english' => 'ENG',
  126.             'ethiopian' => 'ETH',
  127.             'egyptian' => 'EGY',
  128.             'french' => 'FRN',
  129.             'finland' => 'FIN',
  130.             'german' => 'GER',
  131.             'guatemala' => 'GUT',
  132.             'hongkong' => 'HON',
  133.             'hungarian' => 'HUN',
  134.             'indian' => 'IND',
  135.             'indonesian' => 'INA',
  136.             'irani' => 'IRN',
  137.             'iraqi' => 'IRQ',
  138.             'irish' => 'IRS',
  139.             'israel' => 'ISR',
  140.             'italian' => 'ITL',
  141.             'ireland' => 'IRE',
  142.             'jamaika' => 'JMK',
  143.             'japanese' => 'JAP',
  144.             'jordan' => 'JOR',
  145.             'kenya' => 'KEN',
  146.             'korean' => 'KRN',
  147.             'kuwaiti' => 'KUT',
  148.             'lebanese' => 'LEB',
  149.             'liberian' => 'LBN',
  150.             'lithuania' => 'LIT',
  151.             'luxembourg' => 'LOU',
  152.             'malayasin' => 'MAL',
  153.             'maldives' => 'MLD',
  154.             'mauritius' => 'MTS',
  155.             'nepalese' => 'NEP',
  156.             'nigerian' => 'NGR',
  157.             'norwegian' => 'NRG',
  158.             'netherlands' => 'NAD',
  159.             'newzealand' => 'NEW',
  160.             'omani' => 'OMN',
  161.             'pakisthani' => 'PAK',
  162.             'philipines' => 'PHI',
  163.             'romanian' => 'ROM',
  164.             'russia' => 'RUS',
  165.             'saint kittes and nevis' => 'STK',
  166.             'saint martin (french part)' => 'SKN',
  167.             'saudi' => 'SAU',
  168.             'singaporean' => 'SIN',
  169.             'somalian' => 'SOM',
  170.             'south african' => 'SAF',
  171.             'spain' => 'SPN',
  172.             'srilanka' => 'SRI',
  173.             'sudani' => 'SDN',
  174.             'swedish' => 'SDE',
  175.             'swiss' => 'SWS',
  176.             'taiwanese' => 'TAI',
  177.             'thai' => 'THI',
  178.             'turkey' => 'TRK',
  179.             'tunisia' => 'TUN',
  180.             'united arab emirates  national' => 'UAE',
  181.             'united kingdom' => 'UKG',
  182.             'uruguay' => 'URG',
  183.             'vietnam' => 'VAT',
  184.             'west indies n.i.e.' => 'WIN'
  185.         ];
  186.         return (isset($nationality[strtolower($value)])) ? $nationality[strtolower($value)] : 'BNG';
  187.     }
  188.     // @TODO : Move the mapping to dedicated Type class
  189.     private function mapReligious($value)
  190.     {
  191.         $religious = [
  192.             'islam' => 'MUS',
  193.             'hindu' => 'HIN',
  194.             'buddhishm' => 'BUD',
  195.             'christian' => 'CHR'
  196.         ];
  197.         return (isset($religious[strtolower($value)])) ? $religious[strtolower($value)] : 'MUS';
  198.     }
  199.     // @TODO : Update Occupation type to hold the short version as well
  200.     private function mapOccupation($value)
  201.     {
  202.         $occupation = [
  203.             'ADVOCATE/LAWYEAR' => 'ADV',
  204.             //'AGENT(BANK)' => 'AGB',
  205.             'ARCHITECT' => 'ARC',
  206.             'ATTORNEY' => 'ATY',
  207.             'BANKER' => 'BAN',
  208.             'BUSINESS(ADVERTISING)' => 'BAD',
  209.             'BUSINESS(AGENCY)' => 'AGN',
  210.             'BUSINESS(CARDEALER,REPAIR,FINANCE)' => 'CDL',
  211.             'BUSINESS(CLEARINGANDFORWARDING)' => 'CLF',
  212.             'BUSINESS(COMMISSIONAGENT)' => 'CAG',
  213.             'BUSINESS(COURIERSERVICE)' => 'COS',
  214.             'BUSINESS(DEALERSHIP)' => 'DLS',
  215.             'BUSINESS(ENGINEERINGWORKSHOP)' => 'BEW',
  216.             'BUSINESS(EXPORTANDIMPORT)' => 'EXI',
  217.             'BUSINESS(EXPORTSECTOR)' => 'EXS',
  218.             'BUSINESS(GARMENTS/BUYINGHOUSE)' => 'GAR',
  219.             'BUSINESS(HOTEL/RESTAURANT/BAR)' => 'HRB',
  220.             'BUSINESS(IMPORTSECTOR)' => 'IMS',
  221.             'BUSINESS(INDENTING)' => 'IDN',
  222.             'BUSINESS(ITSECTOR)' => 'ITS',
  223.             'BUSINESS(JEWELRY/GEMS/ART/ANTIQUE)' => 'JGA',
  224.             'BUSINESS(MANUFACTURING)' => 'MAN',
  225.             'BUSINESS(MEDICALCOLLEGE&HOSPITAL)' => 'MCH',
  226.             'BUSINESS(MONEYCHANGER)' => 'MCN',
  227.             'BUSINESS(MUSIC)' => 'MUS',
  228.             'BUSINESS(OTHERLOCALBUSINESS)' => 'OLB',
  229.             'BUSINESS(PETROLPUMP/CNGSTATION)' => 'CNG',
  230.             'BUSINESS(PHARMACEUTICALS)' => 'PMT',
  231.             'BUSINESS(REALESTATE/CONSTRUCTION)' => 'REC',
  232.             'BUSINESS(RETAIL)' => 'TRE',
  233.             'BUSINESS(SHIPPINGAGENT)' => 'BSA',
  234.             'BUSINESS(STOCKBROKER/DELAER)' => 'SBD',
  235.             'BUSINESS(SUPPLY)' => 'SUP',
  236.             'BUSINESS(TOURGUIDE)' => 'TGU',
  237.             'BUSINESS(TRADING)' => 'TTR',
  238.             'BUSINESS(TRADING,RETAIL)' => 'TRR',
  239.             'BUSINESS(TRANSPORTATION)' => 'TRP',
  240.             'BUSINESS(TRAVELAGENCY/AIRTICKETING)' => 'TAG',
  241.             'BUSINESS(WHOLESALE)' => 'BWS',
  242.             'BUSINESSPROFESSIONAL' => 'BSN',
  243.             'CHAIRMAN(COOPERATIVESOCIETY)' => 'CCS',
  244.             'CHAIRMANPRIVATELTD.COMPANY' => 'CHR',
  245.             'CHARTEREDACCOUNTANT' => 'CAC',
  246.             'CHIEFEXECUTIVEOFFICERS' => 'CEO',
  247.             'COMPUTERPROGRAMMER' => 'PRG',
  248.             'CONSULTANT' => 'CON',
  249.             'CONTRACTOR' => 'CTT',
  250.             'DEFENSESERVICE(COMMISSIONEDOFFICER)' => 'DSC',
  251.             'DEFENSESERVICE(NON-COMMISSIONED)' => 'DSN',
  252.             'DIRECTORPRIVATELIMITEDCOMPANY' => 'DPR',
  253.             'DIRECTORPUBLICLIMITEDCOMPANY' => 'DPL',
  254.             'DISTRIBUTOR' => 'DST',
  255.             'DOCTOR' => 'DOC',
  256.             'DRIVER' => 'DRV',
  257.             'ENGINEER' => 'ENG',
  258.             'FARMER' => 'FER',
  259.             'GOVERNMENTEMPLOYMENT' => 'GEM',
  260.             'GOVERNMENTSERVICE-NON-OFFICER' => 'GNO',
  261.             'GOVERNMENTSERVICE-OFFICER' => 'GSO',
  262.             'HOUSEWIFE' => 'HOW',
  263.             'INSURACEAGENT' => 'INA',
  264.             'JOURNALIST' => 'JNL',
  265.             'JUDICIARY' => 'JDR',
  266.             'LANDLORD' => 'LLD',
  267.             'MANAGER' => 'MGR',
  268.             'MANAGINGDIRECTORPRIVATELTD.COMPANY' => 'MNG',
  269.             'MEMBEROFPARLIAMENT' => 'MOP',
  270.             'OTHERS' => 'OTH',
  271.             'PILOT/FLIGHTATTENDANT' => 'FLA',
  272.             'PLAYER' => 'PLY',
  273.             'POLICE,CUSTOMS,TAX' => 'PCT',
  274.             'PRIVATEEMPLOYMENT' => 'PEM',
  275.             'PRIVATESERVICE(MANAGERIAL)' => 'PSM',
  276.             'PRIVATESERVICE(NON-MANAGERIAL)' => 'PSN',
  277.             'PROFESSOR' => 'PRF',
  278.             'RETIREDPERSON' => 'RTD',
  279.             'SECRETARY' => 'SEC',
  280.             'SELFEMPLOYEDPROFESSIONAL' => 'LWY',
  281.             'SERVICE(ABROAD)' => 'SEA',
  282.             'SERVICE(AIRLINES)' => 'SAR',
  283.             'SERVICE(CAPITAL MARKET)' => 'SCM',
  284.             'SERVICE(GARMENTS/TEXTILES)' => 'SGT',
  285.             'SERVICE(ITSECTOR)' => 'SIT',
  286.             'SERVICE(NGO)' => 'SNG',
  287.             'SERVICE(OTHERS)' => 'SOT',
  288.             'SERVICE(PHARMACEUTICALS)' => 'SPH',
  289.             'SERVICE-StateOwnedEnt.(Managerial)' => 'SOE',
  290.             'SERVICE-StateOwnedEnt.(Non-Managerial)' => 'SEN',
  291.             'STUDENT' => 'STD',
  292.             'TEACHER' => 'TCH',
  293.             'TRUST' => 'TRU',
  294.         ];
  295.         return (isset($occupation[$value])) ? $occupation[$value] : 'HOW';
  296.     }
  297.     private function mapMaritalStatus($value)
  298.     {
  299.         $maritalStatus = [
  300.             'married' => 'MAR',
  301.             'widower' => 'WID',
  302.             'single' => 'SNG',
  303.             'unmarried' => 'SNG',
  304.             'divorcee' => 'DVR',
  305.             'un specified' => 'UNS'
  306.         ];
  307.         return (isset($maritalStatus[strtolower($value)])) ? $maritalStatus[strtolower($value)] : 'MAR';
  308.     }
  309.     // @TODO : Move the mapping to dedicated Type class
  310.     private function mapRelation($value)
  311.     {
  312.         $relation = [
  313.             'aunt' => 'AUN',
  314.             'husband' => 'HUS',
  315.             'wife' => 'WFE',
  316.             'brother' => 'BRO',
  317.             'brother in law' => 'BIL',
  318.             'sister' => 'SIS',
  319.             'daughter' => 'DTR',
  320.             'father' => 'FAT',
  321.             'father in law' => 'FIL',
  322.             'friend' => 'FRI',
  323.             'grand father' => 'GFA',
  324.             'grand mother' => 'GMO',
  325.             'lover' => 'LOV',
  326.             'mother' => 'MOT',
  327.             'mother in law' => 'MIL',
  328.             'nephew' => 'NEP',
  329.             'niece' => 'NIE',
  330.             'sister in law' => 'SIL',
  331.             'son' => 'SON',
  332.             'uncle' => 'UCL'
  333.         ];
  334.         return (isset($relation[strtolower($value)])) ? $relation[strtolower($value)] : 'HUS';
  335.     }
  336.     // @TODO : Move the mapping to dedicated Type class
  337.     private function mapSectorCode($value)
  338.     {
  339.         $sectorCode = [
  340.             'Bangladesh Haor And Wetland Development' => 484,
  341.             'Executive Cell, BEPZA' => 485,
  342.             'Gram Parishad' => 489,
  343.             'Rice mills including  puffed rice, chirr' => 508,
  344.             'Salt Processing Industries' => 516,
  345.             'Office of the Divisional Commissioner' => 567,
  346.             'West Zone Power Distribution Company Ltd' => 568,
  347.             'Food Ministry( Including food divisions/' => 569,
  348.             'Other Local  Individuals not above menti' => 570,
  349.             'Processing of bread and biscuits, vermic' => 571,
  350.             'Processed fruit products (jam, jelly, ju' => 572,
  351.             'Fruits processing including vegetables' => 573,
  352.             'Manufacturing of flour, sujee (Flour Mil' => 574,
  353.             'Processing of mushroom and spirulina' => 575,
  354.             'Starch, glucose and other dextrose p' => 576,
  355.             'Processing of potato products (chips' => 577,
  356.             'processing of powder spice' => 578,
  357.             'Manufacturing of Unani and Ayurvedic' => 579,
  358.             'Fish feed and fish meal processing f' => 580,
  359.             'Seed processing and preservation' => 581,
  360.             'Pulse Mills' => 582,
  361.             'Processing of rubber tape, shellac' => 583,
  362.             'Production of bamboo and cane furnit' => 584,
  363.             'Meat processing' => 585,
  364.             'Production of bio slurry, mixed manu' => 586,
  365.             'Production of bio-pesticides, neem p' => 587,
  366.             'Sweetening products.' => 588,
  367.             'Soya food production & processing.' => 589,
  368.             'Mustard oil producing industry (if l' => 590,
  369.             'Other Agro based Industries.' => 591,
  370.             'Accident Research Institute (ARI), Bangl' => 592,
  371.             'Advertising Industry and modeling (print' => 593,
  372.             'Agrani SME Financing Company Limited' => 594,
  373.             'Agriculture Information Service' => 595,
  374.             'Ashuganj Power Station Company Ltd (APSC' => 597,
  375.             'Audit and Accounting Firm/CA Firm/ Credi' => 598,
  376.             'Auto mobile service including CNG conver' => 599,
  377.             'Bangabandhu Sheikh Mujibur Rahman Novo T' => 600,
  378.             'Bangabandhu Sheikh Mujibur Rahman Scienc' => 601,
  379.             'Bangladesh  Hi-Tech Park Authority' => 602,
  380.             'Bangladesh Accreditation Board' => 603,
  381.             'Bangladesh Air Force' => 604,
  382.             'Bangladesh Ansar and VDP' => 605,
  383.             'Bangladesh Army' => 606,
  384.             'Bangladesh Cable Shilpa Limited' => 607,
  385.             'Bangladesh Coast Guard' => 608,
  386.             'Bangladesh Computer Council (BCC)' => 609,
  387.             'Bangladesh Co-operative Academy' => 610,
  388.             'Bangladesh Education Engineering Departm' => 611,
  389.             'Bangladesh Energy Regulatory Commission' => 612,
  390.             'Bangladesh Foreign Trade Institute (BFTI' => 613,
  391.             'Bangladesh Forest Department' => 614,
  392.             'Bangladesh Forest Research Institute' => 615,
  393.             'Bangladesh Form and Publications Office' => 616,
  394.             'Bangladesh Health Professionals Institut' => 617,
  395.             'Bangladesh Infrastructure Finance Fund L' => 618,
  396.             'Bangladesh Institute of Bank Management' => 619,
  397.             'Bangladesh Institute of International an' => 620,
  398.             'Bangladesh Institute of International an ' => 621,
  399.             'Bangladesh Institute of Textile Technolo' => 622,
  400.             'Bangladesh Judicial Service Commission' => 623,
  401.             'Bangladesh Krira Shikkha Protisthan (BKS' => 624,
  402.             'Bangladesh Machine Tools Factory Limited' => 625,
  403.             'Bangladesh Missions in Abroad' => 626,
  404.             'Bangladesh National Commission of UNESCO' => 627,
  405.             'Bangladesh National Herbarium' => 628,
  406.             'Bangladesh National Medical Council' => 629,
  407.             'Bangladesh National Parliament (Jatio Sa' => 630,
  408.             'Bangladesh Navy' => 631,
  409.             'Bangladesh NGO Foundation' => 632,
  410.             'Bangladesh Ordniance Factories' => 633,
  411.             'Bangladesh Petroleum  Institute' => 634,
  412.             'Bangladesh Police' => 635,
  413.             'Bangladesh Post Office (except Savings B' => 636,
  414.             'Bangladesh Post Office Savings Bank Sche' => 637,
  415.             'Bangladesh Public Service Commission' => 638,
  416.             'Bangladesh Road Transport Authority (BRT' => 639,
  417.             'Bangladesh Samabaya Bank Ltd' => 640,
  418.             'Bangladesh Secretariat' => 641,
  419.             'Bangladesh Seri cultural Research and Tr' => 642,
  420.             'Bangladesh Silk Research and Training In' => 643,
  421.             'Bangladesh Small & Cottage Industries Co' => 644,
  422.             'Bangladesh Sthala Bandar Katripaksha' => 645,
  423.             'Bangladesh Submarine Cable Company Limit' => 646,
  424.             'Bangladesh Supreme Court (Including High' => 647,
  425.             'Bangladesh Tariff Commission' => 648,
  426.             'Bangladesh Tea Research Institute (BTRI)' => 649,
  427.             'Bangladesh Telecommunication Regulatory' => 650,
  428.             'Bangladesh Textile University' => 651,
  429.             'Bangladesh University of Professional' => 652,
  430.             'Barisal University' => 653,
  431.             'Battery Manufacturing Industries' => 654,
  432.             'Begum Rokeya University' => 655,
  433.             'Beverage and Soft Drinks manufacturing C' => 656,
  434.             'Board of Investment Bangladesh' => 657,
  435.             'Border Guard Bangladesh' => 658,
  436.             'Brokerage Houses/ (Share & Security Trad' => 659,
  437.             'Bureau of Manpower, Employment and Train' => 660,
  438.             'Bureau of Non-formal Education' => 661,
  439.             'Businessmen/Industrialist' => 662,
  440.             'Caterers /Decorators/Sound & Lighting re' => 664,
  441.             'Central Development Resources Developmen' => 665,
  442.             'Chain Super Market/Shopping Mall' => 666,
  443.             'Chittagong Veterinary and Animal Science' => 667,
  444.             'Christian Welfare Trust' => 668,
  445.             'Cinema Hall/Cineplex' => 669,
  446.             'Cinema Studio' => 670,
  447.             'Comilla University' => 671,
  448.             'Community Centres/ Convention centres/Au' => 672,
  449.             'Comprehensive Disaster Management Progra' => 673,
  450.             'Consultancy & Supervisory Farms' => 674,
  451.             'Contractor and Supplier farms' => 675,
  452.             'Copyright Office' => 676,
  453.             'Cotton Development Board' => 677,
  454.             "Cox's Bazar Cultural Centre" => 678,
  455.             'Department of Agricultural Marketing' => 679,
  456.             'Department of Architecture' => 680,
  457.             'Department of Disaster Management' => 681,
  458.             'Department of Environment' => 682,
  459.             'Department of Explosive' => 683,
  460.             'Department of Film and Publications' => 684,
  461.             'Department of Fire Service and Civil Def' => 685,
  462.             'Department of Fisheries' => 686,
  463.             'Department of Immigration and Passports' => 687,
  464.             'Department of Livestock Services' => 688,
  465.             'Department of Mass Communication' => 689,
  466.             'Department of Narcotics Control' => 690,
  467.             'Department of Patents, Designs and Trade' => 691,
  468.             'Department of Prisons' => 692,
  469.             'Department of Shipping' => 693,
  470.             'Department of Youth Development' => 694,
  471.             'Dhaka Power Distribution Company Ltd (DP' => 695,
  472.             'Directorate General of Defence Purchase' => 696,
  473.             'Directorate General of Drug Administrati' => 697,
  474.             'Directorate General of Family Planning' => 698,
  475.             'Directorate General of Forces Intelligen' => 699,
  476.             'Directorate of Archives and Libraries' => 700,
  477.             'Directorate of Bangladesh Survey' => 701,
  478.             'Directorate of Govt. Accommodation' => 702,
  479.             'Directorate of Inspection and Audit of M' => 703,
  480.             'Directorate of Meteorology' => 704,
  481.             'Directorate of National Consumer Rights' => 705,
  482.             'Directorate of Nursing Services' => 706,
  483.             'Directorate of Technical Education' => 707,
  484.             'Disaster Management Bureau' => 708,
  485.             'Distilleries, Mineral & Drinking Water p' => 709,
  486.             'District Judge Court (Including Other Co' => 710,
  487.             'Election Commission Bangladesh' => 711,
  488.             'Electricity Generation Company of Bangla' => 712,
  489.             'Electronic Goods Manufacturing/ Assembli' => 713,
  490.             'Equity Entrepreneurship Fund' => 717,
  491.             'Essential Drugs Company Limited' => 718,
  492.             'Farmer/Fishermen' => 719,
  493.             'Filling Stations (Petrol pump, CNG Stati' => 720,
  494.             'Freight Forwarders' => 721,
  495.             'Garments Accessories manufacturing indus' => 722,
  496.             'Graphic Designers' => 723,
  497.             'Grihayan Tahobill' => 724,
  498.             'Health Engineering Department' => 725,
  499.             'Horticulture Export Development Foundati' => 726,
  500.             'Housewife' => 727,
  501.             'Housing &  Building Research Institute' => 728,
  502.             'Hydrocarbon Unit, Bangladesh' => 729,
  503.             'Ice Factory' => 730,
  504.             'Indenting firms' => 731,
  505.             'Institute of Water Modeling' => 732,
  506.             'Insurance Development and Regularity Aut' => 733,
  507.             'Interior Design & Decorators and other e' => 734,
  508.             'International Mother Language Institute' => 735,
  509.             'Issue manager, Under-writer, Asset Manag' => 736,
  510.             'Jagannath University' => 737,
  511.             'Jatiya Kabi Kazi Nazrul Islam University' => 738,
  512.             'Jatiya Mohila Sangstha' => 739,
  513.             'Jessore Science & Technology University' => 740,
  514.             'Joint River Commission' => 741,
  515.             'Judicial Administration Training Institu' => 742,
  516.             'Jewelry Services' => 743,
  517.             'Khudro Nri Gosthi Cultural Academy, Biri' => 744,
  518.             'Khudro Nri Gosthi Cultural Institute, Ra' => 745,
  519.             'Khulna Shipyard Limited' => 746,
  520.             'Land Administration Training Centre (LAT' => 747,
  521.             'Land Appeal Board' => 748,
  522.             'Land Lord' => 749,
  523.             'Land Reform Board' => 750,
  524.             'Laundry Services' => 751,
  525.             'Leather Processing and Tanning (raw hide' => 752,
  526.             'Legal advisory Firms' => 753,
  527.             'Light Engineering and Metal-workshop' => 754,
  528.             'Madrasha Teachers Training Institute (MT' => 755,
  529.             'Manufacturing of agro-equipments' => 756,
  530.             'Manufacturing of Electrical equipments &' => 757,
  531.             'Manufacturing of Transport Equipments' => 758,
  532.             'Mawlana Bhashani Science & Technology Un' => 759,
  533.             'Merchant Banks' => 760,
  534.             'Micro Credit Regulatory Authority (MRA)' => 761,
  535.             'Minor/Autistics/Disabled  and other depe' => 762,
  536.             'Modernised Cleaning Service for High-ris' => 763,
  537.             'Mutual Funds' => 764,
  538.             'National Academy for Computer Training a' => 765,
  539.             'National Academy for Educational Managem' => 766,
  540.             'National Academy of Primary Education (N' => 767,
  541.             'National Foundation for Development of t' => 768,
  542.             'National Foundation for Research on Huma' => 769,
  543.             'National Freedom Fighter Council' => 770,
  544.             'National Human Rights Commission' => 771,
  545.             'National Institute of Biotechnology' => 772,
  546.             'National Institute of Mass Communication' => 773,
  547.             'National Legal Aid Institute' => 774,
  548.             'National Maritime Institute' => 775,
  549.             'NGO Affairs Bureau' => 776,
  550.             'Non-Government Teachers Registration and' => 777,
  551.             'North West Power Generation Company Ltd' => 778,
  552.             'Office of the Assistant Commissioner of' => 779,
  553.             'Office of the Chief Inspector of Boilers' => 780,
  554.             'Office of the Thana Executive Officer' => 781,
  555.             'Old/Widowed/Distressed person' => 782,
  556.             'Online News Media' => 783,
  557.             'Other Ministries, Directorates and Depar' => 786,
  558.             'Others' => 788,
  559.             'Outsourcing and Security Service' => 790,
  560.             'Pabna University of Science and Technolo' => 791,
  561.             'Packaging Industries including paper boa' => 792,
  562.             'Palli Karma-Sahayak Foundation (PKSF)' => 793,
  563.             'Pally Bidyut Samities' => 794,
  564.             'Patuakhali Science and Technology Univer' => 795,
  565.             'Polymer and polythene industries' => 797,
  566.             'Power Cell' => 798,
  567.             'Power Grid Company of Bangladesh (PGCB)' => 799,
  568.             'Press Information Department' => 800,
  569.             'Private Inland Container Depot and Conta' => 801,
  570.             'Private Survey Institutions' => 802,
  571.             'Probashi Kallyan  Bank' => 803,
  572.             'Public Private Partnership Office' => 804,
  573.             'Rapid Action Battalion (RAB)' => 805,
  574.             'Registrar of Joint Â¿Stock Companies and' => 806,
  575.             'Residential Hotels ( Including 3star & A' => 807,
  576.             'Retired Persons' => 808,
  577.             'Rural Power Company Ltd (RPCL)' => 809,
  578.             'Satellite Cable Operator' => 810,
  579.             'Satellite Channel Distributor/Cinema Dis' => 811,
  580.             'Seed Certification Agency' => 812,
  581.             'Sheikh Zayad Bin Sultan Al Nahian Trust' => 813,
  582.             'Ship Breaking Industries' => 814,
  583.             'Ship Building Industries' => 815,
  584.             'Shipping Agency' => 816,
  585.             'SME Foundation' => 817,
  586.             'Soil Resources Development Institute' => 818,
  587.             'Special Security Force' => 819,
  588.             'Sports and Event management organisation' => 820,
  589.             'Stock Exchanges (DSE, CSE, etc)' => 821,
  590.             'Stone Crashers' => 822,
  591.             'Student' => 823,
  592.             'Sugar Mills' => 824,
  593.             'Sylhet Agricultural University' => 825,
  594.             'Tailoring Shop and Tailors' => 826,
  595.             'Tank Terminal' => 827,
  596.             'Testing Laboratory' => 828,
  597.             'Tourism Industry' => 829,
  598.             'Urban Development Directorate' => 830,
  599.             'Dhaka Electric Supply Company (DESCO)' => 363,
  600.             'Printing &  Dyeing Industries' => 366,
  601.             'Spinning Mills' => 367,
  602.             'Weaving Mills' => 368,
  603.             'Coconut oil production industries' => 369,
  604.             'Tobacco Processing Industries' => 370,
  605.             'Cosmetics & Toiletries Industries' => 371,
  606.             'Rubber And Plastic Industries' => 372,
  607.             'Leather Products Manufacturing  Industri' => 374,
  608.             'Paper and Paper Products Manufacturing I' => 376,
  609.             'Furniture, Fixture, Particle Boards and' => 377,
  610.             'Milk Processing Industries' => 378,
  611.             'Food Processing Industry  (PRAN, AFTAB,' => 379,
  612.             'Pharmaceutical Industries' => 381,
  613.             'Salt Processing Industries ' => 382,
  614.             'Tea processing industries' => 383,
  615.             'Fertilizer Company' => 387,
  616.             'LP Gas Companies' => 397,
  617.             'Oxygen Gas Companies' => 398,
  618.             'Other Gas Companies' => 399,
  619.             'Others ' => 400,
  620.             'Photo Studios and Color labs' => 401,
  621.             'Travel Agencies/Overseas Employment / Av' => 402,
  622.             'Cold-Storages' => 403,
  623.             'Beauty Parlours/ Saloons/ Health Club/Fi' => 404,
  624.             'Pension Funds /Provident Funds of privat' => 414,
  625.             'Foreign  Individuals' => 416,
  626.             'Foreign Offices/ Embassies/Enterprises/C' => 417,
  627.             'Mosques' => 418,
  628.             'Temples, Churches & the like' => 419,
  629.             'Sports Clubs' => 420,
  630.             'Other Clubs' => 421,
  631.             'Theatre & Cultural Organisations' => 422,
  632.             'Political Parties' => 423,
  633.             'Trade Unions' => 424,
  634.             'District/Upazilla Associations' => 425,
  635.             'Professional Associations (Doctor, Engg)' => 426,
  636.             'Chambers of Industries' => 427,
  637.             'Other Associations, n.e.s.' => 428,
  638.             'Trust fund & Other Non-profit Organisati' => 429,
  639.             'Institutes of Technology (Including Poly' => 442,
  640.             'Bangladesh University of Engineering & T' => 443,
  641.             'Chittagong University of Engineering & T' => 454,
  642.             'Khulna University of Engineering & Techn' => 455,
  643.             'Rajshahi University of Engineering & Tec' => 456,
  644.             'Bangabandhu Sheikh Mujibur Rahman Agricu' => 457,
  645.             'Sher-e-Bangla Agricultural University' => 458,
  646.             'Hajee Mohammad Danesh Science & Technolo' => 459,
  647.             'Patuakhali Science & Technology Universi' => 460,
  648.             'Other Public Educational Institutions' => 461,
  649.             'Bangladesh Veterinary Council' => 462,
  650.             'Foreign Service Academy' => 463,
  651.             'National Institute of Population, Resear' => 464,
  652.             'Institute of Public Health and Nutrition' => 465,
  653.             'National Institute of Cardiovascular Dis' => 466,
  654.             'National Institute of Preventive & Socia' => 467,
  655.             'Institute of Public Health And Hospital' => 468,
  656.             'National Institute of Disease of Chest &' => 469,
  657.             'National Institute of Ophthalmology' => 470,
  658.             'National Institute of Traumatology & Ort' => 471,
  659.             'Dhaka Transport Co-ordination Authority' => 477,
  660.             'Chittagong Hill Tracts Regional Council' => 478,
  661.             'Rangamati Hill District Council' => 479,
  662.             'Khagrachori Hill District Council' => 480,
  663.             'Bandarban Hill District Council' => 481,
  664.             'Bangladesh Overseas Employment Service L' => 482,
  665.             'National Housing Authority' => 483,
  666.             'Importers' => 189,
  667.             'Investment Companies' => 196,
  668.             'Central Co-operative Bank' => 197,
  669.             'Land Mortgage Co-operative Bank' => 198,
  670.             'Other Co-operative Banks/Societies' => 199,
  671.             'Professionals and Self-employed Persons' => 200,
  672.             'Wage Earners (Bangladeshi nationals work' => 201,
  673.             'Roads and Highway Department' => 204,
  674.             'Directorate of Social Welfare' => 208,
  675.             'Bangladesh Govt. Press (BG Press)' => 209,
  676.             'Directorate of Secondary and Higher Seco' => 210,
  677.             'Directorate of Livestock' => 211,
  678.             'Hajj Office' => 212,
  679.             'Directorate of  Sports' => 213,
  680.             'Directorate of Archaeology' => 214,
  681.             'Directorate of Bangladesh Family Plannin' => 216,
  682.             'Directorate of Printing, Stationary, For' => 217,
  683.             'Department of Local Government & Enginee' => 218,
  684.             'Bangladesh Open University (BOU)' => 221,
  685.             'Medical/Dental Colleges' => 222,
  686.             'Bangabandhu Sheikh Mujib Medical Univers' => 225,
  687.             'Dhaka University' => 226,
  688.             'Rajshahi University' => 227,
  689.             'Chittagong University' => 228,
  690.             'Jahangirnagar University' => 229,
  691.             'Khulna University' => 230,
  692.             'Shahjalal University of Science and Tech' => 231,
  693.             'Bangladesh Agricultural University' => 232,
  694.             'Islamic University' => 233,
  695.             'Dhaka University of Engineering & Techno' => 234,
  696.             'National Academy for Planning & Developm' => 235,
  697.             'Bangladesh Sugarcane Research  Institute' => 236,
  698.             'Investment Corporation of Bangladesh (IC' => 126,
  699.             'Grameen Bank' => 127,
  700.             'Infrastructure Development Company Limit' => 128,
  701.             'Sadharan Bima Corporation' => 129,
  702.             'Jiban Bima Corporation' => 130,
  703.             'Bangladesh Textile Mills Corporation & R' => 131,
  704.             'Sugar Mills ' => 132,
  705.             'Food and Allied Industries' => 133,
  706.             'Fertilizer, Chemical & Pharmaceutical In' => 134,
  707.             'Paper and Paper Board Industries' => 135,
  708.             'Steel Mills' => 136,
  709.             'Engineering and Ship Building Industries' => 137,
  710.             'Bangladesh Jute Mills Corporation and Re' => 138,
  711.             'Bangladesh Petroleum Corporation & relat' => 140,
  712.             'Bangladesh Oil, Gas & Mineral Corporatio' => 141,
  713.             'Bangladesh Power Development Board' => 142,
  714.             'Bangladesh Biman Corporation' => 143,
  715.             'Bangladesh Shipping Corporation' => 144,
  716.             'Trading Corporation of Bangladesh' => 145,
  717.             'Bangladesh Railway' => 146,
  718.             'Bangladesh Telecommunications Company Li' => 147,
  719.             'Bangladesh Road Transport Corporation (B' => 148,
  720.             'Bangladesh Forest Industries Development' => 149,
  721.             'Others1' => 150,
  722.             'Bangladesh Fish Development  Corporation' => 151,
  723.             'Bangladesh Tea Board' => 152,
  724.             'Bangladesh Inland Water Transport Author' => 153,
  725.             'Bangladesh Inland Water Transport Corpor' => 154,
  726.             'Bangladesh Water Development Board' => 155,
  727.             'Rural Electrification Board (REB)' => 158,
  728.             'Dhaka Electric Supply Authority (DESA)' => 159,
  729.             'Chittagong Port Authority' => 160,
  730.             'Mongla  Port Authority' => 161,
  731.             'BANGLADESH SMALL & COTTAGE IND.CORP.' => 162,
  732.             'Bangladesh Parjatan Corporation' => 163,
  733.             'Bangladesh Film Development Corporation' => 164,
  734.             "BANGLADESH CONSUMER'S SUPPLIES LTD." => 165,
  735.             'Civil Aviation Authority  of Bangladesh' => 166,
  736.             'Bangladesh Freedom Fighters Welfare Trus' => 167,
  737.             'Telephone Shilpa Sangstha' => 168,
  738.             'Bangladesh Cable Industries Corporation' => 169,
  739.             'Bangladesh Tannery Industries Corporatio' => 170,
  740.             'Bangladesh Services Ltd.' => 171,
  741.             'Hotels International Ltd. (3 Stars & abo' => 172,
  742.             'Zila Parishad' => 173,
  743.             'Municipal/City Corporation' => 174,
  744.             'Thana/Upazila Parishad' => 175,
  745.             'Union Parishad' => 176,
  746.             'Agricultural Farms (Nursery, Horticultur' => 178,
  747.             'Jute Mills/Jute products Manufacturing I' => 179,
  748.             'Textile Mills' => 180,
  749.             'Readymade Garments Industries' => 181,
  750.             'Chemical and Chemical Products Industrie' => 182,
  751.             'Soaps & Detergents Factories' => 274,
  752.             'Steel Engineering & Metallic Products In' => 275,
  753.             'Assembling Industry' => 276,
  754.             'Production, supply and distribution of p' => 278,
  755.             'Entertainment (Amusement Park, Theme par' => 279,
  756.             'Nazrul Institute' => 238,
  757.             'Bangladesh Livestock Research Institute' => 239,
  758.             'Bangladesh Rural Development Training In' => 240,
  759.             'River Research Institute' => 241,
  760.             'Council of Bangladesh Institute of Techn' => 242,
  761.             'National Training & Research Academy for' => 243,
  762.             'Bangladesh Fisheries Research Institute' => 244,
  763.             'National Sports Council (NSC)' => 245,
  764.             'Bangladesh Bridge Authority' => 247,
  765.             'Privatisation Commission' => 248,
  766.             'Water Resources Planning Organisation (W' => 249,
  767.             'BARID Multipurpose Development Authority' => 250,
  768.             'The Security Printing Corporation (Bangl' => 251,
  769.             'Bangladesh National Science & Technical' => 252,
  770.             "Bangladesh Tea Plantation Employees' Pro" => 253,
  771.             'Dock Labour Management Board, Chittagong' => 255,
  772.             'Dock Labour Management Board, Bagerhat' => 256,
  773.             'Saudi Bangladesh Industrial and Agricult' => 258,
  774.             'Others2' => 259,
  775.             'Ansar-VDP Unnayan Bank' => 261,
  776.             'Karma Sangsthan Bank' => 262,
  777.             'Others3' => 263,
  778.             'Gram Parishad ' => 264,
  779.             'Fishing Farms ( Hatchery, Shrimp Culture' => 265,
  780.             'Dairy Farms' => 266,
  781.             'Poultry Farms' => 267,
  782.             'Hosiery Factories' => 268,
  783.             'Cement Factories' => 269,
  784.             'Ceramic Industries' => 270,
  785.             'Bricks Manufacturers and Sand elevators' => 271,
  786.             'Glass and Glassware Products Factories' => 272,
  787.             'Hospitals, Clinics, Diagnostic Centres a' => 280,
  788.             'IT-based activities (system analysis, de' => 281,
  789.             'Courier Services & Express Mail Services' => 282,
  790.             'Restaurants /Fast Food' => 283,
  791.             'Exporters' => 285,
  792.             'Importers  and Exporters' => 286,
  793.             'Whole Sale Traders' => 287,
  794.             'Retail Traders' => 288,
  795.             'Other Business Institutions' => 289,
  796.             'NGO/Micro Credit Organizations -( BRAC,' => 294,
  797.             'Newspaper' => 295,
  798.             'Television' => 296,
  799.             'Radio' => 297,
  800.             'Private Schools, Colleges, University Co' => 298,
  801.             'Medical & Dental Colleges' => 299,
  802.             'Private Universities' => 300,
  803.             'Private Institute of IT' => 301,
  804.             'Other Educational /Training institutes /' => 302,
  805.             'Leasing Companies (Non-depository)' => 303,
  806.             'Other Financial Intermediaries' => 304,
  807.             'Leasing Companies (Depository)' => 305,
  808.             'Other Depository Corporations' => 308,
  809.             'Money Changers' => 309,
  810.             'Service Holders (Salaried Person)' => 311,
  811.             'Office of the District Commissioner' => 004,
  812.             'Directorate of Relief and Rehabilitation' => 006,
  813.             'Anti Corruption Commission' => 007,
  814.             'Bangladesh Nursing Council' => 58,
  815.             'Bangladesh Marine Academy' => 9,
  816.             'Directorate of Primary Education' => 010,
  817.             'Office of the Comptroller and Auditor Ge' => 011,
  818.             'National Board of  Revenue' => 012,
  819.             'Directorate of National Savings' => 013,
  820.             'Bangladesh Bureau of Statistics' => 015,
  821.             'Bangladesh Civil Service Administration' => 016,
  822.             'Directorate of Health' => 18,
  823.             'Directorate of Jute' => 19,
  824.             'Department of Textile' => 020,
  825.             'Directorate of Labor' => 021,
  826.             'Directorate of Land Record and Survey' => 023,
  827.             'Geological Survey of Bangladesh' => 024,
  828.             'Public Works Department' => 025,
  829.             'Department of Women Affairs' => 026,
  830.             'Registration Directorate' => 027,
  831.             'Department of Agricultural Extension' => 28,
  832.             'Directorate of Public Health and Enginee' => 29,
  833.             'Department of Co-operative' => 030,
  834.             'National Curriculum and Text Book Board' => 033,
  835.             'Bangladesh Madrasha Education Board' => 034,
  836.             'Bangladesh Technical Education Board' => 035,
  837.             'Board of Intermediate and Secondary Educ' => 036,
  838.             'Government Schools,  Colleges, Universit' => 037,
  839.             'Cadet Colleges' => 38,
  840.             'National University (NU), Gazipur' => 39,
  841.             'Bangladesh Academy for Rural Development' => 040,
  842.             'Rural Development Academy, Bogra' => 041,
  843.             'Bangla Academy' => 042,
  844.             'Bangladesh Shilpakala Academy' => 043,
  845.             'Islamic Foundation, Bangladesh' => 044,
  846.             'Bangladesh Agricultural Research Institu' => 045,
  847.             'Bangladesh Council of Scientific & Indus' => 046,
  848.             'Bangladesh Rice Research Institute (BRRI' => 047,
  849.             'Bangladesh Standards and Testing Institu' => 48,
  850.             'Central Public Library' => 49,
  851.             'Bangladesh National Museum' => 050,
  852.             'Other Councils/Institutions' => 051,
  853.             'Bangladesh Insurance Academy' => 052,
  854.             'National Book Centre, Bangladesh' => 053,
  855.             'Bangladesh Medical & Dental Council (BMD' => 054,
  856.             'Bangladesh Medical Research Council' => 055,
  857.             'Pharmacy Council of Bangladesh' => 056,
  858.             'Bangladesh College of Physicians & Surge' => 057,
  859.             'Bangladesh Jute Research Institute (BJRI' => 060,
  860.             'Bangladesh Institute of Development Stud' => 061,
  861.             'Bangladesh Agriculture Research Council' => 062,
  862.             'Bangladesh National Social Welfare Counc' => 064,
  863.             'Marine Fisheries Academy' => 065,
  864.             'Bangladesh Institute of Management (BIM)' => 066,
  865.             'Bangladesh Industrial Technical Assistan' => 067,
  866.             'Institute of Chartered Accountants of Ba' => 68,
  867.             'Institute of Cost & Management Accountan' => 69,
  868.             'National Institute of Local Government' => 070,
  869.             'Bangladesh Space Research and Remote Sen' => 071,
  870.             'National Museum of Science & Technology' => 073,
  871.             'Bangladesh Shishu Academy' => 074,
  872.             'Bangladesh Institute of Nuclear Agricult' => 077,
  873.             'Public Administration Training Centre, S' => 78,
  874.             'Press Institute of Bangladesh' => 79,
  875.             'Bangladesh Atomic Energy Commission' => 80,
  876.             'Bangladesh Agricultural Development Corp' => 81,
  877.             'Chittagong Hill Tracts Development Board' => 82,
  878.             "Prime Minister's Relief Fund" => 83,
  879.             'Rajdhani Unnayan Kartreepaksha (RAJUK)' => 84,
  880.             'Chittagong Development Authority' => 85,
  881.             'Khulna Development Authority' => 86,
  882.             'Rajshahi Development Authority' => 87,
  883.             'Bangladesh Handloom Board' => 88,
  884.             'Bangladesh Sericulture Board' => 89,
  885.             'Export Promotion Bureau' => 90,
  886.             'Bangladesh Rural Development Board (BRDB' => 91,
  887.             'Bangladesh Scouts' => 93,
  888.             "Bangladesh Girls' Guide Association" => 94,
  889.             'Bangladesh Homoeopathic Board' => 96,
  890.             'Buddhist Welfare Trust' => 97,
  891.             'Bangladesh Tobacco Development Board' => 99,
  892.             'Jute Industries Development Board' => 100,
  893.             'Bangladesh Applied Nutrition And Human R' => 101,
  894.             'Investment Advisory Centre of Bangladesh' => 102,
  895.             'Bangladesh Sports Control Board' => 103,
  896.             'Vested Property Management Board' => 104,
  897.             'University Grants Commission of Banglade' => 105,
  898.             'Board of Unani & Ayurvedic Council' => 106,
  899.             'Bangladesh Press Council' => 107,
  900.             'Office of the Bangladesh Waqf Administra' => 108,
  901.             'Welfare Funds' => 109,
  902.             'Public Trust Funds' => 110,
  903.             'Development Funds' => 111,
  904.             'Benevolent Funds' => 112,
  905.             'Public Educational Funds' => 113,
  906.             'Development Works Program Fund' => 114,
  907.             'Bangladesh Export Processing Zone Author' => 115,
  908.             'National Board of Abandoned Properties' => 116,
  909.             'Cyclone Preparedness Programme (CPP)' => 117,
  910.             'Hindu Welfare Trust' => 118,
  911.             'Urban Development Trust' => 119,
  912.             'Bangladesh Folk Arts & Craft Foundation,' => 120,
  913.             'Bangladesh Television/BTV World/ Sangsha' => 121,
  914.             'Bangladesh Sangbad Sangstha (BSS)' => 122,
  915.             'Bangladesh Betar' => 123,
  916.             'Bangladesh House Building Finance Corpor' => 124,
  917.             'Office of the commissioner to taxes' => 831,
  918.             'Directorate of armd force medical servic' => 832,
  919.             'Directorate of govt. transport' => 833,
  920.             'Directorate of insurance' => 834,
  921.             'Department of Railroad inspector' => 835,
  922.             'Bangladesh Diplomatic mission' => 836,
  923.             'National Brodcasting Authority' => 837,
  924.             'Agrani SME Financing Company Limited ' => 838,
  925.             'Bangladesh Infrastructure Finance Fund L ' => 839,
  926.             'WASA (Dhaka, Chittagong, Khulna etc)' => 840,
  927.             'Bangladesh Power Development Board ' => 841,
  928.             'Other Local Authorities.' => 842,
  929.             'Cottage Industries' => 843,
  930.             'Saw Mills' => 844,
  931.             'Handloom Factories' => 845,
  932.             'Handicrafts Factories' => 846,
  933.             'EPZ Industries (Type A)' => 847,
  934.             'EPZ Industries (Type B)' => 848,
  935.             'EPZ Industries (Type C)' => 849,
  936.             'Other Industries not  above mentioned' => 850,
  937.             'Road Transport Companies (including Rent' => 851,
  938.             'Water Transport' => 852,
  939.             'Air Transport' => 853,
  940.             'Construction Companies' => 854,
  941.             'Publishing Industries (including printin' => 855,
  942.             'Telecommunication (Mobile/cellular opera' => 856,
  943.             'Housing Companies or Societies/Land Deve' => 857,
  944.             'Warehouse' => 858,
  945.             'Buying House' => 859,
  946.             'Other ServicesProviding Org' => 860,
  947.             'Coconut oil production industries ' => 861,
  948.             'Milk Processing Industries (Pasteurisat' => 863,
  949.             'Food Processing Industry  (PRAN, AFTAB, ' => 864,
  950.             'Tea processing industries ' => 866,
  951.             'Refining and hydrogenation of edible oi' => 867,
  952.             'Processing of Prawn/Shrimp and other fis' => 868,
  953.             'Other Pvt Sector Official AC' => 869,
  954.             'Life Insurance Companies' => 870,
  955.             'General Insurance Companies' => 871,
  956.             'Clearing & Forwarding (C & F) Agent' => 405,
  957.             'Bank Account -All Scheduled Banks' => 872
  958.         ];
  959.         return (isset($sectorCode[$value])) ? $sectorCode[$value] : 853;
  960.     }
  961.     // @TODO : Move the mapping to dedicated Type class
  962.     private function mapCountry($value)
  963.     {
  964.         $country = [
  965.             'anguilla' => 'AGU',
  966.             'afghanistan' => 'AFG',
  967.             'albania' => 'ALB',
  968.             'algeria' => 'ALG',
  969.             'american samoa' => 'AMS',
  970.             'andorra' => 'AND',
  971.             'angola' => 'ANG',
  972.             'antigua' => 'ANT',
  973.             'antilles netherlands' => 'ATN',
  974.             'argentina' => 'AGT',
  975.             'armenia' => 'ARM',
  976.             'australia' => 'AUS',
  977.             'austria' => 'AST',
  978.             'austria ' => 'AAT',
  979.             'azerbijan' => 'AZE',
  980.             'bahamas' => 'BAH',
  981.             'bahrain' => 'BHR',
  982.             'bangladesh' => 'BAN',
  983.             'barbados' => 'BAR',
  984.             'belgium' => 'BEL',
  985.             'belize' => 'BLZ',
  986.             'belorussia' => 'BLR',
  987.             'benin' => 'BNN',
  988.             'bermuda' => 'BER',
  989.             'bhutan' => 'BHT',
  990.             'bolivia' => 'BOL',
  991.             'bosnia harzegovina' => 'BOS',
  992.             'botswana' => 'BOT',
  993.             'brazil' => 'BRZ',
  994.             'brunei' => 'BRN',
  995.             'bulgaria' => 'BUL',
  996.             'burkina faso' => 'BRK',
  997.             'burundi' => 'BUR',
  998.             'cambodia' => 'CAM',
  999.             'cameroon' => 'CMR',
  1000.             'canada' => 'CAN',
  1001.             'cape verde' => 'CAP',
  1002.             'central african republic' => 'CEN',
  1003.             'chad' => 'CHD',
  1004.             'chile' => 'CHL',
  1005.             'china' => 'CHI',
  1006.             'colombia' => 'COL',
  1007.             'comoros (comoro islands)' => 'COM',
  1008.             'congo' => 'CON',
  1009.             'costa rica' => 'COS',
  1010.             'croatia' => 'CRO',
  1011.             'cuba' => 'CUB',
  1012.             'cyprus' => 'CYP',
  1013.             'czech republic' => 'CZE',
  1014.             'denmark' => 'DEN',
  1015.             'djbouti' => 'DJI',
  1016.             'dominica' => 'DOM',
  1017.             'dominican republic' => 'DOR',
  1018.             'egypt' => 'EGP',
  1019.             'el-salvador' => 'ELS',
  1020.             'epz' => 'EPZ',
  1021.             'equador' => 'EQD',
  1022.             'equatorial guinea' => 'EQG',
  1023.             'eritria' => 'ERI',
  1024.             'estonia' => 'EST',
  1025.             'ethiopia' => 'ETH',
  1026.             'european community' => 'EUC',
  1027.             'faeroe islands' => 'FRI',
  1028.             'falkland islands' => 'FKL',
  1029.             'fiji (including pitcairn)' => 'FIJ',
  1030.             'finland' => 'FIN',
  1031.             'france' => 'FRA',
  1032.             'french polynesia' => 'FRP',
  1033.             'gabon' => 'GAB',
  1034.             'gambia' => 'GAM',
  1035.             'georgia' => 'GEO',
  1036.             'germany' => 'GER',
  1037.             'ghana' => 'GHA',
  1038.             'gibraltar' => 'GIB',
  1039.             'gilbert' => 'GIL',
  1040.             'greece' => 'GRE',
  1041.             'greenland' => 'GRL',
  1042.             'grenada' => 'GRD',
  1043.             'guadeloupe' => 'GUD',
  1044.             'guam' => 'GUM',
  1045.             'guatemala' => 'GUT',
  1046.             'guiana, french' => 'GUF',
  1047.             'guinea' => 'GUA',
  1048.             'guinea-bissau' => 'GUB',
  1049.             'guyana' => 'GUY',
  1050.             'haiti' => 'HAI',
  1051.             'honduras' => 'HOD',
  1052.             'hongkong' => 'HOK',
  1053.             'hungary' => 'HUN',
  1054.             'iceland' => 'ICE',
  1055.             'india' => 'IND',
  1056.             'indonesia' => 'IDS',
  1057.             'iran' => 'IRN',
  1058.             'iraq' => 'IRQ',
  1059.             'ireland' => 'IRL',
  1060.             'italy' => 'ITL',
  1061.             'ivory coast' => 'IVC',
  1062.             'jamaica' => 'JAM',
  1063.             'japan' => 'JAP',
  1064.             'jordan' => 'JOR',
  1065.             'kazakh stan' => 'KAZ',
  1066.             'kenya' => 'KEN',
  1067.             'kingdom of saudi arabia' => 'SDA',
  1068.             'kiribati, republic Of' => 'KIR',
  1069.             'kuwait' => 'KWT',
  1070.             'kyrghyz republic' => 'KYR',
  1071.             'luxembourg ' => 'LOU',
  1072.             'laos p.d. republic of' => 'LOS',
  1073.             'latvia' => 'LAT',
  1074.             'lebanon' => 'LEB',
  1075.             'lesotho' => 'LES',
  1076.             'liberia' => 'LBR',
  1077.             'libya (arab jamhuria)' => 'LIB',
  1078.             'lithuania' => 'LIT',
  1079.             'luxembourg' => 'LUX',
  1080.             'macao' => 'MAC',
  1081.             'madagascar' => 'MAD',
  1082.             'malawi' => 'MLW',
  1083.             'malaysia' => 'MAL',
  1084.             'maldives' => 'MLD',
  1085.             'mali' => 'MLI',
  1086.             'malta' => 'MLT',
  1087.             'martinique' => 'MAR',
  1088.             'mauritania' => 'MTA',
  1089.             'mauritius' => 'MTS',
  1090.             'mexico' => 'MEX',
  1091.             'moldovia' => 'MOL',
  1092.             'mongolian republic' => 'MLR',
  1093.             'montserrat' => 'MON',
  1094.             'morocco' => 'MOR',
  1095.             'mozambique' => 'MOZ',
  1096.             'myanmar' => 'MYA',
  1097.             'namibia' => 'NAM',
  1098.             'nauru' => 'NAU',
  1099.             'nepal' => 'NEP',
  1100.             'netherlands' => 'NLD',
  1101.             'new caledonia' => 'NCL',
  1102.             'new zealand' => 'NZL',
  1103.             'newzealand' => 'NEW',
  1104.             'nicaragua' => 'NIC',
  1105.             'niger' => 'NGR',
  1106.             'nigeria' => 'NGA',
  1107.             'norfolk islands' => 'NRF',
  1108.             'north korea' => 'KON',
  1109.             'norway' => 'NRW',
  1110.             'others' => 'OTH',
  1111.             'pakistan' => 'PAK',
  1112.             'panama' => 'PAN',
  1113.             'papua new guinea' => 'PAP',
  1114.             'paraguay' => 'PGY',
  1115.             'peru' => 'PRU',
  1116.             'philippines' => 'PHI',
  1117.             'poland' => 'POL',
  1118.             'portugal' => 'POR',
  1119.             'reunion' => 'REU',
  1120.             'romania' => 'ROM',
  1121.             'russia' => 'RSA',
  1122.             'rwanda' => 'RWA',
  1123.             'saint kitts and nevis' => 'STK',
  1124.             'saint martin (french part)' => 'SKN',
  1125.             'sao tome & princepe' => 'SAO',
  1126.             'senegal' => 'SGL',
  1127.             'serbia/montenigro(former yugoslavia)' => 'SRB',
  1128.             'seychelles' => 'SEY',
  1129.             'sierra leone' => 'SIE',
  1130.             'singapore' => 'SIG',
  1131.             'slovak republic' => 'SLR',
  1132.             'slovenia' => 'SLV',
  1133.             'solomon ilands' => 'SLI',
  1134.             'somalia' => 'SOM',
  1135.             'south africa' => 'SAF',
  1136.             'south korea' => 'KOS',
  1137.             'south korea ' => 'SHK',
  1138.             'spain' => 'SPN',
  1139.             'sri-lanka' => 'SLK',
  1140.             'st. helena' => 'STH',
  1141.             'st. lucia' => 'STL',
  1142.             'st. pierre & miquelon' => 'STP',
  1143.             'st. vincent' => 'STV',
  1144.             'state of qatar' => 'STQ',
  1145.             'sudan' => 'SUD',
  1146.             'sultanate of oman' => 'SOO',
  1147.             'surinam' => 'SUR',
  1148.             'swaziland' => 'SWL',
  1149.             'sweden' => 'SDN',
  1150.             'switzerland    ' => 'SWZ',
  1151.             'syrian arab republic' => 'SYR',
  1152.             'taiwan' => 'TAI',
  1153.             'tanzania' => 'TNZ',
  1154.             'tazikistan' => 'TAZ',
  1155.             'thailand' => 'THI',
  1156.             'togo' => 'TGO',
  1157.             'tonga' => 'TON',
  1158.             'trinidad & tobago' => 'TRI',
  1159.             'tunisia' => 'TUN',
  1160.             'turkey' => 'TUR',
  1161.             'turkmenistan' => 'TRN',
  1162.             'tuvalu' => 'TUV',
  1163.             'u.s. virgin islands' => 'USV',
  1164.             'uganda' => 'UGD',
  1165.             'ukraine' => 'UKR',
  1166.             'united arab emirates' => 'UAE',
  1167.             'united kingdom ' => 'UKG',
  1168.             'united kingdom' => 'GBR',
  1169.             'upper volta' => 'UVT',
  1170.             'uruguay' => 'UGY',
  1171.             'usa' => 'USA',
  1172.             'uzbekistan' => 'UBZ',
  1173.             'vanuatu (new hebridges)' => 'VNT',
  1174.             'vatican city' => 'VTC',
  1175.             'venezuela' => 'VNZ',
  1176.             'vietnam' => 'VTM',
  1177.             'west indies n.i.e.' => 'WIN',
  1178.             'western samoa' => 'WES',
  1179.             'windward islands' => 'WWI',
  1180.             'yemen, arab republic of' => 'YMN',
  1181.             'yugoslavia' => 'YUG',
  1182.             'zaire' => 'ZRE',
  1183.             'zambia' => 'ZAM',
  1184.             'zimbabwe' => 'ZIM'
  1185.         ];
  1186.         return (isset($country[strtolower($value)])) ? $country[strtolower($value)] : 'BAN';
  1187.     }
  1188.     /**
  1189.      * @param Ekyc $ekyc
  1190.      * @param string $applicationId
  1191.      */
  1192.     private function prepareRequestXml(Ekyc $ekyc$applicationId)
  1193.     {
  1194.         try {
  1195.             $applicantNames explode(' '$ekyc->getApplicantDetail()->getName());
  1196.             if (count($applicantNames) > 1) {
  1197.                 $lastName $applicantNames[count($applicantNames) - 1];
  1198.                 unset($applicantNames[count($applicantNames) - 1]);
  1199.                 $firstName implode(' '$applicantNames);
  1200.             } else {
  1201.                 $lastName $firstName implode(' '$applicantNames);
  1202.             }
  1203.             $presentDistrictInfo = ($ekyc->getPresentAddress()->getDistrict()) ? $this->getRepository()->find($ekyc->getPresentAddress()->getDistrict()) : null;
  1204.             $permanentDistrictInfo = ($ekyc->getPermanentAddress()->getDistrict()) ? $this->getRepository()->find($ekyc->getPermanentAddress()->getDistrict()) : null;
  1205.             $preAddressL1 preg_replace('/[^A-Za-z0-9\-, ]/'''$ekyc->getPresentAddress()->getAddressLine1());
  1206.             $finalPreAddressL1 = (!empty(trim($preAddressL1))) ? substr($preAddressL1025) : "Pre Address L1";
  1207.             $preAddressL2 preg_replace('/[^A-Za-z0-9\-, ]/'''$ekyc->getPresentAddress()->getAddressLine2());
  1208.             $finalPreAddressL2 = (!empty(trim($preAddressL2))) ? substr($preAddressL2025) : "Pre Address L2";
  1209.             $perAddressL1 preg_replace('/[^A-Za-z0-9\-, ]/'''$ekyc->getPermanentAddress()->getAddressLine1());
  1210.             $finalPerAddressL1 = (!empty(trim($perAddressL1))) ? substr($perAddressL1025) : "Per Address L1";
  1211.             $perAddressL2 preg_replace('/[^A-Za-z0-9\-, ]/'''$ekyc->getPermanentAddress()->getAddressLine2());
  1212.             $finalPerAddressL2 = (!empty(trim($perAddressL2))) ? substr($perAddressL2025) : "Per Address L2";
  1213.             if (!filter_var($ekyc->getApplicantDetail()->getEmail(), FILTER_VALIDATE_EMAIL)) {
  1214.                 $email $applicationId.'@gmail.com';
  1215.             } else {
  1216.                 $email $ekyc->getApplicantDetail()->getEmail();
  1217.             }
  1218.             $spouseText preg_replace('/[^A-Za-z0-9\-. ]/'''$ekyc->getApplicantDetail()->getSpouseName());
  1219.             if (!empty(trim($spouseText))) {
  1220.                 $spouseName $spouseText;
  1221.             } else {
  1222.                 $spouseName 'Unmarried';
  1223.             }
  1224.             $xml '<?xml version="1.0" encoding="UTF-8"?>
  1225.         <NEWACCREQUEST>
  1226.            <APPLICATIONID>' $applicationId '</APPLICATIONID>
  1227.            <CUSTOMERINFOS>
  1228.               <CUSTOMERINFO>
  1229.                  <NEW_CUSTOMER>YES</NEW_CUSTOMER>
  1230.                  <CUST_CODE />
  1231.                  <CUST_TYPE>N</CUST_TYPE>
  1232.                  <IS_FIRST_APPLICANT>Y</IS_FIRST_APPLICANT>
  1233.                  <OWNER_DIRECTOR>O</OWNER_DIRECTOR>
  1234.                  <DIRECTORY_TYPE>OWN</DIRECTORY_TYPE>
  1235.                  <FIRST_NAME>' .  preg_replace('/[^A-Za-z0-9\-. ]/'''$firstName) . '</FIRST_NAME>
  1236.                  <LAST_NAME>' .  preg_replace('/[^A-Za-z0-9\- ]/'''$lastName) . '</LAST_NAME>
  1237.                  <FATHER_NAME>' $ekyc->getApplicantDetail()->getFatherName() . '</FATHER_NAME>
  1238.                  <MOTHER_NAME>' $ekyc->getApplicantDetail()->getMotherName() . '</MOTHER_NAME>
  1239.                  <DATE_OF_BIRTH>' date('d/m/Y'strtotime($ekyc->getApplicantDetail()->getDob())) . '</DATE_OF_BIRTH>
  1240.                  <NATIONALITY>' $this->mapNationality($ekyc->getApplicantDetail()->getNationality()) . '</NATIONALITY>
  1241.                  <GENDER>' $this->mapGender($ekyc->getApplicantDetail()->getGender()) . '</GENDER>
  1242.                  <NATIONALID>' preg_replace('/\D/'''$ekyc->getApplicantDetail()->getNidNumber()) . '</NATIONALID>
  1243.                  <PLACE_OF_BIRTH>Dhaka</PLACE_OF_BIRTH>
  1244.                  <COUNTRY_OF_BIRTH>' $this->mapCountry('') . '</COUNTRY_OF_BIRTH>
  1245.                  <MOBILENO>' $ekyc->getApplicantDetail()->getPhone() . '</MOBILENO>
  1246.                  <MAILID>' $email '</MAILID>
  1247.                  <COMPANY_TITLE />
  1248.                  <COMPANY_TYPE />
  1249.                  <RELIGIOUS_CODE>' $this->mapReligious('') . '</RELIGIOUS_CODE>
  1250.                  <OCCUPATION_CODE>' $this->mapOccupation(strtoupper($ekyc->getApplicantDetail()->getOccupation())) . '</OCCUPATION_CODE>
  1251.                  <OTH_OCCUPATION_DETAIL />
  1252.                  <MONTHLY_INCOME>' intval($ekyc->getApplicantDetail()->getMonthlyIncome()) . '</MONTHLY_INCOME>
  1253.                  <MARITUAL_STATUS>' $this->mapMaritalStatus($ekyc->getApplicantDetail()->getMaritalStatus()) . '</MARITUAL_STATUS>
  1254.                  <SPOUSE_NAME>' $spouseName '</SPOUSE_NAME>
  1255.                  <SIGNATURE>Y</SIGNATURE>
  1256.                  <CUSADDRESS>
  1257.                     <ADDRESS>
  1258.                        <ADRTYP>PRE</ADRTYP>
  1259.                        <ADD_LINE1>' $finalPreAddressL1 '</ADD_LINE1>
  1260.                        <ADD_LINE2>' $finalPreAddressL2 '</ADD_LINE2>
  1261.                        <CITYCODE>BAN</CITYCODE>
  1262.                        <ZIPCOD>' . (intval($ekyc->getPresentAddress()->getPostcode()) > 0) ? intval($ekyc->getPresentAddress()->getPostcode()) : 1230 '</ZIPCOD>
  1263.                        <UNION_CODE />
  1264.                        <UPAZILA_CODE />
  1265.                        <DISTRICT_CODE>'. (($presentDistrictInfo) ? $presentDistrictInfo->getCode() : 26) .'</DISTRICT_CODE>
  1266.                        <DIVISION_CODE>'. (($presentDistrictInfo) ? $presentDistrictInfo->getDivisionCode() : 30) .'</DIVISION_CODE>
  1267.                     </ADDRESS>
  1268.                     <ADDRESS>
  1269.                        <ADRTYP>EMR</ADRTYP>
  1270.                        <ADD_LINE1>Dhaka</ADD_LINE1>
  1271.                        <ADD_LINE2>Dhaka</ADD_LINE2>
  1272.                        <CITYCODE>BAN</CITYCODE>
  1273.                        <ZIPCOD>1360</ZIPCOD>
  1274.                        <UNION_CODE />
  1275.                        <UPAZILA_CODE>12</UPAZILA_CODE>
  1276.                        <DISTRICT_CODE>26</DISTRICT_CODE>
  1277.                        <DIVISION_CODE>30</DIVISION_CODE>
  1278.                     </ADDRESS>
  1279.                     <ADDRESS>
  1280.                        <ADRTYP>PER</ADRTYP>
  1281.                        <ADD_LINE1>' $finalPerAddressL1 '</ADD_LINE1>
  1282.                        <ADD_LINE2>' $finalPerAddressL2 '</ADD_LINE2>
  1283.                        <CITYCODE>BAN</CITYCODE>
  1284.                        <ZIPCOD>' . (intval($ekyc->getPermanentAddress()->getPostcode()) > 0) ? intval($ekyc->getPermanentAddress()->getPostcode()) : 1230 '</ZIPCOD>
  1285.                        <UNION_CODE />
  1286.                        <UPAZILA_CODE />
  1287.                        <DISTRICT_CODE>'. (($permanentDistrictInfo) ? $permanentDistrictInfo->getCode() : 26) .'</DISTRICT_CODE>
  1288.                        <DIVISION_CODE>'. (($permanentDistrictInfo) ? $permanentDistrictInfo->getDivisionCode() : 30) .'</DIVISION_CODE>
  1289.                     </ADDRESS>
  1290.                  </CUSADDRESS>
  1291.                  <CUSDOCUMENT>
  1292.                     <DOCUMENT>
  1293.                        <DOCUMENT_CODE>NAI</DOCUMENT_CODE>
  1294.                        <DOCUMENT_NO>' preg_replace('/\D/'''$ekyc->getApplicantDetail()->getNidNumber()) . '</DOCUMENT_NO>
  1295.                        <ISSUE_PLACE>Dhaka</ISSUE_PLACE>
  1296.                        <COUNTRY_OF_ISSUE>BAN</COUNTRY_OF_ISSUE>
  1297.                        <ISSUE_DATE>27/03/2019</ISSUE_DATE>
  1298.                        <EXPIRE_DATE>27/03/2019</EXPIRE_DATE>
  1299.                     </DOCUMENT>
  1300.                  </CUSDOCUMENT>
  1301.               </CUSTOMERINFO>
  1302.            </CUSTOMERINFOS>
  1303.            <NOMINEES>
  1304.               <NOMINEE>
  1305.                  <IS_NEW_NOMINEE />
  1306.                  <BRANCD />
  1307.                  <ACTYPE />
  1308.                  <ACTNUM />
  1309.                  <SERNUM />
  1310.                  <NOMINEE_TYPCDE />
  1311.                  <NOMINEE_CODE />
  1312.                  <NOMINEE_NAME />
  1313.                  <NOMINEE_GEN />
  1314.                  <NOMINEE_DOB />
  1315.                  <NATIOANALITY />
  1316.                  <MOBILENO />
  1317.                  <NATIONAL_ID />
  1318.                  <FATHER_NAME />
  1319.                  <MOTHER_NAME />
  1320.                  <SPOUSE_NAME />
  1321.                  <NOMINEE_PERCENT />
  1322.                  <RELIGIOUS_CODE />
  1323.                  <RELATION_CODE />
  1324.                  <RELATION_DESC />
  1325.                  <OCCUPATION_CODE />
  1326.                  <NOMINEE_ADRESS>
  1327.                     <ADDRESS>
  1328.                        <ADRTYP />
  1329.                        <ADD_LINE1 />
  1330.                        <ADD_LINE2 />
  1331.                        <CITYCODE />
  1332.                        <ZIPCOD />
  1333.                        <UNION_CODE />
  1334.                        <UPAZILA_CODE />
  1335.                        <DISTRICT_CODE />
  1336.                        <DIVISION_CODE />
  1337.                        <COUNTRY_CODE />
  1338.                     </ADDRESS>
  1339.                     <ADDRESS>
  1340.                        <ADRTYP />
  1341.                        <ADD_LINE1 />
  1342.                        <ADD_LINE2 />
  1343.                        <CITYCODE />
  1344.                        <ZIPCOD />
  1345.                        <UNION_CODE />
  1346.                        <UPAZILA_CODE />
  1347.                        <DISTRICT_CODE />
  1348.                        <DIVISION_CODE />
  1349.                        <COUNTRY_CODE />
  1350.                     </ADDRESS>
  1351.                  </NOMINEE_ADRESS>
  1352.                  <NOMDOCUMENT>
  1353.                     <DOCUMENT>
  1354.                        <DOCUMENT_CODE />
  1355.                        <DOCUMENT_NO />
  1356.                        <ISSUE_PLACE />
  1357.                        <COUNTRY_OF_ISSUE />
  1358.                        <ISSUE_DATE />
  1359.                        <EXPIRE_DATE />
  1360.                     </DOCUMENT>
  1361.                  </NOMDOCUMENT>
  1362.               </NOMINEE>
  1363.            </NOMINEES>
  1364.            <TRANSPROFILES>
  1365.               <TRANSPROFILE>
  1366.                  <OPERATION_CODE />
  1367.                  <TRANS_PER_DAY />
  1368.                  <TRANS_PER_MONTH />
  1369.                  <TOT_AMNT_PERDAY />
  1370.                  <TOT_AMNT_PERMONTH />
  1371.                  <MAX_AMNT_PERTRAN />
  1372.                  <ISRESTRICTED />
  1373.               </TRANSPROFILE>
  1374.            </TRANSPROFILES>
  1375.            <AC_OPNG_CHCKLST>
  1376.               <CHECKLIST>
  1377.                  <BRANCD />
  1378.                  <ACTYPE />
  1379.                  <ACTNUM />
  1380.                  <AC_OPNG_DOC_ID />
  1381.                  <DOC_RECEIVED_STAT />
  1382.                  <CHECKER />
  1383.               </CHECKLIST>
  1384.            </AC_OPNG_CHCKLST>
  1385.            <CUSTOMER_AC_INFO>
  1386.               <BRANCD>'$ekyc->getBranch()->getCode() .'</BRANCD>
  1387.               <ACTYPE>' . (($ekyc->getAccountType()) ? $ekyc->getAccountType()->getCode() : 'S02') . '</ACTYPE>
  1388.               <ACTNUM />
  1389.               <ACTTIT>' $ekyc->getAccountDetail()->getAccountName() . '</ACTTIT>
  1390.               <COMPANY_OR_INDIVIDUAL>' $this->mapManageType($ekyc->getAccountDetail()->getManageType()) . '</COMPANY_OR_INDIVIDUAL>
  1391.               <OPERATING_INST>' $this->mapOperationType($ekyc->getAccountDetail()->getManageType()) . '</OPERATING_INST>
  1392.               <INTRODUCER_ACCNO>04934001922</INTRODUCER_ACCNO>
  1393.               <STATEMENT_FREQ>4</STATEMENT_FREQ>
  1394.               <MINOR />
  1395.               <MIN_DOB />
  1396.               <NOMINEE_ID />
  1397.               <CHEQUE_BOOK>Y</CHEQUE_BOOK>
  1398.               <SECTOR_CODE>' $this->mapSectorCode('') . '</SECTOR_CODE>
  1399.               <ECONOMY_CODE>133</ECONOMY_CODE>
  1400.               <SECURITY_CODE />
  1401.               <ARO_OR_EXECUTVE_ID>SO000002</ARO_OR_EXECUTVE_ID>
  1402.               <RELATIONSHIP_MGR_ID>MA000001</RELATIONSHIP_MGR_ID>
  1403.               <IS_CHECKLIST_EXIST>N</IS_CHECKLIST_EXIST>
  1404.               <IS_TRNPROF_EXIST>N</IS_TRNPROF_EXIST>
  1405.            </CUSTOMER_AC_INFO>
  1406.            <FATCA_INFO>
  1407.               <CUSTOMER_CODE />
  1408.               <COUNTRY_OF_RESIDENCE />
  1409.               <IS_USCITIZEN />
  1410.               <COUNTRY_OF_BIRTH />
  1411.               <IS_USRESIDENCE />
  1412.               <PR_OR_GREENCARD_HOLDER />
  1413.               <IS_SISCONOF_PARNT_COMP />
  1414.               <IS_PARNTCOMP_US_REGSTRD />
  1415.               <IS_PARNTCOMP_US_REGSTRD />
  1416.               <IS_SISCOMP_US_REGSTRD />
  1417.               <ANY_USCITIZEN_DIRECTOR />
  1418.            </FATCA_INFO>
  1419.         </NEWACCREQUEST>';
  1420.             $xml str_replace("\n"" "$xml);
  1421.             //return array('data' => $xml);
  1422.             return array('error' => 0'data' => $xml);
  1423.         } catch (\Exception $e) {
  1424.             return array('error' => 1'msg' => $e->getMessage());
  1425.         }
  1426.     }
  1427. }