Tabnine Logo
TaxCategoryDraft.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
io.sphere.sdk.taxcategories.TaxCategoryDraft

Best Java code snippets using io.sphere.sdk.taxcategories.TaxCategoryDraft.getName (Showing top 6 results out of 315)

origin: com.commercetools.sdk.jvm.core/commercetools-models

 /**
  * Creates a new object initialized with the fields of the template parameter.
  *
  * @param template the template
  * @return a new object initialized from the template
  */
 public static TaxCategoryDraftDsl of(final TaxCategoryDraft template) {
  return new TaxCategoryDraftDsl(template.getDescription(), template.getKey(), template.getName(), template.getTaxRates());
 }
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

 /**
  * Creates a new object initialized with the fields of the template parameter.
  *
  * @param template the template
  * @return a new object initialized from the template
  */
 public static TaxCategoryDraftBuilder of(final TaxCategoryDraft template) {
  return new TaxCategoryDraftBuilder(template.getDescription(), template.getKey(), template.getName(), template.getTaxRates());
 }
}
origin: io.sphere.sdk.jvm/products

public static TaxCategoryBuilder of(final TaxCategoryDraft taxCategoryDraft) {
  return of(taxCategoryDraft.getName(), taxCategoryDraft.getTaxRates()).description(taxCategoryDraft.getDescription());
}
origin: io.sphere.sdk.jvm/models

public static TaxCategoryBuilder of(final TaxCategoryDraft taxCategoryDraft) {
  return of(taxCategoryDraft.getName(), taxCategoryDraft.getTaxRates()).description(taxCategoryDraft.getDescription());
}
origin: commercetools/commercetools-jvm-sdk

public static void withTaxCategory(final BlockingSphereClient client, final TaxCategoryDraft draft, final Consumer<TaxCategory> user) {
  requireNonNull(draft, "draft should not be null");
  final PagedQueryResult<TaxCategory> results = client.executeBlocking(TaxCategoryQuery.of().byName(draft.getName()));
  results.getResults().forEach(tc -> client.executeBlocking(TaxCategoryDeleteCommand.of(tc)));
  final TaxCategory taxCategory = client.executeBlocking(TaxCategoryCreateCommand.of(draft));
  user.accept(taxCategory);
  client.executeBlocking(TaxCategoryDeleteCommand.of(taxCategory));
}
origin: commercetools/commercetools-jvm-sdk

  public static void withUpdateableTaxCategory(final BlockingSphereClient client, final UnaryOperator<TaxCategory> testApplicationFunction) {
    final TaxCategoryDraft draft = TaxCategoryDraft.of(randomKey(), singletonList(TaxRateDraftBuilder.of("de19", 0.19, true, CountryCode.DE).build()));
    final PagedQueryResult<TaxCategory> results = client.executeBlocking(TaxCategoryQuery.of().byName(draft.getName()));
    results.getResults().forEach(tc -> client.executeBlocking(TaxCategoryDeleteCommand.of(tc)));
    final TaxCategory taxCategory = client.executeBlocking(TaxCategoryCreateCommand.of(draft));
    final TaxCategory updated = testApplicationFunction.apply(taxCategory);
    client.executeBlocking(TaxCategoryDeleteCommand.of(updated));
  }
}
io.sphere.sdk.taxcategoriesTaxCategoryDraftgetName

Popular methods of TaxCategoryDraft

  • of
  • <init>
  • getDescription
  • getTaxRates
  • getKey

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • 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