Package org.cyclos.entities.banking
Interface HasCurrency
-
- All Known Subinterfaces:
HasCurrencyAmount,IAccount,IUserAccount,Trans,TransactionWithInstallments<I>
- All Known Implementing Classes:
Account,AccountBalanceLimitLog,AccountFee,AccountFeeLog,AccountFeeTransfer,AccountHistoryEntry,AccountPaymentAmountLimitLog,AccountRates,AccountType,AdDeliveryMethod,AdInterest,Advertisement,AdWebShop,AmountReservation,AuthorizationLevel,BalanceDisposalTransfer,BaseAccountLimitLog,BaseAccountNotificationSettings,BasePayment,BasicAd,ChargebackTransfer,ClosedAccountBalance,CurrencyAmount,CurrencyAmountRange,CustomAmountReservation,ExternalPayment,ExternalPaymentAmountReservation,GeneratedTransferType,ImportTransaction,ImportTransfer,InitialCreditTransfer,Installment,InstallmentAmountReservation,InstallmentTransfer,InternalTransaction,MemberProduct,OidcAuthorization,OperatorGroupAccountNotificationSettings,OperatorGroupPaymentType,Order,OrderAmountReservation,OrderProduct,Payment,PaymentRequest,PaymentTransfer,PaymentTransferType,PendingAuthorizationAmountReservation,PendingUserAccount,RatedCurrencyAmount,RecurringPayment,RecurringPaymentOccurrence,ScheduledPayment,ScheduledPaymentAmountReservation,ScheduledPaymentInstallment,SystemAccount,SystemAccountType,Ticket,TicketAmountReservation,Transaction,Transfer,TransferFee,TransferFeeTransfer,TransferType,TransWrapper,UserAccount,UserAccountFeeLog,UserAccountNotificationSettings,UserAccountType,UserSendVouchersImportedFile,Voucher,VoucherAmountReservation,VoucherChargeback,VoucherConfiguration,VoucherPack,VoucherPackAmountReservation,VoucherRedeem,VoucherTopUp,VoucherTransaction,VoucherTransactionAmountReservation,VoucherType,VoucherUnblockAmountReservation
public interface HasCurrencyMarks an entity to have a currency
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CurrencygetCurrency()default BigDecimalround(BigDecimal amount)Rounds the given amount to the number of decimal digits in the current currency.default CurrencyAmountwithCurrency(BigDecimal amount)Creates a CurrencyAmount with the current currency and the given amount.
-
-
-
Method Detail
-
getCurrency
Currency getCurrency()
-
round
default BigDecimal round(BigDecimal amount)
Rounds the given amount to the number of decimal digits in the current currency.
-
withCurrency
default CurrencyAmount withCurrency(BigDecimal amount)
Creates a CurrencyAmount with the current currency and the given amount.- See Also:
CurrencyAmount.of(Currency, BigDecimal)
-
-