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()java.lang.StringgetCeo()Deprecated.java.util.List<java.lang.String>getCeoList()Deprecated.ShopUserMailChargeLOgetChargeByChargeTypeName(java.lang.String chargeTypeDefDOName)java.util.List<ShopUserMailChargeLO>getCharges()AddressLOgetCustomerAddressLO()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()AddressLOgetShopAddressLO()Deprecated.java.lang.StringgetShopCustomerNo()java.lang.StringgetShopCustomerOrderId()java.lang.LonggetShopId()java.lang.StringgetShopName()java.lang.StringgetShopOrderId()java.lang.StringgetShopURL()Deprecated.java.util.List<ShopUserMailTaxLO>getTaxes()java.math.BigDecimalgetTotalGross()java.math.BigDecimalgetTotalNet()java.math.BigDecimalgetTotalTax()voidsetBillingAddressLO(AddressLO billingAddressLO)voidsetCeo(java.lang.String ceo)Deprecated.voidsetCharges(java.util.List<ShopUserMailChargeLO> charges)voidsetCustomerAddressLO(AddressLO customerAddressLO)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>> properties)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)voidsetShopAddressLO(AddressLO shopAddressLO)Deprecated.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)voidsetShopURL(java.lang.String shopURL)Deprecated.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, getReceiverMailAddress, getReceiverName, getSenderMailAddress, getSenderName, setCurrencySymbol, setDocumentAttachments, setLanguage, setReceiverMailAddress, setReceiverName, setSenderMailAddress, setSenderName
-
-
-
-
Method Detail
-
getShopId
public java.lang.Long getShopId()
- Specified by:
getShopIdin interfacebakery.logic.valueobject.OrderLogicObject- See Also:
OrderLogicObject.getShopId()
-
setShopId
public void setShopId(java.lang.Long shopId)
- Parameters:
shopId- Id of the shop
-
getShopName
public java.lang.String getShopName()
- Returns:
- the name of the shop
-
setShopName
public void setShopName(java.lang.String shopName)
- Parameters:
shopName- the name of the shop
-
getShopURL
@Deprecated public java.lang.String getShopURL()
Deprecated.- Returns:
- url of the shop's homepage
-
setShopURL
@Deprecated public void setShopURL(java.lang.String shopURL)
Deprecated.- Parameters:
shopURL- url of the shop's homepage to set
-
getShopOrderId
public java.lang.String getShopOrderId()
- Specified by:
getShopOrderIdin interfacebakery.logic.valueobject.OrderLogicObject- See Also:
OrderLogicObject.getShopOrderId()
-
setShopOrderId
public void setShopOrderId(java.lang.String shopOrderId)
- Parameters:
shopOrderId- order Id as used by the shop
-
getShopCustomerOrderId
public java.lang.String getShopCustomerOrderId()
- Returns:
- the order Id as assigned from the customer in the shop
-
setShopCustomerOrderId
public void setShopCustomerOrderId(java.lang.String shopCustomerOrderId)
- Parameters:
shopCustomerOrderId- the order Id as assigned from the customer in the shop
-
getShopCustomerNo
public java.lang.String getShopCustomerNo()
- Returns:
- the customer Id as used by the shop
-
setShopCustomerNo
public void setShopCustomerNo(java.lang.String shopCustomerNo)
- Parameters:
shopCustomerNo- the customer Id as used by the shop to set
-
getCeo
@Deprecated public java.lang.String getCeo()
Deprecated.- Returns:
- the names of all CEO of the shop separated by comma
-
setCeo
@Deprecated public void setCeo(java.lang.String ceo)
Deprecated.- Parameters:
ceo- the names of all CEOs of the shop separated by comma to set
-
getCeoList
@Deprecated public java.util.List<java.lang.String> getCeoList()
Deprecated.- Returns:
- a list of all CEOs of the shop
-
getShopAddressLO
@Deprecated public AddressLO getShopAddressLO()
Deprecated.- Returns:
-
setShopAddressLO
@Deprecated public void setShopAddressLO(AddressLO shopAddressLO)
Deprecated.- Parameters:
shopAddressLO-
-
getCustomerAddressLO
public AddressLO getCustomerAddressLO()
- Returns:
-
setCustomerAddressLO
public void setCustomerAddressLO(AddressLO customerAddressLO)
- Parameters:
customerAddressLO-
-
getBillingAddressLO
public AddressLO getBillingAddressLO()
- Returns:
-
setBillingAddressLO
public void setBillingAddressLO(AddressLO billingAddressLO)
- Parameters:
billingAddressLO-
-
getOrderEntryDate
public java.sql.Timestamp getOrderEntryDate()
- Returns:
-
setOrderEntryDate
public void setOrderEntryDate(java.sql.Timestamp orderEntryDate)
- Parameters:
orderEntryDate-
-
getPaymentMethodName
public java.lang.String getPaymentMethodName()
- Returns:
-
setPaymentMethodName
public void setPaymentMethodName(java.lang.String paymentMethodName)
- Parameters:
paymentMethodName-
-
getPositionTotalGross
public java.math.BigDecimal getPositionTotalGross()
- Returns:
- the position total gross amount without any promotions
-
setPositionTotalGross
public void setPositionTotalGross(java.math.BigDecimal positionTotalGross)
- Parameters:
positionTotalGross- returns the position total gross amount without any promotions to set
-
getTotalGross
public java.math.BigDecimal getTotalGross()
- Returns:
- returns the order total gross amount including all promotions and charges
-
setTotalGross
public void setTotalGross(java.math.BigDecimal totalGross)
- Parameters:
totalGross- returns the order total gross amount including all promotions and charges to set
-
getLocale
public java.util.Locale getLocale()
- Returns:
-
setLocale
public void setLocale(java.util.Locale locale)
- Parameters:
locale-
-
getPspReference
public java.lang.String getPspReference()
- Returns:
- the reference of the payment service provider (PSP)
-
setPspReference
public void setPspReference(java.lang.String pspReference)
- Parameters:
pspReference- the reference of the payment service provider (PSP)
-
getMerchantReference
public java.lang.String getMerchantReference()
- Returns:
- the reference of the merchant
-
setMerchantReference
public void setMerchantReference(java.lang.String merchantReference)
- Parameters:
merchantReference- the reference of the merchant to set
-
getPositionTotalNet
public java.math.BigDecimal getPositionTotalNet()
- Returns:
- the position total net amount without any promotions
-
setPositionTotalNet
public void setPositionTotalNet(java.math.BigDecimal positionTotalNet)
- Parameters:
positionTotalNet- the position total net amount without any promotions to set
-
getPositionTotalTax
public java.math.BigDecimal getPositionTotalTax()
- Returns:
- the position total tax amount without any promotions
-
setPositionTotalTax
public void setPositionTotalTax(java.math.BigDecimal positionTotalTax)
- Parameters:
positionTotalTax- the position total tax amount without any promotions to set
-
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
-
setPositionTotalNetDiscounted
public void setPositionTotalNetDiscounted(java.math.BigDecimal positionTotalNetDiscounted)
- Parameters:
positionTotalNetDiscounted- the positionTotalNetDiscounted to set
-
getPositionTotalTaxDiscounted
public java.math.BigDecimal getPositionTotalTaxDiscounted()
- Returns:
- the position total tax amount including the position and order promotions
-
setPositionTotalTaxDiscounted
public void setPositionTotalTaxDiscounted(java.math.BigDecimal positionTotalTaxDiscounted)
- Parameters:
positionTotalTaxDiscounted- the positionTotalTaxDiscounted to set
-
getPositionTotalGrossSubDiscounted
public java.math.BigDecimal getPositionTotalGrossSubDiscounted()
- Returns:
- the position total gross amount including only the position promotions
-
setPositionTotalGrossSubDiscounted
public void setPositionTotalGrossSubDiscounted(java.math.BigDecimal positionTotalGrossSubDiscounted)
- Parameters:
positionTotalGrossSubDiscounted- the positionTotalGrossSubDiscounted to set
-
getPositionTotalNetSubDiscounted
public java.math.BigDecimal getPositionTotalNetSubDiscounted()
- Returns:
- the position total net amount including only the position promotions
-
setPositionTotalNetSubDiscounted
public void setPositionTotalNetSubDiscounted(java.math.BigDecimal positionTotalNetSubDiscounted)
- Parameters:
positionTotalNetSubDiscounted- the positionTotalNetSubDiscounted to set
-
getPositionTotalTaxSubDiscounted
public java.math.BigDecimal getPositionTotalTaxSubDiscounted()
- Returns:
- the position total tax amount including only the position promotions
-
setPositionTotalTaxSubDiscounted
public void setPositionTotalTaxSubDiscounted(java.math.BigDecimal positionTotalTaxSubDiscounted)
- Parameters:
positionTotalTaxSubDiscounted- the positionTotalTaxSubDiscounted to set
-
setPositionTotalGrossDiscounted
public void setPositionTotalGrossDiscounted(java.math.BigDecimal positionTotalGrossDiscounted)
- Parameters:
positionTotalGrossDiscounted- the positionTotalGrossDiscounted to set
-
getTotalNet
public java.math.BigDecimal getTotalNet()
- Returns:
- the order total net amount including all promotions and charges
-
setTotalNet
public void setTotalNet(java.math.BigDecimal totalNet)
- Parameters:
totalNet-
-
getTotalTax
public java.math.BigDecimal getTotalTax()
- Returns:
- the order total tax amount including all promotions and charges
-
setTotalTax
public void setTotalTax(java.math.BigDecimal totalTax)
- Parameters:
totalTax-
-
getOrderProperties
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getOrderProperties()
- Returns:
- a hashmap representing the order properties for a property group as key/value pairs
-
setOrderProperties
public void setOrderProperties(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> properties)
- Parameters:
properties- a hashmap representing the order properties for a property group as key/value pairs to set
-
getPromotions
public java.util.List<ShopUserMailPromotionLO> getPromotions()
- Returns:
- a list of related promotions
-
setPromotions
public void setPromotions(java.util.List<ShopUserMailPromotionLO> promotions)
- Parameters:
promotions- a list of related promotions to set
-
getCharges
public java.util.List<ShopUserMailChargeLO> getCharges()
- Returns:
- a list of related charges a list of related charges to set
-
setCharges
public void setCharges(java.util.List<ShopUserMailChargeLO> charges)
- Parameters:
charges- a list of related charges to set
-
getChargeByChargeTypeName
public ShopUserMailChargeLO getChargeByChargeTypeName(java.lang.String chargeTypeDefDOName)
- Parameters:
chargeTypeDefDOName- the named type of the charge- Returns:
- the related charge type object1
-
getTaxes
public java.util.List<ShopUserMailTaxLO> getTaxes()
- Returns:
- a list of related taxes
-
setTaxes
public void setTaxes(java.util.List<ShopUserMailTaxLO> taxes)
- Parameters:
taxes- a list of related taxes to set
-
getOrderPropertyValue
public java.lang.String getOrderPropertyValue(java.lang.String group, java.lang.String key)
-
-