Class Subscription
java.lang.Object
io.cryptolens.methods.Subscription
These methods are related to the recurring billing module.
 They can all be accessed using an access token with 'Subscription' permission.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic BasicResultRecordUsage(String token, RecordUsageModel model) This method records uses Stripe's metered billing to record usage for a certain subscription. 
- 
Constructor Details
- 
Subscription
public Subscription() 
 - 
 - 
Method Details
- 
RecordUsage
This method records uses Stripe's metered billing to record usage for a certain subscription. In order to use this mehtod, you need to have set up recurring billing. A record will be created using Stripe's API with action set to 'increment'. More info: https://app.cryptolens.io/docs/api/v3/RecordUsage- Parameters:
 token- An access token with "GetProducts" permission.- Returns:
 - BasicResult object. Null can be returned if an error occurs.
 
 
 -