Ejemplo 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)
Ejemplo n.º 2
0
 def DeletePremiumSubscription(self, data):
     url = urljoin(BASE_URL(self.url), DELETE_PREMIUM_SUBSCRIPTION)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 3
0
 def Account(self, body, params):
     url = urljoin(BASE_URL(self.url), ACCOUNT_ENQUIRY)
     headers = self.headers
     res = requestWithParams(url, body, params, headers)
     return (res)
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
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)
Ejemplo n.º 7
0
 def MediaUpload(self, data):
     url = urljoin(BASE_URL(self.url), MEDIA_UPLOAD)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 8
0
 def SendMessage(self, data):
     url = urljoin(BASE_URL(self.url), SEND_MESSAGE)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 9
0
 def SendAirtime(self, data):
     url = urljoin(BASE_URL(self.url), SEND_AIRTIME)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 10
0
 def AccessTokenGenerator(self, data):
     url = urljoin(BASE_URL(self.url), ACCESS_TOKEN_GENERATOR)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 11
0
 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
Ejemplo n.º 12
0
 def bvn_placeholder_reset(self):
     headers = self.header
     URL = urljoin(BASE_URL(self.url), "/nibss/BVNPlaceHolder/Reset")
     return request(headers, URL)
Ejemplo n.º 13
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)
Ejemplo n.º 14
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)
Ejemplo n.º 15
0
 def FetchPremiumSubscription(self, data):
     url = urljoin(BASE_URL(self.url), FETCH_PREMIUM_SUBSCRIPTION)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 16
0
 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)
Ejemplo n.º 17
0
 def FetchMessage(self, data):
     url = urljoin(BASE_URL(self.url), FETCH_MESSAGE)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 18
0
 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)
Ejemplo n.º 19
0
 def QueueStatus(self, data):
     url = urljoin(BASE_URL(self.url), QUEUE_STATUS)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 20
0
 def reset(self):
     headers = self.header
     URL = urljoin(BASE_URL(self.url), "/nibss/fp/Reset")
     return request(headers, URL)
Ejemplo n.º 21
0
 def VoiceCall(self, data):
     url = urljoin(BASE_URL(self.url), VOICE_CALL)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
Ejemplo n.º 22
0
 def CreateCheckoutToken(self, data):
     url = urljoin(BASE_URL(self.url), CREATE_CHECKOUT_TOKEN)
     headers = self.headers
     res = request(url, data, headers)
     return (res)