congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OverdueStateSet.getClearState
Code IndexAdd Tabnine to your IDE (free)

How to use
getClearState
method
in
com.ning.billing.overdue.config.api.OverdueStateSet

Best Java code snippets using com.ning.billing.overdue.config.api.OverdueStateSet.getClearState (Showing top 2 results out of 315)

origin: com.ning.billing/killbill-overdue

public void clear(final InternalCallContext context) throws OverdueException, OverdueApiException {
  final String previousOverdueStateName = api.getBlockingStateForService(overdueable.getId(), BlockingStateType.ACCOUNT, OverdueService.OVERDUE_SERVICE_NAME, context).getStateName();
  final OverdueState previousOverdueState = overdueStateSet.findState(previousOverdueStateName);
  overdueStateApplicator.clear(overdueable, previousOverdueState, overdueStateSet.getClearState(), context);
}
origin: com.ning.billing/killbill-overdue

public OverdueState refresh(final InternalCallContext context) throws OverdueException, OverdueApiException {
  if (overdueStateSet.size() < 1) { // No configuration available
    return overdueStateSet.getClearState();
  }
  final BillingState billingState = billingState(context);
  final String previousOverdueStateName = api.getBlockingStateForService(overdueable.getId(), BlockingStateType.ACCOUNT, OverdueService.OVERDUE_SERVICE_NAME, context).getStateName();
  final OverdueState currentOverdueState = overdueStateSet.findState(previousOverdueStateName);
  final OverdueState nextOverdueState = overdueStateSet.calculateOverdueState(billingState, clock.getToday(billingState.getAccountTimeZone()));
  overdueStateApplicator.apply(overdueStateSet, billingState, overdueable, currentOverdueState, nextOverdueState, context);
  return nextOverdueState;
}
com.ning.billing.overdue.config.apiOverdueStateSetgetClearState

Popular methods of OverdueStateSet

  • calculateOverdueState
  • findState
  • getFirstState
  • getInitialReevaluationInterval
  • size

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now