def __init__(self, api_client): self.annual_overview = AnnualOverview(api_client) self.attachment_public = AttachmentPublic(api_client) self.attachment_tab = AttachmentTab(api_client) self.avatar = Avatar(api_client) self.card = Card(api_client) self.cash_register = CashRegister(api_client) self.cash_register_tab = CashRegisterTab(api_client) self.certificate_pinned = CertificatePinned(api_client) self.chat_conversation = ChatConversation(api_client) self.credential_password_ip = CredentialPasswordIp(api_client) self.customer_statement = CustomerStatement(api_client) self.device = Device(api_client) self.device_server = DeviceServer(api_client) self.draft_payment = DraftPayment(api_client) self.draft_invite = DraftShareInviteBank(api_client) self.installation = Installation(api_client) self.invoice = Invoice(api_client) self.master_card_action = MasterCardAction(api_client) self.monetary_account = MonetaryAccount(api_client) self.payment = Payment(api_client) self.permitted_ip = PermittedIp(api_client) self.request_inquiry = RequestInquiry(api_client) self.schedule = Schedule(api_client) self.scheduled_payment = ScheduledPayment(api_client) self.server_public_key = ServerPublicKey(api_client) self.session_server = SessionServer(api_client) self.session = Session(api_client) self.share_inquiry = ShareInviteBankInquiry(api_client) self.share_response = ShareInviteBankResponse(api_client) self.tab_attachment = TabAttachment(api_client) self.tab_usage = TabUsage(api_client) self.user = User(api_client)
def _get_base_endpoint(cls, user_id, credential_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_credential_password_ip if credential_id is not None: endpoint += "/%d" % credential_id return endpoint
def _get_base_endpoint(cls, user_id, account_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_monetary_account if account_id is not None: endpoint += "/%d" % account_id return endpoint
def _get_base_endpoint(cls, user_id, card_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_card if card_id is not None: endpoint += "/%d" % card_id return endpoint
def _get_base_endpoint(cls, user_id, certificate_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_user_pinned_certificates if certificate_id is not None: endpoint += "/%d" % certificate_id return endpoint
def _get_base_endpoint(cls, user_id, draft_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_share_draft if draft_id is not None: endpoint += "/%d" % draft_id return endpoint
def _get_base_endpoint(cls, user_id, overview_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_annual_overview if overview_id is not None: endpoint += "/%d" % overview_id return endpoint
def get_all_invoices_for_user(self, user_id): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % self.__endpoint_invoice return self._make_get_request(endpoint)
def _get_base_endpoint(cls, user_id, chat_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_chat_conversation if chat_id is not None: endpoint += "/%d" % chat_id return endpoint
def _get_base_endpoint(cls, user_id, response_id=None): endpoint = User._get_base_endpoint(user_id) endpoint += "/%s" % cls.__endpoint_share_response if response_id is not None: endpoint += "/%d" % response_id return endpoint