import * as z from "zod"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The fee amount. Not required if the fee is suppressed */ export type BookingFeeAmount = { /** * 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; }; /** * The type of fee */ export declare enum BookingFeeType { FeeTypeUnspecified = "FEE_TYPE_UNSPECIFIED", ClientClearing = "CLIENT_CLEARING", Liquidity = "LIQUIDITY", TradeActivity = "TRADE_ACTIVITY", FinancialTransactionTax = "FINANCIAL_TRANSACTION_TAX", IndexOptionFee = "INDEX_OPTION_FEE", SecFee = "SEC_FEE", OptionsRegulatory = "OPTIONS_REGULATORY", GeneralPurposeFee = "GENERAL_PURPOSE_FEE", BrokerFee = "BROKER_FEE", ContractFee = "CONTRACT_FEE", OccFee = "OCC_FEE" } /** * The type of fee */ export type BookingFeeTypeOpen = OpenEnum; /** * Fee message includes both fee type as well as the fee amount */ export type BookingFee = { /** * The fee amount. Not required if the fee is suppressed */ amount?: BookingFeeAmount | null | undefined; /** * Indicates whether to explicitly suppress this fee type. If the trade would normally calculate fees (e.g., for TRADE_ACTIVITY), the client can add a fee with this boolean value set to true, and the Booking Service will not calculate or assess that fee on the trade. */ suppressFee?: boolean | undefined; /** * The type of fee */ type?: BookingFeeTypeOpen | undefined; }; /** @internal */ export declare const BookingFeeAmount$inboundSchema: z.ZodType; /** @internal */ export type BookingFeeAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const BookingFeeAmount$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 BookingFeeAmount$ { /** @deprecated use `BookingFeeAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingFeeAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BookingFeeAmount$Outbound` instead. */ type Outbound = BookingFeeAmount$Outbound; } export declare function bookingFeeAmountToJSON(bookingFeeAmount: BookingFeeAmount): string; export declare function bookingFeeAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BookingFeeType$inboundSchema: z.ZodType; /** @internal */ export declare const BookingFeeType$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 BookingFeeType$ { /** @deprecated use `BookingFeeType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingFeeType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const BookingFee$inboundSchema: z.ZodType; /** @internal */ export type BookingFee$Outbound = { amount?: BookingFeeAmount$Outbound | null | undefined; suppress_fee?: boolean | undefined; type?: string | undefined; }; /** @internal */ export declare const BookingFee$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 BookingFee$ { /** @deprecated use `BookingFee$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BookingFee$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BookingFee$Outbound` instead. */ type Outbound = BookingFee$Outbound; } export declare function bookingFeeToJSON(bookingFee: BookingFee): string; export declare function bookingFeeFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bookingfee.d.ts.map