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 Details

    • id

      protected Long id
    • paymentToken

      protected String paymentToken
    • isDefault

      protected Boolean isDefault
    • billingAddress

      protected AddressWrapper billingAddress
    • customer

      protected CustomerWrapper customer
    • additionalFields

      protected List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> 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:
      wrapDetails in interface org.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:
      unwrap in interface org.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:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.CustomerPayment>
    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getPaymentToken

      public String getPaymentToken()
    • setPaymentToken

      public void setPaymentToken(String paymentToken)
    • getIsDefault

      public Boolean getIsDefault()
    • setIsDefault

      public void setIsDefault(Boolean isDefault)
    • getBillingAddress

      public AddressWrapper getBillingAddress()
    • setBillingAddress

      public void setBillingAddress(AddressWrapper billingAddress)
    • getCustomer

      public CustomerWrapper getCustomer()
    • setCustomer

      public void setCustomer(CustomerWrapper customer)
    • getAdditionalFields

      public List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> getAdditionalFields()
      Specified by:
      getAdditionalFields in interface org.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields
    • setAdditionalFields

      public void setAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields)
      Specified by:
      setAdditionalFields in interface org.broadleafcommerce.common.rest.api.wrapper.WrapperAdditionalFields
    • getExpirationDate

      public Date getExpirationDate()
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
    • getCardName

      public String getCardName()
    • setCardName

      public void setCardName(String cardName)
    • getLastFour

      public String getLastFour()
    • setLastFour

      public void setLastFour(String lastFour)
    • getCardType

      public String getCardType()
    • setCardType

      public void setCardType(String cardType)
    • getPaymentGatewayType

      public String getPaymentGatewayType()
    • setPaymentGatewayType

      public void setPaymentGatewayType(String paymentGatewayType)
    • getPaymentType

      public String getPaymentType()
    • setPaymentType

      public void setPaymentType(String paymentType)