From e445601258a3ef15047691e70bab132a96e6279a Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Fri, 7 Feb 2025 04:12:42 -0500 Subject: [PATCH] Add missed filters to supported endpoints --- linode_api4/groups/account.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linode_api4/groups/account.py b/linode_api4/groups/account.py index c2c69c624..564e55eea 100644 --- a/linode_api4/groups/account.py +++ b/linode_api4/groups/account.py @@ -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. @@ -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. @@ -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): """ @@ -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. @@ -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): """