Class Price
- java.lang.Object
-
- aero.panasonic.inflight.services.paymentclient.v1.model.Price
-
public class Price extends java.lang.ObjectPrice 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 Pricebuild(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.BigDecimalgetAmount()This api returns the amount of the transaction associated with this OrderRequest.java.lang.StringgetCurrency()This api returns the currency of the transaction associated with this OrderRequest.java.lang.StringgetType()This api returns the type of the transaction associated with this OrderRequest.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-