Class PaymentTransactionWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.PaymentTransactionWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class PaymentTransactionWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
- Author:
- Elbert Bautista (elbertbautista)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper>protected BigDecimalprotected Characterprotected Currencyprotected Stringprotected Longprotected Longprotected Longprotected Stringprotected Booleanprotected StringFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper>getId()getType()voidsetAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields) voidsetAmount(BigDecimal amount) voidsetArchived(Character archived) voidsetCurrency(Currency currency) voidsetCustomerIpAddress(String customerIpAddress) voidvoidsetOrderPaymentId(Long orderPaymentId) voidsetParentTransactionId(Long parentTransactionId) voidsetRawResponse(String rawResponse) voidsetSuccess(Boolean success) voidorg.broadleafcommerce.core.payment.domain.PaymentTransactionunwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) voidwrapDetails(org.broadleafcommerce.core.payment.domain.PaymentTransaction model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.payment.domain.PaymentTransaction model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
orderPaymentId
-
parentTransactionId
-
type
-
customerIpAddress
-
rawResponse
-
success
-
amount
-
currency
-
additionalFields
-
archived
-
-
Constructor Details
-
PaymentTransactionWrapper
public PaymentTransactionWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.payment.domain.PaymentTransaction model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.payment.domain.PaymentTransaction model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
-
unwrap
public org.broadleafcommerce.core.payment.domain.PaymentTransaction unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) - Specified by:
unwrapin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getOrderPaymentId
- Returns:
- the orderPaymentId
-
setOrderPaymentId
- Parameters:
orderPaymentId- the orderPaymentId to set
-
getParentTransactionId
- Returns:
- the parentTransactionId
-
setParentTransactionId
- Parameters:
parentTransactionId- the parentTransactionId to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getCustomerIpAddress
- Returns:
- the customerIpAddress
-
setCustomerIpAddress
- Parameters:
customerIpAddress- the customerIpAddress to set
-
getRawResponse
- Returns:
- the rawResponse
-
setRawResponse
- Parameters:
rawResponse- the rawResponse to set
-
getSuccess
- Returns:
- the success
-
setSuccess
- Parameters:
success- the success to set
-
getAmount
- Returns:
- the amount
-
setAmount
- Parameters:
amount- the amount to set
-
getCurrency
- Returns:
- the currency
-
setCurrency
- Parameters:
currency- the currency to set
-
getAdditionalFields
- Returns:
- the additionalFields
-
setAdditionalFields
public void setAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields) - Parameters:
additionalFields- the additionalFields to set
-
getArchived
-
setArchived
-