Метод | Описание | |
---|---|---|
GetConfigurationRoute ( string &actionName, string &controllerName, RouteValueDictionary &routeValues ) : void |
Gets a route for provider configuration
|
|
GetFixedRate ( Nop.Services.Shipping.GetShippingOptionRequest getShippingOptionRequest ) : decimal? |
Gets fixed shipping rate (if shipping rate computation method allows it and the rate can be calculated before checkout).
|
|
GetShippingOptions ( Nop.Services.Shipping.GetShippingOptionRequest getShippingOptionRequest ) : Nop.Services.Shipping.GetShippingOptionResponse |
Gets available shipping options
|
|
Install ( ) : void |
Install plugin
|
|
USPSComputationMethod ( IMeasureService measureService, IShippingService shippingService, ISettingService settingService, Nop.Plugin.Shipping.USPS.USPSSettings uspsSettings, Nop.Core.Domain.Directory.MeasureSettings measureSettings, IPriceCalculationService priceCalculationService ) : System | ||
Uninstall ( ) : void |
Uninstall plugin
|
Метод | Описание | |
---|---|---|
IsDomesticRequest ( Nop.Services.Shipping.GetShippingOptionRequest getShippingOptionRequest ) : bool |
Is a request domestic
|
|
PoundsToOunces ( int pounds ) : int |
Convert pounds to ounces
|
Метод | Описание | |
---|---|---|
CreateRequest ( string username, string password, Nop.Services.Shipping.GetShippingOptionRequest getShippingOptionRequest ) : string | ||
DoRequest ( string url, string requestString ) : string | ||
GetPackageSize ( int length, int height, int width ) : USPSPackageSize | ||
IsPackageTooHeavy ( int weight ) : bool | ||
IsPackageTooLarge ( int length, int height, int width ) : bool | ||
ParseResponse ( string response, bool isDomestic, string &error ) : List |
||
TotalPackageSize ( int length, int height, int width ) : int |
public GetConfigurationRoute ( string &actionName, string &controllerName, RouteValueDictionary &routeValues ) : void | ||
actionName | string | Action name |
controllerName | string | Controller name |
routeValues | RouteValueDictionary | Route values |
Результат | void |
public GetFixedRate ( Nop.Services.Shipping.GetShippingOptionRequest getShippingOptionRequest ) : decimal? | ||
getShippingOptionRequest | Nop.Services.Shipping.GetShippingOptionRequest | A request for getting shipping options |
Результат | decimal? |
public GetShippingOptions ( Nop.Services.Shipping.GetShippingOptionRequest getShippingOptionRequest ) : Nop.Services.Shipping.GetShippingOptionResponse | ||
getShippingOptionRequest | Nop.Services.Shipping.GetShippingOptionRequest | A request for getting shipping options |
Результат | Nop.Services.Shipping.GetShippingOptionResponse |
protected IsDomesticRequest ( Nop.Services.Shipping.GetShippingOptionRequest getShippingOptionRequest ) : bool | ||
getShippingOptionRequest | Nop.Services.Shipping.GetShippingOptionRequest | Request |
Результат | bool |
protected PoundsToOunces ( int pounds ) : int | ||
pounds | int | |
Результат | int |
public USPSComputationMethod ( IMeasureService measureService, IShippingService shippingService, ISettingService settingService, Nop.Plugin.Shipping.USPS.USPSSettings uspsSettings, Nop.Core.Domain.Directory.MeasureSettings measureSettings, IPriceCalculationService priceCalculationService ) : System | ||
measureService | IMeasureService | |
shippingService | IShippingService | |
settingService | ISettingService | |
uspsSettings | Nop.Plugin.Shipping.USPS.USPSSettings | |
measureSettings | Nop.Core.Domain.Directory.MeasureSettings | |
priceCalculationService | IPriceCalculationService | |
Результат | System |