#!/usr/bin/env python

from . import ZenObject, timestamp


class User(ZenObject):
    '''
    Zenmoney User, see
    https://github.com/zenmoney/ZenPlugins/wiki/ZenMoney-API#user
    '''
    def __init__(self,
                 *,
                 id:        int,
                 changed:   int = timestamp(),
                 login:     str = None,  # could be empty
                 currency:  int,  # Instrument.id
                 parent:    int = None,  # User.id, could be empty
                 **kwargs,
                 ):
        self.id = id
        self.changed = changed
        self.login = login
        self.currency = currency
        self.parent = parent
        for k, v in kwargs.items():
            setattr(self, k, v)

    def __str__(self):
        return self.login

f15d652539df34480b58e976bfb88db3bffe3542
<mask token>


class User(ZenObject):
    <mask token>

    def __init__(self, *, id: int, changed: int=timestamp(), login: str=
        None, currency: int, parent: int=None, **kwargs):
        self.id = id
        self.changed = changed
        self.login = login
        self.currency = currency
        self.parent = parent
        for k, v in kwargs.items():
            setattr(self, k, v)
    <mask token>

<mask token>


class User(ZenObject):
    <mask token>

    def __init__(self, *, id: int, changed: int=timestamp(), login: str=
        None, currency: int, parent: int=None, **kwargs):
        self.id = id
        self.changed = changed
        self.login = login
        self.currency = currency
        self.parent = parent
        for k, v in kwargs.items():
            setattr(self, k, v)

    def __str__(self):
        return self.login

<mask token>


class User(ZenObject):
    """
    Zenmoney User, see
    https://github.com/zenmoney/ZenPlugins/wiki/ZenMoney-API#user
    """

    def __init__(self, *, id: int, changed: int=timestamp(), login: str=
        None, currency: int, parent: int=None, **kwargs):
        self.id = id
        self.changed = changed
        self.login = login
        self.currency = currency
        self.parent = parent
        for k, v in kwargs.items():
            setattr(self, k, v)

    def __str__(self):
        return self.login

from . import ZenObject, timestamp


class User(ZenObject):
    """
    Zenmoney User, see
    https://github.com/zenmoney/ZenPlugins/wiki/ZenMoney-API#user
    """

    def __init__(self, *, id: int, changed: int=timestamp(), login: str=
        None, currency: int, parent: int=None, **kwargs):
        self.id = id
        self.changed = changed
        self.login = login
        self.currency = currency
        self.parent = parent
        for k, v in kwargs.items():
            setattr(self, k, v)

    def __str__(self):
        return self.login

#!/usr/bin/env python

from . import ZenObject, timestamp


class User(ZenObject):
    '''
    Zenmoney User, see
    https://github.com/zenmoney/ZenPlugins/wiki/ZenMoney-API#user
    '''
    def __init__(self,
                 *,
                 id:        int,
                 changed:   int = timestamp(),
                 login:     str = None,  # could be empty
                 currency:  int,  # Instrument.id
                 parent:    int = None,  # User.id, could be empty
                 **kwargs,
                 ):
        self.id = id
        self.changed = changed
        self.login = login
        self.currency = currency
        self.parent = parent
        for k, v in kwargs.items():
            setattr(self, k, v)

    def __str__(self):
        return self.login
