/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { MeteredInput, MeteredInput$Outbound, MeteredInput$outboundSchema, } from "./metered-input.js"; export type PaymentPrepareRequest = { service: string; action: string; resource: string; method: string; /** * Non-negative integer amount in USDC atomic units. */ maxAmountWei?: string | undefined; meter?: MeteredInput | undefined; runId?: string | undefined; idempotencyKey?: string | undefined; }; /** @internal */ export type PaymentPrepareRequest$Outbound = { service: string; action: string; resource: string; method: string; maxAmountWei?: string | undefined; meter?: MeteredInput$Outbound | undefined; runId?: string | undefined; idempotencyKey?: string | undefined; }; /** @internal */ export const PaymentPrepareRequest$outboundSchema: z.ZodMiniType< PaymentPrepareRequest$Outbound, PaymentPrepareRequest > = z.object({ service: z.string(), action: z.string(), resource: z.string(), method: z.string(), maxAmountWei: z.optional(z.string()), meter: z.optional(MeteredInput$outboundSchema), runId: z.optional(z.string()), idempotencyKey: z.optional(z.string()), }); export function paymentPrepareRequestToJSON( paymentPrepareRequest: PaymentPrepareRequest, ): string { return JSON.stringify( PaymentPrepareRequest$outboundSchema.parse(paymentPrepareRequest), ); }