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

PaymentsResellerSubscription

import { PaymentsResellerSubscription } from "https://googleapis.deno.dev/v1/paymentsresellersubscription:v1.ts";
class PaymentsResellerSubscription {
constructor(client?: CredentialsClient, baseUrl?: string);
async partnersProductsList(parent: string, opts?: PartnersProductsListOptions): Promise<GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse>;
async partnersPromotionsList(parent: string, opts?: PartnersPromotionsListOptions): Promise<GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse>;
async partnersSubscriptionsGet(name: string): Promise<GoogleCloudPaymentsResellerSubscriptionV1Subscription>;
}

§Constructors

§
new PaymentsResellerSubscription(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§

To retrieve the products that can be resold by the partner. It should be autenticated with a service account.

@param parent

Required. The parent, the partner that can resell. Format: partners/{partner}

§

To find eligible promotions for the current user. The API requires user authorization via OAuth. The bare minimum oauth scope openid is sufficient, which will skip the consent screen.

@param parent

Required. The parent, the partner that can resell. Format: partners/{partner}

§

To retrieve the promotions, such as free trial, that can be used by the partner. It should be autenticated with a service account.

@param parent

Required. The parent, the partner that can resell. Format: partners/{partner}

§

Used by partners to cancel a subscription service either immediately or by the end of the current billing cycle for their customers. It should be called directly by the partner using service accounts.

@param name

Required. The name of the subscription resource to be cancelled. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}"

§

Used by partners to create a subscription for their customers. The created subscription is associated with the end user inferred from the end user credentials. This API must be authorized by the end user using OAuth.

@param parent

Required. The parent resource name, which is the identifier of the partner. It will have the format of "partners/{partner_id}".

§

Used by partners to entitle a previously provisioned subscription to the current end user. The end user identity is inferred from the authorized credential of the request. This API must be authorized by the end user using OAuth.

@param name

Required. The name of the subscription resource that is entitled to the current end user. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}"

§

[Opt-in only] Most partners should be on auto-extend by default. Used by partners to extend a subscription service for their customers on an ongoing basis for the subscription to remain active and renewable. It should be called directly by the partner using service accounts.

@param name

Required. The name of the subscription resource to be extended. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}".

§
partnersSubscriptionsGet(name: string): Promise<GoogleCloudPaymentsResellerSubscriptionV1Subscription>
[src]

Used by partners to get a subscription by id. It should be called directly by the partner using service accounts.

@param name

Required. The name of the subscription resource to retrieve. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}"

§

Used by partners to provision a subscription for their customers. This creates a subscription without associating it with the end user account. EntitleSubscription must be called separately using OAuth in order for the end user account to be associated with the subscription. It should be called directly by the partner using service accounts.

@param parent

Required. The parent resource name, which is the identifier of the partner. It will have the format of "partners/{partner_id}".

§

Used by partners to revoke the pending cancellation of a subscription, which is currently in STATE_CANCEL_AT_END_OF_CYCLE state. If the subscription is already cancelled, the request will fail. It should be called directly by the partner using service accounts.

@param name

Required. The name of the subscription resource whose pending cancellation needs to be undone. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}"