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

GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest

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

Request to cancel a subscription.

interface GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest {
cancelImmediately?: boolean;
cancellationReason?:
| "CANCELLATION_REASON_UNSPECIFIED"
| "CANCELLATION_REASON_FRAUD"
| "CANCELLATION_REASON_REMORSE"
| "CANCELLATION_REASON_ACCIDENTAL_PURCHASE"
| "CANCELLATION_REASON_PAST_DUE"
| "CANCELLATION_REASON_ACCOUNT_CLOSED"
| "CANCELLATION_REASON_UPGRADE_DOWNGRADE"
| "CANCELLATION_REASON_USER_DELINQUENCY"
| "CANCELLATION_REASON_SYSTEM_ERROR"
| "CANCELLATION_REASON_SYSTEM_CANCEL"
| "CANCELLATION_REASON_OTHER";
}

§Properties

§
cancelImmediately?: boolean
[src]

Optional. If true, Google will cancel the subscription immediately, and may or may not (based on the contract) issue a prorated refund for the remainder of the billing cycle. Otherwise, Google defers the cancelation at renewal_time, and will not issue a refund.

§
cancellationReason?: "CANCELLATION_REASON_UNSPECIFIED" | "CANCELLATION_REASON_FRAUD" | "CANCELLATION_REASON_REMORSE" | "CANCELLATION_REASON_ACCIDENTAL_PURCHASE" | "CANCELLATION_REASON_PAST_DUE" | "CANCELLATION_REASON_ACCOUNT_CLOSED" | "CANCELLATION_REASON_UPGRADE_DOWNGRADE" | "CANCELLATION_REASON_USER_DELINQUENCY" | "CANCELLATION_REASON_SYSTEM_ERROR" | "CANCELLATION_REASON_SYSTEM_CANCEL" | "CANCELLATION_REASON_OTHER"
[src]

Specifies the reason for the cancellation.