Class OrderPaymentWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.OrderPaymentWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class OrderPaymentWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>
This is a JAXB wrapper around OrderPayment.
User: Elbert Bautista
Date: 4/26/12
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected AddressWrapperprotected Currencyprotected Stringprotected Longprotected booleanprotected Longprotected Stringprotected List<PaymentTransactionWrapper>protected StringFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getType()booleanisActive()voidsetAmount(BigDecimal amount) voidsetBillingAddress(AddressWrapper billingAddress) voidsetCurrency(Currency currency) voidsetGatewayType(String gatewayType) voidvoidsetOrderId(Long orderId) voidsetReferenceNumber(String referenceNumber) voidsetTransactions(List<PaymentTransactionWrapper> transactions) voidorg.broadleafcommerce.core.payment.domain.OrderPaymentunwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) voidwrapDetails(org.broadleafcommerce.core.payment.domain.OrderPayment model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.payment.domain.OrderPayment model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
orderId
-
type
-
billingAddress
-
amount
-
currency
-
referenceNumber
-
gatewayType
-
isActive
protected boolean isActive -
transactions
-
-
Constructor Details
-
OrderPaymentWrapper
public OrderPaymentWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.payment.domain.OrderPayment model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.payment.domain.OrderPayment model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>
-
unwrap
public org.broadleafcommerce.core.payment.domain.OrderPayment 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.OrderPayment>
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getOrderId
- Returns:
- the orderId
-
setOrderId
- Parameters:
orderId- the orderId to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getBillingAddress
- Returns:
- the billingAddress
-
setBillingAddress
- Parameters:
billingAddress- the billingAddress to set
-
getAmount
- Returns:
- the amount
-
setAmount
- Parameters:
amount- the amount to set
-
getCurrency
- Returns:
- the currency
-
setCurrency
- Parameters:
currency- the currency to set
-
getReferenceNumber
- Returns:
- the referenceNumber
-
setReferenceNumber
- Parameters:
referenceNumber- the referenceNumber to set
-
getGatewayType
- Returns:
- the gatewayType
-
setGatewayType
- Parameters:
gatewayType- the gatewayType to set
-
isActive
public boolean isActive()- Returns:
- whether the payment is active
-
getTransactions
- Returns:
- the transactions
-
setTransactions
- Parameters:
transactions- the transactions to set
-