Subscription class

Inheritance

Constructors

Subscription(IuguClient client)

Properties

apiResource APIResource
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate(String id) Future<SubscriptionModel>
addCreditsAsync(String id, int quantity) Future<SubscriptionModel>
changePlan(String id, String planIdentifier) Future<SubscriptionModel>
create({required SubscriptionRequestMessage request, String customApiToken = ''}) Future<SubscriptionModel>
Cria uma assinatura para um cliente cadastrado
delete({required String id, String customApiToken = ''}) Future<SubscriptionModel>
dispose() → void
Disposes controllers, streams, etc.
override
get({String id = '', String partOfUrl = '', String apiUserToken = ''}) Future<PaggedResponseMessage<SubscriptionModel>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put({required String id, required SubscriptionModel model}) Future<SubscriptionModel>
suspend(String id) Future<SubscriptionModel>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited