Class ReferencedWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.ReferencedWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.secure.Referenced>,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.secure.Referenced>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class ReferencedWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.secure.Referenced>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.secure.Referenced>
This is a JAXB wrapper around Referenced.
This wrapper can either be an instance of:
CreditCardPayment
BankAccountPayment
GiftCardPayment
EmptyReferenced
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Integerprotected Integerprotected Longprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getPan()getPin()getType()voidsetAccountNumber(String accountNumber) voidsetCvvCode(String cvvCode) voidsetExpirationMonth(Integer expirationMonth) voidsetExpirationYear(Integer expirationYear) voidvoidvoidvoidsetReferenceNumber(String referenceNumber) voidsetRoutingNumber(String routingNumber) voidorg.broadleafcommerce.core.payment.domain.secure.Referencedunwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) voidwrapDetails(org.broadleafcommerce.core.payment.domain.secure.Referenced model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.payment.domain.secure.Referenced model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
referenceNumber
-
type
-
pan
-
cvvCode
-
expirationMonth
-
expirationYear
-
accountNumber
-
routingNumber
-
pin
-
-
Constructor Details
-
ReferencedWrapper
public ReferencedWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.payment.domain.secure.Referenced model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.secure.Referenced>
-
unwrap
public org.broadleafcommerce.core.payment.domain.secure.Referenced 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.secure.Referenced>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.payment.domain.secure.Referenced model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.secure.Referenced>
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getReferenceNumber
- Returns:
- the referenceNumber
-
setReferenceNumber
- Parameters:
referenceNumber- the referenceNumber to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getPan
- Returns:
- the pan
-
setPan
- Parameters:
pan- the pan to set
-
getCvvCode
- Returns:
- the cvvCode
-
setCvvCode
- Parameters:
cvvCode- the cvvCode to set
-
getExpirationMonth
- Returns:
- the expirationMonth
-
setExpirationMonth
- Parameters:
expirationMonth- the expirationMonth to set
-
getExpirationYear
- Returns:
- the expirationYear
-
setExpirationYear
- Parameters:
expirationYear- the expirationYear to set
-
getAccountNumber
- Returns:
- the accountNumber
-
setAccountNumber
- Parameters:
accountNumber- the accountNumber to set
-
getRoutingNumber
- Returns:
- the routingNumber
-
setRoutingNumber
- Parameters:
routingNumber- the routingNumber to set
-
getPin
- Returns:
- the pin
-
setPin
- Parameters:
pin- the pin to set
-