CBItem class
This class contains all the information related to the Items which associated with a subscription
Constructors
- CBItem({String? id, String? name, String? description, String? status, int? resourceVersion, int? updatedAt, String? itemFamilyId, String? type, bool? isShippable, bool? isGiftable, bool? enabledForCheckout, bool? enabledInPortal, bool? metered, String? object})
-
CBItem.fromJson(Map<
String, dynamic> json) - Mapping json data into CBItem for iOS
-
CBItem.fromJsonAndroid(Map<
String, dynamic> json) - Mapping json data into CBItem for Android
Properties
- description ↔ String?
-
Description of the item.
getter/setter pair
- enabledForCheckout ↔ bool?
-
Allow the plan/item to subscribed to via Checkout.
getter/setter pair
- enabledInPortal ↔ bool?
-
Allow customers to change their subscription to this plan via the Self-Serve Portal.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The item identifier as same as product id.
getter/setter pair
- isGiftable ↔ bool?
-
Specifies if gift subscriptions can be created for this item.
getter/setter pair
- isShippable ↔ bool?
-
Indicates that the item is a physical product.
getter/setter pair
- itemFamilyId ↔ String?
-
The id of the Item family that the item belongs.
getter/setter pair
- metered ↔ bool?
-
Specifies whether the item undergoes metered billing.
getter/setter pair
- name ↔ String?
-
The name is same as product id.
getter/setter pair
- object ↔ String?
-
the item object model
getter/setter pair
- resourceVersion ↔ int?
-
The version of the resource.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String?
-
Item status, eg. active, archived and delete.
getter/setter pair
- type ↔ String?
-
The type of the item, eg. plan, addon and charge.
getter/setter pair
- updatedAt ↔ int?
-
Timestamp indicating when the item was last updated.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited