Class GenericGateway

Represents a generic shipping gateway.

Inheritance
System.Object
GenericGateway
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Plugins.Shipping.Generic
Assembly: Mediachase.Commerce.Plugins.Shipping.dll
Version: 10.8.0
Syntax
public class GenericGateway : IShippingPlugin, IShippingGateway

Constructors

GenericGateway()

Initializes a new instance of the GenericGateway class.

Declaration
public GenericGateway()

GenericGateway(IMarket)

Initializes a new instance of the GenericGateway class.

Declaration
public GenericGateway(IMarket market)
Parameters
Type Name Description
IMarket market

The market.

Methods

GetRate(Guid, IShipment, ref String)

Returns the package option array when method id and package that needs to be send is passed. Use passed message string to pass errors back to the application if any occurred.

Declaration
public ShippingRate GetRate(Guid shippingMethodId, IShipment shipment, ref string message)
Parameters
Type Name Description
System.Guid shippingMethodId

The shipping method id.

IShipment shipment

The shipment.

System.String message

The message.

Returns
Type Description
ShippingRate

Empty array if no results found.

GetRate(Guid, Shipment, ref String)

Returns the package option array when method id and package that needs to be send is passed. Use passed message string to pass errors back to the application if any occurred.

Declaration
public ShippingRate GetRate(Guid methodId, Shipment shipment, ref string message)
Parameters
Type Name Description
System.Guid methodId

The method id.

Shipment shipment

The shipment.

System.String message

The message.

Returns
Type Description
ShippingRate

Empty array if no results found.

Implements