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

GoogleCloudChannelV1DiscountComponent

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

Represents a single component of the total discount applicable on a Price.

interface GoogleCloudChannelV1DiscountComponent {
discountAbsolute?: GoogleTypeMoney;
discountPercentage?: number;
discountType?:
| "DISCOUNT_TYPE_UNSPECIFIED"
| "REGIONAL_DISCOUNT"
| "PROMOTIONAL_DISCOUNT"
| "SALES_DISCOUNT"
| "RESELLER_MARGIN"
| "DEAL_CODE";
}

§Properties

§
discountAbsolute?: GoogleTypeMoney
[src]

Fixed value discount.

§
discountPercentage?: number
[src]

Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.

§
discountType?: "DISCOUNT_TYPE_UNSPECIFIED" | "REGIONAL_DISCOUNT" | "PROMOTIONAL_DISCOUNT" | "SALES_DISCOUNT" | "RESELLER_MARGIN" | "DEAL_CODE"
[src]

Type of the discount.