Table of Contents

Class TrackAndTrace

Namespace
Dynamicweb.Ecommerce.Orders
Assembly
Dynamicweb.Ecommerce.dll
Represents a track and trace configuration for orders.
[Serializable]
public class TrackAndTrace
Inheritance
TrackAndTrace
Inherited Members

Constructors

TrackAndTrace()

Initializes a new instance of the TrackAndTrace class.
public TrackAndTrace()

Fields

CacheKey

[Obsolete("Do not use")]
public const string CacheKey = "ECOM:TRACKANDTRACE"

Field Value

string

Properties

ID

Gets or sets the identifier
public int ID { get; set; }

Property Value

int

IsNew

Indicates whether the current instance is new.
public bool IsNew { get; }

Property Value

bool

Name

Gets or sets the track and trace name.
public string Name { get; set; }

Property Value

string
The name.

Parameters

Gets or sets the track and trace Parameters.
public TrackAndTraceParameterCollection Parameters { get; set; }

Property Value

TrackAndTraceParameterCollection
The Parameters.

Url

Gets or sets the track and trace URL.
public string Url { get; set; }

Property Value

string
The URL.

Methods

AddParameter(string, string, string)

Adds the new TrackAndTraceParameter created from provided name, default value and description.
public void AddParameter(string parameterName, string defaultValue, string description)

Parameters

parameterName string
The parameter name.
defaultValue string
The parameter default value.
description string
The parameter description.

Delete()

[Obsolete("Use Services.TrackAndTraces.Delete instead.")]
public void Delete()

Delete(int)

Deletes track and trace by id.
[Obsolete("Use Services.TrackAndTraces.Delete instead.")]
public void Delete(int trackAndTraceId)

Parameters

trackAndTraceId int
The track and trace id.

Fill(IDataReader)

Fills this track and trace with data from the reader.
[Obsolete("Use Services.TrackAndTraces instead.")]
public void Fill(IDataReader reader)

Parameters

reader IDataReader
The reader.

GetFormatedUrl(string)

Gets the track and trace formated URL.
public string GetFormatedUrl(string parameterValues)

Parameters

parameterValues string
The URL parameters.

Returns

string

GetTrackAndTraceById(int)

Gets the track and trace by id.
[Obsolete("Use Services.TrackAndTraces.GetTrackAndTraceById instead.")]
public static TrackAndTrace GetTrackAndTraceById(int id)

Parameters

id int
The id.

Returns

TrackAndTrace

GetTrackAndTraces()

Gets all the track and trace objects.
[Obsolete("Use Services.TrackAndTraces.GetTrackAndTraces instead.")]
public static TrackAndTraceCollection GetTrackAndTraces()

Returns

TrackAndTraceCollection

Load(int)

[Obsolete("Use Services.TrackAndTraces.GetTrackAndTraceById instead.")]
public void Load(int id)

Parameters

id int

Save()

Saves this track and trace.
[Obsolete("Use Services.TrackAndTraces.Save instead.")]
public void Save()
To top