def validate_accounts():
from zeep import Client
import pandas as pd
import numpy as np
zig_accounts = np.array(pd.read_csv("./task.csv"))
accounts = []
client =
Client(wsdl="http://10.132.188.27:8136/EQValidationService/ValidationService?wsdl")
count = 1
total = len(zig_accounts)
for row in zig_accounts:
print(row)
current = list(row)[:4]
response = client.service.validateAccount(str(current[0]))
current.append(response['status'])
logging.info(f"Validating : {row[0]} = {current}")
print(count,"/", total, " Validating : ", row[0] , " = ", current)
accounts.append(current)
count += 1
df = pd.DataFrame(accounts, columns=["Account", "Currency", "Amount", "Suffix",
"Validation"])
df.to_csv("Validated ZiG Schedule.csv")
from zeep import Client
import pandas as pd
import numpy as np
import requests
import json
zig_accounts = np.array(pd.read_csv("September ZiG Maintenance-Copy.csv"))
accounts = []
client =
Client(wsdl="http://10.132.180.18:8136/EQValidationService/ValidationService?wsdl")
count = 1
total = len(zig_accounts)
for row in zig_accounts:
print(row)
current = list(row)
response = client.service.validateAccount(str(current[0]))
print(response)
current.append(response['status'])
#logging.info(f"Validating : {row[0]} = {current}")
print(count,"/", total, " Validating : ", row[0] , " = ", current)
accounts.append(current)
count += 1
df = pd.DataFrame(accounts, columns=["Account", "Currency", "Validation"])
df.to_csv("Validated Zig Schedule.csv")
\COPY (SELECT *FROM Transaction WHERE destination_bank='NETONE' ORDER BY date) to
'/home/csv_dumps/Airtime Transactions Netone.csv' CSV HEADER;
SELECT id, date, narration, trans FROM Transaction WHERE destination_bank='ECONET'
AND status=False AND date between '2024-08-01' and '2024-08-20 12:00'
Simb@MZB!!2024
0200 BETX EQUATION
TAGGED FE3C BOT.RESP.QUEUE
H56H1R H18ARROAI ZIMOWNER BETX A4131BOT.RESP.QUEUE
T411260735709491968100010001YN BETX
:C5:49670:C4:4131:C5:BOT11:P05: :C4: :C20: :C4:4112:C6:
607357:C3:200:S07: 1240826.:C16:200T60735749670 :P15:-
000000000000200.:C2: :C3:W01:C3:ZWG:C2: :C3: :C3: :C35:ENQUIRY|CHARGE
:C35:4112607357200|
4131847336924 :C35:263774361445 :C35:
:C1: :C1: :C20: :C4:4131:C6:847336:C3:924:S07:
1240826.:C16:200T60735749670 :P15: 00000000
BOT.RESP.QUEUE EQUATION BETX
MERIDIAN AAH56HSR H18ARRITA ZIMOWNER ZZ02
AT456770428416420793300010001RKSM5666 Transaction applied successfully to EQUATION
database
00000 42 4F 54 2E 52 45 53 50--2E 51 55 45 55 45 20 20 |BOT.RESP.QUEUE |
00010 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00020 45 51 55 41 54 49 4F 4E--20 20 20 20 20 20 20 20 |EQUATION |
00030 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00040 20 20 20 20 20 20 20 20--42 45 54 58 20 20 20 20 | BETX |
00050 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00060 20 20 20 20 4D 45 52 49--44 49 41 4E 20 20 20 20 | MERIDIAN |
00070 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00080 20 20 20 20 20 20 20 20--41 41 48 35 36 48 53 52 | AAH56HSR|
00090 20 20 20 20 48 31 38 41--52 52 49 54 41 20 5A 49 | H18ARRITA ZI|
000A0 4D 4F 57 4E 45 52 20 20--5A 5A 30 32 20 20 20 20 |MOWNER ZZ02 |
000B0 20 20 41 54 34 35 33 32--37 35 34 34 34 33 31 36 | AT453275444316|
000C0 34 32 31 36 30 32 31 30--30 30 31 30 30 30 31 52 |421602100010001R|
000D0 4B 53 4D 35 36 36 36 20--20 54 72 61 6E 73 61 63 |KSM5666 Transac|
000E0 74 69 6F 6E 20 61 70 70--6C 69 65 64 20 73 75 63 |tion applied suc|
000F0 63 65 73 73 66 75 6C 6C--79 20 74 6F 20 45 51 55 |cessfully to EQU|
00100 41 54 49 4F 4E 20 64 61--74 61 62 61 73 65 20 20 |ATION database |
00110 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00120 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00130 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00140 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00150 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00160 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00170 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00180 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00190 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
001A0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
001B0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
001C0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
001D0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
001E0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
001F0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00200 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00210 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00220 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00230 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00240 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00250 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00260 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00270 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00280 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00290 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
002A0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
002B0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
002C0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
002D0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
002E0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
002F0 20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
00300 20 20 20 20 20 20 20 20--20 20 20 20 | |
BOT.RESP.QUEUE EQUATION BETX
MERIDIAN AAH56HSR H18ARRITA ZIMOWNER ZZ02
AT453275444316421602100010001RKSM5666 Transaction applied successfully to EQUATION
database