예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #7
0
 def MediaUpload(self, data):
     url = urljoin(BASE_URL(self.url), MEDIA_UPLOAD)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
예제 #8
0
 def SendMessage(self, data):
     url = urljoin(BASE_URL(self.url), SEND_MESSAGE)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
예제 #9
0
 def SendAirtime(self, data):
     url = urljoin(BASE_URL(self.url), SEND_AIRTIME)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
예제 #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)
예제 #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
예제 #12
0
 def bvn_placeholder_reset(self):
     headers = self.header
     URL = urljoin(BASE_URL(self.url), "/nibss/BVNPlaceHolder/Reset")
     return request(headers, URL)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #17
0
 def FetchMessage(self, data):
     url = urljoin(BASE_URL(self.url), FETCH_MESSAGE)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
예제 #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)
예제 #19
0
 def QueueStatus(self, data):
     url = urljoin(BASE_URL(self.url), QUEUE_STATUS)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
예제 #20
0
 def reset(self):
     headers = self.header
     URL = urljoin(BASE_URL(self.url), "/nibss/fp/Reset")
     return request(headers, URL)
예제 #21
0
 def VoiceCall(self, data):
     url = urljoin(BASE_URL(self.url), VOICE_CALL)
     headers = self.headers
     res = request(url, data, headers)
     return (res)
예제 #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)