Class FulfillmentGroupFeeImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.FulfillmentGroupFeeImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<FulfillmentGroupFee>,org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable,FulfillmentGroupFee
@Entity
public class FulfillmentGroupFeeImpl
extends Object
implements FulfillmentGroupFee, org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected Booleanprotected FulfillmentGroupprotected Longprotected Stringprotected Stringprotected BigDecimal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.copy.CreateResponse<FulfillmentGroupFee>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleanorg.broadleafcommerce.common.money.MoneygetId()getName()getTaxes()Gets a list of TaxDetail objects, which are taxes that apply directly to this fee.org.broadleafcommerce.common.money.MoneyGets the total tax for this fee, which is the sum of all taxes for this fee.inthashCode()Returns whether or not this fee is taxable.voidsetAmount(org.broadleafcommerce.common.money.Money amount) voidsetFulfillmentGroup(FulfillmentGroup fulfillmentGroup) voidvoidvoidsetReportingCode(String reportingCode) voidsetTaxable(Boolean taxable) Sets whether or not this fee is taxablevoidSets the list of TaxDetail objects, which are taxes that apply directly to this fee.voidsetTotalTax(org.broadleafcommerce.common.money.Money totalTax) Sets the total tax for this fee, which is the sum of all taxes for this fee.
-
Field Details
-
id
-
fulfillmentGroup
-
amount
-
name
-
reportingCode
-
feeTaxable
-
taxes
-
totalTax
-
-
Constructor Details
-
FulfillmentGroupFeeImpl
public FulfillmentGroupFeeImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceFulfillmentGroupFee
-
setId
- Specified by:
setIdin interfaceFulfillmentGroupFee
-
getFulfillmentGroup
- Specified by:
getFulfillmentGroupin interfaceFulfillmentGroupFee
-
setFulfillmentGroup
- Specified by:
setFulfillmentGroupin interfaceFulfillmentGroupFee
-
getAmount
public org.broadleafcommerce.common.money.Money getAmount()- Specified by:
getAmountin interfaceFulfillmentGroupFee
-
setAmount
public void setAmount(org.broadleafcommerce.common.money.Money amount) - Specified by:
setAmountin interfaceFulfillmentGroupFee
-
getName
- Specified by:
getNamein interfaceFulfillmentGroupFee
-
setName
- Specified by:
setNamein interfaceFulfillmentGroupFee
-
getReportingCode
- Specified by:
getReportingCodein interfaceFulfillmentGroupFee
-
setReportingCode
- Specified by:
setReportingCodein interfaceFulfillmentGroupFee
-
isTaxable
Description copied from interface:FulfillmentGroupFeeReturns whether or not this fee is taxable. If this flag is not set, it returns true by default- Specified by:
isTaxablein interfaceFulfillmentGroupFee- Returns:
- the taxable flag. If null, returns true
-
setTaxable
Description copied from interface:FulfillmentGroupFeeSets whether or not this fee is taxable- Specified by:
setTaxablein interfaceFulfillmentGroupFee
-
getTaxes
Description copied from interface:FulfillmentGroupFeeGets a list of TaxDetail objects, which are taxes that apply directly to this fee.- Specified by:
getTaxesin interfaceFulfillmentGroupFee- Returns:
- a list of taxes that apply to this fee
-
setTaxes
Description copied from interface:FulfillmentGroupFeeSets the list of TaxDetail objects, which are taxes that apply directly to this fee.- Specified by:
setTaxesin interfaceFulfillmentGroupFee- Parameters:
taxes- the list of taxes on this fee
-
getTotalTax
public org.broadleafcommerce.common.money.Money getTotalTax()Description copied from interface:FulfillmentGroupFeeGets the total tax for this fee, which is the sum of all taxes for this fee. This total is calculated in the TotalActivity stage of the pricing workflow.- Specified by:
getTotalTaxin interfaceFulfillmentGroupFee- Returns:
- the total tax for this fee
-
setTotalTax
public void setTotalTax(org.broadleafcommerce.common.money.Money totalTax) Description copied from interface:FulfillmentGroupFeeSets the total tax for this fee, which is the sum of all taxes for this fee. This total should only be set during the TotalActivity stage of the pricing workflow.- Specified by:
setTotalTaxin interfaceFulfillmentGroupFee- Parameters:
totalTax- the total tax for this fee
-
getCurrencyCode
- Specified by:
getCurrencyCodein interfaceorg.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable
-
createOrRetrieveCopyInstance
public org.broadleafcommerce.common.copy.CreateResponse<FulfillmentGroupFee> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<FulfillmentGroupFee>- Throws:
CloneNotSupportedException
-
hashCode
public int hashCode() -
equals
-