C# Class Kooboo.Commerce.Orders.OrderService

Mostrar archivo Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
AcceptPayment ( Order order, Payment payment ) : void
ChangeStatus ( Order order, OrderStatus newStatus ) : void
Create ( Order order ) : bool
CreateFromCart ( ShoppingCart cart, ShoppingContext context ) : Order
Find ( int id ) : Order
OrderService ( CommerceInstance instance ) : System
Query ( ) : IQueryable

Method Details

AcceptPayment() public method

public AcceptPayment ( Order order, Payment payment ) : void
order Order
payment Kooboo.Commerce.Payments.Payment
return void

ChangeStatus() public method

public ChangeStatus ( Order order, OrderStatus newStatus ) : void
order Order
newStatus OrderStatus
return void

Create() public method

public Create ( Order order ) : bool
order Order
return bool

CreateFromCart() public method

public CreateFromCart ( ShoppingCart cart, ShoppingContext context ) : Order
cart ShoppingCart
context ShoppingContext
return Order

Find() public method

public Find ( int id ) : Order
id int
return Order

OrderService() public method

public OrderService ( CommerceInstance instance ) : System
instance CommerceInstance
return System

Query() public method

public Query ( ) : IQueryable
return IQueryable