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

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

Best Java code snippets using org.killbill.billing.mock.MockAccountBuilder.firstNameLength (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.email(data.getEmail());
this.externalKey(data.getExternalKey());
this.firstNameLength(data.getFirstNameLength());
this.locale(data.getLocale());
this.migrated(data.isMigrated());
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

.firstNameLength(6)
.email(UUID.randomUUID().toString().substring(1, 8))
.phone(UUID.randomUUID().toString().substring(1, 8))
origin: org.kill-bill.billing/killbill-beatrix

.firstNameLength(6)
.email(UUID.randomUUID().toString().substring(1, 8))
.phone(UUID.randomUUID().toString().substring(1, 8))
origin: org.kill-bill.billing/killbill-beatrix

.firstNameLength(6)
.email(UUID.randomUUID().toString().substring(1, 8))
.phone(UUID.randomUUID().toString().substring(1, 8))
origin: org.kill-bill.billing/killbill-beatrix

.firstNameLength(6)
.email(UUID.randomUUID().toString().substring(1, 8))
.phone(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.email(data.getEmail());
this.externalKey(data.getExternalKey());
this.firstNameLength(data.getFirstNameLength());
this.locale(data.getLocale());
this.migrated(data.isMigrated());
org.killbill.billing.mockMockAccountBuilderfirstNameLength

Popular methods of MockAccountBuilder

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

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • findViewById (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 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