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)
def InterbankTransferReq(self, body): url = urljoin(BASE_URL(self.url), "/sterling/accountapi/api/Spay/InterbankTransferReq") header = self.headers apiResponse = calls("post", url, None, json.dumps(body), header) return (apiResponse)
def verify_fingerprint(self, data): URL = urljoin(BASE_URL(self.url), "/nibss/fp/VerifyFingerPrint") headers = self.headers body = data["body"] return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"], body)
def bvn_placeholder_reset(self): headers = self.header URL = urljoin(BASE_URL(self.url), "/nibss/BVNPlaceHolder/Reset") return request(headers, URL)
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)
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)
def reset(self): headers = self.header URL = urljoin(BASE_URL(self.url), "/nibss/bvnr/Reset") return request(headers, URL)
def InterbankNameEnquiry(self, query): url = urljoin(BASE_URL(self.url), "/sterling/TransferAPIs/api/Spay/InterbankNameEnquiry") header = self.headers apiResponse = calls("get", url, query, "", header) return apiResponse