C# Class DotNetShipping.ShippingProviders.FedExBaseProvider

Inheritance: DotNetShipping.ShippingProviders.AbstractShippingProvider
Show file Open project: kylewest/DotNetShipping

Protected Properties

Property Type Description
_accountNumber string
_allowInsuredValues bool
_key string
_meterNumber string
_password string
_serviceCodes string>.Dictionary
_useProduction bool

Public Methods

Method Description
GetRates ( ) : void

Gets rates

GetServiceCodes ( ) : string>.IDictionary

Gets service codes.

Protected Methods

Method Description
CreateRateRequest ( ) : DotNetShipping.RateServiceWebReference.RateRequest

Creates the rate request

FedExBaseProvider ( ) : System

Paramaterless constructor that loads settings from app.config

FedExBaseProvider ( string key, string password, string accountNumber, string meterNumber ) : System

ProcessReply ( DotNetShipping.RateServiceWebReference.RateReply reply ) : void

Processes the reply

SetDestination ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void

Sets the destination

SetOrigin ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void

Sets the origin

SetPackageLineItems ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void

Sets package line items

SetServiceCodes ( ) : void

Sets service codes.

SetShipmentDetails ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void

Sets shipment details

ShowNotifications ( DotNetShipping.RateServiceWebReference.RateReply reply ) : void

Outputs the notifications to the debug console

Private Methods

Method Description
Init ( string key, string password, string accountNumber, string meterNumber, bool useProduction ) : void

Method Details

CreateRateRequest() protected method

Creates the rate request
protected CreateRateRequest ( ) : DotNetShipping.RateServiceWebReference.RateRequest
return DotNetShipping.RateServiceWebReference.RateRequest

FedExBaseProvider() protected method

Paramaterless constructor that loads settings from app.config
protected FedExBaseProvider ( ) : System
return System

FedExBaseProvider() protected method

protected FedExBaseProvider ( string key, string password, string accountNumber, string meterNumber ) : System
key string
password string
accountNumber string
meterNumber string
return System

GetRates() public method

Gets rates
public GetRates ( ) : void
return void

GetServiceCodes() public method

Gets service codes.
public GetServiceCodes ( ) : string>.IDictionary
return string>.IDictionary

ProcessReply() protected method

Processes the reply
protected ProcessReply ( DotNetShipping.RateServiceWebReference.RateReply reply ) : void
reply DotNetShipping.RateServiceWebReference.RateReply
return void

SetDestination() protected method

Sets the destination
protected SetDestination ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void
request DotNetShipping.RateServiceWebReference.RateRequest
return void

SetOrigin() protected method

Sets the origin
protected SetOrigin ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void
request DotNetShipping.RateServiceWebReference.RateRequest
return void

SetPackageLineItems() protected method

Sets package line items
protected SetPackageLineItems ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void
request DotNetShipping.RateServiceWebReference.RateRequest
return void

SetServiceCodes() protected abstract method

Sets service codes.
protected abstract SetServiceCodes ( ) : void
return void

SetShipmentDetails() protected abstract method

Sets shipment details
protected abstract SetShipmentDetails ( DotNetShipping.RateServiceWebReference.RateRequest request ) : void
request DotNetShipping.RateServiceWebReference.RateRequest
return void

ShowNotifications() protected static method

Outputs the notifications to the debug console
protected static ShowNotifications ( DotNetShipping.RateServiceWebReference.RateReply reply ) : void
reply DotNetShipping.RateServiceWebReference.RateReply
return void

Property Details

_accountNumber protected property

protected string _accountNumber
return string

_allowInsuredValues protected property

FedEx allows insured values for items being shipped except when utilizing SmartPost. This setting will this value to be overwritten.
protected bool _allowInsuredValues
return bool

_key protected property

protected string _key
return string

_meterNumber protected property

protected string _meterNumber
return string

_password protected property

protected string _password
return string

_serviceCodes protected property

protected Dictionary _serviceCodes
return string>.Dictionary

_useProduction protected property

protected bool _useProduction
return bool