Class GenericGateway
Represents a generic shipping gateway.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Plugins.Shipping.Generic
Assembly: Mediachase.Commerce.Plugins.Shipping.dll
Version: 13.30.0Syntax
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. |