Skip to content

Instantly share code, notes, and snippets.

@bekatom
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save bekatom/6e8123327d10621bfb53 to your computer and use it in GitHub Desktop.

Select an option

Save bekatom/6e8123327d10621bfb53 to your computer and use it in GitHub Desktop.
RS.ge
# -*- 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