@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>
60 lines • 2.63 kB
TypeScript
import * as z from "zod/v3";
/**
* A credit balance for a particular token type
*/
export type Balances = {
/**
* Partner's resource ID, exclude if credits are tied to the installation and not an individual resource.
*/
resourceId?: string | undefined;
/**
* A human-readable description of the credits the user currently has, e.g. "2,000 Tokens"
*/
credit?: string | undefined;
/**
* The name of the credits, for display purposes, e.g. "Tokens"
*/
nameLabel?: string | undefined;
/**
* The dollar value of the credit balance, in USD and provided in cents, which is used to trigger automatic purchase thresholds.
*/
currencyValueInCents: number;
};
export type SubmitPrepaymentBalancesRequestBody = {
/**
* Server time of your integration, used to determine the most recent data for race conditions & updates. Only the latest usage data for a given day, week, and month will be kept.
*/
timestamp: Date;
balances: Array<Balances>;
};
export type SubmitPrepaymentBalancesRequest = {
integrationConfigurationId: string;
requestBody?: SubmitPrepaymentBalancesRequestBody | undefined;
};
/** @internal */
export type Balances$Outbound = {
resourceId?: string | undefined;
credit?: string | undefined;
nameLabel?: string | undefined;
currencyValueInCents: number;
};
/** @internal */
export declare const Balances$outboundSchema: z.ZodType<Balances$Outbound, z.ZodTypeDef, Balances>;
export declare function balancesToJSON(balances: Balances): string;
/** @internal */
export type SubmitPrepaymentBalancesRequestBody$Outbound = {
timestamp: string;
balances: Array<Balances$Outbound>;
};
/** @internal */
export declare const SubmitPrepaymentBalancesRequestBody$outboundSchema: z.ZodType<SubmitPrepaymentBalancesRequestBody$Outbound, z.ZodTypeDef, SubmitPrepaymentBalancesRequestBody>;
export declare function submitPrepaymentBalancesRequestBodyToJSON(submitPrepaymentBalancesRequestBody: SubmitPrepaymentBalancesRequestBody): string;
/** @internal */
export type SubmitPrepaymentBalancesRequest$Outbound = {
integrationConfigurationId: string;
RequestBody?: SubmitPrepaymentBalancesRequestBody$Outbound | undefined;
};
/** @internal */
export declare const SubmitPrepaymentBalancesRequest$outboundSchema: z.ZodType<SubmitPrepaymentBalancesRequest$Outbound, z.ZodTypeDef, SubmitPrepaymentBalancesRequest>;
export declare function submitPrepaymentBalancesRequestToJSON(submitPrepaymentBalancesRequest: SubmitPrepaymentBalancesRequest): string;
//# sourceMappingURL=submitprepaymentbalancesop.d.ts.map