Class ForexQuote


  • public class ForexQuote
    extends Object
    ForexQuote
    • Constructor Detail

      • ForexQuote

        public ForexQuote()
    • Method Detail

      • account

        public ForexQuote account​(String account)
        The account name.
        Parameters:
        account -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getAccount

        public String getAccount()
        The account name.
        Returns:
        account
      • setAccount

        public void setAccount​(String account)
        The account name.
        Parameters:
        account -
      • accountType

        public ForexQuote accountType​(String accountType)
        The account type.
        Parameters:
        accountType -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getAccountType

        public String getAccountType()
        The account type.
        Returns:
        accountType
      • setAccountType

        public void setAccountType​(String accountType)
        The account type.
        Parameters:
        accountType -
      • baseAmount

        public ForexQuote baseAmount​(Amount baseAmount)
        baseAmount
        Parameters:
        baseAmount -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getBaseAmount

        public Amount getBaseAmount()
        baseAmount
        Returns:
        baseAmount
      • setBaseAmount

        public void setBaseAmount​(Amount baseAmount)
        baseAmount
        Parameters:
        baseAmount -
      • basePoints

        public ForexQuote basePoints​(Integer basePoints)
        The base points.
        Parameters:
        basePoints -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getBasePoints

        public Integer getBasePoints()
        The base points.
        Returns:
        basePoints
      • setBasePoints

        public void setBasePoints​(Integer basePoints)
        The base points.
        Parameters:
        basePoints -
      • buy

        public ForexQuote buy​(Amount buy)
        buy
        Parameters:
        buy -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getBuy

        public Amount getBuy()
        buy
        Returns:
        buy
      • setBuy

        public void setBuy​(Amount buy)
        buy
        Parameters:
        buy -
      • interbank

        public ForexQuote interbank​(Amount interbank)
        interbank
        Parameters:
        interbank -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getInterbank

        public Amount getInterbank()
        interbank
        Returns:
        interbank
      • setInterbank

        public void setInterbank​(Amount interbank)
        interbank
        Parameters:
        interbank -
      • reference

        public ForexQuote reference​(String reference)
        The reference assigned to the forex quote request.
        Parameters:
        reference -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getReference

        public String getReference()
        The reference assigned to the forex quote request.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
        The reference assigned to the forex quote request.
        Parameters:
        reference -
      • sell

        public ForexQuote sell​(Amount sell)
        sell
        Parameters:
        sell -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getSell

        public Amount getSell()
        sell
        Returns:
        sell
      • setSell

        public void setSell​(Amount sell)
        sell
        Parameters:
        sell -
      • signature

        public ForexQuote signature​(String signature)
        The signature to validate the integrity.
        Parameters:
        signature -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getSignature

        public String getSignature()
        The signature to validate the integrity.
        Returns:
        signature
      • setSignature

        public void setSignature​(String signature)
        The signature to validate the integrity.
        Parameters:
        signature -
      • source

        public ForexQuote source​(String source)
        The source of the forex quote.
        Parameters:
        source -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getSource

        public String getSource()
        The source of the forex quote.
        Returns:
        source
      • setSource

        public void setSource​(String source)
        The source of the forex quote.
        Parameters:
        source -
      • type

        public ForexQuote type​(String type)
        The type of forex.
        Parameters:
        type -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getType

        public String getType()
        The type of forex.
        Returns:
        type
      • setType

        public void setType​(String type)
        The type of forex.
        Parameters:
        type -
      • validTill

        public ForexQuote validTill​(OffsetDateTime validTill)
        The date until which the forex quote is valid.
        Parameters:
        validTill -
        Returns:
        the current ForexQuote instance, allowing for method chaining
      • getValidTill

        public OffsetDateTime getValidTill()
        The date until which the forex quote is valid.
        Returns:
        validTill
      • setValidTill

        public void setValidTill​(OffsetDateTime validTill)
        The date until which the forex quote is valid.
        Parameters:
        validTill -
      • equals

        public boolean equals​(Object o)
        Return true if this ForexQuote object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static ForexQuote fromJson​(String jsonString)
                                   throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ForexQuote given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ForexQuote
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ForexQuote
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ForexQuote to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException