Beispiel #1
0
def search_regon(client: Client, regon: str, date: str) -> None:
    """Search subjects with given regon."""
    click.echo(client.search_regon(regon=regon, raw=True, date=date))
Beispiel #2
0
def search_regons(client: Client, regons: Tuple[str], date: str) -> None:
    """Search subjects with given regons."""
    click.echo(client.search_regons(regons=regons, raw=True, date=date))
Beispiel #3
0
def search_nip(client: Client, nip: str, date: str) -> None:
    """Search subjects with given nip."""
    click.echo(client.search_nip(nip=nip, raw=True, date=date))
Beispiel #4
0
def search_nips(client: Client, nips: Tuple[str], date: str) -> None:
    """Search subjects with given nips."""
    click.echo(client.search_nips(nips=nips, raw=True, date=date))
Beispiel #5
0
def search_accounts(client: Client, accounts: Tuple[str], date: str) -> None:
    """Search subjects with given accounts."""
    click.echo(client.search_accounts(accounts, date=date, raw=True))
Beispiel #6
0
def search_account(client: Client, account: str, date: str) -> None:
    """Search subjects with given account."""
    click.echo(client.search_account(account=account, raw=True, date=date))
Beispiel #7
0
def cli(ctx: click.Context, url: str) -> None:
    """Initialize a vater client object."""
    ctx.obj = Client(base_url=url)
Beispiel #8
0
def check_regon(client: Client, regon: str, account: str, date: str) -> None:
    """Check if given regon and account belongs to the same subject."""
    click.echo(
        client.check_regon(regon=regon, account=account, date=date, raw=True))
Beispiel #9
0
def check_nip(client: Client, nip: str, account: str, date: str) -> None:
    """Check if given nip and account belongs to the same subject."""
    click.echo(client.check_nip(nip=nip, account=account, date=date, raw=True))