Class InvoicePartsDef.CommonInvoiceFields

    • Method Detail

      • getGroupID

        @Nullable
        public @Nullable java.lang.String getGroupID()
        Returns:
        A unique identifier for this group.
      • getInvoiceType

        @Nullable
        public @Nullable java.lang.String getInvoiceType()
        Returns:
        represents type of invoice, Caplin supported values are [Settlement, Premium], example=
      • 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()
        Specified by:
        getFields in interface Message
      • getFieldFlags

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> getFieldFlags()
        Specified by:
        getFieldFlags in interface BuilderMessage
        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 interface BuilderMessage
        Returns:
        Get the fields for all flags.
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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)