Skip to content

Commit a24d297

Browse files
Add missed filters to supported endpoints (#508)
1 parent 6cf8071 commit a24d297

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

linode_api4/groups/account.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def settings(self):
101101
s = AccountSettings(self.client, result["managed"], result)
102102
return s
103103

104-
def invoices(self):
104+
def invoices(self, *filters):
105105
"""
106106
Returns Invoices issued to this account.
107107
@@ -112,9 +112,9 @@ def invoices(self):
112112
:returns: Invoices issued to this account.
113113
:rtype: PaginatedList of Invoice
114114
"""
115-
return self.client._get_and_filter(Invoice)
115+
return self.client._get_and_filter(Invoice, *filters)
116116

117-
def payments(self):
117+
def payments(self, *filters):
118118
"""
119119
Returns a list of Payments made on this account.
120120
@@ -123,7 +123,7 @@ def payments(self):
123123
:returns: A list of payments made on this account.
124124
:rtype: PaginatedList of Payment
125125
"""
126-
return self.client._get_and_filter(Payment)
126+
return self.client._get_and_filter(Payment, *filters)
127127

128128
def oauth_clients(self, *filters):
129129
"""
@@ -337,7 +337,7 @@ def add_promo_code(self, promo_code):
337337
json=resp,
338338
)
339339

340-
def service_transfers(self):
340+
def service_transfers(self, *filters):
341341
"""
342342
Returns a collection of all created and accepted Service Transfers for this account, regardless of the user that created or accepted the transfer.
343343
@@ -347,7 +347,7 @@ def service_transfers(self):
347347
:rtype: PaginatedList of ServiceTransfer
348348
"""
349349

350-
return self.client._get_and_filter(ServiceTransfer)
350+
return self.client._get_and_filter(ServiceTransfer, *filters)
351351

352352
def service_transfer_create(self, entities):
353353
"""

0 commit comments

Comments
 (0)