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>
Modifier and Type | Field and Description |
---|---|
protected List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> |
additionalFields |
protected AddressWrapper |
billingAddress |
protected CustomerWrapper |
customer |
protected Long |
id |
protected Boolean |
isDefault |
protected String |
paymentToken |
Constructor and Description |
---|
CustomerPaymentWrapper() |
Modifier and Type | Method and Description |
---|---|
List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> |
getAdditionalFields() |
AddressWrapper |
getBillingAddress() |
String |
getCardName() |
String |
getCardType() |
CustomerWrapper |
getCustomer() |
Date |
getExpirationDate() |
Long |
getId() |
Boolean |
getIsDefault() |
String |
getLastFour() |
String |
getPaymentGatewayType() |
String |
getPaymentToken() |
String |
getPaymentType() |
void |
setAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields) |
void |
setBillingAddress(AddressWrapper billingAddress) |
void |
setCardName(String cardName) |
void |
setCardType(String cardType) |
void |
setCustomer(CustomerWrapper customer) |
void |
setExpirationDate(Date expirationDate) |
void |
setId(Long id) |
void |
setIsDefault(Boolean isDefault) |
void |
setLastFour(String lastFour) |
void |
setPaymentGatewayType(String paymentGatewayType) |
void |
setPaymentToken(String paymentToken) |
void |
setPaymentType(String paymentType) |
org.broadleafcommerce.profile.core.domain.CustomerPayment |
unwrap(javax.servlet.http.HttpServletRequest request,
org.springframework.context.ApplicationContext context)
The CustomerPaymentWrapper is assumed to be generated only in the context of a Subscription post.
|
void |
wrapDetails(org.broadleafcommerce.profile.core.domain.CustomerPayment model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(org.broadleafcommerce.profile.core.domain.CustomerPayment model,
javax.servlet.http.HttpServletRequest request) |
protected Long id
protected String paymentToken
protected Boolean isDefault
protected AddressWrapper billingAddress
protected CustomerWrapper customer
protected List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields
public void wrapDetails(org.broadleafcommerce.profile.core.domain.CustomerPayment model, javax.servlet.http.HttpServletRequest request)
wrapDetails
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
public org.broadleafcommerce.profile.core.domain.CustomerPayment unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context)
unwrap
in interface org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
public void wrapSummary(org.broadleafcommerce.profile.core.domain.CustomerPayment model, javax.servlet.http.HttpServletRequest request)
wrapSummary
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
public Long getId()
public void setId(Long id)
public String getPaymentToken()
public void setPaymentToken(String paymentToken)
public Boolean getIsDefault()
public void setIsDefault(Boolean isDefault)
public AddressWrapper getBillingAddress()
public void setBillingAddress(AddressWrapper billingAddress)
public CustomerWrapper getCustomer()
public void setCustomer(CustomerWrapper customer)
public List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> getAdditionalFields()
getAdditionalFields
in interface org.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields
public void setAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields)
setAdditionalFields
in interface org.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields
public Date getExpirationDate()
public void setExpirationDate(Date expirationDate)
public String getCardName()
public void setCardName(String cardName)
public String getLastFour()
public void setLastFour(String lastFour)
public String getCardType()
public void setCardType(String cardType)
public String getPaymentGatewayType()
public void setPaymentGatewayType(String paymentGatewayType)
public String getPaymentType()
public void setPaymentType(String paymentType)
Copyright © 2020. All rights reserved.