View Source GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Subscription (google_api_payments_reseller_subscription v0.7.0)
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.
Attributes
-
cancellationDetails
(type:GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.t
, default:nil
) - Output only. Describes the details of a cancelled subscription. Only applicable to subscription of stateSTATE_CANCELLED
. -
createTime
(type:DateTime.t
, default:nil
) - Output only. System generated timestamp when the subscription is created. UTC timezone. -
cycleEndTime
(type:DateTime.t
, default:nil
) - Output only. The time at which the subscription is expected to be extended, in ISO 8061 format. UTC timezone. For example: "2019-08-31T17:28:54.564Z" -
endUserEntitled
(type:boolean()
, default:nil
) - Output only. Indicates if the subscription is entitled to the end user. -
freeTrialEndTime
(type:DateTime.t
, default:nil
) - Output only. End of the free trial period, in ISO 8061 format. For example, "2019-08-31T17:28:54.564Z". It will be set the same as createTime if no free trial promotion is specified. -
lineItems
(type:list(GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.t)
, default:nil
) - Required. The line items of the subscription. -
migrationDetails
(type:GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.t
, default:nil
) - Output only. Describes the details of the migrated subscription. Only populated if this subscription is migrated from another system. -
name
(type:String.t
, default:nil
) - Identifier. Resource name of the subscription. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}". This is available for authorizeAddon, but otherwise is response only. -
partnerUserToken
(type:String.t
, default:nil
) - Required. Identifier of the end-user in partner’s system. The value is restricted to 63 ASCII characters at the maximum. -
processingState
(type:String.t
, default:nil
) - Output only. Describes the processing state of the subscription. See more details at the lifecycle of a subscription. -
products
(type:list(String.t)
, default:nil
) - Optional. Deprecated: consider usingline_items
as the input. Required. Resource name that identifies the purchased products. The format will be 'partners/{partner_id}/products/{product_id}'. -
promotionSpecs
(type:list(GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.t)
, default:nil
) - Optional. Subscription-level promotions. Only free trial is supported on this level. It determines the first renewal time of the subscription to be the end of the free trial period. Specify the promotion resource name only when used as input. -
promotions
(type:list(String.t)
, default:nil
) - Optional. Deprecated: consider using the top-levelpromotion_specs
as the input. Optional. Resource name that identifies one or more promotions that can be applied on the product. A typical promotion for a subscription is Free trial. The format will be 'partners/{partner_id}/promotions/{promotion_id}'. -
purchaseTime
(type:DateTime.t
, default:nil
) - Optional. The timestamp when the user transaction was made with the Partner. Specify for the case of "bundle with choice", and it must be before the provision_time (when the user makes a selection). -
redirectUri
(type:String.t
, default:nil
) - Output only. The place where partners should redirect the end-user to after creation. This field might also be populated when creation failed. However, Partners should always prepare a default URL to redirect the user in case this field is empty. -
renewalTime
(type:DateTime.t
, default:nil
) - Output only. 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. A non-immediate cancellation will take place at this time too, before which, the service entitlement for the end user will remain valid. UTC timezone in ISO 8061 format. For example: "2019-08-31T17:28:54.564Z" -
serviceLocation
(type:GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Location.t
, default:nil
) - Required. The location that the service is provided as indicated by the partner. -
state
(type:String.t
, default:nil
) - Output only. Describes the state of the subscription. See more details at the lifecycle of a subscription. -
updateTime
(type:DateTime.t
, default:nil
) - Output only. System generated timestamp when the subscription is most recently updated. UTC timezone. -
upgradeDowngradeDetails
(type:GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails.t
, default:nil
) - Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Subscription{ cancellationDetails: GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.t() | nil, createTime: DateTime.t() | nil, cycleEndTime: DateTime.t() | nil, endUserEntitled: boolean() | nil, freeTrialEndTime: DateTime.t() | nil, lineItems: [ GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.t() ] | nil, migrationDetails: GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.t() | nil, name: String.t() | nil, partnerUserToken: String.t() | nil, processingState: String.t() | nil, products: [String.t()] | nil, promotionSpecs: [ GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.t() ] | nil, promotions: [String.t()] | nil, purchaseTime: DateTime.t() | nil, redirectUri: String.t() | nil, renewalTime: DateTime.t() | nil, serviceLocation: GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Location.t() | nil, state: String.t() | nil, updateTime: DateTime.t() | nil, upgradeDowngradeDetails: GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails.t() | nil }