Class CustomerPaymentWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.CustomerPaymentWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>,org.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class CustomerPaymentWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>, org.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
This is a JAXB wrapper to wrap CustomerPayment.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper>protected AddressWrapperprotected CustomerWrapperprotected Longprotected 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()voidsetAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields) voidsetBillingAddress(AddressWrapper billingAddress) voidsetCardName(String cardName) voidsetCardType(String cardType) voidsetCustomer(CustomerWrapper customer) voidsetExpirationDate(Date expirationDate) voidvoidsetIsDefault(Boolean isDefault) voidsetLastFour(String lastFour) voidsetPaymentGatewayType(String paymentGatewayType) voidsetPaymentToken(String paymentToken) voidsetPaymentType(String paymentType) org.broadleafcommerce.profile.core.domain.CustomerPaymentunwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) The CustomerPaymentWrapper is assumed to be generated only in the context of a Subscription post.voidwrapDetails(org.broadleafcommerce.profile.core.domain.CustomerPayment model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.profile.core.domain.CustomerPayment model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
paymentToken
-
isDefault
-
billingAddress
-
customer
-
additionalFields
-
-
Constructor Details
-
CustomerPaymentWrapper
public CustomerPaymentWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.profile.core.domain.CustomerPayment model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
-
unwrap
public org.broadleafcommerce.profile.core.domain.CustomerPayment unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context) The CustomerPaymentWrapper is assumed to be generated only in the context of a Subscription post. In this context, it is also assumed to contain id references to existing Customer and (billing) Address. No other fields from either customer or billingAddress are assumed, or necessary.- Specified by:
unwrapin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.profile.core.domain.CustomerPayment model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
-
getId
-
setId
-
getPaymentToken
-
setPaymentToken
-
getIsDefault
-
setIsDefault
-
getBillingAddress
-
setBillingAddress
-
getCustomer
-
setCustomer
-
getAdditionalFields
- Specified by:
getAdditionalFieldsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields
-
setAdditionalFields
public void setAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields) - Specified by:
setAdditionalFieldsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields
-
getExpirationDate
-
setExpirationDate
-
getCardName
-
setCardName
-
getLastFour
-
setLastFour
-
getCardType
-
setCardType
-
getPaymentGatewayType
-
setPaymentGatewayType
-
getPaymentType
-
setPaymentType
-