Class Price


  • public class Price
    extends java.lang.Object
    Price is a composite object consisting of information on amount with respect to the given currency. The default currency will be USD.
    • Constructor Summary

      Constructors 
      Constructor Description
      Price​(java.math.BigDecimal amount, java.lang.String currency, java.lang.String type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Price build​(java.math.BigDecimal amount, java.lang.String currency, java.lang.String type)
      This api builds the Price model based on amount, currency and type.
      java.math.BigDecimal getAmount()
      This api returns the amount of the transaction associated with this OrderRequest.
      java.lang.String getCurrency()
      This api returns the currency of the transaction associated with this OrderRequest.
      java.lang.String getType()
      This api returns the type of the transaction associated with this OrderRequest.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Price

        public Price​(java.math.BigDecimal amount,
                     java.lang.String currency,
                     java.lang.String type)
    • Method Detail

      • build

        public Price build​(java.math.BigDecimal amount,
                           java.lang.String currency,
                           java.lang.String type)
        This api builds the Price model based on amount, currency and type.
        Returns:
        Price
      • getAmount

        public java.math.BigDecimal getAmount()
        This api returns the amount of the transaction associated with this OrderRequest.
        Returns:
        amount
      • getCurrency

        public java.lang.String getCurrency()
        This api returns the currency of the transaction associated with this OrderRequest.
        Returns:
        currency
      • getType

        public java.lang.String getType()
        This api returns the type of the transaction associated with this OrderRequest.
        Returns:
        currency
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object