import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal][] or Python's [decimal.Decimal][]. * * @remarks * * [BigDecimal]: * https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html * [decimal.Decimal]: https://docs.python.org/3/library/decimal.html */ export type BookingLotMoneyPrice = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Deprecated; use the price field instead * * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible. */ export type BookingLotMoney = { currencyCode?: string | undefined; price?: BookingLotMoneyPrice | null | undefined; }; /** * Lot price in the same currency as the trade price */ export type BookingLotPrice = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Lot quantity */ export type BookingLotQuantity = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Trade date for this lot specifically */ export type TradeDate = { /** * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */ day?: number | undefined; /** * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */ month?: number | undefined; /** * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */ year?: number | undefined; }; /** * For use in specifying lot matching instructions on a trade */ export type BookingLot = { /** * User-specified ID for the lot */ id?: string | undefined; /** * Deprecated; use the price field instead * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ money?: BookingLotMoney | null | undefined; /** * Lot price in the same currency as the trade price */ price?: BookingLotPrice | null | undefined; /** * Lot quantity */ quantity?: BookingLotQuantity | null | undefined; /** * Trade date for this lot specifically */ tradeDate?: TradeDate | null | undefined; }; /** @internal */ export declare const BookingLotMoneyPrice$inboundSchema: z.ZodType; /** @internal */ export type BookingLotMoneyPrice$Outbound = { value?: string | undefined; }; /** @internal */ export declare const BookingLotMoneyPrice$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 BookingLotMoneyPrice$ { /** @deprecated use `BookingLotMoneyPrice$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingLotMoneyPrice$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BookingLotMoneyPrice$Outbound` instead. */ type Outbound = BookingLotMoneyPrice$Outbound; } export declare function bookingLotMoneyPriceToJSON(bookingLotMoneyPrice: BookingLotMoneyPrice): string; export declare function bookingLotMoneyPriceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BookingLotMoney$inboundSchema: z.ZodType; /** @internal */ export type BookingLotMoney$Outbound = { currency_code?: string | undefined; price?: BookingLotMoneyPrice$Outbound | null | undefined; }; /** @internal */ export declare const BookingLotMoney$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 BookingLotMoney$ { /** @deprecated use `BookingLotMoney$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingLotMoney$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BookingLotMoney$Outbound` instead. */ type Outbound = BookingLotMoney$Outbound; } export declare function bookingLotMoneyToJSON(bookingLotMoney: BookingLotMoney): string; export declare function bookingLotMoneyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BookingLotPrice$inboundSchema: z.ZodType; /** @internal */ export type BookingLotPrice$Outbound = { value?: string | undefined; }; /** @internal */ export declare const BookingLotPrice$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 BookingLotPrice$ { /** @deprecated use `BookingLotPrice$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingLotPrice$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BookingLotPrice$Outbound` instead. */ type Outbound = BookingLotPrice$Outbound; } export declare function bookingLotPriceToJSON(bookingLotPrice: BookingLotPrice): string; export declare function bookingLotPriceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BookingLotQuantity$inboundSchema: z.ZodType; /** @internal */ export type BookingLotQuantity$Outbound = { value?: string | undefined; }; /** @internal */ export declare const BookingLotQuantity$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 BookingLotQuantity$ { /** @deprecated use `BookingLotQuantity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingLotQuantity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BookingLotQuantity$Outbound` instead. */ type Outbound = BookingLotQuantity$Outbound; } export declare function bookingLotQuantityToJSON(bookingLotQuantity: BookingLotQuantity): string; export declare function bookingLotQuantityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TradeDate$inboundSchema: z.ZodType; /** @internal */ export type TradeDate$Outbound = { day?: number | undefined; month?: number | undefined; year?: number | undefined; }; /** @internal */ export declare const TradeDate$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 TradeDate$ { /** @deprecated use `TradeDate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TradeDate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TradeDate$Outbound` instead. */ type Outbound = TradeDate$Outbound; } export declare function tradeDateToJSON(tradeDate: TradeDate): string; export declare function tradeDateFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BookingLot$inboundSchema: z.ZodType; /** @internal */ export type BookingLot$Outbound = { id?: string | undefined; money?: BookingLotMoney$Outbound | null | undefined; price?: BookingLotPrice$Outbound | null | undefined; quantity?: BookingLotQuantity$Outbound | null | undefined; trade_date?: TradeDate$Outbound | null | undefined; }; /** @internal */ export declare const BookingLot$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 BookingLot$ { /** @deprecated use `BookingLot$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingLot$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BookingLot$Outbound` instead. */ type Outbound = BookingLot$Outbound; } export declare function bookingLotToJSON(bookingLot: BookingLot): string; export declare function bookingLotFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bookinglot.d.ts.map