Show / Hide Table of Contents

Class ShippoSystem

Inheritance
System.Object
DisposableObject
ApplicationComponent
Service
Service<System.Object>
ServiceWithInstrumentationBase<System.Object>
ShippingSystem
ShippoSystem
Implements
IApplicationComponent
System.IDisposable
IService
INamed
ILocalizedTimeProvider
IWebClientCaller
IShippingSystemImplementation
IShippingSystem
IConfigurable
IInstrumentable
IExternallyParameterized
Inherited Members
ShippingSystem.USPS_CARRIER_ID
ShippingSystem.DHL_EXPRESS_CARRIER_ID
ShippingSystem.FEDEX_CARRIER_ID
ShippingSystem.UPS_CARRIER_ID
ShippingSystem.CONFIG_CARRIERS_SECTION
ShippingSystem.CONFIG_CARRIER_SECTION
ShippingSystem.CONFIG_SHIPPING_PROCESSING_SECTION
ShippingSystem.CONFIG_SHIPPING_SYSTEM_HOST_SECTION
ShippingSystem.CONFIG_SHIPPING_SYSTEM_SECTION
ShippingSystem.CONFIG_AUTO_START_ATTR
ShippingSystem.DEFAULT_LOG_LEVEL
ShippingSystem.ShippingSystemHost
ShippingSystem.IsShippingSystemHost
ShippingSystem.___SetShippingSystemHost(IShippingSystemHostImplementation)
ShippingSystem.Instances
ShippingSystem.AutoStartSystems()
ShippingSystem.Destructor()
ShippingSystem.LogLevel
ShippingSystem.InstrumentationEnabled
ShippingSystem.DefaultSessionConnectParamsCfg
ShippingSystem.PreconfiguredShippingCarriers
ShippingSystem.WebServiceCallTimeoutMs
ShippingSystem.KeepAlive
ShippingSystem.Pipelined
ShippingSystem.StartSession(ShippingConnectionParameters)
ShippingSystem.GetShippingCarriers(ShippingSession, IShippingContext)
ShippingSystem.DefaultSessionConnectParams
ShippingSystem.DoConfigure(IConfigSectionNode)
ShippingSystem.DoStart()
ShippingSystem.DoWaitForCompleteStop()
ShippingSystem.DoAcceptManagerVisit(Object, DateTime)
ShippingSystem.Log(MessageType, String, String, Exception, Nullable<Guid>, String)
ShippingSystem.StatCreateLabelError()
ShippingSystem.StatCreateLabel()
ShippingSystem.StatTrackShipmentErrorCount()
ShippingSystem.StatTrackShipmentCount()
ShippingSystem.StatValidateAddressErrorCount()
ShippingSystem.StatValidateAddressCount()
ShippingSystem.StatEstimateShippingCostErrorCount()
ShippingSystem.StatEstimateShippingCostCount()
ServiceWithInstrumentationBase<Object>.ExternalParameters
ServiceWithInstrumentationBase<Object>.ExternalParametersForGroups(String[])
ServiceWithInstrumentationBase<Object>.ExternalGetParameter(String, Object, String[])
ServiceWithInstrumentationBase<Object>.ExternalSetParameter(String, Object, String[])
Service<Object>.ComponentDirector
Service.CONFIG_NAME_ATTR
Service.ApplicationDontAutoStartService
Service.Status
Service.Running
Service.Name
Service.TimeLocation
Service.LocalizedTime
Service.Configure(IConfigSectionNode)
Service.Start()
Service.SignalStop()
Service.CheckForCompleteStop()
Service.WaitForCompleteStop()
Service.AcceptManagerVisit(Object, DateTime)
Service.UniversalTimeToLocalizedTime(DateTime)
Service.LocalizedTimeToUniversalTime(DateTime)
Service.AbortStart()
Service.DoSignalStop()
Service.DoCheckForCompleteStop()
Service.CheckServiceInactive()
Service.CheckServiceActive()
Service.CheckServiceActiveOrStarting()
Service.____ObtainPrivateServiceStatusLockObject()
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
ApplicationComponent.ComponentCommonName
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Web.Shipping.Shippo
Assembly: NFX.Web.dll
Syntax
public class ShippoSystem : ShippingSystem, IApplicationComponent, IDisposable, IService, INamed, ILocalizedTimeProvider, IWebClientCaller, IShippingSystemImplementation, IShippingSystem, IConfigurable, IInstrumentable, IExternallyParameterized

Constructors

ShippoSystem(String, IConfigSectionNode)

