Work in Progress.

This page is automatically generated from the FabEngine Python package library source code. As we are working to develop and document FabEngine, this page will keep growing.

The fabengine.fulfillment Package

Functions in fabengine.fulfillment

Fulfillment functions.

class fabengine.fulfillment.Address(name, company, street, city, state, postcode, country)

Bases: builtins.object

Represents a postal address.

Parameters:
  • name (string) – The first line of the address label, usually contains the name of the recipient
  • company (string) – The company name of the recipient
  • street (string) – Street name and house numbers of the address. For countries where street names are not used, enter whatever is commonly written after recipient name and company.
  • city (string) – The city of the address. Leave out the postal code and state, these have separate fields.
  • state (string) – If the address is for a country where states are part of postal addresses, enter the state in the commonly used format for addresses. For the USA, use the two letter state abbreviation.
  • postcode (string) – This is the postcode or ZIP code of the address. Enter in the format commonly used for addresses in the respective country. Some countries have numerical postcodes, others alphanumeric. Do not include the state or city name in this parameter, these have their own fields.
  • country (string) – The name of the country the address is in. Enter this in an internationally recognized format in Western writing (preferable ASCII leaving out any accents). Postal carriers usually accept English or French country names. You can also use ISO 3166-1 country codes which will be converted into the country name when printing the shipping label.
fabengine.fulfillment.ship(method, address, returnAddress=None)

Ships an item via a postal carrier.

Code example:

fabengine.fulfillment.ship (
  content = shippingEnvelope,
  method = fabengine.fulfillment.shippingmethods.UPSSecondDayAir,
  address = fabengine.fulfillment.Address (
      name = "Chuck Norris",
      street = "1600 Pennsylvania Avenue",
      city = "Washington",
      state = "DC"
      postcode = "20500"
    ),
  returnAdress = fabengine.fulfillment.Address (
      name = "Q",
      street = "85 Vauxhall Cross",
      city = "London",
      postcode = "SE1 1BD",
      country = "United Kingdom"
    )
)
Parameters:
Returns:

An object representing the shipped package which included the tracking number if one exists.

Return type:

fabengine.objects.ShippedObject

The shippingmethods Module

The fabengine.fulfillment.shippingmethods module contains classes for every shipping methods available in FabEngine. Instances of these classes are valid method parameters for the fabengine.fulfillment.ship() function.

class fabengine.fulfillment.shippingmethods.ShippingMethod

Bases: builtins.object

This is the base class from which all real shipping methods are derived. You should never need to instantiate this class (instead use one of the classes derived from it), but it is listed in the documentation for completeness.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not. Note that calling this method on the ShippingMethod class will always return false, since this class is only a skeleton for real shipping methods such as fabengine.fulfillment.UPSSecondDayAir.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated against the shipping method
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPS2ndDayAir

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS 2nd Day Air shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPS2ndDayAirAM

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS 2nd Day Air A.M. shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPS3DaySelect

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS 3 Day Select shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSGround

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Ground shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSNextDayAir

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Next Day Air shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSNextDayAirEarlyAM

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Next Day Air Early A.M. shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSNextDayAirSaver

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Next Day Air Saver shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSWorldwideExpedited

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Worldwide Expedited shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSWorldwideExpress

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Worldwide Express shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSWorldwideExpressPlus

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Worldwide Express Plus shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSWorldwideSaver

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Worldwide Saver shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean
class fabengine.fulfillment.shippingmethods.UPSWorldwideStandard

Bases: fabengine.fulfillment.shippingmethods.ShippingMethod

Represents the UPS Worldwide Standard shipping method.

validateAddress(destinationAddress)

Function validates that this shipping method is available for a given destination address. Returns True if sending the shipment to the destination address is possible with the shipping address and false if not.

Parameters:destinationAddress (fabengine.fulfillment.Address) – The destination address to be validated.
Return type:boolean

The packagingmaterials Module

The fabengine.fulfillment.packagingmaterials module contains classes for every packaging material available in FabEngine. Instances of these classes are valid method parameters for the fulfillment.pack() function.

class fabengine.fulfillment.packagingmaterials.Box

Bases: builtins.object

This is the base class for packaging materials that end up on the exterior of a shipped package, e.g. cardboard boxes or other containers. You should never need to instantiate this class (instead use one of the classes derived from it), but it is listed in the documentation for completeness.

class fabengine.fulfillment.packagingmaterials.Filler

Bases: builtins.object

This is the base class for packaging materials that end up on the interior of a shipped package, e.g. peanuts or bubble wrap. You should never need to instantiate this class (instead use one of the classes derived from it), but it is listed in the documentation for completeness.