Interface FulfillmentGroup
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<FulfillmentGroup>,Serializable
- All Known Implementing Classes:
FulfillmentGroupImpl
public interface FulfillmentGroup
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<FulfillmentGroup>
This is the main entity used to hold fulfillment information about an Order. An Order can have
multiple FulfillmentGroups to support shipping items to multiple addresses along with fulfilling
items multiple ways (ship some overnight, deliver some with digital download). This constraint means
that a FulfillmentGroup is unique based on an Address and FulfillmentOption combination. This
also means that in the common case for Orders that are being delivered to a single Address and
a single way (shipping everything express; ie a single FulfillmentOption) then there will be
only 1 FulfillmentGroup for that Order.
- Author:
- Phillip Verheyden
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCandidateFulfillmentGroupOffer(CandidateFulfillmentGroupOffer candidateOffer) voidaddFulfillmentGroupFee(FulfillmentGroupFee fulfillmentGroupFee) voidaddFulfillmentGroupItem(FulfillmentGroupItem fulfillmentGroupItem) org.broadleafcommerce.profile.core.domain.Addressorg.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.MoneyGets the price to charge for this fulfillmentGroup.Returns a List of FulfillmentGroupAdjustment originating from FUTURE_CREDIT Offers.org.broadleafcommerce.common.money.MoneyReturns the discount value of the applied future credit offers for this fulfillment group.getId()org.broadleafcommerce.common.money.MoneyDeprecated.getOrder()org.broadleafcommerce.profile.core.domain.PhonegetPhone()Deprecated.useAddress.getPhonePrimary()instead.org.broadleafcommerce.common.money.MoneyReturns the retail price for this fulfillmentGroup.org.broadleafcommerce.common.money.MoneyDeprecated.- usegetRetailFulfillmentPrice()instead.org.broadleafcommerce.common.money.MoneyReturns the sale price for this fulfillmentGroup.org.broadleafcommerce.common.money.MoneyDeprecated.- usegetSaleFulfillmentPrice()instead.Deprecated.Should usegetFulfillmentOption()insteadorg.broadleafcommerce.common.money.MoneyDeprecated.- usegetFulfillmentPrice()instead.getTaxes()Gets a list of TaxDetail objects, which are taxes that apply directly to this fulfillment group.org.broadleafcommerce.common.money.MoneygetTotal()org.broadleafcommerce.common.money.MoneyGets the total fee tax for this fulfillment group, which is the sum of the taxes on all fulfillment group fees.org.broadleafcommerce.common.money.MoneyGets the total fulfillment group tax for this fulfillment group, which is the sum of the taxes on this fulfillment group itself (such as a shipping tax) only.org.broadleafcommerce.common.money.MoneyGets the total item tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items.org.broadleafcommerce.common.money.MoneyGets the total tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items, fees, and taxes on this fulfillment group itself (such as a shipping tax).getType()booleanvoidvoidvoidvoidsetAddress(org.broadleafcommerce.profile.core.domain.Address address) voidsetCandidateFulfillmentGroupOffer(List<CandidateFulfillmentGroupOffer> candidateOffers) voidsetDeliveryInstruction(String deliveryInstruction) voidsetFulfillmentGroupAdjustments(List<FulfillmentGroupAdjustment> fulfillmentGroupAdjustments) voidsetFulfillmentGroupFees(List<FulfillmentGroupFee> fulfillmentGroupFees) voidsetFulfillmentGroupItems(List<FulfillmentGroupItem> fulfillmentGroupItems) voidsetFulfillmentOption(FulfillmentOption fulfillmentOption) voidsetFulfillmentPrice(org.broadleafcommerce.common.money.Money fulfillmentPrice) Sets the price to charge for this fulfillmentGroup.voidvoidsetIsShippingPriceTaxable(Boolean isShippingPriceTaxable) voidsetMerchandiseTotal(org.broadleafcommerce.common.money.Money merchandiseTotal) voidDeprecated.Should use#setFulfillmentOption()insteadvoidvoidsetPersonalMessage(PersonalMessage personalMessage) voidsetPhone(org.broadleafcommerce.profile.core.domain.Phone phone) Deprecated.useAddress.getPhonePrimary()insteadvoidsetPrimary(boolean primary) voidsetReferenceNumber(String referenceNumber) voidsetRetailFulfillmentPrice(org.broadleafcommerce.common.money.Money fulfillmentPrice) Sets the retail price for this fulfillmentGroup.voidsetRetailShippingPrice(org.broadleafcommerce.common.money.Money retailShippingPrice) Deprecated.- usesetRetailFulfillmentPrice(Money)instead.voidsetSaleFulfillmentPrice(org.broadleafcommerce.common.money.Money fulfillmentPrice) Sets the sale price for this fulfillmentGroup.voidsetSaleShippingPrice(org.broadleafcommerce.common.money.Money saleShippingPrice) Deprecated.- usesetSaleFulfillmentPrice(Money)instead.voidsetSequence(Integer sequence) voidsetService(String service) Deprecated.Should use#setFulfillmentOption()insteadvoidsetShippingOverride(Boolean shippingOverride) Sets whether or not to override the shipping calculationvoidsetShippingPrice(org.broadleafcommerce.common.money.Money shippingPrice) Deprecated.- usesetRetailFulfillmentPrice(Money)instead.voidsetStatus(FulfillmentGroupStatusType status) voidGets the list of TaxDetail objects, which are taxes that apply directly to this fulfillment group.voidsetTotal(org.broadleafcommerce.common.money.Money orderTotal) voidsetTotalFeeTax(org.broadleafcommerce.common.money.Money totalFeeTax) Sets the total fee tax for this fulfillment group, which is the sum of the taxes on all fulfillment group fees.voidsetTotalFulfillmentGroupTax(org.broadleafcommerce.common.money.Money totalFulfillmentGroupTax) Sets the total fulfillment group tax for this fulfillment group, which is the sum of the taxes on this fulfillment group itself (such as a shipping tax) only.voidsetTotalItemTax(org.broadleafcommerce.common.money.Money totalItemTax) Sets the total item tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items.voidsetTotalTax(org.broadleafcommerce.common.money.Money totalTax) Sets the total tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items, fees, and taxes on this fulfillment group itself (such as a shipping tax).voidsetType(FulfillmentType type) Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId() -
setId
-
getOrder
Order getOrder() -
setOrder
-
getSequence
Integer getSequence() -
setSequence
-
getFulfillmentOption
FulfillmentOption getFulfillmentOption() -
setFulfillmentOption
-
getAddress
org.broadleafcommerce.profile.core.domain.Address getAddress() -
setAddress
void setAddress(org.broadleafcommerce.profile.core.domain.Address address) -
getPhone
Deprecated.useAddress.getPhonePrimary()instead. -
setPhone
Deprecated.useAddress.getPhonePrimary()instead- Parameters:
phone-
-
getFulfillmentGroupItems
List<FulfillmentGroupItem> getFulfillmentGroupItems() -
setFulfillmentGroupItems
-
addFulfillmentGroupItem
-
getMethod
Deprecated.Should usegetFulfillmentOption()instead -
setMethod
Deprecated.Should use#setFulfillmentOption()instead -
getRetailFulfillmentPrice
org.broadleafcommerce.common.money.Money getRetailFulfillmentPrice()Returns the retail price for this fulfillmentGroup. The retail and sale concepts used for item pricing are not generally used with fulfillmentPricing but supported nonetheless. Typically only a retail price would be set on a fulfillment group.- Returns:
-
setRetailFulfillmentPrice
void setRetailFulfillmentPrice(org.broadleafcommerce.common.money.Money fulfillmentPrice) Sets the retail price for this fulfillmentGroup.- Parameters:
fulfillmentPrice-
-
getSaleFulfillmentPrice
org.broadleafcommerce.common.money.Money getSaleFulfillmentPrice()Returns the sale price for this fulfillmentGroup. Typically this will be null or equal to the retailFulfillmentPrice- Returns:
-
setSaleFulfillmentPrice
void setSaleFulfillmentPrice(org.broadleafcommerce.common.money.Money fulfillmentPrice) Sets the sale price for this fulfillmentGroup. Typically not used.- Parameters:
fulfillmentPrice-- See Also:
-
getFulfillmentPrice
org.broadleafcommerce.common.money.Money getFulfillmentPrice()Gets the price to charge for this fulfillmentGroup. Includes the effects of any adjustments such as those that might have been applied by the promotion engine (e.g. free shipping)- Returns:
-
setFulfillmentPrice
void setFulfillmentPrice(org.broadleafcommerce.common.money.Money fulfillmentPrice) Sets the price to charge for this fulfillmentGroup. Typically set internally by the Broadleaf pricing and promotion engines. -
getRetailShippingPrice
Deprecated.- usegetRetailFulfillmentPrice()instead. Deprecated as the price might be for other fulfillment types such as PickUpAtStore fees or download fees.- Returns:
-
setRetailShippingPrice
@Deprecated void setRetailShippingPrice(org.broadleafcommerce.common.money.Money retailShippingPrice) Deprecated.- usesetRetailFulfillmentPrice(Money)instead. -
getSaleShippingPrice
Deprecated.- usegetSaleFulfillmentPrice()instead.- Returns:
-
setSaleShippingPrice
Deprecated.- usesetSaleFulfillmentPrice(Money)instead.- Parameters:
saleShippingPrice-
-
getShippingPrice
Deprecated.- usegetFulfillmentPrice()instead.- Returns:
-
setShippingPrice
Deprecated.- usesetRetailFulfillmentPrice(Money)instead.- Parameters:
shippingPrice-
-
getReferenceNumber
String getReferenceNumber() -
setReferenceNumber
-
getType
FulfillmentType getType() -
setType
-
getCandidateFulfillmentGroupOffers
List<CandidateFulfillmentGroupOffer> getCandidateFulfillmentGroupOffers() -
setCandidateFulfillmentGroupOffer
-
addCandidateFulfillmentGroupOffer
-
removeAllCandidateOffers
void removeAllCandidateOffers() -
getFulfillmentGroupAdjustments
List<FulfillmentGroupAdjustment> getFulfillmentGroupAdjustments() -
setFulfillmentGroupAdjustments
-
getFutureCreditFulfillmentGroupAdjustments
List<FulfillmentGroupAdjustment> getFutureCreditFulfillmentGroupAdjustments()Returns a List of FulfillmentGroupAdjustment originating from FUTURE_CREDIT Offers.See
Offer.getAdjustmentType()for more info on future credit- Returns:
- a List of FulfillmentGroupAdjustment
-
removeAllAdjustments
void removeAllAdjustments() -
getTaxes
Gets a list of TaxDetail objects, which are taxes that apply directly to this fulfillment group. An example of a such a tax would be a shipping tax.- Returns:
- a list of taxes that apply to this fulfillment group
-
setTaxes
Gets the list of TaxDetail objects, which are taxes that apply directly to this fulfillment group. An example of a such a tax would be a shipping tax.- Parameters:
taxes- the list of taxes on this fulfillment group
-
getTotalTax
org.broadleafcommerce.common.money.Money getTotalTax()Gets the total tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items, fees, and taxes on this fulfillment group itself (such as a shipping tax). This total is calculated in the TotalActivity stage of the pricing workflow.- Returns:
- the total tax for the fulfillment group
-
setTotalTax
void setTotalTax(org.broadleafcommerce.common.money.Money totalTax) Sets the total tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items, fees, and taxes on this fulfillment group itself (such as a shipping tax). This total should only be set during the TotalActivity stage of the pricing workflow.- Parameters:
totalTax- the total tax for this fulfillment group
-
getTotalItemTax
org.broadleafcommerce.common.money.Money getTotalItemTax()Gets the total item tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items. This total is calculated in the TotalActivity stage of the pricing workflow.- Returns:
- the total tax for this fulfillment group
-
setTotalItemTax
void setTotalItemTax(org.broadleafcommerce.common.money.Money totalItemTax) Sets the total item tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items. This total should only be set during the TotalActivity stage of the pricing workflow.- Parameters:
totalItemTax- the total tax for this fulfillment group
-
getTotalFeeTax
org.broadleafcommerce.common.money.Money getTotalFeeTax()Gets the total fee tax for this fulfillment group, which is the sum of the taxes on all fulfillment group fees. This total is calculated in the TotalActivity stage of the pricing workflow.- Returns:
- the total tax for this fulfillment group
-
setTotalFeeTax
void setTotalFeeTax(org.broadleafcommerce.common.money.Money totalFeeTax) Sets the total fee tax for this fulfillment group, which is the sum of the taxes on all fulfillment group fees. This total should only be set during the TotalActivity stage of the pricing workflow.- Parameters:
totalFeeTax- the total tax for this fulfillment group
-
getTotalFulfillmentGroupTax
org.broadleafcommerce.common.money.Money getTotalFulfillmentGroupTax()Gets the total fulfillment group tax for this fulfillment group, which is the sum of the taxes on this fulfillment group itself (such as a shipping tax) only. It does not include the taxes on items or fees in this fulfillment group. This total is calculated in the TotalActivity stage of the pricing workflow.- Returns:
- the total tax for this fulfillment group
-
setTotalFulfillmentGroupTax
void setTotalFulfillmentGroupTax(org.broadleafcommerce.common.money.Money totalFulfillmentGroupTax) Sets the total fulfillment group tax for this fulfillment group, which is the sum of the taxes on this fulfillment group itself (such as a shipping tax) only. It does not include the taxes on items or fees in this fulfillment group. This total should only be set during the TotalActivity stage of the pricing workflow.- Parameters:
totalFulfillmentGroupTax- the total tax for this fulfillment group
-
getDeliveryInstruction
String getDeliveryInstruction() -
setDeliveryInstruction
-
getPersonalMessage
PersonalMessage getPersonalMessage() -
setPersonalMessage
-
isPrimary
boolean isPrimary() -
setPrimary
void setPrimary(boolean primary) -
getMerchandiseTotal
org.broadleafcommerce.common.money.Money getMerchandiseTotal() -
setMerchandiseTotal
void setMerchandiseTotal(org.broadleafcommerce.common.money.Money merchandiseTotal) -
getTotal
org.broadleafcommerce.common.money.Money getTotal() -
setTotal
void setTotal(org.broadleafcommerce.common.money.Money orderTotal) -
getStatus
FulfillmentGroupStatusType getStatus() -
setStatus
-
getFulfillmentGroupFees
List<FulfillmentGroupFee> getFulfillmentGroupFees() -
setFulfillmentGroupFees
-
addFulfillmentGroupFee
-
removeAllFulfillmentGroupFees
void removeAllFulfillmentGroupFees() -
isShippingPriceTaxable
Boolean isShippingPriceTaxable() -
setIsShippingPriceTaxable
-
getService
Deprecated.Should usegetFulfillmentOption()instead -
setService
Deprecated.Should use#setFulfillmentOption()instead -
getDiscreteOrderItems
List<DiscreteOrderItem> getDiscreteOrderItems() -
getFulfillmentGroupAdjustmentsValue
org.broadleafcommerce.common.money.Money getFulfillmentGroupAdjustmentsValue() -
getFutureCreditFulfillmentGroupAdjustmentsValue
org.broadleafcommerce.common.money.Money getFutureCreditFulfillmentGroupAdjustmentsValue()Returns the discount value of the applied future credit offers for this fulfillment group.See
Offer.getAdjustmentType()for more info on future credit- Returns:
- the discount value of the applied future credit offers for this fulfillment group
-
getShippingOverride
Boolean getShippingOverride()- Returns:
- whether or not to override the shipping calculation
-
setShippingOverride
Sets whether or not to override the shipping calculation- Parameters:
shippingOverride-
-
getFulfillmentOption()instead