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

SubscriptionUpgradeDowngradeDetails

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

Details about the previous subscription that this new subscription upgrades/downgrades from.

interface SubscriptionUpgradeDowngradeDetails {
billingCycleSpec?:
| "BILLING_CYCLE_SPEC_UNSPECIFIED"
| "BILLING_CYCLE_SPEC_ALIGN_WITH_PREVIOUS_SUBSCRIPTION"
| "BILLING_CYCLE_SPEC_START_IMMEDIATELY"
| "BILLING_CYCLE_SPEC_DEFERRED_TO_NEXT_RECURRENCE";
previousSubscriptionId?: string;
}

§Properties

§
billingCycleSpec?: "BILLING_CYCLE_SPEC_UNSPECIFIED" | "BILLING_CYCLE_SPEC_ALIGN_WITH_PREVIOUS_SUBSCRIPTION" | "BILLING_CYCLE_SPEC_START_IMMEDIATELY" | "BILLING_CYCLE_SPEC_DEFERRED_TO_NEXT_RECURRENCE"
[src]

Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.

§
previousSubscriptionId?: string
[src]

Required. The previous subscription id to be replaced. The format can be one of the following: 1. subscription_id: the old subscription id under the same partner_id. 2. partners/{partner_id}/subscriptions/{subscription_id}. A different partner_id is allowed. But they must be under the same partner group.