Class FulfillmentGroupFeeImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.FulfillmentGroupFeeImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<FulfillmentGroupFee>,CurrencyCodeIdentifiable,FulfillmentGroupFee
@Entity
public class FulfillmentGroupFeeImpl
extends Object
implements FulfillmentGroupFee, CurrencyCodeIdentifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected Booleanprotected FulfillmentGroupprotected Longprotected Stringprotected Stringprotected BigDecimal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getName()getTaxes()Gets a list of TaxDetail objects, which are taxes that apply directly to this fee.Gets 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.voidvoidsetFulfillmentGroup(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(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
- Specified by:
getAmountin interfaceFulfillmentGroupFee
-
setAmount
- 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
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
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 interfaceCurrencyCodeIdentifiable
-
createOrRetrieveCopyInstance
public CreateResponse<FulfillmentGroupFee> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<FulfillmentGroupFee>- Throws:
CloneNotSupportedException
-
hashCode
public int hashCode() -
equals
-