Class OrderDetailsPartsDef.CommonFields
- java.lang.Object
-
- com.caplin.generated.motif.fx.orders.OrderDetailsPartsDef.CommonFields
-
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- OrderDetailsPartsDef
public static final class OrderDetailsPartsDef.CommonFields extends java.lang.Object implements BuilderMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OrderDetailsPartsDef.CommonFields.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @NotNull OrderDetailsPartsDef.CommonFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields)
static @NotNull OrderDetailsPartsDef.CommonFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull java.lang.String fieldPrefix)
@Nullable java.lang.String
getAccount()
@Nullable java.lang.String
getActivationDate()
Deprecated.@Nullable java.time.Instant
getActivationDateTime()
@Nullable java.time.ZoneId
getActivationDisplayTimeZone()
@Nullable java.lang.String
getActivationLocation()
Deprecated.@Nullable java.lang.String
getActivationTime()
Deprecated.@Nullable java.lang.String
getActivationType()
@Nullable java.lang.String
getActivationUTCOffset()
Deprecated.@Nullable java.lang.String
getAlertType()
@Nullable java.lang.String
getAllowedActions()
@Nullable java.lang.String
getCurrencyPair()
@Nullable java.lang.String
getEntityDescription()
@Nullable java.lang.String
getExpirationDate()
Deprecated.@Nullable java.time.Instant
getExpirationDateTime()
@Nullable java.time.ZoneId
getExpirationDisplayTimeZone()
@Nullable java.lang.String
getExpirationLocation()
Deprecated.@Nullable java.lang.String
getExpirationTime()
Deprecated.@Nullable java.lang.String
getExpirationType()
@Nullable java.lang.String
getExpirationUTCOffset()
Deprecated.@NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
getFieldFlags()
@NotNull java.util.Map<java.lang.String,java.lang.String>
getFields()
@NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
getFlagFields()
@Nullable java.lang.String
getFullName()
@Nullable java.lang.Integer
getOrderCount()
Deprecated.@Nullable java.lang.String
getOrderID()
@Nullable java.lang.String
getStrategyType()
@Nullable java.time.Instant
getSubmittedDateTime()
@Nullable java.lang.String
getTemperature()
@Nullable java.lang.String
getTOBOUser()
@Nullable java.lang.String
getTraderUsername()
static @NotNull OrderDetailsPartsDef.CommonFields.Builder
newBuilder()
@NotNull java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.caplin.motif.datasource.BuilderMessage
getFieldFlags, getFlagFields
-
-
-
-
Method Detail
-
getCurrencyPair
@Nullable public @Nullable java.lang.String getCurrencyPair()
- Returns:
- The currency pair for the trade. For example, EURUSD
-
getAccount
@Nullable public @Nullable java.lang.String getAccount()
- Returns:
- The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
-
getAllowedActions
@Nullable public @Nullable java.lang.String getAllowedActions()
- Returns:
- Comma separated list of Caplin supported values [Edit, Deactivate, Cancel, Activate, InactiveEdit, InactiveDeactivate, InactiveCancel, InactiveActivate]
-
getActivationType
@Nullable public @Nullable java.lang.String getActivationType()
- Returns:
- How the order should be activated. Caplin supported statuses are [GFA, EXPLICIT]
-
getActivationDateTime
@Nullable public @Nullable java.time.Instant getActivationDateTime()
- Returns:
- The time and date the order will become active. This is in ISO-8601 format.
-
getActivationDisplayTimeZone
@Nullable public @Nullable java.time.ZoneId getActivationDisplayTimeZone()
- Returns:
- The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
-
getExpirationType
@Nullable public @Nullable java.lang.String getExpirationType()
- Returns:
- How the order should be deactivated. Caplin supported statuses are [IOC, GTC, GFD, FOK, EXPLICIT]
-
getExpirationDateTime
@Nullable public @Nullable java.time.Instant getExpirationDateTime()
- Returns:
- The time and date the order will be deactivated. This is in ISO-8601 format.
-
getExpirationDisplayTimeZone
@Nullable public @Nullable java.time.ZoneId getExpirationDisplayTimeZone()
- Returns:
- The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
-
getAlertType
@Nullable public @Nullable java.lang.String getAlertType()
- Returns:
- The type of alert that an order will send. Caplin supported statuses are [EMAIL, SMS].
-
getStrategyType
@Nullable public @Nullable java.lang.String getStrategyType()
- Returns:
- The strategy the order was submitted with. This field should not be used by the front end for structuring orders. Comma separated list of Caplin supported values are [SINGLE, IF-DONE-OCO, OCO, IF-DONE, IF-TIMEOUT, IF-DONE-LOOP, LOOP]. OTHER denotes a strategy type that is unsupported.
-
getTraderUsername
@Nullable public @Nullable java.lang.String getTraderUsername()
- Returns:
- The user who entered the trade. This may be on behalf of themselves, or on behalf of someone else. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be dealer1@novobank.co.za. If the user client@customer.co.za makes a trade on behalf of themselves it will be client@customer.co.za.
-
getTOBOUser
@Nullable public @Nullable java.lang.String getTOBOUser()
- Returns:
- The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
-
getFullName
@Nullable public @Nullable java.lang.String getFullName()
- Returns:
- The full name of the user the trade is on behalf of
-
getEntityDescription
@Nullable public @Nullable java.lang.String getEntityDescription()
- Returns:
- The description of a trade on behalf of entity.
-
getOrderCount
@Deprecated @Nullable public @Nullable java.lang.Integer getOrderCount()
Deprecated.- Returns:
- orderCount
-
getOrderID
@Nullable public @Nullable java.lang.String getOrderID()
- Returns:
- The id of the order.
-
getActivationDate
@Deprecated @Nullable public @Nullable java.lang.String getActivationDate()
Deprecated.- Returns:
- What date the strategy should be activated.
-
getActivationTime
@Deprecated @Nullable public @Nullable java.lang.String getActivationTime()
Deprecated.- Returns:
- What time the strategy should be activated if the ActivationDate was in the format of yyyymmdd.
-
getActivationLocation
@Deprecated @Nullable public @Nullable java.lang.String getActivationLocation()
Deprecated.- Returns:
- When location should be used to evaluate the time to activate if the ActivationDate was in the format of yyyymmdd.
-
getActivationUTCOffset
@Deprecated @Nullable public @Nullable java.lang.String getActivationUTCOffset()
Deprecated.- Returns:
- activationUTCOffset
-
getExpirationDate
@Deprecated @Nullable public @Nullable java.lang.String getExpirationDate()
Deprecated.- Returns:
- What date the strategy should expire.
-
getExpirationTime
@Deprecated @Nullable public @Nullable java.lang.String getExpirationTime()
Deprecated.- Returns:
- What time the strategy should be activated if the ExpirationDate was in the format of yyyymmdd.
-
getExpirationLocation
@Deprecated @Nullable public @Nullable java.lang.String getExpirationLocation()
Deprecated.- Returns:
- When location should be used to evaluate the time to expire if the ExpirationDate was in the format of yyyymmdd.
-
getExpirationUTCOffset
@Deprecated @Nullable public @Nullable java.lang.String getExpirationUTCOffset()
Deprecated.- Returns:
- expirationUTCOffset
-
getTemperature
@Nullable public @Nullable java.lang.String getTemperature()
- Returns:
- Shows how close an Order is to its trigger point at the leg level. Shows the maximum of the leg temperatures at the common level [1=cold,2=warm,3=hot,4=very hot,5=target rate reached].
-
getSubmittedDateTime
@Nullable public @Nullable java.time.Instant getSubmittedDateTime()
- Returns:
- The time and date a trade or order was submitted
-
getFields
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getFields()
-
getFieldFlags
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getFieldFlags()
- Specified by:
getFieldFlags
in interfaceBuilderMessage
- Returns:
- Get the flags for all fields.
-
getFlagFields
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getFlagFields()
- Specified by:
getFlagFields
in interfaceBuilderMessage
- Returns:
- Get the fields for all flags.
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
from
@NotNull public static @NotNull OrderDetailsPartsDef.CommonFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields)
-
from
@NotNull public static @NotNull OrderDetailsPartsDef.CommonFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull @NotNull java.lang.String fieldPrefix)
-
newBuilder
@NotNull public static @NotNull OrderDetailsPartsDef.CommonFields.Builder newBuilder()
-
-