Tabnine Logo
MockAccountBuilder.name
Code IndexAdd Tabnine to your IDE (free)

How to use
name
method
in
org.killbill.billing.mock.MockAccountBuilder

Best Java code snippets using org.killbill.billing.mock.MockAccountBuilder.name (Showing top 15 results out of 315)

origin: killbill/killbill

public AccountData initAccountData(final Clock clock) {
  final AccountData accountData = new MockAccountBuilder().name(UUIDs.randomUUID().toString().substring(1, 8))
                              .firstNameLength(6)
                              .email(UUIDs.randomUUID().toString().substring(1, 8))
                              .phone(UUIDs.randomUUID().toString().substring(1, 8))
                              .migrated(false)
                              .externalKey(UUIDs.randomUUID().toString())
                              .billingCycleDayLocal(1)
                              .currency(Currency.USD)
                              .paymentMethodId(UUIDs.randomUUID())
                              .referenceTime(clock.getUTCNow())
                              .timeZone(DateTimeZone.forID("Europe/Paris"))
                              .build();
  assertNotNull(accountData);
  return accountData;
}
origin: killbill/killbill

.externalKey(externalKey)
.email(email)
.name(name).firstNameLength(firstNameLength)
.currency(currency)
.billingCycleDayLocal(billCycleDayLocal)
origin: killbill/killbill

this.locale(data.getLocale());
this.migrated(data.isMigrated());
this.name(data.getName());
this.paymentMethodId(data.getPaymentMethodId());
this.phone(data.getPhone());
origin: org.kill-bill.billing/killbill-entitlement

protected AccountData getAccountData(final int billingDay) {
  return new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                  .firstNameLength(6)
                  .email(UUID.randomUUID().toString().substring(1, 8))
                  .phone(UUID.randomUUID().toString().substring(1, 8))
                  .migrated(false)
                  .externalKey(UUID.randomUUID().toString().substring(1, 8))
                  .billingCycleDayLocal(billingDay)
                  .currency(Currency.USD)
                  .paymentMethodId(UUID.randomUUID())
                  .referenceTime(clock.getUTCNow())
                  .timeZone(DateTimeZone.UTC)
                  .build();
}
origin: org.kill-bill.billing/killbill-beatrix

protected AccountData getAccountData(@Nullable final Integer billingDay, final DateTimeZone tz) {
  final MockAccountBuilder builder = new MockAccountBuilder()
      .name(UUID.randomUUID().toString().substring(1, 8))
      .firstNameLength(6)
      .email(UUID.randomUUID().toString().substring(1, 8))
      .phone(UUID.randomUUID().toString().substring(1, 8))
      .migrated(false)
      .externalKey(UUID.randomUUID().toString().substring(1, 8))
      .currency(Currency.USD)
      .referenceTime(clock.getUTCNow())
      .timeZone(tz);
  if (billingDay != null) {
    builder.billingCycleDayLocal(billingDay);
  }
  return builder.build();
}
origin: org.kill-bill.billing/killbill-beatrix

protected AccountData getChildAccountData(final int billingDay, final UUID parentAccountId, final boolean isPaymentDelegatedToParent) {
  return new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                  .firstNameLength(6)
                  .email(UUID.randomUUID().toString().substring(1, 8))
                  .phone(UUID.randomUUID().toString().substring(1, 8))
                  .migrated(false)
                  .externalKey(UUID.randomUUID().toString().substring(1, 8))
                  .billingCycleDayLocal(billingDay)
                  .currency(Currency.USD)
                  .paymentMethodId(UUID.randomUUID())
                  .referenceTime(clock.getUTCNow())
                  .timeZone(DateTimeZone.UTC)
                  .parentAccountId(parentAccountId)
                  .isPaymentDelegatedToParent(isPaymentDelegatedToParent)
                  .build();
}
origin: org.kill-bill.billing/killbill-invoice

