import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { Asset, Asset$Outbound } from "./asset.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { OrderData, OrderData$Outbound } from "./orderdata.js"; import { OrderStatus } from "./orderstatus.js"; import { Platform } from "./platform.js"; export type Order = { id: string; fill: string; platform: Platform; status: OrderStatus; startedAt?: Date | undefined; endedAt?: Date | undefined; makeStock: string; cancelled: boolean; /** * True if the execution of this order does not guarantee that the royalties will be paid. In this case, it is up to the buyer to pay the royalties. */ optionalRoyalties?: boolean | undefined; createdAt: Date; lastUpdatedAt: Date; dbUpdatedAt?: Date | undefined; makePrice?: string | undefined; takePrice?: string | undefined; makePriceUsd?: string | undefined; takePriceUsd?: string | undefined; /** * Blockchain address in Union format `${blockchainGroup}:${token}` */ maker: string; /** * Blockchain address in Union format `${blockchainGroup}:${token}` */ taker?: string | undefined; make: Asset; take: Asset; salt: string; signature?: string | undefined; feeTakers?: Array | undefined; data: OrderData; version?: number | undefined; }; /** @internal */ export declare const Order$inboundSchema: z.ZodType; /** @internal */ export type Order$Outbound = { id: string; fill: string; platform: string; status: string; startedAt?: string | undefined; endedAt?: string | undefined; makeStock: string; cancelled: boolean; optionalRoyalties: boolean; createdAt: string; lastUpdatedAt: string; dbUpdatedAt?: string | undefined; makePrice?: string | undefined; takePrice?: string | undefined; makePriceUsd?: string | undefined; takePriceUsd?: string | undefined; maker: string; taker?: string | undefined; make: Asset$Outbound; take: Asset$Outbound; salt: string; signature?: string | undefined; feeTakers?: Array | undefined; data: OrderData$Outbound; version?: number | undefined; }; /** @internal */ export declare const Order$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 Order$ { /** @deprecated use `Order$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Order$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Order$Outbound` instead. */ type Outbound = Order$Outbound; } export declare function orderToJSON(order: Order): string; export declare function orderFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=order.d.ts.map