Tabnine Logo
Customer$Builder.withId
Code IndexAdd Tabnine to your IDE (free)

How to use
withId
method
in
it.tidalwave.accounting.model.Customer$Builder

Best Java code snippets using it.tidalwave.accounting.model.Customer$Builder.withId (Showing top 5 results out of 315)

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

 @Nonnull
 public Customer.Builder toBuilder()
  {
   return new Customer.Builder().withId(id)
                  .withName(name)
                  .withBillingAddress(billingAddressXml.toAddress())
                  .withVatNumber(vatNumber);
  }
}
origin: it.tidalwave.accounting/it-tidalwave-accounting-importer-ibiz

/*******************************************************************************************************************
 *
 * {@inheritDoc}
 *
 ******************************************************************************************************************/
@Override
public void importCustomers()
 throws IOException
 {
  log.debug("importCustomers()");
  final NativeAddressBook addressBook = NativeAddressBook.instance();
  IBizUtils.loadConfiguration(path.resolve("clients")).getStream("clients").forEach(customerConfig -> 
   {
    final String firstName = trim(customerConfig.getString("firstName"));
    final String clientCompany = customerConfig.getString("clientCompany");
    final Contact contact = getContact(addressBook, firstName, clientCompany);
    customerRegistry.addCustomer().withId(customerConfig.getId("addressBookId"))
                   .withName(firstName)
                   .withBillingAddress(getAddress(contact))
                   .withVatNumber(getVatNumber(contact))
                   .create();
   });
 }
origin: it.tidalwave.accounting/it-tidalwave-accounting-model-impl-inmemory

 @Test
 public void toString_must_return_all_the_fields()
  {
   final Address a1 = Address.builder().withStreet("Foo Bar rd 20")
                     .withCity("San Francisco")
                     .withZip("12345")
                     .withState("CA")
                     .withCountry("USA")
                     .create();
   final Customer c1 = Customer.builder().withId(new Id("the id"))
                      .withName("Acme Corp.")
                      .withVatNumber("1233455345")
                      .withBillingAddress(a1)
                      .create();
   assertThat(c1.toString(), is("InMemoryCustomer(id=the id, name=Acme Corp., billingAddress=Address(street=Foo Bar rd 20, "
                 + "city=San Francisco, state=CA, country=USA, zip=12345), vatNumber=1233455345)"));
  }
}
origin: it.tidalwave.accounting/it-tidalwave-accounting-model

      .withId(new Id("" + nextId++))
      .withName("ACME Consulting")
      .withBillingAddress(Address.builder().withStreet("Corso Italia 10")
final Customer acmeFinancing =
    customerRegistry.addCustomer()
      .withId(new Id("" + nextId++))
      .withName("ACME Financing")
      .withBillingAddress(Address.builder().withStreet("Corso Magenta 20")
origin: it.tidalwave.accounting/it-tidalwave-accounting-model-impl-inmemory

                  .withCountry("USA")
                  .create();
final Customer c1 = Customer.builder().withId(new Id("1"))
                   .withName("Acme Corp.")
                   .withVatNumber("1233455345")
it.tidalwave.accounting.modelCustomer$BuilderwithId

Popular methods of Customer$Builder

  • create
  • withBillingAddress
  • withName
  • withVatNumber
  • <init>
  • getBillingAddress
  • getId
  • getName
  • getVatNumber
  • with
  • withCallback
  • withCallback

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ImageIO (javax.imageio)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
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