Interface FulfillmentGroup

All Superinterfaces:
MultiTenantCloneable<FulfillmentGroup>, Serializable
All Known Implementing Classes:
FulfillmentGroupImpl

public interface FulfillmentGroup extends Serializable, 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 Details

    • getId

      Long getId()
    • setId

      void setId(Long id)
    • getOrder

      Order getOrder()
    • setOrder

      void setOrder(Order order)
    • getSequence

      Integer getSequence()
    • setSequence

      void setSequence(Integer sequence)
    • getFulfillmentOption

      FulfillmentOption getFulfillmentOption()
    • setFulfillmentOption

      void setFulfillmentOption(FulfillmentOption fulfillmentOption)
    • getAddress

      Address getAddress()
    • setAddress

      void setAddress(Address address)
    • getPhone

      @Deprecated Phone getPhone()
      Deprecated.
    • setPhone

      @Deprecated void setPhone(Phone phone)
      Deprecated.
      Parameters:
      phone -
    • getFulfillmentGroupItems

      List<FulfillmentGroupItem> getFulfillmentGroupItems()
    • setFulfillmentGroupItems

      void setFulfillmentGroupItems(List<FulfillmentGroupItem> fulfillmentGroupItems)
    • addFulfillmentGroupItem

      void addFulfillmentGroupItem(FulfillmentGroupItem fulfillmentGroupItem)
    • getMethod

      @Deprecated String getMethod()
      Deprecated.
      Should use getFulfillmentOption() instead
    • setMethod

      @Deprecated void setMethod(String fulfillmentMethod)
      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

      void setRetailFulfillmentPrice(Money fulfillmentPrice)
      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

      void setSaleFulfillmentPrice(Money fulfillmentPrice)
      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

      void setFulfillmentPrice(Money fulfillmentPrice)
      Sets the price to charge for this fulfillmentGroup. Typically set internally by the Broadleaf pricing and promotion engines.
    • getRetailShippingPrice

      @Deprecated Money getRetailShippingPrice()
      Deprecated.
      - use getRetailFulfillmentPrice() instead. Deprecated as the price might be for other fulfillment types such as PickUpAtStore fees or download fees.
      Returns:
    • setRetailShippingPrice

      @Deprecated void setRetailShippingPrice(Money retailShippingPrice)
      Deprecated.
    • getSaleShippingPrice

      @Deprecated Money getSaleShippingPrice()
      Deprecated.
      Returns:
    • setSaleShippingPrice

      @Deprecated void setSaleShippingPrice(Money saleShippingPrice)
      Deprecated.
      Parameters:
      saleShippingPrice -
    • getShippingPrice

      @Deprecated Money getShippingPrice()
      Deprecated.
      - use getFulfillmentPrice() instead.
      Returns:
    • setShippingPrice

      @Deprecated void setShippingPrice(Money shippingPrice)
      Deprecated.
      Parameters:
      shippingPrice -
    • getReferenceNumber

      String getReferenceNumber()
    • setReferenceNumber

      void setReferenceNumber(String referenceNumber)
    • getType

      FulfillmentType getType()
    • setType

      void setType(FulfillmentType type)
    • getCandidateFulfillmentGroupOffers

      List<CandidateFulfillmentGroupOffer> getCandidateFulfillmentGroupOffers()
    • setCandidateFulfillmentGroupOffer

      void setCandidateFulfillmentGroupOffer(List<CandidateFulfillmentGroupOffer> candidateOffers)
    • addCandidateFulfillmentGroupOffer

      void addCandidateFulfillmentGroupOffer(CandidateFulfillmentGroupOffer candidateOffer)
    • removeAllCandidateOffers

      void removeAllCandidateOffers()
    • getFulfillmentGroupAdjustments

      List<FulfillmentGroupAdjustment> getFulfillmentGroupAdjustments()
    • setFulfillmentGroupAdjustments

      void setFulfillmentGroupAdjustments(List<FulfillmentGroupAdjustment> fulfillmentGroupAdjustments)
    • 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

      List<TaxDetail> 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

      void setTaxes(List<TaxDetail> taxes)
      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

      void setTotalTax(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

      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(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

      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(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

      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(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

      void setDeliveryInstruction(String deliveryInstruction)
    • getPersonalMessage

      PersonalMessage getPersonalMessage()
    • setPersonalMessage

      void setPersonalMessage(PersonalMessage personalMessage)
    • isPrimary

      boolean isPrimary()
    • setPrimary

      void setPrimary(boolean primary)
    • getMerchandiseTotal

      Money getMerchandiseTotal()
    • setMerchandiseTotal

      void setMerchandiseTotal(Money merchandiseTotal)
    • getTotal

      Money getTotal()
    • setTotal

      void setTotal(Money orderTotal)
    • getStatus

    • setStatus

      void setStatus(FulfillmentGroupStatusType status)
    • getFulfillmentGroupFees

      List<FulfillmentGroupFee> getFulfillmentGroupFees()
    • setFulfillmentGroupFees

      void setFulfillmentGroupFees(List<FulfillmentGroupFee> fulfillmentGroupFees)
    • addFulfillmentGroupFee

      void addFulfillmentGroupFee(FulfillmentGroupFee fulfillmentGroupFee)
    • removeAllFulfillmentGroupFees

      void removeAllFulfillmentGroupFees()
    • isShippingPriceTaxable

      Boolean isShippingPriceTaxable()
    • setIsShippingPriceTaxable

      void setIsShippingPriceTaxable(Boolean isShippingPriceTaxable)
    • getService

      @Deprecated String getService()
      Deprecated.
      Should use getFulfillmentOption() instead
    • setService

      @Deprecated void setService(String service)
      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

      void setShippingOverride(Boolean shippingOverride)
      Sets whether or not to override the shipping calculation
      Parameters:
      shippingOverride -