Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missed filters to supported endpoints #508

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions linode_api4/groups/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def settings(self):
s = AccountSettings(self.client, result["managed"], result)
return s

def invoices(self):
def invoices(self, *filters):
"""
Returns Invoices issued to this account.

Expand All @@ -112,9 +112,9 @@ def invoices(self):
:returns: Invoices issued to this account.
:rtype: PaginatedList of Invoice
"""
return self.client._get_and_filter(Invoice)
return self.client._get_and_filter(Invoice, *filters)

def payments(self):
def payments(self, *filters):
"""
Returns a list of Payments made on this account.

Expand All @@ -123,7 +123,7 @@ def payments(self):
:returns: A list of payments made on this account.
:rtype: PaginatedList of Payment
"""
return self.client._get_and_filter(Payment)
return self.client._get_and_filter(Payment, *filters)

def oauth_clients(self, *filters):
"""
Expand Down Expand Up @@ -337,7 +337,7 @@ def add_promo_code(self, promo_code):
json=resp,
)

def service_transfers(self):
def service_transfers(self, *filters):
"""
Returns a collection of all created and accepted Service Transfers for this account, regardless of the user that created or accepted the transfer.

Expand All @@ -347,7 +347,7 @@ def service_transfers(self):
:rtype: PaginatedList of ServiceTransfer
"""

return self.client._get_and_filter(ServiceTransfer)
return self.client._get_and_filter(ServiceTransfer, *filters)

def service_transfer_create(self, entities):
"""
Expand Down