Class InvoicePartsDef.CommonInvoiceFields
- java.lang.Object
-
- com.caplin.generated.motif.commodities.invoice.InvoicePartsDef.CommonInvoiceFields
-
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- InvoicePartsDef
public static final class InvoicePartsDef.CommonInvoiceFields extends java.lang.Object implements BuilderMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InvoicePartsDef.CommonInvoiceFields.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull InvoicePartsDef.CommonInvoiceFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields)
static @NotNull InvoicePartsDef.CommonInvoiceFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull java.lang.String fieldPrefix)
@Nullable java.lang.String
getCommodity()
@Nullable java.lang.String
getCurrency()
@Nullable java.lang.String
getEntityDescription()
@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
getGroupID()
@Nullable java.lang.String
getIssueDate()
@Nullable java.math.BigDecimal
getNetPaymentAmount()
@Nullable java.lang.String
getPaymentDate()
@Nullable java.lang.String
getTradingType()
static @NotNull InvoicePartsDef.CommonInvoiceFields.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
-
getGroupID
@Nullable public @Nullable java.lang.String getGroupID()
- Returns:
- A unique identifier for this group.
-
getEntityDescription
@Nullable public @Nullable java.lang.String getEntityDescription()
- Returns:
- The entity the trade is on behalf of.
-
getTradingType
@Nullable public @Nullable java.lang.String getTradingType()
- Returns:
- Caplin supported values are [FIXED_SWAP, BASIS_SWAP, EURO_PUT, EURO_CALL, EURO_COLLAR, EURO_3_WAY_COLLAR, EURO_CALL_SPREAD, ASIAN_CAP, ASIAN_FLOOR, ASIAN_COLLAR, ASIAN_3_WAY_COLLAR, ASIAN_CAP_SPREAD, ASIAN_FLOOR_SPREAD, SPREAD_PUT]. See the constants defined within com.caplin.motif.commodities.trading.CommoditiesTradingType for further details.
-
getCommodity
@Nullable public @Nullable java.lang.String getCommodity()
- Returns:
- The commodity of the trade.
-
getIssueDate
@Nullable public @Nullable java.lang.String getIssueDate()
- Returns:
- What date the invoice was issued on.
-
getPaymentDate
@Nullable public @Nullable java.lang.String getPaymentDate()
- Returns:
- The date by when the payment needs to be done.
-
getNetPaymentAmount
@Nullable public @Nullable java.math.BigDecimal getNetPaymentAmount()
- Returns:
- The net amount of all the payments in an invoice.
-
getCurrency
@Nullable public @Nullable java.lang.String getCurrency()
- Returns:
- The currency the transaction has been made in.
-
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 InvoicePartsDef.CommonInvoiceFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields)
-
from
@NotNull public static @NotNull InvoicePartsDef.CommonInvoiceFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull @NotNull java.lang.String fieldPrefix)
-
newBuilder
@NotNull public static @NotNull InvoicePartsDef.CommonInvoiceFields.Builder newBuilder()
-
-