Class OrderDetailsPartsDef.CommonFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.orders.OrderDetailsPartsDef.CommonFields.Builder
-
- Enclosing class:
- OrderDetailsPartsDef.CommonFields
public static final class OrderDetailsPartsDef.CommonFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setCurrencyPair
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setCurrencyPair(@NotNull @NotNull java.lang.String currencyPair, boolean isEditable)
- Returns:
- The currency pair for the trade. For example, EURUSD
-
setCurrencyPair
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setCurrencyPair(@NotNull @NotNull java.lang.String currencyPair)
- Returns:
- The currency pair for the trade. For example, EURUSD
-
setCurrencyPairEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setCurrencyPairEditable()
-
setAccount
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAccount(@NotNull @NotNull java.lang.String account, boolean isEditable)
- Parameters:
account
- e.g. Garfields|GARF- Returns:
- The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
-
setAccount
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAccount(@NotNull @NotNull java.lang.String account)
- Parameters:
account
- e.g. Garfields|GARF- Returns:
- The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
-
setAccountEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAccountEditable()
-
setAllowedActions
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAllowedActions(@NotNull @NotNull java.lang.String allowedActions)
- Returns:
- Comma separated list of Caplin supported values [Edit, Deactivate, Cancel, Activate, InactiveEdit, InactiveDeactivate, InactiveCancel, InactiveActivate]
-
setActivationType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationType(@NotNull @NotNull java.lang.String activationType, boolean isEditable)
- Returns:
- How the order should be activated. Caplin supported statuses are [GFA, EXPLICIT]
-
setActivationType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationType(@NotNull @NotNull java.lang.String activationType)
- Returns:
- How the order should be activated. Caplin supported statuses are [GFA, EXPLICIT]
-
setActivationTypeEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationTypeEditable()
-
setActivationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime(@NotNull @NotNull java.time.Instant activationDateTime, boolean isEditable)
- Parameters:
activationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will become active. This is in ISO-8601 format.
-
setActivationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime(@NotNull @NotNull java.time.Instant activationDateTime)
- Parameters:
activationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will become active. This is in ISO-8601 format.
-
setActivationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime(@NotNull @NotNull java.lang.String activationDateTime, boolean isEditable)
- Parameters:
activationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will become active. This is in ISO-8601 format.
-
setActivationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime(@NotNull @NotNull java.lang.String activationDateTime)
- Parameters:
activationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will become active. This is in ISO-8601 format.
-
setActivationDateTimeEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTimeEditable()
-
setActivationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone(@NotNull @NotNull java.time.ZoneId activationDisplayTimeZone, boolean isEditable)
- Parameters:
activationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
-
setActivationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone(@NotNull @NotNull java.time.ZoneId activationDisplayTimeZone)
- Parameters:
activationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
-
setActivationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone(@NotNull @NotNull java.lang.String activationDisplayTimeZone, boolean isEditable)
- Parameters:
activationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
-
setActivationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone(@NotNull @NotNull java.lang.String activationDisplayTimeZone)
- Parameters:
activationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
-
setActivationDisplayTimeZoneEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZoneEditable()
-
setExpirationType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationType(@NotNull @NotNull java.lang.String expirationType, boolean isEditable)
- Returns:
- How the order should be deactivated. Caplin supported statuses are [IOC, GTC, GFD, FOK, EXPLICIT]
-
setExpirationType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationType(@NotNull @NotNull java.lang.String expirationType)
- Returns:
- How the order should be deactivated. Caplin supported statuses are [IOC, GTC, GFD, FOK, EXPLICIT]
-
setExpirationTypeEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationTypeEditable()
-
setExpirationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime(@NotNull @NotNull java.time.Instant expirationDateTime, boolean isEditable)
- Parameters:
expirationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will be deactivated. This is in ISO-8601 format.
-
setExpirationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime(@NotNull @NotNull java.time.Instant expirationDateTime)
- Parameters:
expirationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will be deactivated. This is in ISO-8601 format.
-
setExpirationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime(@NotNull @NotNull java.lang.String expirationDateTime, boolean isEditable)
- Parameters:
expirationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will be deactivated. This is in ISO-8601 format.
-
setExpirationDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime(@NotNull @NotNull java.lang.String expirationDateTime)
- Parameters:
expirationDateTime
- e.g. 2013-07-24T17:13:59.985- Returns:
- The time and date the order will be deactivated. This is in ISO-8601 format.
-
setExpirationDateTimeEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTimeEditable()
-
setExpirationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone(@NotNull @NotNull java.time.ZoneId expirationDisplayTimeZone, boolean isEditable)
- Parameters:
expirationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
-
setExpirationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone(@NotNull @NotNull java.time.ZoneId expirationDisplayTimeZone)
- Parameters:
expirationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
-
setExpirationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone(@NotNull @NotNull java.lang.String expirationDisplayTimeZone, boolean isEditable)
- Parameters:
expirationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
-
setExpirationDisplayTimeZone
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone(@NotNull @NotNull java.lang.String expirationDisplayTimeZone)
- Parameters:
expirationDisplayTimeZone
- e.g. Europe/London- Returns:
- The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
-
setExpirationDisplayTimeZoneEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZoneEditable()
-
setAlertType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAlertType(@NotNull @NotNull java.lang.String alertType, boolean isEditable)
- Returns:
- The type of alert that an order will send. Caplin supported statuses are [EMAIL, SMS].
-
setAlertType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAlertType(@NotNull @NotNull java.lang.String alertType)
- Returns:
- The type of alert that an order will send. Caplin supported statuses are [EMAIL, SMS].
-
setAlertTypeEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAlertTypeEditable()
-
setStrategyType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setStrategyType(@NotNull @NotNull java.lang.String strategyType, boolean isEditable)
- 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.
-
setStrategyType
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setStrategyType(@NotNull @NotNull java.lang.String strategyType)
- 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.
-
setStrategyTypeEditable
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setStrategyTypeEditable()
-
setTraderUsername
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setTraderUsername(@NotNull @NotNull java.lang.String traderUsername)
- Parameters:
traderUsername
- e.g. sales_trader@novobank.co.za- 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.
-
setTOBOUser
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setTOBOUser(@NotNull @NotNull java.lang.String tOBOUser)
- Parameters:
tOBOUser
- e.g. client@customer.co.za- 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.
-
setFullName
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setFullName(@NotNull @NotNull java.lang.String fullName)
- Returns:
- The full name of the user the trade is on behalf of
-
setEntityDescription
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setEntityDescription(@NotNull @NotNull java.lang.String entityDescription)
- Parameters:
entityDescription
- e.g. Customer 1- Returns:
- The description of a trade on behalf of entity.
-
setOrderCount
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setOrderCount(int orderCount)
Deprecated.- Returns:
- orderCount
-
setOrderCount
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setOrderCount(@NotNull @NotNull java.lang.String orderCount)
Deprecated.- Returns:
- orderCount
-
setOrderID
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setOrderID(@NotNull @NotNull java.lang.String orderID)
- Returns:
- The id of the order.
-
setActivationDate
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDate(@NotNull @NotNull java.lang.String activationDate, boolean isEditable)
Deprecated.- Returns:
- What date the strategy should be activated.
-
setActivationDate
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDate(@NotNull @NotNull java.lang.String activationDate)
Deprecated.- Returns:
- What date the strategy should be activated.
-
setActivationDateEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateEditable()
Deprecated.
-
setActivationTime
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationTime(@NotNull @NotNull java.lang.String activationTime, boolean isEditable)
Deprecated.- Returns:
- What time the strategy should be activated if the ActivationDate was in the format of yyyymmdd.
-
setActivationTime
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationTime(@NotNull @NotNull java.lang.String activationTime)
Deprecated.- Returns:
- What time the strategy should be activated if the ActivationDate was in the format of yyyymmdd.
-
setActivationTimeEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationTimeEditable()
Deprecated.
-
setActivationLocation
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationLocation(@NotNull @NotNull java.lang.String activationLocation, boolean isEditable)
Deprecated.- Parameters:
activationLocation
- e.g. Europe/London- Returns:
- When location should be used to evaluate the time to activate if the ActivationDate was in the format of yyyymmdd.
-
setActivationLocation
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationLocation(@NotNull @NotNull java.lang.String activationLocation)
Deprecated.- Parameters:
activationLocation
- e.g. Europe/London- Returns:
- When location should be used to evaluate the time to activate if the ActivationDate was in the format of yyyymmdd.
-
setActivationLocationEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationLocationEditable()
Deprecated.
-
setActivationUTCOffset
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationUTCOffset(@NotNull @NotNull java.lang.String activationUTCOffset, boolean isEditable)
Deprecated.- Returns:
- activationUTCOffset
-
setActivationUTCOffset
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationUTCOffset(@NotNull @NotNull java.lang.String activationUTCOffset)
Deprecated.- Returns:
- activationUTCOffset
-
setActivationUTCOffsetEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationUTCOffsetEditable()
Deprecated.
-
setExpirationDate
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDate(@NotNull @NotNull java.lang.String expirationDate, boolean isEditable)
Deprecated.- Returns:
- What date the strategy should expire.
-
setExpirationDate
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDate(@NotNull @NotNull java.lang.String expirationDate)
Deprecated.- Returns:
- What date the strategy should expire.
-
setExpirationDateEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateEditable()
Deprecated.
-
setExpirationTime
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationTime(@NotNull @NotNull java.lang.String expirationTime, boolean isEditable)
Deprecated.- Returns:
- What time the strategy should be activated if the ExpirationDate was in the format of yyyymmdd.
-
setExpirationTime
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationTime(@NotNull @NotNull java.lang.String expirationTime)
Deprecated.- Returns:
- What time the strategy should be activated if the ExpirationDate was in the format of yyyymmdd.
-
setExpirationTimeEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationTimeEditable()
Deprecated.
-
setExpirationLocation
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationLocation(@NotNull @NotNull java.lang.String expirationLocation, boolean isEditable)
Deprecated.- Returns:
- When location should be used to evaluate the time to expire if the ExpirationDate was in the format of yyyymmdd.
-
setExpirationLocation
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationLocation(@NotNull @NotNull java.lang.String expirationLocation)
Deprecated.- Returns:
- When location should be used to evaluate the time to expire if the ExpirationDate was in the format of yyyymmdd.
-
setExpirationLocationEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationLocationEditable()
Deprecated.
-
setExpirationUTCOffset
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationUTCOffset(@NotNull @NotNull java.lang.String expirationUTCOffset, boolean isEditable)
Deprecated.- Returns:
- expirationUTCOffset
-
setExpirationUTCOffset
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationUTCOffset(@NotNull @NotNull java.lang.String expirationUTCOffset)
Deprecated.- Returns:
- expirationUTCOffset
-
setExpirationUTCOffsetEditable
@Deprecated @NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationUTCOffsetEditable()
Deprecated.
-
setTemperature
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setTemperature(@NotNull @NotNull java.lang.String temperature)
- Parameters:
temperature
- e.g. 2- 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].
-
setSubmittedDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setSubmittedDateTime(@NotNull @NotNull java.time.Instant submittedDateTime)
- Parameters:
submittedDateTime
- e.g. 2023-04-19T11:09:45.00Z- Returns:
- The time and date a trade or order was submitted
-
setSubmittedDateTime
@NotNull public @NotNull OrderDetailsPartsDef.CommonFields.Builder setSubmittedDateTime(@NotNull @NotNull java.lang.String submittedDateTime)
- Parameters:
submittedDateTime
- e.g. 2023-04-19T11:09:45.00Z- Returns:
- The time and date a trade or order was submitted
-
-