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

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

Best Java code snippets using com.ning.billing.overdue.config.api.BillingState.getTags (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.apiBillingStategetTags

Popular methods of BillingState

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

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Table (org.hibernate.mapping)
    A relational table
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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