@BeforeClass(groups = "fast")
protected void beforeClass() throws Exception {
  if (hasFailed()) {
    return;
  }
  super.beforeClass();
  final Clock clock = new DefaultClock();
  this.account = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                      .firstNameLength(6)
                      .email(UUID.randomUUID().toString().substring(1, 8))
                      .phone(UUID.randomUUID().toString().substring(1, 8))
                      .migrated(false)
                      .externalKey(UUID.randomUUID().toString().substring(1, 8))
                      .billingCycleDayLocal(31)
                      .currency(Currency.USD)
                      .paymentMethodId(UUID.randomUUID())
                      .timeZone(DateTimeZone.UTC)
                      .build();
}
origin: org.kill-bill.billing/killbill-subscription

public AccountData initAccountData(final Clock clock) {
  final AccountData accountData = new MockAccountBuilder().name(UUIDs.randomUUID().toString().substring(1, 8))
                              .firstNameLength(6)
                              .email(UUIDs.randomUUID().toString().substring(1, 8))
                              .phone(UUIDs.randomUUID().toString().substring(1, 8))
                              .migrated(false)
                              .externalKey(UUIDs.randomUUID().toString())
                              .billingCycleDayLocal(1)
                              .currency(Currency.USD)
                              .paymentMethodId(UUIDs.randomUUID())
                              .referenceTime(clock.getUTCNow())
                              .timeZone(DateTimeZone.forID("Europe/Paris"))
                              .build();
  assertNotNull(accountData);
  return accountData;
}
origin: org.kill-bill.billing/killbill-invoice

public Account createAccount(final CallContext callContext) throws AccountApiException {
  final Account accountData = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                            .firstNameLength(6)
                            .email(UUID.randomUUID().toString().substring(1, 8))
                            .phone(UUID.randomUUID().toString().substring(1, 8))
                            .migrated(false)
                            .externalKey(UUID.randomUUID().toString().substring(1, 8))
                            .billingCycleDayLocal(31)
                            .currency(accountCurrency)
                            .paymentMethodId(UUID.randomUUID())
                            .timeZone(DateTimeZone.UTC)
                            .createdDate(clock.getUTCNow())
                            .build();
  final MutableCallContext mutableCallContext = new MutableCallContext(internalCallContext);
  final Account account;
  if (isFastTest()) {
    account = GuicyKillbillTestSuiteNoDB.createMockAccount(accountData, accountUserApi, accountApi, immutableAccountApi, nonEntityDao, clock, internalCallContextFactory, mutableCallContext, internalCallContext);
  } else {
    account = accountUserApi.createAccount(accountData, callContext);
  }
  GuicyKillbillTestSuite.refreshCallContext(account.getId(), clock, internalCallContextFactory, mutableCallContext, internalCallContext);
  return account;
}
origin: org.kill-bill.billing/killbill-beatrix

final AccountData accountData = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                            .firstNameLength(6)
                            .email(UUID.randomUUID().toString().substring(1, 8))
origin: org.kill-bill.billing/killbill-beatrix

final AccountData accountData = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                            .firstNameLength(6)
                            .email(UUID.randomUUID().toString().substring(1, 8))
origin: org.kill-bill.billing/killbill-beatrix

final AccountData accountData = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                            .firstNameLength(6)
                            .email(UUID.randomUUID().toString().substring(1, 8))
origin: org.kill-bill.billing/killbill-beatrix

final AccountData accountData = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                            .firstNameLength(6)
                            .email(UUID.randomUUID().toString().substring(1, 8))
origin: org.kill-bill.billing/killbill-util

.externalKey(externalKey)
.email(email)
.name(name).firstNameLength(firstNameLength)
.currency(currency)
.billingCycleDayLocal(billCycleDayLocal)
origin: org.kill-bill.billing/killbill-util

this.locale(data.getLocale());
this.migrated(data.isMigrated());
this.name(data.getName());
this.paymentMethodId(data.getPaymentMethodId());
this.phone(data.getPhone());
org.killbill.billing.mockMockAccountBuildername

Popular methods of MockAccountBuilder

  • <init>
  • build
  • migrated
  • paymentMethodId
  • billingCycleDayLocal
  • currency
  • email
  • externalKey
  • firstNameLength
  • phone
  • timeZone
  • referenceTime
  • timeZone,
  • referenceTime,
  • createdDate,
  • isPaymentDelegatedToParent,
  • locale,
  • parentAccountId,
  • address1,
  • address2,
  • city

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ImageIO (javax.imageio)
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
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