Class DefaultTableFields

java.lang.Object
com.caplin.motif.commodities.invoices.DefaultTableFields

public final class DefaultTableFields extends Object
Static builder methods to build standard Tables
  • Method Details

    • createTextCell

      public static TableCell createTextCell(String value)
      Creates a text cell to add to your commodities invoice breakdown table row
    • createAmountCell

      public static TableCell createAmountCell(FormattedAmount amount)
      Creates an amount cell to add to your commodities invoice breakdown table row
    • createDateCell

      public static TableCell createDateCell(LocalDate date, Optional<String> dateFormatKey)
      Creates a date cell to add to your commodities invoice breakdown table row
    • createDateCell

      public static TableCell createDateCell(LocalDate date)
    • 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

      public static TableCell createDatePeriodCell(List<LocalDate> dateRange)
    • createCommoditiesInvoiceBreakdownTable

      public static Table createCommoditiesInvoiceBreakdownTable(String invoiceType)
      Creates a commodities invoice breakdown table with no rows
    • addCommoditiesInvoiceBreakdownHeaders

      public static void addCommoditiesInvoiceBreakdownHeaders(Table table, String invoiceType)
      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