Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * #%L
  * BroadleafCommerce Framework
  * %%
  * Copyright (C) 2009 - 2013 Broadleaf Commerce
  * %%
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package org.broadleafcommerce.core.order.fulfillment.domain;
This entity is a collection of properties shared between different band implementations. Out of the box, Broadleaf provides implementations for banded weight and banded price.

Author(s):
Phillip Verheyden
See also:
FulfillmentPriceBand, FulfillmentWeightBand
public interface FulfillmentBand extends Serializable {
    public Long getId();
    public void setId(Long id);

    
Gets the amount that should be applied to the fulfillment cost for the org.broadleafcommerce.core.order.domain.FulfillmentGroup. This could be applied as a percentage or as a flat rate, depending on the result of calling getResultType(). This is required and should never be null

Returns:
the amount to apply for this band
    public BigDecimal getResultAmount();

    
Sets the amount that should be applied to the fulfillment cost for this band. This can be either a flat rate or a percentage depending on getResultType().

Parameters:
resultAmount - the percentage or flat rate that should be applied as a fulfillment cost for this band
    public void setResultAmount(BigDecimal resultAmount);

    
Gets how getResultAmount() should be applied to the fulfillment cost

Returns:
the type of getResultAmount() which determines how that value should be calculated into the cost
Sets how getResultAmount() should be applied to the fulfillment cost

Parameters:
resultAmountType - how the value from getResultAmount() should be applied to the cost of the org.broadleafcommerce.core.order.domain.FulfillmentGroup
    public void setResultAmountType(FulfillmentBandResultAmountType resultAmountType);
New to GrepCode? Check out our FAQ X