London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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: 13.30.0
Syntax
public class GenericGateway : IShippingPlugin, IShippingGateway

Constructors

GenericGateway()

Declaration
public GenericGateway()

Methods

GetRate(IMarket, 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(IMarket market, Guid shippingMethodId, IShipment shipment, ref string message)
Parameters
Type Name Description
IMarket market

The market.

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(IMarket, 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(IMarket market, Guid methodId, Shipment shipment, ref string message)
Parameters
Type Name Description
IMarket market

The market.

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