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 boolean
boolean
javax.money.MonetaryAmount
The 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.ContextState
A subset ofTracking
information to expose the context state for this object.javax.money.CurrencyUnit
The 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.int
hashCode()
void
setAmount
(javax.money.MonetaryAmount amount) The amount that has been captured or claimed by the fulfillment against the payment.void
setAttributes
(Map<String, Object> attributes) Additional attributes for this claim.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setCurrency
(javax.money.CurrencyUnit currency) The currency unit used for monetary amounts.void
The context ID of this claim.void
setOrderFulfillmentId
(String orderFulfillmentId) The context ID of the order fulfillment.void
setPaymentId
(String paymentId) The context ID of the payment that the claimed transaction belongs to.void
setRequestId
(String requestId) The id representing the request to claim/execute one or more transactions.void
Deprecated.In favor of using the TransactionSummary concept from PaymentTransactionServices, instead of recording captured amounts for fulfillments in theFulfillmentCaptureClaim
structure.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 theFulfillmentCaptureClaim
structure.Identifies whether theamount
is for a new capture or for a claim against a previous capture.- Returns:
- the type identifying whether the
amount
is 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:
getCurrency
in 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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information 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 theFulfillmentCaptureClaim
structure.Identifies whether theamount
is for a new capture or for a claim against a previous capture.- Parameters:
type
- the type identifying whether theamount
is 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:
setCurrency
in 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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
FulfillmentCaptureClaim
structure.