public class UpdatePaymentRequest extends CartModifyingRequest implements Serializable
Payment
on a the resolved Cart
.Constructor and Description |
---|
UpdatePaymentRequest() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
javax.money.MonetaryAmount |
getAdjustmentsTotal()
The payment's adjustments (a.k.a discounts) total, usually excluding shipping/fulfillment
discounts.
|
javax.money.MonetaryAmount |
getAmount()
The amount for which the payment is allotted.
|
Map<String,String> |
getAttributes()
Map to capture any additional information about the payment
|
com.broadleafcommerce.order.common.domain.Address |
getBillingAddress()
The billing address associated with this payment.
|
Map<String,String> |
getDisplayAttributes()
General use map to capture any display properties for this Payment
|
javax.money.MonetaryAmount |
getFulfillmentTotal()
The payment's total fulfillment cost
|
String |
getName()
The name of this payment.
|
String |
getPaymentId()
The ID of the payment to update.
|
javax.money.MonetaryAmount |
getSubtotal()
The payment's total usually excluding adjustments, tax, and shipping.
|
javax.money.MonetaryAmount |
getTaxTotal()
The payment's total tax cost
|
int |
hashCode() |
void |
setAdjustmentsTotal(javax.money.MonetaryAmount adjustmentsTotal)
The payment's adjustments (a.k.a discounts) total, usually excluding shipping/fulfillment
discounts.
|
void |
setAmount(javax.money.MonetaryAmount amount)
The amount for which the payment is allotted.
|
void |
setAttributes(Map<String,String> attributes)
Map to capture any additional information about the payment
|
void |
setBillingAddress(com.broadleafcommerce.order.common.domain.Address billingAddress)
The billing address associated with this payment.
|
void |
setDisplayAttributes(Map<String,String> displayAttributes)
General use map to capture any display properties for this Payment
|
void |
setFulfillmentTotal(javax.money.MonetaryAmount fulfillmentTotal)
The payment's total fulfillment cost
|
void |
setName(String name)
The name of this payment.
|
void |
setPaymentId(String paymentId)
The ID of the payment to update.
|
void |
setShouldSavePaymentToCustomer(boolean shouldSavePaymentToCustomer)
Should the payment method be saved to the customer
|
void |
setSubtotal(javax.money.MonetaryAmount subtotal)
The payment's total usually excluding adjustments, tax, and shipping.
|
void |
setTaxTotal(javax.money.MonetaryAmount taxTotal)
The payment's total tax cost
|
boolean |
shouldSavePaymentToCustomer()
Should the payment method be saved to the customer
|
String |
toString() |
getCartVersion, getVersion, setCartVersion, setVersion
public boolean shouldSavePaymentToCustomer()
public String getPaymentId()
public String getName()
public javax.money.MonetaryAmount getAmount()
public javax.money.MonetaryAmount getSubtotal()
public javax.money.MonetaryAmount getAdjustmentsTotal()
public javax.money.MonetaryAmount getFulfillmentTotal()
public javax.money.MonetaryAmount getTaxTotal()
public com.broadleafcommerce.order.common.domain.Address getBillingAddress()
public Map<String,String> getAttributes()
public Map<String,String> getDisplayAttributes()
public void setPaymentId(String paymentId)
paymentId
- the payment ID this update is forpublic void setName(String name)
name
- The name of this payment.public void setShouldSavePaymentToCustomer(boolean shouldSavePaymentToCustomer)
shouldSavePaymentToCustomer
- Should the payment method be saved to the customerpublic void setAmount(javax.money.MonetaryAmount amount)
amount
- The amount for which the payment is allotted.public void setSubtotal(javax.money.MonetaryAmount subtotal)
public void setAdjustmentsTotal(javax.money.MonetaryAmount adjustmentsTotal)
public void setFulfillmentTotal(javax.money.MonetaryAmount fulfillmentTotal)
public void setTaxTotal(javax.money.MonetaryAmount taxTotal)
public void setBillingAddress(com.broadleafcommerce.order.common.domain.Address billingAddress)
billingAddress
- The billing address associated with this payment.public void setAttributes(Map<String,String> attributes)
attributes
- Map to capture any additional information about the paymentpublic void setDisplayAttributes(Map<String,String> displayAttributes)
displayAttributes
- General use map to capture any display properties for this Paymentpublic boolean equals(Object o)
equals
in class CartModifyingRequest
protected boolean canEqual(Object other)
canEqual
in class CartModifyingRequest
public int hashCode()
hashCode
in class CartModifyingRequest
public String toString()
toString
in class CartModifyingRequest
Copyright © 2021. All rights reserved.