Tabnine Logo
Project$Builder.withCustomer
Code IndexAdd Tabnine to your IDE (free)

How to use
withCustomer
method
in
it.tidalwave.accounting.model.Project$Builder

Best Java code snippets using it.tidalwave.accounting.model.Project$Builder.withCustomer (Showing top 4 results out of 315)

origin: it.tidalwave.accounting/it-tidalwave-accounting-marshalling-xml

 @Nonnull
 public Project.Builder toBuilder (final @Nonnull Accounting accounting)
  {
   try 
    {
     final Customer customer = accounting.getCustomerRegistry().findCustomers().withId(customerXml.getId()).result();
     return new Project.Builder().withId(id)
                   .withCustomer(customer) 
                   .withName(name)
                   .withNumber(number)
                   .withDescription(description)
                   .withNotes(notes)
                   .withStatus(status)
                   .withHourlyRate(hourlyRate)
                   .withBudget(budget)
                   .withStartDate(startDate)
                   .withEndDate(endDate)
                   .withEvents(JobEventXml.toJobEvents(jobEventsXml));
    } 
   catch (NotFoundException e) 
    {
     throw new RuntimeException(e);
    }
  }
}
origin: it.tidalwave.accounting/it-tidalwave-accounting-importer-ibiz

projectRegistry.addProject().withId(projectConfig.getId("uniqueIdentifier"))
              .withBudget(projectConfig.getMoney("projectEstimate"))
              .withCustomer(customer)
              .withName(projectConfig.getString("projectName"))
origin: it.tidalwave.accounting/it-tidalwave-accounting-model-impl-inmemory

final Project p = Project.builder().withId(new Id("2"))
                  .withBudget(new Money(10500, "EUR"))
                  .withCustomer(c1)
                  .withName("Project 1")
                  .withDescription("description of project 1")
origin: it.tidalwave.accounting/it-tidalwave-accounting-model

projectRegistry.addProject()
  .withId(new Id("" + nextId++))
  .withCustomer(acmeConsulting)
  .withDescription("Acme Consulting Project 1")
  .withName("Acme Consulting Project 1")
projectRegistry.addProject()
  .withId(new Id("" + nextId++))
  .withCustomer(acmeConsulting)
  .withDescription("Acme Consulting Project 2")
  .withName("Acme Consulting Project 2")
projectRegistry.addProject()
  .withId(new Id("" + nextId++))
  .withCustomer(acmeFinancing)
  .withDescription("Acme Financing Project 1")
  .withName("Acme Financing Project 1")
projectRegistry.addProject()
  .withId(new Id("" + nextId++))
  .withCustomer(acmeFinancing)
  .withDescription("Acme Financing Project 2")
  .withName("Acme Financing Project 2")
it.tidalwave.accounting.modelProject$BuilderwithCustomer

Popular methods of Project$Builder

  • create
  • withBudget
  • withEndDate
  • withHourlyRate
  • withId
  • withName
  • withNumber
  • withStartDate
  • withDescription
  • withEvents
  • withNotes
  • <init>
  • withNotes,
  • <init>,
  • withStatus,
  • getBudget,
  • getCustomer,
  • getDescription,
  • getEndDate,
  • getHourlyRate,
  • getId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • JPanel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
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