Skip to content

Commit

Permalink
Fix return value of Subscription.get_resource_class
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Hendrikx committed Sep 11, 2023
1 parent 39b2a2f commit 809f8b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mollie/api/objects/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
class Subscription(ObjectBase):
@classmethod
def get_resource_class(cls, client, **kwargs):
from ..resources import CustomerSubscriptions
from ..resources import Subscriptions

customer = kwargs["customer"]
return CustomerSubscriptions(client, customer)
return Subscriptions(client)

STATUS_ACTIVE = "active"
STATUS_PENDING = "pending" # Waiting for a valid mandate.
Expand Down

0 comments on commit 809f8b4

Please sign in to comment.