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.
Fulfillment functions.
Bases: builtins.object
Represents a postal address.
| Parameters: |
|
|---|
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 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.
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.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS 2nd Day Air shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS 2nd Day Air A.M. shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS 3 Day Select shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Ground shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Next Day Air shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Next Day Air Early A.M. shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Next Day Air Saver shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Worldwide Expedited shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Worldwide Express shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Worldwide Express Plus shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Worldwide Saver shipping method.
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 |
Bases: fabengine.fulfillment.shippingmethods.ShippingMethod
Represents the UPS Worldwide Standard shipping method.
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 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.
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.
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.