Class OrderPaymentWrapper

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

public class OrderPaymentWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>
This is a JAXB wrapper around OrderPayment.

User: Elbert Bautista Date: 4/26/12

See Also:
  • Field Details

  • Constructor Details

    • OrderPaymentWrapper

      public OrderPaymentWrapper()
  • Method Details

    • wrapDetails

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

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

      public org.broadleafcommerce.core.payment.domain.OrderPayment 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.OrderPayment>
    • getId

      public Long getId()
      Returns:
      the id
    • setId

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

      public Long getOrderId()
      Returns:
      the orderId
    • setOrderId

      public void setOrderId(Long orderId)
      Parameters:
      orderId - the orderId to set
    • getType

      public String getType()
      Returns:
      the type
    • setType

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

      public AddressWrapper getBillingAddress()
      Returns:
      the billingAddress
    • setBillingAddress

      public void setBillingAddress(AddressWrapper billingAddress)
      Parameters:
      billingAddress - the billingAddress 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
    • getReferenceNumber

      public String getReferenceNumber()
      Returns:
      the referenceNumber
    • setReferenceNumber

      public void setReferenceNumber(String referenceNumber)
      Parameters:
      referenceNumber - the referenceNumber to set
    • getGatewayType

      public String getGatewayType()
      Returns:
      the gatewayType
    • setGatewayType

      public void setGatewayType(String gatewayType)
      Parameters:
      gatewayType - the gatewayType to set
    • isActive

      public boolean isActive()
      Returns:
      whether the payment is active
    • getTransactions

      public List<PaymentTransactionWrapper> getTransactions()
      Returns:
      the transactions
    • setTransactions

      public void setTransactions(List<PaymentTransactionWrapper> transactions)
      Parameters:
      transactions - the transactions to set