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 com.ning.billing.entitlement.api;
 
 
 import java.util.UUID;
 
 public interface SubscriptionEvent {

    

Returns:
the unique id for the event
 
     public UUID getId();

    

Returns:
the id of the entitlement
 
     public UUID getEntitlementId();

    

Returns:
the date at which the transition took place
 
     public LocalDate getEffectiveDate();

    

Returns:
the date at which the transition was requested
 
     public LocalDate getRequestedDate();

    

Returns:
the type of transition
 

Returns:
whether the billing is blocked
 
     public boolean isBlockedBilling();

    

Returns:
whether the entitlement is blocked
 
     public boolean isBlockedEntitlement();

    

Returns:
the service that generated the event
 
     public String getServiceName();

    

Returns:
the state that was set by a given service for a particular transition
 
     public String getServiceStateName();

    

Returns:
the previous product after that transition took place
 
     public Product getPrevProduct();

    

Returns:
the previous plan after that transition took place
 
     public Plan getPrevPlan();

    

Returns:
the previous phase after that transition took place
 
     public PlanPhase getPrevPhase();

    

Returns:
the previous pricelist after that transition took place
 
     public PriceList getPrevPriceList();

    

Returns:
the previous billing period name after that transition took place
 
    public BillingPeriod getPrevBillingPeriod();

    

Returns:
the next product after that transition took place
    public Product getNextProduct();

    

Returns:
the next plan after that transition took place
    public Plan getNextPlan();

    

Returns:
the next phase after that transition took place
    public PlanPhase getNextPhase();

    

Returns:
the next pricelist after that transition took place
    public PriceList getNextPriceList();

    

Returns:
the next billing period name after that transition took place
New to GrepCode? Check out our FAQ X