Class ShippingSession
Represents session of ShippingSystem.
All PaySystem operation requires session as mandatory parameter
Inheritance
System.Object
ShippingSession
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.Web.dll
Syntax
public abstract class ShippingSession : DisposableObject, IDisposable, INamed
Constructors
ShippingSession(ShippingSystem, ShippingConnectionParameters)
Declaration
protected ShippingSession(ShippingSystem shipSystem, ShippingConnectionParameters cParams)
Parameters
Properties
IsValid
Declaration
public bool IsValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
ShippingSystem
Declaration
public ShippingSystem ShippingSystem { get; }
Property Value
User
Declaration
public User User { get; }
Property Value
Methods
CreateLabel(IShippingContext, Shipment)
Declaration
public Label CreateLabel(IShippingContext context, Shipment shipment)
Parameters
Returns
Destructor()
Declaration
protected override void Destructor()
Overrides
EstimateShippingCost(IShippingContext, Shipment)
Estimates shipping label cost
Declaration
public ShippingRate EstimateShippingCost(IShippingContext context, Shipment shipment)
Parameters
Returns
GetShippingCarriers(IShippingContext)
Returns all the carriers allowed for the system
Declaration
public IEnumerable<ShippingCarrier> GetShippingCarriers(IShippingContext context)
Parameters
Returns
GetTrackingURL(IShippingContext, String, String)
Retrieves tracking URL by carrier and number
Declaration
public string GetTrackingURL(IShippingContext context, string carrierID, string trackingNumber)
Parameters
Type |
Name |
Description |
IShippingContext |
context |
|
System.String |
carrierID |
|
System.String |
trackingNumber |
|
Returns
Type |
Description |
System.String |
|
TrackShipment(IShippingContext, String, String)
Retrieves shipment tracking info
Declaration
public TrackInfo TrackShipment(IShippingContext context, string carrierID, string trackingNumber)
Parameters
Type |
Name |
Description |
IShippingContext |
context |
|
System.String |
carrierID |
|
System.String |
trackingNumber |
|
Returns
ValidateAddress(IShippingContext, Address, out ValidateShippingAddressException)
Validates shipping address.
Returns new Address instance which may contain corrected address fields ('New Yourk' -> 'New York')
Declaration
public Address ValidateAddress(IShippingContext context, Address address, out ValidateShippingAddressException error)
Parameters
Returns
Implements
System.IDisposable
Extension Methods