/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { ordersOrdersCreate } from "../funcs/ordersOrdersCreate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Orders extends ClientSDK { /** * Create an order that was prepared outside the Bolt ecosystem. * * @remarks * Create an order that was prepared outside the Bolt ecosystem. Some Bolt-powered flows automatically manage order creation - in those flows the order ID will be provided separately and not through this API. */ async ordersCreate( security: operations.OrdersCreateSecurity, order: components.Order, xPublishableKey: string, xMerchantClientId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(ordersOrdersCreate( this, security, order, xPublishableKey, xMerchantClientId, options, )); } }