Class Subscription
These methods are related to the recurring billing module. They can all be accessed using an access token with 'Subscription' permission.
Inheritance
System.Object
Subscription
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SKM.V3.Methods
Assembly: Cryptolens.Licensing.dll
Syntax
public class Subscription
Methods
RecordUsage(String, RecordUsageModel)
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'. https://app.cryptolens.io/docs/api/v3/RecordUsage
Declaration
public static BasicResult RecordUsage(string token, RecordUsageModel parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
RecordUsageModel | parameters | The parameters that the method needs. |
Returns
Type | Description |
---|---|
BasicResult | A BasicResult or null. |