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.catalog.domain;
 
 
 import java.util.List;

Used to represent Sku-specific surcharges when fulfilling this item. For instance there might be a disposal fee when selling batteries or an environmental fee for tires.

 
 public interface SkuFee extends Serializable {
     
     public Long getId();
 
     public void setId(Long id);

    
Get the name of the surcharge

Returns:
the surcharge name
 
     public String getName();

    
Sets the name of the surcharge

Parameters:
name
 
     public void setName(String name);

    
Get the description of the surcharge

Returns:
the surcharge description
 
     public String getDescription();

    
Sets the fee description

Parameters:
description
 
     public void setDescription(String description);

    
Gets the amount to charge for this surcharge

Returns:
the fee amount
 
     public Money getAmount();

    
Sets the amount to charge for this surcharge

Parameters:
amount
 
     public void setAmount(Money amount);

    
Gets whether or not this surcharge is taxable.

Returns:
true if the surcharge is taxable, false otherwise. Defaults to false
 
     public Boolean getTaxable();

    
Sets whether or not this surcharge should be included in tax calculations

Parameters:
taxable
 
     public void setTaxable(Boolean taxable);

    
Gets the optional MVEL expression used as additional criteria to determine if this fee applies

Returns:
the MVEL expression of extra criteria to determine if this fee applies
    public String getExpression();

    
Sets the MVEL expression used to determine if this fee should be applied. If this is null or empty, this fee will always be applied

Parameters:
expression - a valid MVEL expression
    public void setExpression(String expression);
    
    public SkuFeeType getFeeType();
    public void setFeeType(SkuFeeType feeType);

    
Gets the Skus associated with this surcharge

Returns:
Skus that have this particular surcharge
    public List<SkugetSkus();

    
Sets the Skus associated with this surcharge

Parameters:
skus
    public void setSkus(List<Skuskus);
    void setCurrency(BroadleafCurrency currency);
    
New to GrepCode? Check out our FAQ X