Class OrderReturnInfo
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Represents return information about order.
- Inheritance
-
Order
Return Info
- Inherited Members
Constructors
OrderReturnInfo(OrderReturnOperationState, string, double)
Initializes a new instance of the Order
Parameters
stateOrderReturn Operation State The return state.
messagestringThe message.
amountdoubleThe amount to return.
OrderReturnInfo(OrderReturnOperationState, string, double, Guid)
Initializes a new instance of the Order
public OrderReturnInfo(OrderReturnOperationState state, string message, double amount, Guid operationId)
Parameters
stateOrderReturn Operation State The return state.
messagestringThe message.
amountdoubleThe amount to return.
operationIdGuidThe ID of return operation.
Properties
Amount
Gets or sets the return amount.
Property Value
- double
The return amount.
Id
Gets or sets the return operation ID.
Property Value
Message
Gets or sets the message.
Property Value
- string
The message.
ReturnTime
Gets or sets the return time.
Property Value
- Date
Time The return time.
State
Gets or sets the state.
Property Value
- Order
Return Operation State The state.
Methods
CheckIfOrderReturned(Order, ref double)
Checks if order is fully returned and calculate remaining amount to return
Parameters
Returns
SaveReturnOperation(OrderReturnOperationState, string, double, Order)
Adds new operation to order and saves the order instance
public static void SaveReturnOperation(OrderReturnOperationState state, string message, double amount, Order order)
Parameters
stateOrderReturn Operation State The return state.
messagestringThe message.
amountdoubleThe amount to return.
orderOrderThe order to return.
SaveReturnOperation(OrderReturnOperationState, string, double, Order, Guid)
Adds new operation to order and saves the order instance
public static void SaveReturnOperation(OrderReturnOperationState state, string message, double amount, Order order, Guid operationId)
Parameters
stateOrderReturn Operation State The return state.
messagestringThe message.
amountdoubleThe amount to return.
orderOrderThe order to return.
operationIdGuidThe ID of return operation.