import * as z from "zod/v4-mini"; import { CreditGrantCadence } from "./credit-grant-cadence.js"; import { CreditGrantExpiryDurationUnit } from "./credit-grant-expiry-duration-unit.js"; import { CreditGrantExpiryType } from "./credit-grant-expiry-type.js"; import { CreditGrantPeriod } from "./credit-grant-period.js"; import { CreditGrantScope } from "./credit-grant-scope.js"; export type CreateCreditGrantRequest = { addonId?: string | undefined; cadence: CreditGrantCadence; /** * amount in the currency = number of credits * conversion_rate * * @remarks * ex if conversion_rate is 1, then 1 USD = 1 credit * ex if conversion_rate is 2, then 1 USD = 0.5 credits * ex if conversion_rate is 0.5, then 1 USD = 2 credits */ conversionRate?: string | undefined; credits: string; endDate?: Date | undefined; expirationDuration?: number | undefined; expirationDurationUnit?: CreditGrantExpiryDurationUnit | undefined; expirationType?: CreditGrantExpiryType | undefined; metadata?: { [k: string]: string; } | undefined; name: string; period?: CreditGrantPeriod | undefined; periodCount?: number | undefined; planId?: string | undefined; priority?: number | undefined; scope: CreditGrantScope; startDate?: Date | undefined; subscriptionId?: string | undefined; /** * topup_conversion_rate is the conversion rate for the topup to the currency * * @remarks * ex if topup_conversion_rate is 1, then 1 USD = 1 credit * ex if topup_conversion_rate is 2, then 1 USD = 0.5 credits * ex if topup_conversion_rate is 0.5, then 1 USD = 2 credits */ topupConversionRate?: string | undefined; }; /** @internal */ export type CreateCreditGrantRequest$Outbound = { addon_id?: string | undefined; cadence: string; conversion_rate?: string | undefined; credits: string; end_date?: string | undefined; expiration_duration?: number | undefined; expiration_duration_unit?: string | undefined; expiration_type?: string | undefined; metadata?: { [k: string]: string; } | undefined; name: string; period?: string | undefined; period_count?: number | undefined; plan_id?: string | undefined; priority?: number | undefined; scope: string; start_date?: string | undefined; subscription_id?: string | undefined; topup_conversion_rate?: string | undefined; }; /** @internal */ export declare const CreateCreditGrantRequest$outboundSchema: z.ZodMiniType; export declare function createCreditGrantRequestToJSON(createCreditGrantRequest: CreateCreditGrantRequest): string; //# sourceMappingURL=create-credit-grant-request.d.ts.map