GoogleCloudPaymentsResellerSubscriptionV1Subscription class
A subscription serves as a central billing entity between an external partner and Google.
The underlying Google services rely on the subscription state to grant or revoke the user's service entitlement. It's important to note that the subscription state may not always perfectly align with the user's service entitlement. For example, some Google services may continue providing access to the user until the current billing cycle ends, even if the subscription has been immediately canceled. However, other services may not do the same. To fully understand the specific details, please consult the relevant contract or product policy.
Constructors
-
GoogleCloudPaymentsResellerSubscriptionV1Subscription({GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails? cancellationDetails, String? createTime, String? cycleEndTime, bool? endUserEntitled, String? freeTrialEndTime, List<
GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem> ? lineItems, String? name, String? partnerUserToken, String? processingState, List<String> ? products, List<GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec> ? promotionSpecs, List<String> ? promotions, String? redirectUri, String? renewalTime, GoogleCloudPaymentsResellerSubscriptionV1Location? serviceLocation, String? state, String? updateTime, GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails? upgradeDowngradeDetails}) - GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson(Map json_)
Properties
- cancellationDetails ↔ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails?
-
Describes the details of a cancelled subscription.
getter/setter pair
- createTime ↔ String?
-
System generated timestamp when the subscription is created.
getter/setter pair
- cycleEndTime ↔ String?
-
The time at which the subscription is expected to be extended, in ISO 8061
format.
getter/setter pair
- endUserEntitled ↔ bool?
-
Indicates if the subscription is entitled to the end user.
getter/setter pair
- freeTrialEndTime ↔ String?
-
End of the free trial period, in ISO 8061 format.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lineItems
↔ List<
GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem> ? -
The line items of the subscription.
getter/setter pair
- name ↔ String?
-
Identifier.
getter/setter pair
- partnerUserToken ↔ String?
-
Identifier of the end-user in partner’s system.
getter/setter pair
- processingState ↔ String?
-
Describes the processing state of the subscription.
getter/setter pair
-
products
↔ List<
String> ? -
Deprecated: consider using
line_items
as the input.getter/setter pair -
promotions
↔ List<
String> ? -
Deprecated: consider using the top-level
promotion_specs
as the input.getter/setter pair -
promotionSpecs
↔ List<
GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec> ? -
Subscription-level promotions.
getter/setter pair
- redirectUri ↔ String?
-
The place where partners should redirect the end-user to after creation.
getter/setter pair
- renewalTime ↔ String?
-
The time at which the subscription is expected to be renewed by Google - a
new charge will be incurred and the service entitlement will be renewed.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceLocation ↔ GoogleCloudPaymentsResellerSubscriptionV1Location?
-
The location that the service is provided as indicated by the partner.
getter/setter pair
- state ↔ String?
-
Describes the state of the subscription.
getter/setter pair
- updateTime ↔ String?
-
System generated timestamp when the subscription is most recently updated.
getter/setter pair
- upgradeDowngradeDetails ↔ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails?
-
Details about the previous subscription that this new subscription
upgrades/downgrades from.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited