OrderTransactionService Class
Assembly: PTS.Modules.OrderTransactionAggregate.dll
Syntax
public class OrderTransactionService : AggregateRootService<OrderTransactionAggregateRoot, OrderTransaction>, IServiceProviderAccessor, ISeedWork<IOrderTransactionService>, ISeedWork, IOrderTransactionService
Inheritance
System.Object
OrderTransactionService
Constructors
OrderTransactionService(IUnitOfWork, IOrderService, ITransactionService)
Declaration
public OrderTransactionService(IUnitOfWork unitOfWork, IOrderService orderService, ITransactionService transactionService)
Parameters
Properties
MoneyAccountActivities
Declaration
protected IRepository<MoneyAccountActivity> MoneyAccountActivities { get; }
Property Value
MoneyAccounts
Declaration
protected IRepository<MoneyAccount> MoneyAccounts { get; }
Property Value
Order
Declaration
protected IRepository<Order> Order { get; }
Property Value
Transactions
Declaration
protected IRepository<Transaction> Transactions { get; }
Property Value
Methods
GetItemBalanceAsync(Account, Order, Nullable<DateTime>, MoneyAccountType, Nullable<TransactionType>, CurrencyCode, TransactionStatus[])
Declaration
public Task<decimal> GetItemBalanceAsync(Account profile, Order order, DateTime? asOf, MoneyAccountType accountType, TransactionType? transactionType, CurrencyCode currency = CurrencyCode.NotSet, params TransactionStatus[] transactionStatuses)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
GetPaidAmountAsync(Order)
Declaration
public Task<decimal> GetPaidAmountAsync(Order order)
Parameters
Type |
Name |
Description |
Order |
order |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
GetRemainingDepositAmountAsync(Order)
Declaration
public Task<decimal> GetRemainingDepositAmountAsync(Order order)
Parameters
Type |
Name |
Description |
Order |
order |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
GetRemainingPaymentAmountAsync(Order)
Declaration
public Task<decimal> GetRemainingPaymentAmountAsync(Order order)
Parameters
Type |
Name |
Description |
Order |
order |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Decimal> |
|
SetPaymentStatusAsync(Order)
Declaration
public Task SetPaymentStatusAsync(Order order)
Parameters
Type |
Name |
Description |
Order |
order |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Extension Methods