Class TotalResponse
java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.TotalResponse
Total Response
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf type == total, sums subtotal - discount + fulfillment + tax + fee.Text to display against the amount.getType()Type of total categorization.inthashCode()voidsetAdditionalProperty(String name, Object value) voidIf type == total, sums subtotal - discount + fulfillment + tax + fee.voidsetDisplayText(String displayText) Text to display against the amount.voidsetType(TotalResponse.Type type) Type of total categorization.toString()withAdditionalProperty(String name, Object value) withAmount(Integer amount) withDisplayText(String displayText) withType(TotalResponse.Type type)
-
Constructor Details
-
TotalResponse
public TotalResponse()
-
-
Method Details
-
getType
Type of total categorization. (Required) -
setType
Type of total categorization. (Required) -
withType
-
getDisplayText
Text to display against the amount. Should reflect appropriate method (e.g., 'Shipping', 'Delivery'). -
setDisplayText
Text to display against the amount. Should reflect appropriate method (e.g., 'Shipping', 'Delivery'). -
withDisplayText
-
getAmount
If type == total, sums subtotal - discount + fulfillment + tax + fee. Should be >= 0. Amount in minor (cents) currency units. (Required) -
setAmount
If type == total, sums subtotal - discount + fulfillment + tax + fee. Should be >= 0. Amount in minor (cents) currency units. (Required) -
withAmount
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-