本文整理汇总了Java中org.killbill.billing.account.api.Account.getExternalKey方法的典型用法代码示例。如果您正苦于以下问题:Java Account.getExternalKey方法的具体用法?Java Account.getExternalKey怎么用?Java Account.getExternalKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.killbill.billing.account.api.Account
的用法示例。
在下文中一共展示了Account.getExternalKey方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BusinessFieldModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessFieldModelDao(final Account account,
final Long accountRecordId,
final CustomField customField,
final Long customFieldRecordId,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(customFieldRecordId,
customField.getFieldName(),
customField.getFieldValue(),
customField.getCreatedDate(),
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
accountRecordId,
tenantRecordId,
reportGroup);
}
示例2: BusinessTagModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessTagModelDao(final Account account,
final Long accountRecordId,
final Tag tag,
final Long tagRecordId,
final TagDefinition tagDefinition,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(tagRecordId,
tagDefinition.getName(),
tag.getCreatedDate(),
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
accountRecordId,
tenantRecordId,
reportGroup);
}
示例3: BusinessAccountTransitionModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessAccountTransitionModelDao(final Account account,
final Long accountRecordId,
final String service,
final String state,
final LocalDate startDate,
final Long blockingStateRecordId,
final LocalDate endDate,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(blockingStateRecordId,
service,
state,
startDate,
endDate,
creationAuditLog != null ? creationAuditLog.getCreatedDate() : null,
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
accountRecordId,
tenantRecordId,
reportGroup);
}
示例4: toCustomerId
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
/**
* This function determines the customer id that will be used in the communication with Adyen.
* <p>
* The following heuristic is used to determine it:
* 1. If there was a customerId in the plugin properties this will be used.
* 2. If the account has an externalKey this will be used.
* 3. The id of the account is used.
* 4. In the unlikely case that there is no account, this function returns an empty Optional.
*
* @param customerId the customerId that has been sent in the plugin properties
* @param account the Kill Bill account
* @return the customer id as an Optional
*/
@VisibleForTesting
static Optional<String> toCustomerId(final String customerId, final Account account) {
if (customerId != null) {
return Optional.of(customerId);
} else if (account != null) {
if (account.getExternalKey() != null) {
return Optional.of(account.getExternalKey());
} else {
return Optional.of(account.getId().toString());
}
} else {
return Optional.absent();
}
}
示例5: BusinessBundleModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessBundleModelDao(final Account account,
final Long accountRecordId,
final SubscriptionBundle bundle,
final Long bundleRecordId,
final Integer bundleAccountRank,
final Boolean latestForBundleExternalKey,
final LocalDate chargedThroughDate,
final BusinessSubscriptionTransitionModelDao bst,
final CurrencyConverter currencyConverter,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(bundleRecordId,
bundle.getId(),
bundle.getExternalKey(),
bst.getSubscriptionId(),
bundleAccountRank,
latestForBundleExternalKey,
chargedThroughDate,
bst,
currencyConverter.getConvertedCurrency(),
bundle.getOriginalCreatedDate(),
bundle.getCreatedDate(),
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
accountRecordId,
tenantRecordId,
reportGroup);
}
示例6: BusinessInvoiceModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessInvoiceModelDao(final Account account,
final Long accountRecordId,
final Invoice invoice,
final Long invoiceRecordId,
final CurrencyConverter currencyConverter,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(invoiceRecordId,
invoice.getId(),
invoice.getInvoiceNumber(),
invoice.getInvoiceDate(),
invoice.getTargetDate(),
invoice.getCurrency() == null ? null : invoice.getCurrency().toString(),
invoice.getBalance(),
currencyConverter.getConvertedValue(invoice.getBalance(), invoice),
invoice.getPaidAmount(),
currencyConverter.getConvertedValue(invoice.getPaidAmount(), invoice),
invoice.getChargedAmount(),
currencyConverter.getConvertedValue(invoice.getChargedAmount(), invoice),
invoice.getOriginalChargedAmount(),
currencyConverter.getConvertedValue(invoice.getOriginalChargedAmount(), invoice),
invoice.getCreditedAmount(),
currencyConverter.getConvertedValue(invoice.getCreditedAmount(), invoice),
invoice.getRefundedAmount(),
currencyConverter.getConvertedValue(invoice.getRefundedAmount(), invoice),
currencyConverter.getConvertedCurrency(),
invoice.getCreatedDate(),
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
accountRecordId,
tenantRecordId,
reportGroup);
}
示例7: BusinessSubscriptionTransitionModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessSubscriptionTransitionModelDao(final Account account,
final Long accountRecordId,
final SubscriptionBundle bundle,
final SubscriptionEvent transition,
final Long subscriptionEventRecordId,
final BusinessSubscriptionEvent event,
@Nullable final BusinessSubscription previousSubscription,
final BusinessSubscription nextSubscription,
final CurrencyConverter currencyConverter,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(subscriptionEventRecordId,
bundle.getId(),
bundle.getExternalKey(),
transition.getEntitlementId(),
transition.getEffectiveDate(),
event,
previousSubscription,
nextSubscription,
currencyConverter.getConvertedCurrency(),
creationAuditLog != null ? creationAuditLog.getCreatedDate() : null,
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
accountRecordId,
tenantRecordId,
reportGroup);
}
开发者ID:killbill,项目名称:killbill-analytics-plugin,代码行数:33,代码来源:BusinessSubscriptionTransitionModelDao.java
示例8: BusinessInvoiceItemBaseModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessInvoiceItemBaseModelDao(final Account account,
final Long accountRecordId,
final Invoice invoice,
final InvoiceItem invoiceItem,
@Nullable final ItemSource itemSource,
final Long invoiceItemRecordId,
final Long secondInvoiceItemRecordId,
@Nullable final SubscriptionBundle bundle,
@Nullable final Plan plan,
@Nullable final PlanPhase planPhase,
final CurrencyConverter currencyConverter,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(invoiceItemRecordId,
secondInvoiceItemRecordId,
invoiceItem.getId(),
invoice.getId(),
invoice.getInvoiceNumber(),
invoice.getCreatedDate(),
invoice.getInvoiceDate(),
invoice.getTargetDate(),
invoice.getCurrency() == null ? null : invoice.getCurrency().toString(),
invoice.getBalance(),
currencyConverter.getConvertedValue(invoice.getBalance(), invoice),
invoice.getPaidAmount(),
currencyConverter.getConvertedValue(invoice.getPaidAmount(), invoice),
invoice.getChargedAmount(),
currencyConverter.getConvertedValue(invoice.getChargedAmount(), invoice),
invoice.getOriginalChargedAmount(),
currencyConverter.getConvertedValue(invoice.getOriginalChargedAmount(), invoice),
invoice.getCreditedAmount(),
currencyConverter.getConvertedValue(invoice.getCreditedAmount(), invoice),
invoice.getRefundedAmount(),
currencyConverter.getConvertedValue(invoice.getRefundedAmount(), invoice),
invoiceItem.getInvoiceItemType().toString(),
itemSource,
bundle == null ? null : bundle.getId(),
bundle == null ? null : bundle.getExternalKey(),
(plan != null && plan.getProduct() != null) ? plan.getProduct().getName() : null,
(plan != null && plan.getProduct() != null) ? plan.getProduct().getCatalogName() : null,
(plan != null && plan.getProduct().getCategory() != null) ? plan.getProduct().getCategory().toString() : null,
planPhase != null ? planPhase.getName() : null,
invoiceItem.getUsageName(),
(planPhase != null && planPhase.getPhaseType() != null) ? planPhase.getPhaseType().toString() : null,
(planPhase != null && planPhase.getRecurring() != null && planPhase.getRecurring().getBillingPeriod() != null) ? planPhase.getRecurring().getBillingPeriod().toString() : null,
invoiceItem.getStartDate(),
/* Populate end date for fixed items for convenience (null in invoice_items table) */
BusinessInvoiceItemUtils.computeServicePeriodEndDate(invoiceItem, planPhase, bundle),
invoiceItem.getAmount(),
currencyConverter.getConvertedValue(invoiceItem, invoice),
invoiceItem.getCurrency() == null ? null : invoiceItem.getCurrency().toString(),
invoiceItem.getLinkedItemId(),
currencyConverter.getConvertedCurrency(),
invoiceItem.getCreatedDate(),
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
accountRecordId,
tenantRecordId,
reportGroup);
}
示例9: BusinessAccountModelDao
import org.killbill.billing.account.api.Account; //导入方法依赖的package包/类
public BusinessAccountModelDao(final Account account,
final Account parentAccount,
final Long accountRecordId,
final BigDecimal balance,
@Nullable final Invoice oldestUnpaidInvoice,
@Nullable final Invoice lastInvoice,
@Nullable final PaymentTransaction lastCaptureOrPurchaseTransaction,
final Integer nbActiveBundles,
final CurrencyConverter currencyConverter,
@Nullable final AuditLog creationAuditLog,
final Long tenantRecordId,
@Nullable final ReportGroup reportGroup) {
this(account.getEmail(),
account.getFirstNameLength(),
account.getCurrency() == null ? null : account.getCurrency().toString(),
account.getBillCycleDayLocal(),
account.getPaymentMethodId(),
account.getTimeZone() == null ? null : account.getTimeZone().toString(),
account.getLocale(),
account.getAddress1(),
account.getAddress2(),
account.getCompanyName(),
account.getCity(),
account.getStateOrProvince(),
account.getCountry(),
account.getPostalCode(),
account.getPhone(),
account.isMigrated(),
account.isNotifiedForInvoices(),
account.getUpdatedDate(),
balance,
currencyConverter.getConvertedValue(balance, account),
oldestUnpaidInvoice == null ? null : oldestUnpaidInvoice.getInvoiceDate(),
oldestUnpaidInvoice == null ? null : oldestUnpaidInvoice.getBalance(),
oldestUnpaidInvoice == null ? null : oldestUnpaidInvoice.getCurrency().toString(),
currencyConverter.getConvertedValue(oldestUnpaidInvoice),
oldestUnpaidInvoice == null ? null : oldestUnpaidInvoice.getId(),
lastInvoice == null ? null : lastInvoice.getInvoiceDate(),
lastInvoice == null ? null : lastInvoice.getBalance(),
lastInvoice == null ? null : lastInvoice.getCurrency().toString(),
currencyConverter.getConvertedValue(lastInvoice),
lastInvoice == null ? null : lastInvoice.getId(),
lastCaptureOrPurchaseTransaction == null ? null : lastCaptureOrPurchaseTransaction.getEffectiveDate(),
lastCaptureOrPurchaseTransaction == null ? null : lastCaptureOrPurchaseTransaction.getTransactionStatus().toString(),
nbActiveBundles,
currencyConverter.getConvertedCurrency(),
account.getCreatedDate(),
creationAuditLog != null ? creationAuditLog.getUserName() : null,
creationAuditLog != null ? creationAuditLog.getReasonCode() : null,
creationAuditLog != null ? creationAuditLog.getComment() : null,
account.getId(),
account.getName(),
account.getExternalKey(),
parentAccount != null ? parentAccount.getId() : null,
parentAccount != null ? parentAccount.getName() : null,
parentAccount != null ? parentAccount.getExternalKey() : null,
accountRecordId,
tenantRecordId,
reportGroup);
}