Package software.xdev.brevo.model
Class Cart
java.lang.Object
software.xdev.brevo.model.Cart
Specify the payment currency and amount.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCurrency code for the payment amount. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrency(Cart.CurrencyEnum currency) booleanCurrency code for the payment amount.Payment amount, in cents. e.g. if you want to request €12.00, then the amount in cents is 1200.inthashCode()voidsetCurrency(Cart.CurrencyEnum currency) voidsetSpecificAmount(Long specificAmount) specificAmount(Long specificAmount) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CURRENCY
- See Also:
-
JSON_PROPERTY_SPECIFIC_AMOUNT
- See Also:
-
-
Constructor Details
-
Cart
public Cart()
-
-
Method Details
-
currency
-
getCurrency
Currency code for the payment amount.- Returns:
- currency
-
setCurrency
-
specificAmount
-
getSpecificAmount
Payment amount, in cents. e.g. if you want to request €12.00, then the amount in cents is 1200.- Returns:
- specificAmount
-
setSpecificAmount
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-