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 amount of the fee. This is a monetary value in the same currency as the order. */ export type TradingFeeAmount = { /** * 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 being specified. Only the type of "BROKER_FEE" is supported. */ export declare enum TradingFeeType { FeeTypeUnspecified = "FEE_TYPE_UNSPECIFIED", BrokerFee = "BROKER_FEE", ContractFee = "CONTRACT_FEE" } /** * The type of fee being specified. Only the type of "BROKER_FEE" is supported. */ export type TradingFeeTypeOpen = OpenEnum; /** * A fee that applies to an order */ export type TradingFee = { /** * The amount of the fee. This is a monetary value in the same currency as the order. */ amount?: TradingFeeAmount | null | undefined; /** * The type of fee being specified. Only the type of "BROKER_FEE" is supported. */ type?: TradingFeeTypeOpen | undefined; }; /** @internal */ export declare const TradingFeeAmount$inboundSchema: z.ZodType; /** @internal */ export type TradingFeeAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const TradingFeeAmount$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 TradingFeeAmount$ { /** @deprecated use `TradingFeeAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TradingFeeAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TradingFeeAmount$Outbound` instead. */ type Outbound = TradingFeeAmount$Outbound; } export declare function tradingFeeAmountToJSON(tradingFeeAmount: TradingFeeAmount): string; export declare function tradingFeeAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TradingFeeType$inboundSchema: z.ZodType; /** @internal */ export declare const TradingFeeType$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 TradingFeeType$ { /** @deprecated use `TradingFeeType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TradingFeeType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const TradingFee$inboundSchema: z.ZodType; /** @internal */ export type TradingFee$Outbound = { amount?: TradingFeeAmount$Outbound | null | undefined; type?: string | undefined; }; /** @internal */ export declare const TradingFee$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 TradingFee$ { /** @deprecated use `TradingFee$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TradingFee$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TradingFee$Outbound` instead. */ type Outbound = TradingFee$Outbound; } export declare function tradingFeeToJSON(tradingFee: TradingFee): string; export declare function tradingFeeFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=tradingfee.d.ts.map