Tabnine Logo
ExternalChargeInvoiceItem.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.ning.billing.invoice.model.ExternalChargeInvoiceItem
constructor

Best Java code snippets using com.ning.billing.invoice.model.ExternalChargeInvoiceItem.<init> (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: com.ning.billing/killbill-invoice

@Test(groups = "slow")
public void testExternalChargeInvoiceSqlDao() throws Exception {
  final UUID invoiceId = UUID.randomUUID();
  final UUID accountId = account.getId();
  final UUID bundleId = UUID.randomUUID();
  final String description = UUID.randomUUID().toString();
  final LocalDate startDate = new LocalDate(2012, 4, 1);
  final InvoiceItem externalChargeInvoiceItem = new ExternalChargeInvoiceItem(invoiceId, accountId, bundleId, description,
                                        startDate, TEN, Currency.USD);
  invoiceUtil.createInvoiceItem(externalChargeInvoiceItem, context);
  final InvoiceItemModelDao savedItem = invoiceUtil.getInvoiceItemById(externalChargeInvoiceItem.getId(), context);
  assertSameInvoiceItem(externalChargeInvoiceItem, savedItem);
}
origin: com.ning.billing/killbill-invoice

final BigDecimal amount = BigDecimal.TEN;
final Currency currency = Currency.GBP;
final ExternalChargeInvoiceItem item = new ExternalChargeInvoiceItem(id, invoiceId, accountId, bundleId, description,
                                   effectiveDate, amount, currency);
Assert.assertEquals(item.getAccountId(), accountId);
final ExternalChargeInvoiceItem otherItem = new ExternalChargeInvoiceItem(id, invoiceId, UUID.randomUUID(), bundleId,
                                     description, effectiveDate, amount, currency);
Assert.assertNotEquals(otherItem, item);
final ExternalChargeInvoiceItem itemBefore = new ExternalChargeInvoiceItem(id, invoiceId, accountId, bundleId, description,
                                      effectiveDate.minusDays(1), amount, currency);
Assert.assertFalse(itemBefore.matches(item));
final ExternalChargeInvoiceItem itemAfter = new ExternalChargeInvoiceItem(id, invoiceId, accountId, bundleId, description,
                                     effectiveDate.plusDays(1), amount, currency);
Assert.assertFalse(itemAfter.matches(item));
origin: com.ning.billing/killbill-invoice

@Override
public InvoiceItem getExternalChargeById(final UUID externalChargeId, final TenantContext context) throws InvoiceApiException {
  final InvoiceItem externalChargeItem = InvoiceItemFactory.fromModelDao(dao.getExternalChargeById(externalChargeId, internalCallContextFactory.createInternalTenantContext(externalChargeId, ObjectType.INVOICE_ITEM, context)));
  if (externalChargeItem == null) {
    throw new InvoiceApiException(ErrorCode.INVOICE_NO_SUCH_EXTERNAL_CHARGE, externalChargeId);
  }
  return new ExternalChargeInvoiceItem(externalChargeItem.getId(), externalChargeItem.getInvoiceId(), externalChargeItem.getAccountId(),
                     externalChargeItem.getPlanName(), externalChargeItem.getStartDate(),
                     externalChargeItem.getAmount(), externalChargeItem.getCurrency());
}
origin: com.ning.billing/killbill-invoice

switch (type) {
  case EXTERNAL_CHARGE:
    item = new ExternalChargeInvoiceItem(id, createdDate, invoiceId, accountId, bundleId, planName, startDate, amount, currency);
    break;
  case FIXED:
com.ning.billing.invoice.modelExternalChargeInvoiceItem<init>

Popular methods of ExternalChargeInvoiceItem

  • getPlanName
  • getAccountId
  • getAmount
  • getBundleId
  • getCurrency
  • getEndDate
  • getInvoiceItemType
  • getLinkedItemId
  • getPhaseName
  • getRate
  • getSubscriptionId
  • matches
  • getSubscriptionId,
  • matches

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JPanel (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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