Class OrderAuditTypesDef.OrderLegAuditAction.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.orders.OrderAuditTypesDef.OrderLegAuditAction.Builder
-
- Enclosing class:
- OrderAuditTypesDef.OrderLegAuditAction
public static final class OrderAuditTypesDef.OrderLegAuditAction.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setOrderID
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setOrderID(@NotNull @NotNull java.lang.String orderID)
- Returns:
- The id of the order.
-
setVersion
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setVersion(int version)
- Returns:
- The resulting version of this leg.
-
setVersion
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setVersion(@NotNull @NotNull java.lang.String version)
- Returns:
- The resulting version of this leg.
-
setActionDateTime
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setActionDateTime(@NotNull @NotNull java.time.Instant actionDateTime)
- Returns:
- actionDateTime
-
setActionDateTime
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setActionDateTime(@NotNull @NotNull java.lang.String actionDateTime)
- Returns:
- actionDateTime
-
setActionBy
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setActionBy(@NotNull @NotNull java.lang.String actionBy)
- Returns:
- Which user triggered the action to occur.
-
setOrderStatus
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setOrderStatus(@NotNull @NotNull java.lang.String orderStatus)
- Returns:
- Caplin supported statuses are [PENDING-ACCEPT, PENDING-ACTIVATION, ACTIVE, PARENT-ACTIVE, PENDING-DEACTIVATION, DEACTIVATED, EXPIRED, COMPLETED, REJECTED, PENDING-CANCEL, CANCELLED, CANCELLED-BY-PARTNER]
-
setActionCode
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setActionCode(int actionCode)
- Returns:
- Code for the action reason, to be translated by i18n. Constants are provided in the class ActionCode. Parameters for the translated message can be provided in the AuditParameter# fields. Custom codes should begin from 1000. If you don't want to provide a translation on the front end, you can send '9999' (or ActionCode.NON_TRANSLATABLE) and supply plain text in AuditParameter1.
-
setActionCode
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setActionCode(@NotNull @NotNull java.lang.String actionCode)
- Returns:
- Code for the action reason, to be translated by i18n. Constants are provided in the class ActionCode. Parameters for the translated message can be provided in the AuditParameter# fields. Custom codes should begin from 1000. If you don't want to provide a translation on the front end, you can send '9999' (or ActionCode.NON_TRANSLATABLE) and supply plain text in AuditParameter1.
-
setAuditParameter1
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setAuditParameter1(@NotNull @NotNull java.lang.String auditParameter1)
- Returns:
- Parameter to be placed into the translated action reason.
-
setAuditParameter2
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setAuditParameter2(@NotNull @NotNull java.lang.String auditParameter2)
- Returns:
- Parameter to be placed into the translated action reason.
-
setAuditParameter3
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setAuditParameter3(@NotNull @NotNull java.lang.String auditParameter3)
- Returns:
- Parameter to be placed into the translated action reason.
-
setAuditParameter4
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setAuditParameter4(@NotNull @NotNull java.lang.String auditParameter4)
- Returns:
- Parameter to be placed into the translated action reason.
-
setAuditParameter5
@NotNull public @NotNull OrderAuditTypesDef.OrderLegAuditAction.Builder setAuditParameter5(@NotNull @NotNull java.lang.String auditParameter5)
- Returns:
- Parameter to be placed into the translated action reason.
-
-