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 DeletePremiumSubscription(self, data): url = urljoin(BASE_URL(self.url), DELETE_PREMIUM_SUBSCRIPTION) headers = self.headers res = request(url, data, headers) return (res)
def Account(self, body, params): url = urljoin(BASE_URL(self.url), ACCOUNT_ENQUIRY) headers = self.headers res = requestWithParams(url, body, params, headers) return (res)
def CustomerAndAccount(self, body, params): url = urljoin(BASE_URL(self.url), CUSTOMER_AND_ACCOUNT_ENQUIRY) headers = self.headers res = requestWithParams(url, body, params, headers) return (res)
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_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 MediaUpload(self, data): url = urljoin(BASE_URL(self.url), MEDIA_UPLOAD) headers = self.headers res = request(url, data, headers) return (res)
def SendMessage(self, data): url = urljoin(BASE_URL(self.url), SEND_MESSAGE) headers = self.headers res = request(url, data, headers) return (res)
def SendAirtime(self, data): url = urljoin(BASE_URL(self.url), SEND_AIRTIME) headers = self.headers res = request(url, data, headers) return (res)
def AccessTokenGenerator(self, data): url = urljoin(BASE_URL(self.url), ACCESS_TOKEN_GENERATOR) headers = self.headers res = request(url, data, headers) return (res)
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
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 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)
def FetchPremiumSubscription(self, data): url = urljoin(BASE_URL(self.url), FETCH_PREMIUM_SUBSCRIPTION) headers = self.headers res = request(url, data, headers) return (res)
def ChangeUsersCredentials(self, body, params): url = urljoin(BASE_URL(self.url), CHANGE_USERS_CREDENTIALS) headers = self.headers res = requestWithParams(url, body, params, headers) return (res)
def FetchMessage(self, data): url = urljoin(BASE_URL(self.url), FETCH_MESSAGE) headers = self.headers res = request(url, data, headers) return (res)
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 QueueStatus(self, data): url = urljoin(BASE_URL(self.url), QUEUE_STATUS) headers = self.headers res = request(url, data, headers) return (res)
def reset(self): headers = self.header URL = urljoin(BASE_URL(self.url), "/nibss/fp/Reset") return request(headers, URL)
def VoiceCall(self, data): url = urljoin(BASE_URL(self.url), VOICE_CALL) headers = self.headers res = request(url, data, headers) return (res)
def CreateCheckoutToken(self, data): url = urljoin(BASE_URL(self.url), CREATE_CHECKOUT_TOKEN) headers = self.headers res = request(url, data, headers) return (res)