Class InvoicePartsDef.CommonInvoiceFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.commodities.invoice.InvoicePartsDef.CommonInvoiceFields.Builder
-
- Enclosing class:
- InvoicePartsDef.CommonInvoiceFields
public static final class InvoicePartsDef.CommonInvoiceFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setGroupID
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setGroupID(@NotNull @NotNull java.lang.String groupID)
- Returns:
- A unique identifier for this group.
-
setInvoiceType
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setInvoiceType(@NotNull @NotNull java.lang.String invoiceType)
- Returns:
- represents type of invoice, Caplin supported values are [Settlement, Premium], example=
-
setEntityDescription
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setEntityDescription(@NotNull @NotNull java.lang.String entityDescription)
- Returns:
- The entity the trade is on behalf of.
-
setTradingType
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setTradingType(@NotNull @NotNull java.lang.String tradingType)
- 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.
-
setCommodity
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setCommodity(@NotNull @NotNull java.lang.String commodity)
- Returns:
- The commodity of the trade.
-
setIssueDate
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setIssueDate(@NotNull @NotNull java.lang.String issueDate)
- Returns:
- What date the invoice was issued on.
-
setPaymentDate
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setPaymentDate(@NotNull @NotNull java.lang.String paymentDate)
- Returns:
- The date by when the payment needs to be done.
-
setNetPaymentAmount
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setNetPaymentAmount(@NotNull @NotNull java.math.BigDecimal netPaymentAmount)
- Returns:
- The net amount of all the payments in an invoice.
-
setNetPaymentAmount
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setNetPaymentAmount(@NotNull @NotNull java.lang.String netPaymentAmount)
- Returns:
- The net amount of all the payments in an invoice.
-
setCurrency
@NotNull public @NotNull InvoicePartsDef.CommonInvoiceFields.Builder setCurrency(@NotNull @NotNull java.lang.String currency)
- Returns:
- The currency the transaction has been made in.
-
-