Declaration
public ShippoSystem(string name, IConfigSectionNode node)
Parameters
Type Name Description
System.String name
IConfigSectionNode node

ShippoSystem(String, IConfigSectionNode, Object)

Declaration
public ShippoSystem(string name, IConfigSectionNode node, object director)
Parameters
Type Name Description
System.String name
IConfigSectionNode node
System.Object director

Fields

CARRIERS

Declaration
public static readonly Dictionary<CarrierType, string> CARRIERS
Field Value
Type Description
System.Collections.Generic.Dictionary<CarrierType, System.String>

CODE_INVALID

Declaration
public const string CODE_INVALID = "Invalid"
Field Value
Type Description
System.String

DIST_UNITS

Declaration
public static readonly Dictionary<Distance.UnitType, string> DIST_UNITS
Field Value
Type Description
System.Collections.Generic.Dictionary<Distance.UnitType, System.String>

FORMATS

Declaration
public static readonly Dictionary<LabelFormat, string> FORMATS
Field Value
Type Description
System.Collections.Generic.Dictionary<LabelFormat, System.String>

HDR_AUTHORIZATION

Declaration
public const string HDR_AUTHORIZATION = "Authorization"
Field Value
Type Description
System.String

HDR_AUTHORIZATION_TOKEN

Declaration
public const string HDR_AUTHORIZATION_TOKEN = "ShippoToken {0}"
Field Value
Type Description
System.String

PURCHASE_PURPOSE

Declaration
public const string PURCHASE_PURPOSE = "PURCHASE"
Field Value
Type Description
System.String

QUOTE_PURPOSE

Declaration
public const string QUOTE_PURPOSE = "QUOTE"
Field Value
Type Description
System.String

SHIPPO_REALM

Declaration
public const string SHIPPO_REALM = "shippo"
Field Value
Type Description
System.String

STATUS_ERROR

Declaration
public const string STATUS_ERROR = "ERROR"
Field Value
Type Description
System.String

STATUS_INVALID

Declaration
public const string STATUS_INVALID = "INVALID"
Field Value
Type Description
System.String

STATUS_SUCCESS

Declaration
public const string STATUS_SUCCESS = "SUCCESS"
Field Value
Type Description
System.String

STATUS_VALID

Declaration
public const string STATUS_VALID = "VALID"
Field Value
Type Description
System.String

TRACK_STATUSES

Declaration
public static readonly Dictionary<string, TrackStatus> TRACK_STATUSES
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, TrackStatus>

URI_ADDRESS

Declaration
public const string URI_ADDRESS = "/v1/addresses"
Field Value
Type Description
System.String

URI_API_BASE

Declaration
public const string URI_API_BASE = "https://api.goshippo.com"
Field Value
Type Description
System.String

URI_RATES

Declaration
public const string URI_RATES = "/v1/rates/{0}"
Field Value
Type Description
System.String

URI_SHIPMENTS

Declaration
public const string URI_SHIPMENTS = "/v1/shipments"
Field Value
Type Description
System.String

URI_TRACKING

Declaration
public const string URI_TRACKING = "/v1/tracks/{0}/{1}"
Field Value
Type Description
System.String

URI_TRACKING_BY_NUM

Declaration
public const string URI_TRACKING_BY_NUM = "http://tracking.goshippo.com/{0}/{1}"
Field Value
Type Description
System.String

URI_TRACKING_FORM

Declaration
public const string URI_TRACKING_FORM = "http://tracking.goshippo.com/"
Field Value
Type Description
System.String

URI_TRANSACTIONS

Declaration
public const string URI_TRANSACTIONS = "/v1/transactions"
Field Value
Type Description
System.String

WEIGHT_UNITS

Declaration
public static readonly Dictionary<Weight.UnitType, string> WEIGHT_UNITS
Field Value
Type Description
System.Collections.Generic.Dictionary<Weight.UnitType, System.String>

Properties

Capabilities

Declaration
public override IShippingSystemCapabilities Capabilities { get; }
Property Value
Type Description
IShippingSystemCapabilities
Overrides
ShippingSystem.Capabilities

Methods

CreateLabel(ShippingSession, IShippingContext, Shipment)

Declaration
public override Label CreateLabel(ShippingSession session, IShippingContext context, Shipment shipment)
Parameters
Type Name Description
ShippingSession session
IShippingContext context
Shipment shipment
Returns
Type Description
Label
Overrides
ShippingSystem.CreateLabel(ShippingSession, IShippingContext, Shipment)

