Esempio n. 1
0
 def validate_records(self, data):
     URL = urljoin(BASE_URL(self.url),
                   "/nibss/BVNPlaceHolder/ValidateRecords")
     headers = self.headers
     body = data["body"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)
Esempio n. 2
0
 def bvn_watchlisted(self, data):
     URL = urljoin(BASE_URL(self.url), "/nibss/bvnr/IsBVNWatchlisted")
     headers = self.headers
     body = data["body"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)
Esempio n. 3
0
 def verify_single(self, data):
     URL = urljoin(BASE_URL(self.url), "/nibss/bvnr/VerifySingleBVN")
     headers = self.headers
     body = data["body"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)
Esempio n. 4
0
 def get_multiple(self, data):
     URL = urljoin(BASE_URL(self.url), "/nibss/bvnr/GetMultipleBVN")
     headers = self.headers
     body = data["bvns"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)