Class PostTradePartsDef.PostTradeFields.Builder

    • Method Detail

      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setOriginalAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setOriginalAmount​(@NotNull
                                                                                    @NotNull java.math.BigDecimal originalAmount)
        Returns:
        The original principal amount for the trade in capital increase.
      • setOriginalAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setOriginalAmount​(@NotNull
                                                                                    @NotNull java.lang.String originalAmount)
        Returns:
        The original principal amount for the trade in capital increase.
      • setPrincipalAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setPrincipalAmount​(@NotNull
                                                                                     @NotNull java.math.BigDecimal principalAmount)
        Returns:
        Principal amount for the trade specified in the provided Currency.
      • setPrincipalAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setPrincipalAmount​(@NotNull
                                                                                     @NotNull java.lang.String principalAmount)
        Returns:
        Principal amount for the trade specified in the provided Currency.
      • setNumberOfDays

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setNumberOfDays​(@NotNull
                                                                                  @NotNull java.lang.String numberOfDays)
        Returns:
        The number of days between the start and maturity dates.
      • setInterestRate

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRate​(@NotNull
                                                                                  @NotNull java.math.BigDecimal interestRate)
        Returns:
        Interest rate on the given PrincipalAmount.
      • setInterestRate

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRate​(@NotNull
                                                                                  @NotNull java.lang.String interestRate)
        Returns:
        Interest rate on the given PrincipalAmount.
      • setInterestRateDPS

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRateDPS​(@NotNull
                                                                                     @NotNull java.math.BigDecimal interestRateDPS)
        Returns:
        The precision for a specified InterestRate.
      • setInterestRateDPS

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setInterestRateDPS​(@NotNull
                                                                                     @NotNull java.lang.String interestRateDPS)
        Returns:
        The precision for a specified InterestRate.
      • setTradingType

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setTradingType​(@NotNull
                                                                                 @NotNull java.lang.String tradingType)
        Returns:
        The type of the trade. Supported types are [LOAN, DEPOSIT, CALL-DEPOSIT, TERM-DEPOSIT, FLEXI-NOTICE-DEPOSIT, TREASURY-BILL or GOVERNMENT-BOND].
      • setIncreasedAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setIncreasedAmount​(@NotNull
                                                                                     @NotNull java.math.BigDecimal increasedAmount)
        Returns:
        The increased principal amount for the trade in capital increase.
      • setIncreasedAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setIncreasedAmount​(@NotNull
                                                                                     @NotNull java.lang.String increasedAmount)
        Returns:
        The increased principal amount for the trade in capital increase.
      • setRolledAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setRolledAmount​(@NotNull
                                                                                  @NotNull java.math.BigDecimal rolledAmount)
        Returns:
        The rolled principal amount for the trade in roll over.
      • setRolledAmount

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setRolledAmount​(@NotNull
                                                                                  @NotNull java.lang.String rolledAmount)
        Returns:
        The rolled principal amount for the trade in roll over.
      • setNoticePeriodDescription

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setNoticePeriodDescription​(@NotNull
                                                                                             @NotNull java.lang.String noticePeriodDescription)
        Parameters:
        noticePeriodDescription - e.g. 32 Days
        Returns:
        The notice period description for the trade, sent as the raw display value or a translation token.
      • setIsShariaTrade

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setIsShariaTrade​(boolean isShariaTrade)
        Parameters:
        isShariaTrade - e.g. true
        Returns:
        Indicates whether the trade is a Sharia trade
      • setIsShariaTrade

        @NotNull
        public @NotNull PostTradePartsDef.PostTradeFields.Builder setIsShariaTrade​(@NotNull
                                                                                   @NotNull java.lang.String isShariaTrade)
        Parameters:
        isShariaTrade - e.g. true
        Returns:
        Indicates whether the trade is a Sharia trade