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 OrdersCreateSecurity = { apiKey: string; }; export type OrdersCreateRequest = { /** * The publicly shareable identifier used to identify your Bolt merchant division. */ xPublishableKey: string; /** * A unique identifier for a shopper's device, generated by Bolt. The value is retrieved with `Bolt.state.merchantClientId` in your frontend context, per-shopper. This header is required for proper attribution of this operation to your analytics reports. Omitting this header may result in incorrect statistics. */ xMerchantClientId?: string | undefined; order: components.Order; }; export type OrdersCreateResponse = { /** * HTTP response content type for this operation */ contentType: string; /** * HTTP response status code for this operation */ statusCode: number; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse: Response; /** * The order was successfuly created */ orderResponse?: components.OrderResponse | undefined; }; /** @internal */ export declare const OrdersCreateSecurity$inboundSchema: z.ZodType; /** @internal */ export type OrdersCreateSecurity$Outbound = { "api-key": string; }; /** @internal */ export declare const OrdersCreateSecurity$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 OrdersCreateSecurity$ { /** @deprecated use `OrdersCreateSecurity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OrdersCreateSecurity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OrdersCreateSecurity$Outbound` instead. */ type Outbound = OrdersCreateSecurity$Outbound; } export declare function ordersCreateSecurityToJSON(ordersCreateSecurity: OrdersCreateSecurity): string; export declare function ordersCreateSecurityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OrdersCreateRequest$inboundSchema: z.ZodType; /** @internal */ export type OrdersCreateRequest$Outbound = { "X-Publishable-Key": string; "X-Merchant-Client-Id"?: string | undefined; order: components.Order$Outbound; }; /** @internal */ export declare const OrdersCreateRequest$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 OrdersCreateRequest$ { /** @deprecated use `OrdersCreateRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OrdersCreateRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OrdersCreateRequest$Outbound` instead. */ type Outbound = OrdersCreateRequest$Outbound; } export declare function ordersCreateRequestToJSON(ordersCreateRequest: OrdersCreateRequest): string; export declare function ordersCreateRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OrdersCreateResponse$inboundSchema: z.ZodType; /** @internal */ export type OrdersCreateResponse$Outbound = { ContentType: string; StatusCode: number; RawResponse: never; "order-response"?: components.OrderResponse$Outbound | undefined; }; /** @internal */ export declare const OrdersCreateResponse$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 OrdersCreateResponse$ { /** @deprecated use `OrdersCreateResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OrdersCreateResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OrdersCreateResponse$Outbound` instead. */ type Outbound = OrdersCreateResponse$Outbound; } export declare function ordersCreateResponseToJSON(ordersCreateResponse: OrdersCreateResponse): string; export declare function ordersCreateResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=orderscreate.d.ts.map