import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AccountingCreditNotesAddGlobals = { /** * ID of the consumer which you want to get or push data from */ consumerId?: string | undefined; /** * The ID of your Unify application */ appId?: string | undefined; }; export type AccountingCreditNotesAddRequest = { /** * Include raw response. Mostly used for debugging purposes */ raw?: boolean | undefined; /** * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. */ serviceId?: string | undefined; creditNote: components.CreditNoteInput; }; export type AccountingCreditNotesAddResponse = { httpMeta: components.HTTPMetadata; /** * Credit Note created */ createCreditNoteResponse?: components.CreateCreditNoteResponse | undefined; /** * Unexpected error */ unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; /** @internal */ export declare const AccountingCreditNotesAddGlobals$inboundSchema: z.ZodType; /** @internal */ export type AccountingCreditNotesAddGlobals$Outbound = { consumerId?: string | undefined; appId?: string | undefined; }; /** @internal */ export declare const AccountingCreditNotesAddGlobals$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountingCreditNotesAddGlobals$ { /** @deprecated use `AccountingCreditNotesAddGlobals$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingCreditNotesAddGlobals$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingCreditNotesAddGlobals$Outbound` instead. */ type Outbound = AccountingCreditNotesAddGlobals$Outbound; } export declare function accountingCreditNotesAddGlobalsToJSON(accountingCreditNotesAddGlobals: AccountingCreditNotesAddGlobals): string; export declare function accountingCreditNotesAddGlobalsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountingCreditNotesAddRequest$inboundSchema: z.ZodType; /** @internal */ export type AccountingCreditNotesAddRequest$Outbound = { raw: boolean; serviceId?: string | undefined; CreditNote: components.CreditNoteInput$Outbound; }; /** @internal */ export declare const AccountingCreditNotesAddRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountingCreditNotesAddRequest$ { /** @deprecated use `AccountingCreditNotesAddRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingCreditNotesAddRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingCreditNotesAddRequest$Outbound` instead. */ type Outbound = AccountingCreditNotesAddRequest$Outbound; } export declare function accountingCreditNotesAddRequestToJSON(accountingCreditNotesAddRequest: AccountingCreditNotesAddRequest): string; export declare function accountingCreditNotesAddRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountingCreditNotesAddResponse$inboundSchema: z.ZodType; /** @internal */ export type AccountingCreditNotesAddResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; CreateCreditNoteResponse?: components.CreateCreditNoteResponse$Outbound | undefined; UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined; }; /** @internal */ export declare const AccountingCreditNotesAddResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountingCreditNotesAddResponse$ { /** @deprecated use `AccountingCreditNotesAddResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingCreditNotesAddResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingCreditNotesAddResponse$Outbound` instead. */ type Outbound = AccountingCreditNotesAddResponse$Outbound; } export declare function accountingCreditNotesAddResponseToJSON(accountingCreditNotesAddResponse: AccountingCreditNotesAddResponse): string; export declare function accountingCreditNotesAddResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=accountingcreditnotesadd.d.ts.map