Class StoreCreditTransactionExecutionRequest
java.lang.Object
com.broadleafcommerce.payment.service.gateway.StoreCreditTransactionExecutionRequest
- All Implemented Interfaces:
Serializable
A request DTO used to execute a
CreditAccountTransaction
.- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The reason for this transaction.Description for the reason for this transaction.The id used to represent the request that produced this transaction.The name of the system that initiated the transaction - e.g.The ID of the source entity associated with the transaction.The type of the source entity associated with the transaction.The id of user who initiated the transaction.The type of user who initiated the transaction.javax.money.MonetaryAmount
The transaction amount for this transaction.The transaction id known by the payment gateway.int
hashCode()
void
The reason for this transaction.void
setReasonDescription
(String reasonDescription) Description for the reason for this transaction.void
setRequestId
(String requestId) The id used to represent the request that produced this transaction.void
The name of the system that initiated the transaction - e.g.void
setSourceEntityId
(String sourceEntityId) The ID of the source entity associated with the transaction.void
setSourceEntityType
(String sourceEntityType) The type of the source entity associated with the transaction.void
setSourceUserId
(String sourceUserId) The id of user who initiated the transaction.void
setSourceUserType
(String sourceUserType) The type of user who initiated the transaction.void
setTransactionAmount
(javax.money.MonetaryAmount transactionAmount) The transaction amount for this transaction.void
setTransactionReferenceId
(String transactionReferenceId) The transaction id known by the payment gateway.toString()
-
Constructor Details
-
StoreCreditTransactionExecutionRequest
public StoreCreditTransactionExecutionRequest()
-
-
Method Details
-
getTransactionAmount
public javax.money.MonetaryAmount getTransactionAmount()The transaction amount for this transaction.- Returns:
- The transaction amount for this transaction.
-
getTransactionReferenceId
The transaction id known by the payment gateway. This reference can be used to link the request to the gateway's record of the transaction in the case that the calling application does not receive a response from the gateway.- Returns:
- The transaction id known by the payment gateway
-
getRequestId
The id used to represent the request that produced this transaction.- Returns:
- The id used to represent the request that produced this transaction
-
getSource
The name of the system that initiated the transaction - e.g. CART_OPERATION_SERVICES vs ORDER_OPERATION_SERVICES.- Returns:
- The name of the system that initiated the transaction
-
getSourceUserType
The type of user who initiated the transaction. By default, it can be "BLC_CUSTOMER", "BLC_ACCOUNT" or "BLC_CSR".- Returns:
- The type of user who initiated the transaction
-
getSourceUserId
The id of user who initiated the transaction.- Returns:
- The id of user who initiated the transaction
-
getSourceEntityType
The type of the source entity associated with the transaction. For example, "CHECKOUT_REQUEST" or "ORDER_FULFILLMENT".- Returns:
- The type of the source entity associated with the transaction
-
getSourceEntityId
The ID of the source entity associated with the transaction.For example, if
getSourceEntityType()
isORDER_FULFILLMENT
, this would be the ID of theOrderFulfillment
.- Returns:
- The ID of the source entity associated with the transaction
- See Also:
-
getReason
The reason for this transaction.- Returns:
- The reason for this transaction
-
getReasonDescription
Description for the reason for this transaction.- Returns:
- Description for the reason for this transaction
-
setTransactionAmount
public void setTransactionAmount(javax.money.MonetaryAmount transactionAmount) The transaction amount for this transaction.- Parameters:
transactionAmount
- The transaction amount for this transaction
-
setTransactionReferenceId
The transaction id known by the payment gateway. This reference can be used to link the request to the gateway's record of the transaction in the case that the calling application does not receive a response from the gateway.- Parameters:
transactionReferenceId
- The transaction id known by the payment gateway
-
setRequestId
The id used to represent the request that produced this transaction.- Parameters:
requestId
- The id used to represent the request that produced this transaction
-
setSource
The name of the system that initiated the transaction - e.g. CART_OPERATION_SERVICES vs ORDER_OPERATION_SERVICES.- Parameters:
source
- The name of the system that initiated the transaction
-
setSourceUserType
The type of user who initiated the transaction. By default, it can be "BLC_CUSTOMER", "BLC_ACCOUNT" or "BLC_CSR".- Parameters:
sourceUserType
- The type of user who initiated the transaction
-
setSourceUserId
The id of user who initiated the transaction.- Parameters:
sourceUserId
- The id of user who initiated the transaction
-
setSourceEntityType
The type of the source entity associated with the transaction. For example, "CHECKOUT_REQUEST" or "ORDER_FULFILLMENT".- Parameters:
sourceEntityType
- The type of the source entity associated with the transaction
-
setSourceEntityId
The ID of the source entity associated with the transaction.For example, if
getSourceEntityType()
isORDER_FULFILLMENT
, this would be the ID of theOrderFulfillment
.- Parameters:
sourceEntityId
- The ID of the source entity associated with the transaction- See Also:
-
setReason
The reason for this transaction.- Parameters:
reason
- The reason for this transaction
-
setReasonDescription
Description for the reason for this transaction.- Parameters:
reasonDescription
- Description for the reason for this transaction
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-