Tabnine Logo
BillingState.getNumberOfUnpaidInvoices
Code IndexAdd Tabnine to your IDE (free)

How to use
getNumberOfUnpaidInvoices
method
in
com.ning.billing.overdue.config.api.BillingState

Best Java code snippets using com.ning.billing.overdue.config.api.BillingState.getNumberOfUnpaidInvoices (Showing top 1 results out of 315)

origin: com.ning.billing/killbill-overdue

@Override
public boolean evaluate(final BillingState state, final LocalDate date) {
  LocalDate unpaidInvoiceTriggerDate = null;
  if (timeSinceEarliestUnpaidInvoiceEqualsOrExceeds != null && state.getDateOfEarliestUnpaidInvoice() != null) {  // no date => no unpaid invoices
    unpaidInvoiceTriggerDate = state.getDateOfEarliestUnpaidInvoice().plus(timeSinceEarliestUnpaidInvoiceEqualsOrExceeds.toJodaPeriod());
  }
  return
      (numberOfUnpaidInvoicesEqualsOrExceeds == null || state.getNumberOfUnpaidInvoices() >= numberOfUnpaidInvoicesEqualsOrExceeds) &&
      (totalUnpaidInvoiceBalanceEqualsOrExceeds == null || totalUnpaidInvoiceBalanceEqualsOrExceeds.compareTo(state.getBalanceOfUnpaidInvoices()) <= 0) &&
      (timeSinceEarliestUnpaidInvoiceEqualsOrExceeds == null ||
       (unpaidInvoiceTriggerDate != null && !unpaidInvoiceTriggerDate.isAfter(date))) &&
      (responseForLastFailedPayment == null || responseIsIn(state.getResponseForLastFailedPayment(), responseForLastFailedPayment)) &&
      (controlTag == null || isTagIn(controlTag, state.getTags()));
}
com.ning.billing.overdue.config.apiBillingStategetNumberOfUnpaidInvoices

Popular methods of BillingState

  • <init>
  • getAccountTimeZone
  • getBalanceOfUnpaidInvoices
  • getDateOfEarliestUnpaidInvoice
  • getResponseForLastFailedPayment
  • getTags

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • Kernel (java.awt.image)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • Github Copilot 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