Class ShippingService
Inheritance
System.Object
ShippingService
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class ShippingService : Object, IShippingService
Constructors
ShippingService(IApiService)
Declaration
public ShippingService(IApiService apiService)
Parameters
| Type | Name | Description |
|---|---|---|
| IApiService | apiService |
Methods
GetShippingMethod(Int32)
Gets the shipping details for a specifc shipMethodId.
Declaration
public 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
public 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. |