ITransactionService Interface
Assembly: PTS.Modules.Transactions.dll
Syntax
public interface ITransactionService
Methods
GenerateAccountActivityAsync(Transaction)
Declaration
Task GenerateAccountActivityAsync(Transaction transaction)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
GenerateGiftCards(Decimal, Int32, Nullable<DateTime>, Nullable<DateTime>, String, String)
Declaration
List<MoneyAccount> GenerateGiftCards(decimal initialAmount, int count = 1, DateTime? expireOn = default(DateTime? ), DateTime? validFrom = default(DateTime? ), string name = null, string note = null)
Parameters
Type |
Name |
Description |
System.Decimal |
initialAmount |
|
System.Int32 |
count |
|
System.Nullable<System.DateTime> |
expireOn |
|
System.Nullable<System.DateTime> |
validFrom |
|
System.String |
name |
|
System.String |
note |
|
Returns
Type |
Description |
System.Collections.Generic.List<MoneyAccount> |
|
GenerateGiftCardsAsync(Decimal, Int32, Nullable<DateTime>, Nullable<DateTime>, String, String)
Declaration
Task<List<MoneyAccount>> GenerateGiftCardsAsync(decimal initialAmount, int count = 1, DateTime? expireOn = default(DateTime? ), DateTime? validFrom = default(DateTime? ), string name = null, string note = null)
Parameters
Type |
Name |
Description |
System.Decimal |
initialAmount |
|
System.Int32 |
count |
|
System.Nullable<System.DateTime> |
expireOn |
|
System.Nullable<System.DateTime> |
validFrom |
|
System.String |
name |
|
System.String |
note |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<MoneyAccount>> |
|
GetAccountBalance(Account, BalanceType, MoneyAccountType, Nullable<DateTime>, CurrencyCode)
Declaration
decimal GetAccountBalance(Account profile, BalanceType type, MoneyAccountType accountType = MoneyAccountType.Primary, DateTime? asOf = default(DateTime? ), CurrencyCode currency = CurrencyCode.NotSet)
Parameters
Returns
Type |
Description |
System.Decimal |
|
GetAccountBalanceAsync(Account, BalanceType, MoneyAccountType, Nullable<DateTime>, CurrencyCode)
Declaration
Task<decimal> GetAccountBalanceAsync(Account profile, BalanceType type, MoneyAccountType accountType = MoneyAccountType.Primary, DateTime? asOf = default(DateTime? ), CurrencyCode currency = CurrencyCode.NotSet)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
GetAccountTotalCredit(Account, BalanceType, Nullable<DateTime>, Nullable<DateTime>, MoneyAccountType, CurrencyCode)
Declaration
decimal GetAccountTotalCredit(Account profile, BalanceType type, DateTime? asOf = default(DateTime? ), DateTime? from = default(DateTime? ), MoneyAccountType accountType = MoneyAccountType.Primary, CurrencyCode currency = CurrencyCode.NotSet)
Parameters
Returns
Type |
Description |
System.Decimal |
|
GetAccountTotalCreditAsync(Account, BalanceType, Nullable<DateTime>, Nullable<DateTime>, MoneyAccountType, CurrencyCode)
Declaration
Task<decimal> GetAccountTotalCreditAsync(Account profile, BalanceType type, DateTime? asOf = default(DateTime? ), DateTime? from = default(DateTime? ), MoneyAccountType accountType = MoneyAccountType.Primary, CurrencyCode currency = CurrencyCode.NotSet)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
GetAccountTotalDebit(Account, BalanceType, Nullable<DateTime>, Nullable<DateTime>, MoneyAccountType, CurrencyCode)
Declaration
decimal GetAccountTotalDebit(Account profile, BalanceType type, DateTime? asOf = default(DateTime? ), DateTime? from = default(DateTime? ), MoneyAccountType accountType = MoneyAccountType.Primary, CurrencyCode currency = CurrencyCode.NotSet)
Parameters
Returns
Type |
Description |
System.Decimal |
|
GetAccountTotalDebitAsync(Account, BalanceType, Nullable<DateTime>, Nullable<DateTime>, MoneyAccountType, CurrencyCode)
Declaration
Task<decimal> GetAccountTotalDebitAsync(Account profile, BalanceType type, DateTime? asOf = default(DateTime? ), DateTime? from = default(DateTime? ), MoneyAccountType accountType = MoneyAccountType.Primary, CurrencyCode currency = CurrencyCode.NotSet)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
GetActivity(MoneyAccount)
Declaration
List<MoneyAccountActivity> GetActivity(MoneyAccount account)
Parameters
Returns
GetActivityAsync(MoneyAccount)
Declaration
Task<List<MoneyAccountActivity>> GetActivityAsync(MoneyAccount account)
Parameters
Returns
GetBalance(MoneyAccount, BalanceType, Nullable<DateTime>)
Declaration
decimal GetBalance(MoneyAccount account, BalanceType type, DateTime? asOf = default(DateTime? ))
Parameters
Returns
Type |
Description |
System.Decimal |
|
GetBalanceAsync(MoneyAccount, BalanceType, Nullable<DateTime>)
Declaration
Task<decimal> GetBalanceAsync(MoneyAccount account, BalanceType type, DateTime? asOf = default(DateTime? ))
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
GetHolder(MoneyAccount)
Declaration
Account GetHolder(MoneyAccount account)
Parameters
Returns
GetHolderAsync(MoneyAccount)
Declaration
ValueTask<Account> GetHolderAsync(MoneyAccount account)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<Account> |
|
GetMoneyAccount(Account, MoneyAccountType, Boolean, CurrencyCode, CountryCode)
Declaration
MoneyAccount GetMoneyAccount(Account profile, MoneyAccountType accountType = MoneyAccountType.Primary, bool allocate = false, CurrencyCode currency = CurrencyCode.NotSet, CountryCode country = CountryCode.NotSet)
Parameters
Returns
GetMoneyAccountAsync(Account, MoneyAccountType, Boolean, CurrencyCode, CountryCode)
Declaration
Task<MoneyAccount> GetMoneyAccountAsync(Account profile, MoneyAccountType accountType = MoneyAccountType.Primary, bool allocate = false, CurrencyCode currency = CurrencyCode.NotSet, CountryCode country = CountryCode.NotSet)
Parameters
Returns
GetSourceMoneyAccountAsync(Transaction)
Declaration
ValueTask<MoneyAccount> GetSourceMoneyAccountAsync(Transaction transaction)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<MoneyAccount> |
|
GetTargetMoneyAccountAsync(Transaction)
Declaration
ValueTask<MoneyAccount> GetTargetMoneyAccountAsync(Transaction transaction)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<MoneyAccount> |
|
GetTransaction(MoneyAccountActivity)
Declaration
Transaction GetTransaction(MoneyAccountActivity transaction)
Parameters
Returns
GetTransactionAsync(MoneyAccountActivity)
Declaration
ValueTask<Transaction> GetTransactionAsync(MoneyAccountActivity transaction)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<Transaction> |
|
RequestPayout(Account, Decimal, MoneyAccountType)
Declaration
Transaction RequestPayout(Account profile, decimal amount, MoneyAccountType accountType = MoneyAccountType.Primary)
Parameters
Returns
RequestPayoutAsync(Account, Decimal, MoneyAccountType)
Declaration
Task<Transaction> RequestPayoutAsync(Account profile, decimal amount, MoneyAccountType accountType = MoneyAccountType.Primary)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Transaction> |
|
Extension Methods