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

SubscriptionPromotionSpec

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

Describes the spec for one promotion.

interface SubscriptionPromotionSpec {
readonly freeTrialDuration?: Duration;
readonly introductoryPricingDetails?: PromotionIntroductoryPricingDetails;
promotion?: string;
readonly type?: "PROMOTION_TYPE_UNSPECIFIED" | "PROMOTION_TYPE_FREE_TRIAL" | "PROMOTION_TYPE_INTRODUCTORY_PRICING";
}

§Properties

§
readonly freeTrialDuration?: Duration
[src]

Output only. The duration of the free trial if the promotion is of type FREE_TRIAL.

§
readonly introductoryPricingDetails?: PromotionIntroductoryPricingDetails
[src]

Output only. The details of the introductory pricing spec if the promotion is of type INTRODUCTORY_PRICING.

§
promotion?: string
[src]

Required. Promotion resource name that identifies a promotion. The format is 'partners/{partner_id}/promotions/{promotion_id}'.

§
readonly type?: "PROMOTION_TYPE_UNSPECIFIED" | "PROMOTION_TYPE_FREE_TRIAL" | "PROMOTION_TYPE_INTRODUCTORY_PRICING"
[src]

Output only. The type of the promotion for the spec.