Class DefaultTableFields
java.lang.Object
com.caplin.motif.commodities.invoices.DefaultTableFields
Static builder methods to build standard Tables
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCommoditiesInvoiceBreakdownHeaders(Table table, String invoiceType) Adds default commodities invoice breakdown headers to your table configurationstatic TableaddCommoditiesPremiumInvoiceBreakdownRow(@NotNull Table table, @NotNull String tradeId, LocalDate tradeDate, String invoiceTradeType, String referencePrice, String optionType, FormattedAmount strikePrice, FormattedAmount totalQuantity, String units, List<LocalDate> calculationPeriod, LocalDate premiumPaymentDate, FormattedAmount premium, FormattedAmount totalPremiumPaymentAmount) Adds a commodities premium invoice breakdown row to your table configurationstatic TableaddCommoditiesSettlementInvoiceBreakdownRow(@NotNull Table table, @NotNull String tradeId, LocalDate tradeDate, String invoiceTradeType, String referencePrice, String optionType, FormattedAmount fixedPrice, FormattedAmount floatingSettlePrice, FormattedAmount strikePrice, FormattedAmount settledQuantity, String units, List<LocalDate> calculationPeriod, LocalDate paymentDate, FormattedAmount paymentAmount) Adds a commodities settlement invoice breakdown row to your table configurationstatic TableCellcreateAmountCell(FormattedAmount amount) Creates an amount cell to add to your commodities invoice breakdown table rowstatic TablecreateCommoditiesInvoiceBreakdownTable(String invoiceType) Creates a commodities invoice breakdown table with no rowsstatic TableCellcreateDateCell(LocalDate date) static TableCellcreateDateCell(LocalDate date, Optional<String> dateFormatKey) Creates a date cell to add to your commodities invoice breakdown table rowstatic TableCellcreateDatePeriodCell(List<LocalDate> dateRange) static TableCellcreateDatePeriodCell(List<LocalDate> dateRange, Optional<String> dateFormatKey) Creates a date period cell to add to your commodities invoice breakdown table rowstatic TableCellcreateTextCell(String value) Creates a text cell to add to your commodities invoice breakdown table row
-
Method Details
-
createTextCell
Creates a text cell to add to your commodities invoice breakdown table row -
createAmountCell
Creates an amount cell to add to your commodities invoice breakdown table row -
createDateCell
Creates a date cell to add to your commodities invoice breakdown table row -
createDateCell
-
createDatePeriodCell
public static TableCell createDatePeriodCell(List<LocalDate> dateRange, Optional<String> dateFormatKey) Creates a date period cell to add to your commodities invoice breakdown table row -
createDatePeriodCell
-
createCommoditiesInvoiceBreakdownTable
Creates a commodities invoice breakdown table with no rows -
addCommoditiesInvoiceBreakdownHeaders
Adds default commodities invoice breakdown headers to your table configuration- Parameters:
table- The Table to add the headers to
-
addCommoditiesPremiumInvoiceBreakdownRow
public static Table addCommoditiesPremiumInvoiceBreakdownRow(@NotNull @NotNull Table table, @NotNull @NotNull String tradeId, LocalDate tradeDate, String invoiceTradeType, String referencePrice, String optionType, FormattedAmount strikePrice, FormattedAmount totalQuantity, String units, List<LocalDate> calculationPeriod, LocalDate premiumPaymentDate, FormattedAmount premium, FormattedAmount totalPremiumPaymentAmount) Adds a commodities premium invoice breakdown row to your table configuration- Parameters:
table- The Table to add the row to
-
addCommoditiesSettlementInvoiceBreakdownRow
public static Table addCommoditiesSettlementInvoiceBreakdownRow(@NotNull @NotNull Table table, @NotNull @NotNull String tradeId, LocalDate tradeDate, String invoiceTradeType, String referencePrice, String optionType, FormattedAmount fixedPrice, FormattedAmount floatingSettlePrice, FormattedAmount strikePrice, FormattedAmount settledQuantity, String units, List<LocalDate> calculationPeriod, LocalDate paymentDate, FormattedAmount paymentAmount) Adds a commodities settlement invoice breakdown row to your table configuration- Parameters:
table- The Table to add the row to
-