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 OptionOrderServiceCancelOptionOrderRequest = { /** * The account id. */ accountId: string; /** * The optionOrder id. */ optionOrderId: string; cancelOptionOrderRequestCreate: components.CancelOptionOrderRequestCreate; }; export type OptionOrderServiceCancelOptionOrderResponse = { httpMeta: components.HTTPMetadata; /** * OK */ optionOrder?: components.OptionOrder | undefined; /** * INVALID_ARGUMENT: The account_id or the option_order_id could not be determined for the request. * * @remarks * FAILED_PRECONDITION: The order is not in a cancelable state */ status?: components.Status | undefined; }; /** @internal */ export declare const OptionOrderServiceCancelOptionOrderRequest$inboundSchema: z.ZodType; /** @internal */ export type OptionOrderServiceCancelOptionOrderRequest$Outbound = { account_id: string; optionOrder_id: string; CancelOptionOrderRequestCreate: components.CancelOptionOrderRequestCreate$Outbound; }; /** @internal */ export declare const OptionOrderServiceCancelOptionOrderRequest$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 OptionOrderServiceCancelOptionOrderRequest$ { /** @deprecated use `OptionOrderServiceCancelOptionOrderRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderServiceCancelOptionOrderRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionOrderServiceCancelOptionOrderRequest$Outbound` instead. */ type Outbound = OptionOrderServiceCancelOptionOrderRequest$Outbound; } export declare function optionOrderServiceCancelOptionOrderRequestToJSON(optionOrderServiceCancelOptionOrderRequest: OptionOrderServiceCancelOptionOrderRequest): string; export declare function optionOrderServiceCancelOptionOrderRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OptionOrderServiceCancelOptionOrderResponse$inboundSchema: z.ZodType; /** @internal */ export type OptionOrderServiceCancelOptionOrderResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; OptionOrder?: components.OptionOrder$Outbound | undefined; Status?: components.Status$Outbound | undefined; }; /** @internal */ export declare const OptionOrderServiceCancelOptionOrderResponse$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 OptionOrderServiceCancelOptionOrderResponse$ { /** @deprecated use `OptionOrderServiceCancelOptionOrderResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderServiceCancelOptionOrderResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionOrderServiceCancelOptionOrderResponse$Outbound` instead. */ type Outbound = OptionOrderServiceCancelOptionOrderResponse$Outbound; } export declare function optionOrderServiceCancelOptionOrderResponseToJSON(optionOrderServiceCancelOptionOrderResponse: OptionOrderServiceCancelOptionOrderResponse): string; export declare function optionOrderServiceCancelOptionOrderResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=optionorderservicecanceloptionorder.d.ts.map