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 OrderServiceCancelOrderRequest = { /** * The account id. */ accountId: string; /** * The order id. */ orderId: string; cancelOrderRequestCreate: components.CancelOrderRequestCreate; }; export type OrderServiceCancelOrderResponse = { httpMeta: components.HTTPMetadata; /** * OK */ order?: components.Order | undefined; /** * INVALID_ARGUMENT: The account_id or the 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 OrderServiceCancelOrderRequest$inboundSchema: z.ZodType; /** @internal */ export type OrderServiceCancelOrderRequest$Outbound = { account_id: string; order_id: string; CancelOrderRequestCreate: components.CancelOrderRequestCreate$Outbound; }; /** @internal */ export declare const OrderServiceCancelOrderRequest$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 OrderServiceCancelOrderRequest$ { /** @deprecated use `OrderServiceCancelOrderRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OrderServiceCancelOrderRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OrderServiceCancelOrderRequest$Outbound` instead. */ type Outbound = OrderServiceCancelOrderRequest$Outbound; } export declare function orderServiceCancelOrderRequestToJSON(orderServiceCancelOrderRequest: OrderServiceCancelOrderRequest): string; export declare function orderServiceCancelOrderRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OrderServiceCancelOrderResponse$inboundSchema: z.ZodType; /** @internal */ export type OrderServiceCancelOrderResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; Order?: components.Order$Outbound | undefined; Status?: components.Status$Outbound | undefined; }; /** @internal */ export declare const OrderServiceCancelOrderResponse$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 OrderServiceCancelOrderResponse$ { /** @deprecated use `OrderServiceCancelOrderResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OrderServiceCancelOrderResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OrderServiceCancelOrderResponse$Outbound` instead. */ type Outbound = OrderServiceCancelOrderResponse$Outbound; } export declare function orderServiceCancelOrderResponseToJSON(orderServiceCancelOrderResponse: OrderServiceCancelOrderResponse): string; export declare function orderServiceCancelOrderResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=orderservicecancelorder.d.ts.map