public class AddPaymentRequest extends CartModifyingRequest implements Serializable
Payment
to the resolved Cart
.Constructor and Description |
---|
AddPaymentRequest() |
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.
|
String |
getCustomerPaymentAccountId()
The id of the customer's saved payment account that was used to build this payment object.
|
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 |
getGatewayType()
The gateway used to process this payment.
|
String |
getName()
The name of this payment.
|
Map<String,String> |
getPaymentGatewayProperties()
Map to capture any gateway-specific information needed to perform gateway transactions
|
javax.money.MonetaryAmount |
getSubtotal()
The payment's total usually excluding adjustments, tax, and shipping.
|
javax.money.MonetaryAmount |
getTaxTotal()
The payment's total tax cost
|
String |
getType()
The type of this payment like Credit Card or Gift Card.
|
int |
hashCode() |
boolean |
isSingleUsePaymentMethod()
Whether or not the underlying payment method can only be used once.
|
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 |
setCustomerPaymentAccountId(String customerPaymentAccountId)
The id of the customer's saved payment account that was used to build this payment object.
|
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 |
setGatewayType(String gatewayType)
The gateway used to process this payment.
|
void |
setName(String name)
The name of this payment.
|
void |
setPaymentGatewayProperties(Map<String,String> paymentGatewayProperties)
Map to capture any gateway-specific information needed to perform gateway transactions
|
void |
setShouldSavePaymentToCustomer(boolean shouldSavePaymentToCustomer)
Should the payment method be saved to the customer
|
void |
setSingleUsePaymentMethod(boolean isSingleUsePaymentMethod)
Whether or not the underlying payment method can only be used once.
|
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
|
void |
setType(String type)
The type of this payment like Credit Card or Gift Card.
|
boolean |
shouldSavePaymentToCustomer()
Should the payment method be saved to the customer
|
String |
toString() |
getCartVersion, getVersion, setCartVersion, setVersion
public boolean shouldSavePaymentToCustomer()
public String getName()
public String getCustomerPaymentAccountId()
public boolean isSingleUsePaymentMethod()
public String getType()
DefaultPaymentTypes
public String getGatewayType()
PaymentGatewayType
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> getPaymentGatewayProperties()
public Map<String,String> getDisplayAttributes()
public Map<String,String> getAttributes()
public void setName(String name)
name
- The name of this payment.public void setCustomerPaymentAccountId(String customerPaymentAccountId)
customerPaymentAccountId
- The id of the customer's saved payment account.public void setSingleUsePaymentMethod(boolean isSingleUsePaymentMethod)
shouldSavePaymentToCustomer
- Whether or not the underlying payment method can only be
used oncepublic void setShouldSavePaymentToCustomer(boolean shouldSavePaymentToCustomer)
shouldSavePaymentToCustomer
- Should the payment method be saved to the customerpublic void setType(String type)
type
- The type of this payment like Credit Card or Gift Card.DefaultPaymentTypes
public void setGatewayType(String gatewayType)
gatewayType
- The gateway used to process this payment.PaymentGatewayType
public 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 setPaymentGatewayProperties(Map<String,String> paymentGatewayProperties)
paymentGatewayProperties
- Map to capture any gateway-specific information needed to
perform gateway transactionspublic void setDisplayAttributes(Map<String,String> displayAttributes)
displayAttributes
- General use map to capture any display properties for this Paymentpublic void setAttributes(Map<String,String> attributes)
attributes
- Map to capture any additional information about the 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.