Class PaymentTransactionWrapper

java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.PaymentTransactionWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class PaymentTransactionWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
Author:
Elbert Bautista (elbertbautista)
See Also:
  • Field Details

    • id

      protected Long id
    • orderPaymentId

      protected Long orderPaymentId
    • parentTransactionId

      protected Long parentTransactionId
    • type

      protected String type
    • customerIpAddress

      protected String customerIpAddress
    • rawResponse

      protected String rawResponse
    • success

      protected Boolean success
    • amount

      protected BigDecimal amount
    • currency

      protected Currency currency
    • additionalFields

      protected List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields
    • archived

      protected Character archived
  • Constructor Details

    • PaymentTransactionWrapper

      public PaymentTransactionWrapper()
  • Method Details

    • wrapDetails

      public void wrapDetails(org.broadleafcommerce.core.payment.domain.PaymentTransaction model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
    • wrapSummary

      public void wrapSummary(org.broadleafcommerce.core.payment.domain.PaymentTransaction model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
    • unwrap

      public org.broadleafcommerce.core.payment.domain.PaymentTransaction unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context)
      Specified by:
      unwrap in interface org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.PaymentTransaction>
    • getId

      public Long getId()
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • getOrderPaymentId

      public Long getOrderPaymentId()
      Returns:
      the orderPaymentId
    • setOrderPaymentId

      public void setOrderPaymentId(Long orderPaymentId)
      Parameters:
      orderPaymentId - the orderPaymentId to set
    • getParentTransactionId

      public Long getParentTransactionId()
      Returns:
      the parentTransactionId
    • setParentTransactionId

      public void setParentTransactionId(Long parentTransactionId)
      Parameters:
      parentTransactionId - the parentTransactionId to set
    • getType

      public String getType()
      Returns:
      the type
    • setType

      public void setType(String type)
      Parameters:
      type - the type to set
    • getCustomerIpAddress

      public String getCustomerIpAddress()
      Returns:
      the customerIpAddress
    • setCustomerIpAddress

      public void setCustomerIpAddress(String customerIpAddress)
      Parameters:
      customerIpAddress - the customerIpAddress to set
    • getRawResponse

      public String getRawResponse()
      Returns:
      the rawResponse
    • setRawResponse

      public void setRawResponse(String rawResponse)
      Parameters:
      rawResponse - the rawResponse to set
    • getSuccess

      public Boolean getSuccess()
      Returns:
      the success
    • setSuccess

      public void setSuccess(Boolean success)
      Parameters:
      success - the success to set
    • getAmount

      public BigDecimal getAmount()
      Returns:
      the amount
    • setAmount

      public void setAmount(BigDecimal amount)
      Parameters:
      amount - the amount to set
    • getCurrency

      public Currency getCurrency()
      Returns:
      the currency
    • setCurrency

      public void setCurrency(Currency currency)
      Parameters:
      currency - the currency to set
    • getAdditionalFields

      public List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> getAdditionalFields()
      Returns:
      the additionalFields
    • setAdditionalFields

      public void setAdditionalFields(List<org.broadleafcommerce.common.rest.api.wrapper.MapElementWrapper> additionalFields)
      Parameters:
      additionalFields - the additionalFields to set
    • getArchived

      public Character getArchived()
    • setArchived

      public void setArchived(Character archived)