Last active
August 29, 2015 14:10
-
-
Save bekatom/6e8123327d10621bfb53 to your computer and use it in GitHub Desktop.
RS.ge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| __author__ = 'Beka Tomashvili' | |
| from suds.client import Client | |
| import json | |
| rs_url = "https://services.rs.ge/WayBillService/WayBillService.asmx?WSDL" | |
| user = 'vobi:12345678910' | |
| password = 'vobi1234' | |
| def get_company_name(identification): | |
| client = Client(rs_url) | |
| return client.service.get_name_from_tin(user, password, identification) | |
| def get_company_is_payer(identification): | |
| client = Client(rs_url) | |
| return client.service.is_vat_payer_tin(user, password, identification) | |
| def get_company_rs_info(identification): | |
| return { | |
| "name": get_company_name(identification), | |
| "is_payer": get_company_is_payer(identification) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment