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>

49 lines 2.11 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; export declare const RequestBodyAction: { readonly Refund: "refund"; }; export type RequestBodyAction = ClosedEnum<typeof RequestBodyAction>; export type UpdateInvoiceRequestBody1 = { action: RequestBodyAction; /** * Refund reason. */ reason: string; /** * The total amount to be refunded. Must be less than or equal to the total amount of the invoice. */ total: string; }; export type UpdateInvoiceRequestBody = UpdateInvoiceRequestBody1; export type UpdateInvoiceRequest = { integrationConfigurationId: string; invoiceId: string; requestBody: UpdateInvoiceRequestBody1; }; /** @internal */ export declare const RequestBodyAction$outboundSchema: z.ZodNativeEnum<typeof RequestBodyAction>; /** @internal */ export type UpdateInvoiceRequestBody1$Outbound = { action: string; reason: string; total: string; }; /** @internal */ export declare const UpdateInvoiceRequestBody1$outboundSchema: z.ZodType<UpdateInvoiceRequestBody1$Outbound, z.ZodTypeDef, UpdateInvoiceRequestBody1>; export declare function updateInvoiceRequestBody1ToJSON(updateInvoiceRequestBody1: UpdateInvoiceRequestBody1): string; /** @internal */ export type UpdateInvoiceRequestBody$Outbound = UpdateInvoiceRequestBody1$Outbound; /** @internal */ export declare const UpdateInvoiceRequestBody$outboundSchema: z.ZodType<UpdateInvoiceRequestBody$Outbound, z.ZodTypeDef, UpdateInvoiceRequestBody>; export declare function updateInvoiceRequestBodyToJSON(updateInvoiceRequestBody: UpdateInvoiceRequestBody): string; /** @internal */ export type UpdateInvoiceRequest$Outbound = { integrationConfigurationId: string; invoiceId: string; RequestBody: UpdateInvoiceRequestBody1$Outbound; }; /** @internal */ export declare const UpdateInvoiceRequest$outboundSchema: z.ZodType<UpdateInvoiceRequest$Outbound, z.ZodTypeDef, UpdateInvoiceRequest>; export declare function updateInvoiceRequestToJSON(updateInvoiceRequest: UpdateInvoiceRequest): string; //# sourceMappingURL=updateinvoiceop.d.ts.map