CreateLabel(ShippoSession, IShippingContext, Shipment)

Declaration
public Label CreateLabel(ShippoSession session, IShippingContext context, Shipment shipment)
Parameters
Type Name Description
ShippoSession session
IShippingContext context
Shipment shipment
Returns
Type Description
Label

DoStartSession(ShippingConnectionParameters)

Declaration
protected override ShippingSession DoStartSession(ShippingConnectionParameters cParams = null)
Parameters
Type Name Description
ShippingConnectionParameters cParams
Returns
Type Description
ShippingSession
Overrides
ShippingSystem.DoStartSession(ShippingConnectionParameters)

EstimateShippingCost(ShippingSession, IShippingContext, Shipment)

Declaration
public override ShippingRate EstimateShippingCost(ShippingSession session, IShippingContext context, Shipment shipment)
Parameters
Type Name Description
ShippingSession session
IShippingContext context
Shipment shipment
Returns
Type Description
ShippingRate
Overrides
ShippingSystem.EstimateShippingCost(ShippingSession, IShippingContext, Shipment)

EstimateShippingCost(ShippoSession, IShippingContext, Shipment)

Declaration
public ShippingRate EstimateShippingCost(ShippoSession session, IShippingContext context, Shipment shipment)
Parameters
Type Name Description
ShippoSession session
IShippingContext context
Shipment shipment
Returns
Type Description
ShippingRate

GetTrackingURL(ShippingSession, IShippingContext, String, String)

Declaration
public override string GetTrackingURL(ShippingSession session, IShippingContext context, string carrierID, string trackingNumber)
Parameters
Type Name Description
ShippingSession session
IShippingContext context
System.String carrierID
System.String trackingNumber
Returns
Type Description
System.String
Overrides
ShippingSystem.GetTrackingURL(ShippingSession, IShippingContext, String, String)

GetTrackingURL(ShippoSession, IShippingContext, String, String)

Declaration
public string GetTrackingURL(ShippoSession session, IShippingContext context, string carrierID, string trackingNumber)
Parameters
Type Name Description
ShippoSession session
IShippingContext context
System.String carrierID
System.String trackingNumber
Returns
Type Description
System.String

MakeDefaultSessionConnectParams(IConfigSectionNode)

Declaration
protected override ShippingConnectionParameters MakeDefaultSessionConnectParams(IConfigSectionNode paramsSection)
Parameters
Type Name Description
IConfigSectionNode paramsSection
Returns
Type Description
ShippingConnectionParameters
Overrides
ShippingSystem.MakeDefaultSessionConnectParams(IConfigSectionNode)

TrackShipment(ShippingSession, IShippingContext, String, String)

Declaration
public override TrackInfo TrackShipment(ShippingSession session, IShippingContext context, string carrierID, string trackingNumber)
Parameters
Type Name Description
ShippingSession session
IShippingContext context
System.String carrierID
System.String trackingNumber
Returns
Type Description
TrackInfo
Overrides
ShippingSystem.TrackShipment(ShippingSession, IShippingContext, String, String)

TrackShipment(ShippoSession, IShippingContext, String, String)

Declaration
public TrackInfo TrackShipment(ShippoSession session, IShippingContext context, string carrierID, string trackingNumber)
Parameters
Type Name Description
ShippoSession session
IShippingContext context
System.String carrierID
System.String trackingNumber
Returns
Type Description
TrackInfo

ValidateAddress(ShippingSession, IShippingContext, Address, out ValidateShippingAddressException)

Declaration
public override Address ValidateAddress(ShippingSession session, IShippingContext context, Address address, out ValidateShippingAddressException error)
Parameters
Type Name Description
ShippingSession session
IShippingContext context
Address address
ValidateShippingAddressException error
Returns
Type Description
Address
Overrides
ShippingSystem.ValidateAddress(ShippingSession, IShippingContext, Address, out ValidateShippingAddressException)

ValidateAddress(ShippoSession, IShippingContext, Address, out ValidateShippingAddressException)

Declaration
public Address ValidateAddress(ShippoSession session, IShippingContext context, Address address, out ValidateShippingAddressException error)
Parameters
Type Name Description
ShippoSession session
IShippingContext context
Address address
ValidateShippingAddressException error
Returns
Type Description
Address

Implements

IApplicationComponent
System.IDisposable
IService
INamed
ILocalizedTimeProvider
IWebClientCaller
IShippingSystemImplementation
IShippingSystem
IConfigurable
IInstrumentable
IExternallyParameterized

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX