Interface FulfillmentGroup
- All Superinterfaces:
MultiTenantCloneable<FulfillmentGroup>,Serializable
- All Known Implementing Classes:
FulfillmentGroupImpl
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) Gets the price to charge for this fulfillmentGroup.Returns a List of FulfillmentGroupAdjustment originating from FUTURE_CREDIT Offers.Returns the discount value of the applied future credit offers for this fulfillment group.getId()Deprecated.getOrder()getPhone()Deprecated.useAddress.getPhonePrimary()instead.Returns the retail price for this fulfillmentGroup.Deprecated.- usegetRetailFulfillmentPrice()instead.Returns the sale price for this fulfillmentGroup.Deprecated.- usegetSaleFulfillmentPrice()instead.Deprecated.Should usegetFulfillmentOption()insteadDeprecated.- usegetFulfillmentPrice()instead.getTaxes()Gets a list of TaxDetail objects, which are taxes that apply directly to this fulfillment group.getTotal()Gets the total fee tax for this fulfillment group, which is the sum of the taxes on all fulfillment group fees.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.Gets the total item tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items.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).getType()booleanvoidvoidvoidvoidsetAddress(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(Money fulfillmentPrice) Sets the price to charge for this fulfillmentGroup.voidvoidsetIsShippingPriceTaxable(Boolean isShippingPriceTaxable) voidsetMerchandiseTotal(Money merchandiseTotal) voidDeprecated.Should use#setFulfillmentOption()insteadvoidvoidsetPersonalMessage(PersonalMessage personalMessage) voidDeprecated.useAddress.getPhonePrimary()insteadvoidsetPrimary(boolean primary) voidsetReferenceNumber(String referenceNumber) voidsetRetailFulfillmentPrice(Money fulfillmentPrice) Sets the retail price for this fulfillmentGroup.voidsetRetailShippingPrice(Money retailShippingPrice) Deprecated.- usesetRetailFulfillmentPrice(Money)instead.voidsetSaleFulfillmentPrice(Money fulfillmentPrice) Sets the sale price for this fulfillmentGroup.voidsetSaleShippingPrice(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(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.voidvoidsetTotalFeeTax(Money totalFeeTax) Sets the total fee tax for this fulfillment group, which is the sum of the taxes on all fulfillment group fees.voidsetTotalFulfillmentGroupTax(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(Money totalItemTax) Sets the total item tax for this fulfillment group, which is the sum of the taxes on all fulfillment group items.voidsetTotalTax(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
Address getAddress() -
setAddress
-
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
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
Sets the retail price for this fulfillmentGroup.- Parameters:
fulfillmentPrice-
-
getSaleFulfillmentPrice
Money getSaleFulfillmentPrice()Returns the sale price for this fulfillmentGroup. Typically this will be null or equal to the retailFulfillmentPrice- Returns:
-
setSaleFulfillmentPrice
Sets the sale price for this fulfillmentGroup. Typically not used.- Parameters:
fulfillmentPrice-- See Also:
-
getFulfillmentPrice
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
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.- 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
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
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
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
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
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
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
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
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
Money getMerchandiseTotal() -
setMerchandiseTotal
-
getTotal
Money getTotal() -
setTotal
-
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
Money getFulfillmentGroupAdjustmentsValue() -
getFutureCreditFulfillmentGroupAdjustmentsValue
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