Name | Type | String |
---|---|---|
id | String! | The id which you want to assign to identify the user. |
billingId | String | The id of the user which identifies them to be charged for their subscriptions. This will often be the id given by your payment provider (ie. Stripe, Chargebee, etc). |
name | String | The name of the user. |
String | The email of the user. | |
metadata | JSON | Attach any key-value data that would be useful to store on the User object. |
Name | Type | String |
---|---|---|
id | String! | The new id which you want to assign to identify the user. |
name | String | The name of the user. |
metadata | JSON | Attach any key-value data that would be useful to store on the User object. |
Name | Type | String |
---|---|---|
userId | String! | The id of the user who used the feature. This maps to the id field as set on the User object. |
featureId | String! | The id of the feature which was used by the user. This maps to the id field as set on the Feature object. |
delta | Int | The amount by which the feature was used. This will impact the Entitlement a user has for a feature, by updating the used field in the Consumptionmodel. Defaults to 1 . |
action | RecordUsageAction | Specify how you want the usage of the feature to be recorded. Can be ADD (to add to existing usage amount) or SET (to override the existing usage amount). Defaults to ADD . |
Name | Type | String |
---|---|---|
id | String! | The id which you want to assign to identify the feature. |
name | String | The name of the feature. |
type | FeatureType! | The type of the feature. Either BINARY or CONSUMABLE . |
unitLabel | String | The name of the consumable unit (eg. Message, API Call, etc). Only necessary if type is CONSUMABLE . |
unitLabelPlural | String | The pluralised name of the consumable unit (eg. Messages, API Calls, etc). Only necessary if type is CONSUMABLE . |
metadata | JSON | Attach any key-value data that would be useful to store on the Feature object. |
Name | Type | String |
---|---|---|
name | String | The name of the feature. |
unitLabel | String | The name of the consumable unit (eg. Message, API Call, etc). Only necessary if type is CONSUMABLE . |
unitLabelPlural | String | The pluralised name of the consumable unit (eg. Messages, API Calls, etc). Only necessary if type is CONSUMABLE . |
metadata | JSON | Attach any key-value data that would be useful to store on the Feature object. |
Name | Type | String |
---|---|---|
id | String! | The id which you want to assign to identify the package. |
name | String | The name of the package. |
isAddon | Boolean | Represents whether the package is an add-on (true ) or a base package (false ). Defaults to false . |
features | [CreatePackageFeatureInput!]! | A list of the features which will be added to the package. |
metadata | JSON | Attach any key-value data that would be useful to store on the Package object. |
Name | Type | String |
---|---|---|
id | String! | The id of theFeature which you want to add to the package. |
entitlement | EntitlementInput | The entitlement which a user would have for this consumable feature. Only necessary if the feature has a type of CONSUMABLE . |
Name | Type | String |
---|---|---|
limit | Int | Indicates the amount of the feature given to the user (ie. “500” ). If not provided, the amount will be unlimited. |
resetPeriod | ResetPeriod! | Indicates the period by which the limit will reset (ie. MONTH ). |
overageEnabled | Boolean | Flags whether a user can run over the limit (true ) or if it should be a hard limit that prevents usage (false ). Defaults to false . |
Name | Type | String |
---|---|---|
metadata | JSON | Attach any key-value data that would be useful to store on the Package object. |