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 { BondYield, BondYield$Outbound } from "./bondyield.js"; /** * The amount of interest that has been accrued in the issuing currency for a single instrument. Requirement of 15 or less integral number and 2 or less fractional precision. Required for FIXED_INCOME trades. Not allowed for trades of other instrument types. */ export type RebookExecutionResponseAccruedInterestAmount = { /** * 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; }; /** * Commission amount of the execution. Requirement of 11 or less integral number and 2 or less fractional precision. */ export type RebookExecutionResponseCommissionAmount = { /** * 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; }; /** * Gross amount is calculated by the Booking service by multiplying price and quantity and fixing it to 2 fractional precision. Requirement of 11 or less integral number and 2 or less fractional precision. Optionally specifiable. If present, will override the gross_amount calculated above. */ export type RebookExecutionResponseGrossAmount = { /** * 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 price for the instrument that is prevailing in the market. Requirement of 8 or less integral number and 8 or less fractional precision. Required for FIXED_INCOME trades when the broker_capacity is PRINCIPAL. */ export type RebookExecutionResponsePrevailingMarketPrice = { /** * 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; }; /** * Price with requirement of 8 or less integral number and 8 or less fractional precision. */ export type RebookExecutionResponsePrice = { /** * 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; }; /** * Total monetary value of the price_adjustment */ export type RebookExecutionResponsePriceAdjustmentAmount = { /** * 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 price adjustment being applied by the broker to the net price of the security. */ export declare enum RebookExecutionResponsePriceAdjustmentType { PriceAdjustmentTypeUnspecified = "PRICE_ADJUSTMENT_TYPE_UNSPECIFIED", Markup = "MARKUP", Markdown = "MARKDOWN", GrossCredit = "GROSS_CREDIT" } /** * The type of price adjustment being applied by the broker to the net price of the security. */ export type RebookExecutionResponsePriceAdjustmentTypeOpen = OpenEnum; /** * Price adjustment that will be applied to the net price of the security. */ export type RebookExecutionResponsePriceAdjustment = { /** * Total monetary value of the price_adjustment */ priceAdjustmentAmount?: RebookExecutionResponsePriceAdjustmentAmount | null | undefined; /** * The type of price adjustment being applied by the broker to the net price of the security. */ priceAdjustmentType?: RebookExecutionResponsePriceAdjustmentTypeOpen | undefined; }; /** * Quantity with requirement of 12 or less integral number and 5 or less fractional precision. */ export type RebookExecutionResponseQuantity = { /** * 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 state that the trade is in. */ export declare enum RebookExecutionResponseState { StateUnspecified = "STATE_UNSPECIFIED", Creating = "CREATING", Rebooking = "REBOOKING", Canceling = "CANCELING", Booked = "BOOKED", Rebooked = "REBOOKED", Canceled = "CANCELED", Failed = "FAILED" } /** * The state that the trade is in. */ export type RebookExecutionResponseStateOpen = OpenEnum; /** * The new execution that was rebooked. */ export type RebookExecutionResponseExecution = { /** * The amount of interest that has been accrued in the issuing currency for a single instrument. Requirement of 15 or less integral number and 2 or less fractional precision. Required for FIXED_INCOME trades. Not allowed for trades of other instrument types. */ accruedInterestAmount?: RebookExecutionResponseAccruedInterestAmount | null | undefined; /** * The id of the activity in the Ledger that represents this trade. */ activityId?: string | undefined; /** * The yield associated with an individual fill of a fixed income trade. Required for FIXED_INCOME trades. Not allowed for trades of other instrument types. */ bondYield?: Array | undefined; /** * Commission amount of the execution. Requirement of 11 or less integral number and 2 or less fractional precision. */ commissionAmount?: RebookExecutionResponseCommissionAmount | null | undefined; /** * A ULID that uniquely identifies the execution. */ executionId?: string | undefined; /** * Timestamp of when the execution took place. If settlement_date is not provided, this field will be converted into Eastern Time and used to calculate settlement_date. */ executionTime?: Date | null | undefined; /** * Used to generate execution_id, should be unique on the day for each source_application caller. */ externalId?: string | undefined; /** * Gross amount is calculated by the Booking service by multiplying price and quantity and fixing it to 2 fractional precision. Requirement of 11 or less integral number and 2 or less fractional precision. Optionally specifiable. If present, will override the gross_amount calculated above. */ grossAmount?: RebookExecutionResponseGrossAmount | null | undefined; /** * Caller provided but can be used for booking-service to note original trade details when booking into the error account or using the error asset. */ memo?: string | undefined; /** * The resource name of the execution. */ name?: string | undefined; /** * The price for the instrument that is prevailing in the market. Requirement of 8 or less integral number and 8 or less fractional precision. Required for FIXED_INCOME trades when the broker_capacity is PRINCIPAL. */ prevailingMarketPrice?: RebookExecutionResponsePrevailingMarketPrice | null | undefined; /** * Price with requirement of 8 or less integral number and 8 or less fractional precision. */ price?: RebookExecutionResponsePrice | null | undefined; /** * Price adjustment that will be applied to the net price of the security. */ priceAdjustment?: RebookExecutionResponsePriceAdjustment | null | undefined; /** * Quantity with requirement of 12 or less integral number and 5 or less fractional precision. */ quantity?: RebookExecutionResponseQuantity | null | undefined; /** * The state that the trade is in. */ state?: RebookExecutionResponseStateOpen | undefined; /** * Street-level execution id, unique by day per execution venue. */ streetExecutionId?: string | undefined; /** * The unique identifier of the trade this execution belongs to. */ tradeId?: string | undefined; }; /** * A response to the Rebook Execution method. */ export type RebookExecutionResponse = { /** * The new execution that was rebooked. */ execution?: RebookExecutionResponseExecution | null | undefined; }; /** @internal */ export declare const RebookExecutionResponseAccruedInterestAmount$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponseAccruedInterestAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponseAccruedInterestAmount$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 RebookExecutionResponseAccruedInterestAmount$ { /** @deprecated use `RebookExecutionResponseAccruedInterestAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseAccruedInterestAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseAccruedInterestAmount$Outbound` instead. */ type Outbound = RebookExecutionResponseAccruedInterestAmount$Outbound; } export declare function rebookExecutionResponseAccruedInterestAmountToJSON(rebookExecutionResponseAccruedInterestAmount: RebookExecutionResponseAccruedInterestAmount): string; export declare function rebookExecutionResponseAccruedInterestAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponseCommissionAmount$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponseCommissionAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponseCommissionAmount$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 RebookExecutionResponseCommissionAmount$ { /** @deprecated use `RebookExecutionResponseCommissionAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseCommissionAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseCommissionAmount$Outbound` instead. */ type Outbound = RebookExecutionResponseCommissionAmount$Outbound; } export declare function rebookExecutionResponseCommissionAmountToJSON(rebookExecutionResponseCommissionAmount: RebookExecutionResponseCommissionAmount): string; export declare function rebookExecutionResponseCommissionAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponseGrossAmount$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponseGrossAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponseGrossAmount$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 RebookExecutionResponseGrossAmount$ { /** @deprecated use `RebookExecutionResponseGrossAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseGrossAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseGrossAmount$Outbound` instead. */ type Outbound = RebookExecutionResponseGrossAmount$Outbound; } export declare function rebookExecutionResponseGrossAmountToJSON(rebookExecutionResponseGrossAmount: RebookExecutionResponseGrossAmount): string; export declare function rebookExecutionResponseGrossAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponsePrevailingMarketPrice$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponsePrevailingMarketPrice$Outbound = { value?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponsePrevailingMarketPrice$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 RebookExecutionResponsePrevailingMarketPrice$ { /** @deprecated use `RebookExecutionResponsePrevailingMarketPrice$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePrevailingMarketPrice$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePrevailingMarketPrice$Outbound` instead. */ type Outbound = RebookExecutionResponsePrevailingMarketPrice$Outbound; } export declare function rebookExecutionResponsePrevailingMarketPriceToJSON(rebookExecutionResponsePrevailingMarketPrice: RebookExecutionResponsePrevailingMarketPrice): string; export declare function rebookExecutionResponsePrevailingMarketPriceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponsePrice$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponsePrice$Outbound = { value?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponsePrice$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 RebookExecutionResponsePrice$ { /** @deprecated use `RebookExecutionResponsePrice$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePrice$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePrice$Outbound` instead. */ type Outbound = RebookExecutionResponsePrice$Outbound; } export declare function rebookExecutionResponsePriceToJSON(rebookExecutionResponsePrice: RebookExecutionResponsePrice): string; export declare function rebookExecutionResponsePriceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponsePriceAdjustmentAmount$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponsePriceAdjustmentAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponsePriceAdjustmentAmount$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 RebookExecutionResponsePriceAdjustmentAmount$ { /** @deprecated use `RebookExecutionResponsePriceAdjustmentAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePriceAdjustmentAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePriceAdjustmentAmount$Outbound` instead. */ type Outbound = RebookExecutionResponsePriceAdjustmentAmount$Outbound; } export declare function rebookExecutionResponsePriceAdjustmentAmountToJSON(rebookExecutionResponsePriceAdjustmentAmount: RebookExecutionResponsePriceAdjustmentAmount): string; export declare function rebookExecutionResponsePriceAdjustmentAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponsePriceAdjustmentType$inboundSchema: z.ZodType; /** @internal */ export declare const RebookExecutionResponsePriceAdjustmentType$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 RebookExecutionResponsePriceAdjustmentType$ { /** @deprecated use `RebookExecutionResponsePriceAdjustmentType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePriceAdjustmentType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const RebookExecutionResponsePriceAdjustment$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponsePriceAdjustment$Outbound = { price_adjustment_amount?: RebookExecutionResponsePriceAdjustmentAmount$Outbound | null | undefined; price_adjustment_type?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponsePriceAdjustment$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 RebookExecutionResponsePriceAdjustment$ { /** @deprecated use `RebookExecutionResponsePriceAdjustment$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePriceAdjustment$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponsePriceAdjustment$Outbound` instead. */ type Outbound = RebookExecutionResponsePriceAdjustment$Outbound; } export declare function rebookExecutionResponsePriceAdjustmentToJSON(rebookExecutionResponsePriceAdjustment: RebookExecutionResponsePriceAdjustment): string; export declare function rebookExecutionResponsePriceAdjustmentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponseQuantity$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponseQuantity$Outbound = { value?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponseQuantity$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 RebookExecutionResponseQuantity$ { /** @deprecated use `RebookExecutionResponseQuantity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseQuantity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseQuantity$Outbound` instead. */ type Outbound = RebookExecutionResponseQuantity$Outbound; } export declare function rebookExecutionResponseQuantityToJSON(rebookExecutionResponseQuantity: RebookExecutionResponseQuantity): string; export declare function rebookExecutionResponseQuantityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponseState$inboundSchema: z.ZodType; /** @internal */ export declare const RebookExecutionResponseState$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 RebookExecutionResponseState$ { /** @deprecated use `RebookExecutionResponseState$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseState$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const RebookExecutionResponseExecution$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponseExecution$Outbound = { accrued_interest_amount?: RebookExecutionResponseAccruedInterestAmount$Outbound | null | undefined; activity_id?: string | undefined; bond_yield?: Array | undefined; commission_amount?: RebookExecutionResponseCommissionAmount$Outbound | null | undefined; execution_id?: string | undefined; execution_time?: string | null | undefined; external_id?: string | undefined; gross_amount?: RebookExecutionResponseGrossAmount$Outbound | null | undefined; memo?: string | undefined; name?: string | undefined; prevailing_market_price?: RebookExecutionResponsePrevailingMarketPrice$Outbound | null | undefined; price?: RebookExecutionResponsePrice$Outbound | null | undefined; price_adjustment?: RebookExecutionResponsePriceAdjustment$Outbound | null | undefined; quantity?: RebookExecutionResponseQuantity$Outbound | null | undefined; state?: string | undefined; street_execution_id?: string | undefined; trade_id?: string | undefined; }; /** @internal */ export declare const RebookExecutionResponseExecution$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 RebookExecutionResponseExecution$ { /** @deprecated use `RebookExecutionResponseExecution$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseExecution$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponseExecution$Outbound` instead. */ type Outbound = RebookExecutionResponseExecution$Outbound; } export declare function rebookExecutionResponseExecutionToJSON(rebookExecutionResponseExecution: RebookExecutionResponseExecution): string; export declare function rebookExecutionResponseExecutionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RebookExecutionResponse$inboundSchema: z.ZodType; /** @internal */ export type RebookExecutionResponse$Outbound = { execution?: RebookExecutionResponseExecution$Outbound | null | undefined; }; /** @internal */ export declare const RebookExecutionResponse$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 RebookExecutionResponse$ { /** @deprecated use `RebookExecutionResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RebookExecutionResponse$Outbound` instead. */ type Outbound = RebookExecutionResponse$Outbound; } export declare function rebookExecutionResponseToJSON(rebookExecutionResponse: RebookExecutionResponse): string; export declare function rebookExecutionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=rebookexecutionresponse.d.ts.map