Interface ISubscriptionPlansClient
Namespace: FastReport.Cloud
Assembly: FastReport.Cloud.SDK.dll
Syntax
public interface ISubscriptionPlansClient
Methods
GetSubscriptionPlan(String)
Returns a subscription plan. Not all subscriptions can be issued for customer.
Declaration
SubscriptionPlanVM GetSubscriptionPlan(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of subsctiption plan |
Returns
Type | Description |
---|---|
SubscriptionPlanVM | Succesfully returned |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetSubscriptionPlanAsync(String, System.Threading.CancellationToken)
Returns a subscription plan. Not all subscriptions can be issued for customer.
Declaration
System.Threading.Tasks.Task<SubscriptionPlanVM> GetSubscriptionPlanAsync(string id, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of subsctiption plan |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SubscriptionPlanVM> | Succesfully returned |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetSubscriptionPlans(Nullable<Int32>, Nullable<Int32>)
Returns a list of active subscription plans that can be issued to the user.
Declaration
SubscriptionPlansVM GetSubscriptionPlans(int? skip = null, int? take = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | skip | Variable for pagination, defautl value is 0 |
System.Nullable<System.Int32> | take | Variable for pagination, default value is 10 |
Returns
Type | Description |
---|---|
SubscriptionPlansVM | Succesfully returned |
Remarks
If no active subscription plans, then the endpoint will return empty list
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetSubscriptionPlansAsync(Nullable<Int32>, Nullable<Int32>, System.Threading.CancellationToken)
Returns a list of active subscription plans that can be issued to the user.
Declaration
System.Threading.Tasks.Task<SubscriptionPlansVM> GetSubscriptionPlansAsync(int? skip = null, int? take = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | skip | Variable for pagination, defautl value is 0 |
System.Nullable<System.Int32> | take | Variable for pagination, default value is 10 |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SubscriptionPlansVM> | Succesfully returned |
Remarks
If no active subscription plans, then the endpoint will return empty list
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |