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>
Modifier and Type | Field and Description |
---|---|
protected BigDecimal |
amount |
protected AddressWrapper |
billingAddress |
protected Currency |
currency |
protected String |
gatewayType |
protected Long |
id |
protected boolean |
isActive |
protected Long |
orderId |
protected String |
referenceNumber |
protected List<PaymentTransactionWrapper> |
transactions |
protected String |
type |
Constructor and Description |
---|
OrderPaymentWrapper() |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getAmount() |
AddressWrapper |
getBillingAddress() |
Currency |
getCurrency() |
String |
getGatewayType() |
Long |
getId() |
Long |
getOrderId() |
String |
getReferenceNumber() |
List<PaymentTransactionWrapper> |
getTransactions() |
String |
getType() |
boolean |
isActive() |
void |
setAmount(BigDecimal amount) |
void |
setBillingAddress(AddressWrapper billingAddress) |
void |
setCurrency(Currency currency) |
void |
setGatewayType(String gatewayType) |
void |
setId(Long id) |
void |
setOrderId(Long orderId) |
void |
setReferenceNumber(String referenceNumber) |
void |
setTransactions(List<PaymentTransactionWrapper> transactions) |
void |
setType(String type) |
org.broadleafcommerce.core.payment.domain.OrderPayment |
unwrap(javax.servlet.http.HttpServletRequest request,
org.springframework.context.ApplicationContext context) |
void |
wrapDetails(org.broadleafcommerce.core.payment.domain.OrderPayment model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(org.broadleafcommerce.core.payment.domain.OrderPayment model,
javax.servlet.http.HttpServletRequest request) |
protected Long id
protected Long orderId
protected String type
protected AddressWrapper billingAddress
protected BigDecimal amount
protected Currency currency
protected String referenceNumber
protected String gatewayType
protected boolean isActive
protected List<PaymentTransactionWrapper> transactions
public void wrapDetails(org.broadleafcommerce.core.payment.domain.OrderPayment model, javax.servlet.http.HttpServletRequest request)
wrapDetails
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>
public void wrapSummary(org.broadleafcommerce.core.payment.domain.OrderPayment model, javax.servlet.http.HttpServletRequest request)
wrapSummary
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>
public org.broadleafcommerce.core.payment.domain.OrderPayment unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context)
unwrap
in interface org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.payment.domain.OrderPayment>
public Long getId()
public void setId(Long id)
id
- the id to setpublic Long getOrderId()
public void setOrderId(Long orderId)
orderId
- the orderId to setpublic String getType()
public void setType(String type)
type
- the type to setpublic AddressWrapper getBillingAddress()
public void setBillingAddress(AddressWrapper billingAddress)
billingAddress
- the billingAddress to setpublic BigDecimal getAmount()
public void setAmount(BigDecimal amount)
amount
- the amount to setpublic Currency getCurrency()
public void setCurrency(Currency currency)
currency
- the currency to setpublic String getReferenceNumber()
public void setReferenceNumber(String referenceNumber)
referenceNumber
- the referenceNumber to setpublic String getGatewayType()
public void setGatewayType(String gatewayType)
gatewayType
- the gatewayType to setpublic boolean isActive()
public List<PaymentTransactionWrapper> getTransactions()
public void setTransactions(List<PaymentTransactionWrapper> transactions)
transactions
- the transactions to setCopyright © 2020. All rights reserved.