Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudPaymentsResellerSubscriptionV1Subscription

import type { GoogleCloudPaymentsResellerSubscriptionV1Subscription } from "https://googleapis.deno.dev/v1/paymentsresellersubscription:v1.ts";

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.

interface GoogleCloudPaymentsResellerSubscriptionV1Subscription {
readonly createTime?: Date;
readonly cycleEndTime?: Date;
readonly endUserEntitled?: boolean;
readonly freeTrialEndTime?: Date;
name?: string;
partnerUserToken?: string;
readonly processingState?: "PROCESSING_STATE_UNSPECIFIED" | "PROCESSING_STATE_CANCELLING" | "PROCESSING_STATE_RECURRING";
products?: string[];
promotions?: string[];
purchaseTime?: Date;
readonly redirectUri?: string;
readonly renewalTime?: Date;
readonly state?:
| "STATE_UNSPECIFIED"
| "STATE_CREATED"
| "STATE_ACTIVE"
| "STATE_CANCELLED"
| "STATE_IN_GRACE_PERIOD"
| "STATE_CANCEL_AT_END_OF_CYCLE"
| "STATE_SUSPENDED";
readonly updateTime?: Date;
}

§Properties

§

Output only. Describes the details of a cancelled subscription. Only applicable to subscription of state STATE_CANCELLED.

§
readonly createTime?: Date
[src]

Output only. System generated timestamp when the subscription is created. UTC timezone.

§
readonly cycleEndTime?: Date
[src]

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"

§
readonly endUserEntitled?: boolean
[src]

Output only. Indicates if the subscription is entitled to the end user.

§
readonly freeTrialEndTime?: Date
[src]

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.

§

Required. The line items of the subscription.

§
name?: string
[src]

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?: string
[src]

Required. Identifier of the end-user in partner’s system. The value is restricted to 63 ASCII characters at the maximum.

§
readonly processingState?: "PROCESSING_STATE_UNSPECIFIED" | "PROCESSING_STATE_CANCELLING" | "PROCESSING_STATE_RECURRING"
[src]

Output only. Describes the processing state of the subscription. See more details at the lifecycle of a subscription.

§
products?: string[]
[src]

Optional. Deprecated: consider using line_items as the input. Required. Resource name that identifies the purchased products. The format will be 'partners/{partner_id}/products/{product_id}'.

§
promotions?: string[]
[src]

Optional. Deprecated: consider using the top-level promotion_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}'.

§

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.

§
purchaseTime?: Date
[src]

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).

§
readonly redirectUri?: string
[src]

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.

§
readonly renewalTime?: Date
[src]

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"

§

Required. The location that the service is provided as indicated by the partner.

§
readonly state?: "STATE_UNSPECIFIED" | "STATE_CREATED" | "STATE_ACTIVE" | "STATE_CANCELLED" | "STATE_IN_GRACE_PERIOD" | "STATE_CANCEL_AT_END_OF_CYCLE" | "STATE_SUSPENDED"
[src]

Output only. Describes the state of the subscription. See more details at the lifecycle of a subscription.

§
readonly updateTime?: Date
[src]

Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.

§

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.