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"; /** * Identifies the distribution type for buy side orders (that is, when `side` value = `BUY`). - Orders will be rejected if the alternative investment asset does not allow the requested distribution type. - Not relevant for sell orders (that is, when `side` value = `SELL`). - Confirm the asset’s `cash_distribution_allowed` and `reinvestment_distribution_allowed` properties to know what it allows. */ export declare enum DistributionType { DistributionTypeUnspecified = "DISTRIBUTION_TYPE_UNSPECIFIED", Cash = "CASH", Reinvestment = "REINVESTMENT" } /** * Identifies the distribution type for buy side orders (that is, when `side` value = `BUY`). - Orders will be rejected if the alternative investment asset does not allow the requested distribution type. - Not relevant for sell orders (that is, when `side` value = `SELL`). - Confirm the asset’s `cash_distribution_allowed` and `reinvestment_distribution_allowed` properties to know what it allows. */ export type DistributionTypeOpen = OpenEnum; /** * Identifies which parameter value is used to identify the asset in the order. The value for that parameter is used in the `identifier` field. */ export declare enum AlternativeOrderCreateIdentifierType { IdentifierTypeUnspecified = "IDENTIFIER_TYPE_UNSPECIFIED", AssetId = "ASSET_ID" } /** * Identifies which parameter value is used to identify the asset in the order. The value for that parameter is used in the `identifier` field. */ export type AlternativeOrderCreateIdentifierTypeOpen = OpenEnum; /** * The side of the order. */ export declare enum AlternativeOrderCreateSide { SideUnspecified = "SIDE_UNSPECIFIED", Buy = "BUY", Sell = "SELL" } /** * The side of the order. */ export type AlternativeOrderCreateSideOpen = OpenEnum; /** * An order for an alternative investment. */ export type AlternativeOrderCreate = { /** * A client-supplied unique ID to enforce idempotency. Each ID must be unique within the account. * * @remarks * * If a create request includes a `client_order_id` that matches an existing order’s `client_order_id`, the service will respond with `ALREADY_EXISTS` and will not create a new order resource. */ clientOrderId: string; /** * The currency code of the order. Supports only "USD" and will default to "USD" if unspecified in the request. */ currencyCode?: string | undefined; /** * Identifies the distribution type for buy side orders (that is, when `side` value = `BUY`). - Orders will be rejected if the alternative investment asset does not allow the requested distribution type. - Not relevant for sell orders (that is, when `side` value = `SELL`). - Confirm the asset’s `cash_distribution_allowed` and `reinvestment_distribution_allowed` properties to know what it allows. */ distributionType?: DistributionTypeOpen | undefined; /** * Indicates whether this order is for a full redemption (as in, all shares redeemed). - Orders can specify only one of `full`, `notional_value`, or `quantity`. - Note that the issuer may allow only partial redemption. - Not relevant to subscription orders. */ full?: boolean | undefined; /** * The asset identifier value, dependent on enum value set for `identifier_type`. * * @remarks * * For example, if `identifier_type` = `ASSET_ID`, then the value for `identifier` is the `asset_id` value. */ identifier: string; /** * Identifies which parameter value is used to identify the asset in the order. The value for that parameter is used in the `identifier` field. */ identifierType: AlternativeOrderCreateIdentifierTypeOpen; /** * 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 */ notionalValue?: DecimalCreate | undefined; /** * 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 | undefined; /** * The side of the order. */ side: AlternativeOrderCreateSideOpen; }; /** @internal */ export declare const DistributionType$inboundSchema: z.ZodType; /** @internal */ export declare const DistributionType$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 DistributionType$ { /** @deprecated use `DistributionType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DistributionType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const AlternativeOrderCreateIdentifierType$inboundSchema: z.ZodType; /** @internal */ export declare const AlternativeOrderCreateIdentifierType$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 AlternativeOrderCreateIdentifierType$ { /** @deprecated use `AlternativeOrderCreateIdentifierType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AlternativeOrderCreateIdentifierType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const AlternativeOrderCreateSide$inboundSchema: z.ZodType; /** @internal */ export declare const AlternativeOrderCreateSide$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 AlternativeOrderCreateSide$ { /** @deprecated use `AlternativeOrderCreateSide$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AlternativeOrderCreateSide$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const AlternativeOrderCreate$inboundSchema: z.ZodType; /** @internal */ export type AlternativeOrderCreate$Outbound = { client_order_id: string; currency_code?: string | undefined; distribution_type?: string | undefined; full?: boolean | undefined; identifier: string; identifier_type: string; notional_value?: DecimalCreate$Outbound | undefined; quantity?: DecimalCreate$Outbound | undefined; side: string; }; /** @internal */ export declare const AlternativeOrderCreate$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 AlternativeOrderCreate$ { /** @deprecated use `AlternativeOrderCreate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AlternativeOrderCreate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AlternativeOrderCreate$Outbound` instead. */ type Outbound = AlternativeOrderCreate$Outbound; } export declare function alternativeOrderCreateToJSON(alternativeOrderCreate: AlternativeOrderCreate): string; export declare function alternativeOrderCreateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=alternativeordercreate.d.ts.map