Package bakery.logic.usermailobject
Class ShopUserMailLO
- java.lang.Object
-
- bakery.logic.usermailobject.UserMailLO
-
- bakery.logic.usermailobject.ShopUserMailLO
-
- All Implemented Interfaces:
bakery.logic.valueobject.OrderLogicObject,java.io.Serializable
- Direct Known Subclasses:
ShopUserMailDispatchLO,ShopUserMailInvoicingLO,ShopUserMailOrderLO,ShopUserMailResponseLO,ShopUserMailReturnAnnouncementLO,ShopUserMailReturnLO
public class ShopUserMailLO extends UserMailLO implements bakery.logic.valueobject.OrderLogicObject
ExtendedUserMailLOthat covers information about an order. It will be used for final e-mail creation than can be of several types business objects, e.g. order, dispatch, response and more.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShopUserMailLO()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddressLOgetBillingAddressLO()ShopUserMailChargeLOgetChargeByChargeTypeName(java.lang.String chargeTypeDefDOName)java.util.List<ShopUserMailChargeLO>getCharges()AddressLOgetCustomerAddressLO()Deprecated.As with the introduction of shipping buckets this property does not necessarily reflect the correct shipping address or rather not all of them, because it is set to the first order address.java.util.LocalegetLocale()java.lang.StringgetMerchantReference()java.sql.TimestampgetOrderEntryDate()java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>getOrderProperties()java.lang.StringgetOrderPropertyValue(java.lang.String group, java.lang.String key)java.lang.StringgetPaymentMethodName()java.math.BigDecimalgetPositionTotalGross()java.math.BigDecimalgetPositionTotalGrossDiscounted()java.math.BigDecimalgetPositionTotalGrossSubDiscounted()java.math.BigDecimalgetPositionTotalNet()java.math.BigDecimalgetPositionTotalNetDiscounted()java.math.BigDecimalgetPositionTotalNetSubDiscounted()java.math.BigDecimalgetPositionTotalTax()java.math.BigDecimalgetPositionTotalTaxDiscounted()java.math.BigDecimalgetPositionTotalTaxSubDiscounted()java.util.List<ShopUserMailPromotionLO>getPromotions()java.lang.StringgetPspReference()java.util.List<AddressLO>getShippingAddresses()java.lang.StringgetShopCustomerNo()java.lang.StringgetShopCustomerOrderId()java.lang.LonggetShopId()java.lang.StringgetShopName()java.lang.StringgetShopOrderId()java.util.List<ShopUserMailTaxLO>getTaxes()java.math.BigDecimalgetTotalGross()java.math.BigDecimalgetTotalNet()java.math.BigDecimalgetTotalTax()voidsetBillingAddressLO(AddressLO billingAddressLO)voidsetCharges(java.util.List<ShopUserMailChargeLO> charges)voidsetCustomerAddressLO(AddressLO customerAddressLO)Deprecated.As with the introduction of shipping buckets this property does not necessarily reflect the correct shipping address or rather not all of them, because it is set to the first order address.voidsetLocale(java.util.Locale locale)voidsetMerchantReference(java.lang.String merchantReference)voidsetOrderEntryDate(java.sql.Timestamp orderEntryDate)voidsetOrderProperties(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> orderProperties)voidsetPaymentMethodName(java.lang.String paymentMethodName)voidsetPositionTotalGross(java.math.BigDecimal positionTotalGross)voidsetPositionTotalGrossDiscounted(java.math.BigDecimal positionTotalGrossDiscounted)voidsetPositionTotalGrossSubDiscounted(java.math.BigDecimal positionTotalGrossSubDiscounted)voidsetPositionTotalNet(java.math.BigDecimal positionTotalNet)voidsetPositionTotalNetDiscounted(java.math.BigDecimal positionTotalNetDiscounted)voidsetPositionTotalNetSubDiscounted(java.math.BigDecimal positionTotalNetSubDiscounted)voidsetPositionTotalTax(java.math.BigDecimal positionTotalTax)voidsetPositionTotalTaxDiscounted(java.math.BigDecimal positionTotalTaxDiscounted)voidsetPositionTotalTaxSubDiscounted(java.math.BigDecimal positionTotalTaxSubDiscounted)voidsetPromotions(java.util.List<ShopUserMailPromotionLO> promotions)voidsetPspReference(java.lang.String pspReference)voidsetShopCustomerNo(java.lang.String shopCustomerNo)voidsetShopCustomerOrderId(java.lang.String shopCustomerOrderId)voidsetShopId(java.lang.Long shopId)voidsetShopName(java.lang.String shopName)voidsetShopOrderId(java.lang.String shopOrderId)voidsetTaxes(java.util.List<ShopUserMailTaxLO> taxes)voidsetTotalGross(java.math.BigDecimal totalGross)voidsetTotalNet(java.math.BigDecimal totalNet)voidsetTotalTax(java.math.BigDecimal totalTax)-
Methods inherited from class bakery.logic.usermailobject.UserMailLO
getCurrencySymbol, getDocumentAttachments, getLanguage, getOrderCurrencyCode, getReceiverMailAddress, getReceiverName, getSenderMailAddress, getSenderName, setCurrencySymbol, setDocumentAttachments, setLanguage, setOrderCurrencyCode, setReceiverMailAddress, setReceiverName, setSenderMailAddress, setSenderName
-
-
-
-
Method Detail
-
getShopId
public java.lang.Long getShopId()
- Specified by:
getShopIdin interfacebakery.logic.valueobject.OrderLogicObject
-
setShopId
public void setShopId(java.lang.Long shopId)
-
getShopOrderId
public java.lang.String getShopOrderId()
- Specified by:
getShopOrderIdin interfacebakery.logic.valueobject.OrderLogicObject
-
setShopOrderId
public void setShopOrderId(java.lang.String shopOrderId)
-
getOrderEntryDate
public java.sql.Timestamp getOrderEntryDate()
-
setOrderEntryDate
public void setOrderEntryDate(java.sql.Timestamp orderEntryDate)
-
getPositionTotalGross
public java.math.BigDecimal getPositionTotalGross()
- Returns:
- the position total gross amount without any promotions
-
getTotalGross
public java.math.BigDecimal getTotalGross()
- Returns:
- returns the order total gross amount including all promotions and charges
-
getPositionTotalNet
public java.math.BigDecimal getPositionTotalNet()
- Returns:
- the position total net amount without any promotions
-
getPositionTotalTax
public java.math.BigDecimal getPositionTotalTax()
- Returns:
- the position total tax amount without any promotions
-
getPositionTotalGrossDiscounted
public java.math.BigDecimal getPositionTotalGrossDiscounted()
- Returns:
- the position total gross amount including the position and order promotions
-
getPositionTotalNetDiscounted
public java.math.BigDecimal getPositionTotalNetDiscounted()
- Returns:
- the position total net amount including the position and order promotions
-
getPositionTotalTaxDiscounted
public java.math.BigDecimal getPositionTotalTaxDiscounted()
- Returns:
- the position total tax amount including the position and order promotions
-
getPositionTotalGrossSubDiscounted
public java.math.BigDecimal getPositionTotalGrossSubDiscounted()
- Returns:
- the position total gross amount including only the position promotions
-
getPositionTotalNetSubDiscounted
public java.math.BigDecimal getPositionTotalNetSubDiscounted()
- Returns:
- the position total net amount including only the position promotions
-
getPositionTotalTaxSubDiscounted
public java.math.BigDecimal getPositionTotalTaxSubDiscounted()
- Returns:
- the position total tax amount including only the position promotions
-
getTotalNet
public java.math.BigDecimal getTotalNet()
- Returns:
- the order total net amount including all promotions and charges
-
getTotalTax
public java.math.BigDecimal getTotalTax()
- Returns:
- the order total tax amount including all promotions and charges
-
getChargeByChargeTypeName
public ShopUserMailChargeLO getChargeByChargeTypeName(java.lang.String chargeTypeDefDOName)
- Parameters:
chargeTypeDefDOName- the named type of the charge- Returns:
- the related charge type object1
-
getOrderPropertyValue
public java.lang.String getOrderPropertyValue(java.lang.String group, java.lang.String key)
-
getShopName
public java.lang.String getShopName()
-
getShopCustomerOrderId
public java.lang.String getShopCustomerOrderId()
-
getShopCustomerNo
public java.lang.String getShopCustomerNo()
-
getCustomerAddressLO
@Deprecated(since="3.6") public AddressLO getCustomerAddressLO()
Deprecated.As with the introduction of shipping buckets this property does not necessarily reflect the correct shipping address or rather not all of them, because it is set to the first order address.Use
getShippingAddresses()orShopUserMailShippingBucketLO.getShippingAddress()instead.
-
getShippingAddresses
public java.util.List<AddressLO> getShippingAddresses()
-
getBillingAddressLO
public AddressLO getBillingAddressLO()
-
getPaymentMethodName
public java.lang.String getPaymentMethodName()
-
getLocale
public java.util.Locale getLocale()
-
getPspReference
public java.lang.String getPspReference()
-
getMerchantReference
public java.lang.String getMerchantReference()
-
getOrderProperties
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getOrderProperties()
-
getPromotions
public java.util.List<ShopUserMailPromotionLO> getPromotions()
-
getCharges
public java.util.List<ShopUserMailChargeLO> getCharges()
-
getTaxes
public java.util.List<ShopUserMailTaxLO> getTaxes()
-
setShopName
public void setShopName(java.lang.String shopName)
-
setShopCustomerOrderId
public void setShopCustomerOrderId(java.lang.String shopCustomerOrderId)
-
setShopCustomerNo
public void setShopCustomerNo(java.lang.String shopCustomerNo)
-
setCustomerAddressLO
@Deprecated(since="3.6") public void setCustomerAddressLO(AddressLO customerAddressLO)
Deprecated.As with the introduction of shipping buckets this property does not necessarily reflect the correct shipping address or rather not all of them, because it is set to the first order address.Use
getShippingAddresses()orShopUserMailShippingBucketLO.getShippingAddress()instead.
-
setBillingAddressLO
public void setBillingAddressLO(AddressLO billingAddressLO)
-
setPaymentMethodName
public void setPaymentMethodName(java.lang.String paymentMethodName)
-
setPositionTotalGross
public void setPositionTotalGross(java.math.BigDecimal positionTotalGross)
-
setPositionTotalNet
public void setPositionTotalNet(java.math.BigDecimal positionTotalNet)
-
setPositionTotalTax
public void setPositionTotalTax(java.math.BigDecimal positionTotalTax)
-
setPositionTotalGrossDiscounted
public void setPositionTotalGrossDiscounted(java.math.BigDecimal positionTotalGrossDiscounted)
-
setPositionTotalNetDiscounted
public void setPositionTotalNetDiscounted(java.math.BigDecimal positionTotalNetDiscounted)
-
setPositionTotalTaxDiscounted
public void setPositionTotalTaxDiscounted(java.math.BigDecimal positionTotalTaxDiscounted)
-
setPositionTotalGrossSubDiscounted
public void setPositionTotalGrossSubDiscounted(java.math.BigDecimal positionTotalGrossSubDiscounted)
-
setPositionTotalNetSubDiscounted
public void setPositionTotalNetSubDiscounted(java.math.BigDecimal positionTotalNetSubDiscounted)
-
setPositionTotalTaxSubDiscounted
public void setPositionTotalTaxSubDiscounted(java.math.BigDecimal positionTotalTaxSubDiscounted)
-
setTotalGross
public void setTotalGross(java.math.BigDecimal totalGross)
-
setTotalNet
public void setTotalNet(java.math.BigDecimal totalNet)
-
setTotalTax
public void setTotalTax(java.math.BigDecimal totalTax)
-
setLocale
public void setLocale(java.util.Locale locale)
-
setPspReference
public void setPspReference(java.lang.String pspReference)
-
setMerchantReference
public void setMerchantReference(java.lang.String merchantReference)
-
setOrderProperties
public void setOrderProperties(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> orderProperties)
-
setPromotions
public void setPromotions(java.util.List<ShopUserMailPromotionLO> promotions)
-
setCharges
public void setCharges(java.util.List<ShopUserMailChargeLO> charges)
-
setTaxes
public void setTaxes(java.util.List<ShopUserMailTaxLO> taxes)
-
-