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"; import { DecimalCreate, DecimalCreate$Outbound } from "./decimalcreate.js"; /** * Identifier type for the asset being moved */ export declare enum IdentifierType { IdentifierTypeUnspecified = "IDENTIFIER_TYPE_UNSPECIFIED", Cusip = "CUSIP", Symbol = "SYMBOL", AssetId = "ASSET_ID" } /** * Identifier type for the asset being moved */ export type IdentifierTypeOpen = OpenEnum; /** * The type of position journal */ export declare enum PositionJournalCreateType { TypeUnspecified = "TYPE_UNSPECIFIED", Reward = "REWARD" } /** * The type of position journal */ export type PositionJournalCreateTypeOpen = OpenEnum; /** * A position journal transfer. Securities are moved from a source account to a destination account */ export type PositionJournalCreate = { /** * The external identifier supplied by the API caller Each request must have a unique pairing of `client_transfer_id` and `source_account` */ clientTransferId: string; /** * Optional description information that will attach to the transaction */ description?: string | undefined; /** * The account that securities will be moved to */ destinationAccount: string; /** * 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 */ fairMarketValue?: DecimalCreate | undefined; /** * Identifier (of the type specified in `identifier_type`). All identifiers are assumed to represent "US" issued securities. Responses will supply the originally requested identifier. */ identifier: string; /** * Identifier type for the asset being moved */ identifierType: IdentifierTypeOpen; /** * 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 */ quantity: DecimalCreate; /** * The account that securities will be moved from */ sourceAccount: string; /** * The type of position journal */ type: PositionJournalCreateTypeOpen; }; /** @internal */ export declare const IdentifierType$inboundSchema: z.ZodType; /** @internal */ export declare const IdentifierType$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 IdentifierType$ { /** @deprecated use `IdentifierType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IdentifierType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const PositionJournalCreateType$inboundSchema: z.ZodType; /** @internal */ export declare const PositionJournalCreateType$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 PositionJournalCreateType$ { /** @deprecated use `PositionJournalCreateType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PositionJournalCreateType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const PositionJournalCreate$inboundSchema: z.ZodType; /** @internal */ export type PositionJournalCreate$Outbound = { client_transfer_id: string; description?: string | undefined; destination_account: string; fair_market_value?: DecimalCreate$Outbound | undefined; identifier: string; identifier_type: string; quantity: DecimalCreate$Outbound; source_account: string; type: string; }; /** @internal */ export declare const PositionJournalCreate$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 PositionJournalCreate$ { /** @deprecated use `PositionJournalCreate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PositionJournalCreate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PositionJournalCreate$Outbound` instead. */ type Outbound = PositionJournalCreate$Outbound; } export declare function positionJournalCreateToJSON(positionJournalCreate: PositionJournalCreate): string; export declare function positionJournalCreateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=positionjournalcreate.d.ts.map