UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

109 lines 4.75 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export declare const QueryParamSource: { readonly Marketplace: "marketplace"; readonly DeployButton: "deploy-button"; readonly External: "external"; readonly V0: "v0"; readonly ResourceClaims: "resource-claims"; readonly Cli: "cli"; readonly Oauth: "oauth"; readonly Backoffice: "backoffice"; }; export type QueryParamSource = ClosedEnum<typeof QueryParamSource>; export type GetBillingPlansRequest = { integrationIdOrSlug: string; integrationConfigurationId?: string | undefined; productIdOrSlug: string; metadata?: string | undefined; source?: QueryParamSource | undefined; /** * The Team identifier to perform the request on behalf of. */ teamId?: string | undefined; /** * The Team slug to perform the request on behalf of. */ slug?: string | undefined; }; export declare const GetBillingPlansType: { readonly Prepayment: "prepayment"; readonly Subscription: "subscription"; }; export type GetBillingPlansType = ClosedEnum<typeof GetBillingPlansType>; export declare const GetBillingPlansScope: { readonly Installation: "installation"; readonly Resource: "resource"; }; export type GetBillingPlansScope = ClosedEnum<typeof GetBillingPlansScope>; export type GetBillingPlansDetails = { label: string; value?: string | undefined; }; export type GetBillingPlansHighlightedDetails = { label: string; value?: string | undefined; }; export type Quote = { line: string; amount: string; }; export type Plans = { type: GetBillingPlansType; id: string; name: string; scope: GetBillingPlansScope; description: string; paymentMethodRequired: boolean; preauthorizationAmount?: number | undefined; initialCharge?: string | undefined; minimumAmount?: string | undefined; maximumAmount?: string | undefined; maximumAmountAutoPurchasePerPeriod?: string | undefined; cost?: string | undefined; details?: Array<GetBillingPlansDetails> | undefined; highlightedDetails?: Array<GetBillingPlansHighlightedDetails> | undefined; quote?: Array<Quote> | undefined; effectiveDate?: string | undefined; disabled?: boolean | undefined; }; export type GetBillingPlansResponseBody = { plans: Array<Plans>; }; /** @internal */ export declare const QueryParamSource$outboundSchema: z.ZodNativeEnum<typeof QueryParamSource>; /** @internal */ export type GetBillingPlansRequest$Outbound = { integrationIdOrSlug: string; integrationConfigurationId?: string | undefined; productIdOrSlug: string; metadata?: string | undefined; source?: string | undefined; teamId?: string | undefined; slug?: string | undefined; }; /** @internal */ export declare const GetBillingPlansRequest$outboundSchema: z.ZodType<GetBillingPlansRequest$Outbound, z.ZodTypeDef, GetBillingPlansRequest>; export declare function getBillingPlansRequestToJSON(getBillingPlansRequest: GetBillingPlansRequest): string; /** @internal */ export declare const GetBillingPlansType$inboundSchema: z.ZodNativeEnum<typeof GetBillingPlansType>; /** @internal */ export declare const GetBillingPlansScope$inboundSchema: z.ZodNativeEnum<typeof GetBillingPlansScope>; /** @internal */ export declare const GetBillingPlansDetails$inboundSchema: z.ZodType<GetBillingPlansDetails, z.ZodTypeDef, unknown>; export declare function getBillingPlansDetailsFromJSON(jsonString: string): SafeParseResult<GetBillingPlansDetails, SDKValidationError>; /** @internal */ export declare const GetBillingPlansHighlightedDetails$inboundSchema: z.ZodType<GetBillingPlansHighlightedDetails, z.ZodTypeDef, unknown>; export declare function getBillingPlansHighlightedDetailsFromJSON(jsonString: string): SafeParseResult<GetBillingPlansHighlightedDetails, SDKValidationError>; /** @internal */ export declare const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown>; export declare function quoteFromJSON(jsonString: string): SafeParseResult<Quote, SDKValidationError>; /** @internal */ export declare const Plans$inboundSchema: z.ZodType<Plans, z.ZodTypeDef, unknown>; export declare function plansFromJSON(jsonString: string): SafeParseResult<Plans, SDKValidationError>; /** @internal */ export declare const GetBillingPlansResponseBody$inboundSchema: z.ZodType<GetBillingPlansResponseBody, z.ZodTypeDef, unknown>; export declare function getBillingPlansResponseBodyFromJSON(jsonString: string): SafeParseResult<GetBillingPlansResponseBody, SDKValidationError>; //# sourceMappingURL=getbillingplansop.d.ts.map