SubscriptionHandler class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(String customerId, String subId)
→ Future<MollieSubscriptionResponse>
-
A subscription can be canceled any time by calling DELETE on the resource endpoint.
-
create(MollieSubscriptionRequest sub, String customerId)
→ Future<MollieSubscriptionResponse>
-
With subscriptions, you can schedule recurring payments to take place at regular intervals.
For example, by simply specifying an amount and an interval, you can create an endless subscription to charge a monthly fee, until you cancel the subscription.
Or, you could use the times parameter to only charge a limited number of times, for example to split a big transaction in multiple parts.
-
get(String customerId, String subId)
→ Future<MollieSubscriptionResponse>
-
Retrieve a subscription by its ID and its customer’s ID.
-
listSubscriptions(String customerId)
→ Future<List<MollieSubscriptionResponse>>
-
Retrieve all subscriptions of a customer.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(MollieSubscriptionRequest sub, String subId, String customerId)
→ Future<MollieSubscriptionResponse>
-
Some fields of a subscription can be updated by calling PATCH on the resource endpoint. Each field is optional.
You cannot update a canceled subscription.