Class FulfillmentCaptureClaim
java.lang.Object
com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,com.broadleafcommerce.money.CurrencyConsumer,Serializable,javax.money.CurrencySupplier
public class FulfillmentCaptureClaim
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable, javax.money.CurrencySupplier, com.broadleafcommerce.money.CurrencyConsumer
Domain used to represent an payment is captured for an
OrderFulfillment, or when a
previously-captured amount (typically from an AuthorizeAndCapture transaction executed during
checkout) is claimed for an OrderFulfillment.- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountThe amount that has been captured or claimed by the fulfillment against the payment.Additional attributes for this claim.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.javax.money.CurrencyUnitThe currency unit used for monetary amounts.getId()The context ID of this claim.The context ID of the order fulfillment.The context ID of the payment that the claimed transaction belongs to.The id representing the request to claim/execute one or more transactions.getType()Deprecated.inthashCode()voidsetAmount(javax.money.MonetaryAmount amount) The amount that has been captured or claimed by the fulfillment against the payment.voidsetAttributes(Map<String, Object> attributes) Additional attributes for this claim.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetCurrency(javax.money.CurrencyUnit currency) The currency unit used for monetary amounts.voidThe context ID of this claim.voidsetOrderFulfillmentId(String orderFulfillmentId) The context ID of the order fulfillment.voidsetPaymentId(String paymentId) The context ID of the payment that the claimed transaction belongs to.voidsetRequestId(String requestId) The id representing the request to claim/execute one or more transactions.voidDeprecated.In favor of using the TransactionSummary concept from PaymentTransactionServices, instead of recording captured amounts for fulfillments in theFulfillmentCaptureClaimstructure.toString()
-
Constructor Details
-
FulfillmentCaptureClaim
public FulfillmentCaptureClaim()
-
-
Method Details
-
getId
The context ID of this claim.- Returns:
- the context ID of this claim
-
getOrderFulfillmentId
The context ID of the order fulfillment.- Returns:
- the context ID of the order fulfillment
-
getPaymentId
The context ID of the payment that the claimed transaction belongs to.- Returns:
- the context ID of the payment that the claimed transaction belongs to
-
getRequestId
The id representing the request to claim/execute one or more transactions.- Returns:
- The id representing the request to claim/execute one or more transactions.
-
getType
Deprecated.In favor of using the TransactionSummary concept from PaymentTransactionServices, instead of recording captured amounts for fulfillments in theFulfillmentCaptureClaimstructure.Identifies whether theamountis for a new capture or for a claim against a previous capture.- Returns:
- the type identifying whether the
amountis for a new capture or for a claim against a previous capture. - See Also:
-
getAmount
public javax.money.MonetaryAmount getAmount()The amount that has been captured or claimed by the fulfillment against the payment.- Returns:
- the amount that has been captured or claimed by the fulfillment against the payment
-
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency unit used for monetary amounts.- Specified by:
getCurrencyin interfacejavax.money.CurrencySupplier- Returns:
- the currency unit used for monetary amounts
-
getAttributes
Additional attributes for this claim.- Returns:
- additional attributes for this claim.
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
The context ID of this claim.- Parameters:
id- the context ID of this claim
-
setOrderFulfillmentId
The context ID of the order fulfillment.- Parameters:
orderFulfillmentId- the context ID of the order fulfillment
-
setPaymentId
The context ID of the payment that the claimed transaction belongs to.- Parameters:
id- the context ID of the payment that the claimed transaction belongs to
-
setRequestId
The id representing the request to claim/execute one or more transactions.- Parameters:
requestId- The id representing the request to claim/execute one or more transactions.
-
setType
Deprecated.In favor of using the TransactionSummary concept from PaymentTransactionServices, instead of recording captured amounts for fulfillments in theFulfillmentCaptureClaimstructure.Identifies whether theamountis for a new capture or for a claim against a previous capture.- Parameters:
type- the type identifying whether theamountis for a new capture or for a claim against a previous capture.- See Also:
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount) The amount that has been captured or claimed by the fulfillment against the payment.- Parameters:
amount- the amount that has been captured or claimed by the fulfillment against the payment
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency unit used for monetary amounts.- Specified by:
setCurrencyin interfacecom.broadleafcommerce.money.CurrencyConsumer- Parameters:
currency- the currency unit used for monetary amounts
-
setAttributes
Additional attributes for this claim.- Parameters:
attributes- additional attributes for this claim.
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
FulfillmentCaptureClaimstructure.