Interface IShippingService
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public interface IShippingService
Methods
GetShippingMethod(Int32)
Gets the shipping details for a specifc shipMethodId.
Declaration
Task<ShipMethod> GetShippingMethod(int shipMethodId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | shipMethodId | The id to look up. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ShipMethod> | Shipping method details. |
GetShippingMethods(Address, Int32)
Get possible shipping methods from storeId to address.
Declaration
Task<ShipMethod[]> GetShippingMethods(Address address, int storeId)
Parameters
| Type | Name | Description |
|---|---|---|
| Address | address | The address shipping to. |
| System.Int32 | storeId | The store the order is being placed from. Zero can be passed in to include all stores. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ShipMethod[]> | All possible ship methods. |