Skip to content

Need to send additional arguments in retrieve method of AccountService class. #73

@prantoamt

Description

@prantoamt

Users perhaps needs to submit the financialyear value while retrieving an account.
An example of such account retrieving end-point is provided: https://api.fortnox.se/3/accounts/1010?financialyear=4

However, the retrieve() method of AccountService does not accept additional arguments like list() methods. It only accepts id.

def retrieve(self, id):
        """
        Retrieve a single Accounts

        Returns a single Account according to the unique Account ID provided
        If the specified Account does not exist, this query returns an error

        :calls: ``get /accounts/{id}``
        :param int id: Unique identifier of a Account.
        :return: Dictionary that support attriubte-style access and represent Accounts resource.
        :rtype: dict
        """
        _, _, account = self.http_client.get("/accounts/{id}".format(id=id))
        return account

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions