Class RecurringOrder
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
The class RecurringOrder represents recurring order.
- Inheritance
-
Recurring
Order
- Inherited Members
Constructors
RecurringOrder()
Initializes a new instance of the Recurring
RecurringOrder(IDataReader)
Initializes a new instance of the Recurring
Parameters
dataReader
IDataReader The data reader.
Properties
BaseOrderId
Gets or sets recurring order base order ID.
Property Value
CanceledDeliveries
Gets or sets recurring order canceled deliveries as comma-separated string of serial numbers of deliveries counted from start date.
Property Value
EndDate
Gets or sets recurring orders end date.
Property Value
Interval
Gets or sets recurring orders interval.
Property Value
IntervalUnit
Gets or sets recurring orders interval unit(day, week, month).
Property Value
LastDelivery
Gets or sets previous date of recurring.
Property Value
NextDelivery
Gets next date of recurring.
Property Value
StartDate
Gets or sets recurring orders start date.
Property Value
TotalPrice
Gets or sets recurring order base order ID.
Property Value
UserId
Gets the recurring order related user ID.
Property Value
Methods
EndRecurring(int)
Update recurring order end date to now
Parameters
recurringOrderId
intThe id recurring order
Fill(IDataReader)
Fills the Card token properties from the specified data reader.
Parameters
reader
IDataReader The data reader.
FillRow(DataRow)
Fills the given System.
Parameters
row
DataRow An instance of the System.
Data. object to write data to.Data Row
GetEvents()
Retrieve recurring order events occurred during scheduler
Returns
GetFutureDeliveriesList()
Gets information about the future deliveries
Returns
GetNextDeliveryIndex(bool)
Gets index of next delivery.
Parameters
checkForCanceled
bool
Returns
GetPreviousOrdersIds()
Retrieve previous recurring orders IDs
Returns
GetRecurringOrderById(int)
Retrieve recurring order by ID
Parameters
id
intThe id of recurring order
Returns
GetRecurringOrderByTemplateId(string)
Retrieve recurring order by ID
Parameters
id
stringThe id of recurring order
Returns
GetRecurringOrderTotalPrice()
Retrieve recurring orders total
Returns
GetUserRecurringOrders(int)
Retrieve recurring orders for an user
Parameters
userId
intThe id of user
Returns
GetUserRecurringOrders(int, bool)
Retrieve recurring orders for an user
public static IEnumerable<RecurringOrder> GetUserRecurringOrders(int userId, bool useCustomerNumber)
Parameters
userId
intThe id of user
useCustomerNumber
boolThe indicator whether to use customer number instead of user id.
Returns
GetUserRecurringOrders(int, bool, DateTime)
Retrieve recurring orders for an user
public static IEnumerable<RecurringOrder> GetUserRecurringOrders(int userId, bool useCustomerNumber, DateTime fromDate)
Parameters
userId
intThe id of user
useCustomerNumber
boolThe indicator whether to use customer number instead of user id.
fromDate
DateTime The minimum order date.
Returns
HasErros()
Retrieve recurring order errors occurred during scheduler