Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2010-2013 Ning, Inc.
  *
  * Ning licenses this file to you 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.
 */
package org.killbill.billing.catalog.api;
The interface Plan
public interface Plan {

    

Returns:
an array of PlanPhase
    public PlanPhase[] getInitialPhases();

    

Returns:
the Product associated with that Plan
    public Product getProduct();

    

Returns:
the name of the Plan
    public String getName();

    

Returns:
whether the Plan has been retired
    public boolean isRetired();

    

Returns:
an iterator through the PlanPhase
    public Iterator<PlanPhasegetInitialPhaseIterator();

    

Returns:
the final PlanPhase
    public PlanPhase getFinalPhase();

    

Returns:
the BillingPeriod
    public BillingPeriod getRecurringBillingPeriod();

    

Returns:
the number of instance of subscriptions in a bundle with that Plan
    public int getPlansAllowedInBundle();

    

Returns:
an array of PlanPhase
    public PlanPhase[] getAllPhases();

    

Returns:
the date for which existing subscriptions become effective with that Plan

Parameters:
name the name of the PlanPhase
Returns:
the PlanPhase
Throws:
CatalogApiException if there is not such PlanPhase
    public PlanPhase findPhase(String namethrows CatalogApiException;

    

Parameters:
subscriptionStartDate the subscriptionStartDate
intialPhaseType the type of the initial phase
Returns:
the date at which we see the first recurring non zero charge
    public DateTime dateOfFirstRecurringNonZeroCharge(DateTime subscriptionStartDatePhaseType intialPhaseType);
New to GrepCode? Check out our FAQ X