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
state
OrderReturn Operation State The return state.
message
stringThe message.
amount
doubleThe 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
state
OrderReturn Operation State The return state.
message
stringThe message.
amount
doubleThe amount to return.
operationId
GuidThe 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
state
OrderReturn Operation State The return state.
message
stringThe message.
amount
doubleThe amount to return.
order
OrderThe 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
state
OrderReturn Operation State The return state.
message
stringThe message.
amount
doubleThe amount to return.
order
OrderThe order to return.
operationId
GuidThe ID of return operation.