Codota Logo
MockAccountBuilder.paymentMethodId
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

.currency(currency)
.billingCycleDayLocal(billCycleDayLocal)
.paymentMethodId(paymentMethodId)
.timeZone(timeZone)
.locale(locale)
origin: killbill/killbill

this.migrated(data.isMigrated());
this.name(data.getName());
this.paymentMethodId(data.getPaymentMethodId());
this.phone(data.getPhone());
this.notes(data.getNotes());
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 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

.billingCycleDayLocal(1)
.currency(Currency.USD)
.paymentMethodId(UUID.randomUUID())
.referenceTime(clock.getUTCNow())
.timeZone(tz)
origin: org.kill-bill.billing/killbill-beatrix

.billingCycleDayLocal(1)
.currency(Currency.USD)
.paymentMethodId(UUID.randomUUID())
.referenceTime(clock.getUTCNow())
.timeZone(tz)
origin: org.kill-bill.billing/killbill-beatrix

.billingCycleDayLocal(1)
.currency(Currency.USD)
.paymentMethodId(UUID.randomUUID())
.referenceTime(clock.getUTCNow())
.timeZone(tz)
origin: org.kill-bill.billing/killbill-beatrix

.billingCycleDayLocal(1)
.currency(Currency.USD)
.paymentMethodId(UUID.randomUUID())
.referenceTime(clock.getUTCNow())
.timeZone(tz)
origin: org.kill-bill.billing/killbill-payment

public UUID addTestPaymentMethod(final String pluginName, final Account account, final PaymentMethodPlugin paymentMethodInfo, final Iterable<PluginProperty> pluginProperties) throws Exception {
  final boolean setDefault = paymentMethodInfo.isDefaultPaymentMethod();
  final UUID paymentMethodId = paymentApi.addPaymentMethod(account, paymentMethodInfo.getExternalPaymentMethodId(), pluginName, setDefault, paymentMethodInfo, pluginProperties, context);
  if (isFastTest() && setDefault) {
    final Account account1 = new MockAccountBuilder(account).paymentMethodId(paymentMethodId).build();
    accountApi.updateAccount(account1, context);
  }
  return paymentMethodId;
}
origin: org.kill-bill.billing/killbill-util

.currency(currency)
.billingCycleDayLocal(billCycleDayLocal)
.paymentMethodId(paymentMethodId)
.timeZone(timeZone)
.locale(locale)
origin: org.kill-bill.billing/killbill-util

this.migrated(data.isMigrated());
this.name(data.getName());
this.paymentMethodId(data.getPaymentMethodId());
this.phone(data.getPhone());
this.notes(data.getNotes());
org.killbill.billing.mockMockAccountBuilderpaymentMethodId

Popular methods of MockAccountBuilder

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

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JCheckBox (javax.swing)
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now