Shipment Models
Shipment models for ACPortal API.
- class ab.api.models.shipments.ShipmentParams(*, franchiseeId=None, providerId=None, proNumber=None)[source]
Bases:
RequestModelQuery parameters for GET /shipment.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.RateQuotesParams(*, ShipOutDate=None, RatesSources=None, SettingsKey=None)[source]
Bases:
RequestModelQuery parameters for GET rate quotes.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentDocumentParams(*, franchiseeId=None)[source]
Bases:
RequestModelQuery parameters for GET shipment document.
- Parameters:
franchiseeId (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.RateQuote(*, carrierName=None, serviceType=None, totalCharge=None, transitDays=None, accessorialCharges=None, providerOptionIndex=None, errors=None, rates=None, ratesKey=None, requestSnapshot=None, carrierCode=None, usedCarrierAccountInfo=None, serviceDays=None, price=None, accessorials=None, **extra_data)[source]
Bases:
ResponseModelRate quote — GET /job/{jobDisplayId}/shipment/ratequotes.
- Parameters:
carrierName (str | None)
serviceType (str | None)
totalCharge (float | None)
transitDays (int | None)
providerOptionIndex (int | None)
errors (list | None)
rates (list | None)
ratesKey (str | None)
requestSnapshot (dict | None)
carrierCode (str | None)
usedCarrierAccountInfo (dict | None)
serviceDays (int | None)
price (float | None)
accessorials (list | None)
extra_data (Any)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentOriginDestination(*, origin=None, destination=None, **extra_data)[source]
Bases:
ResponseModelOrigin/destination — GET /job/{jobDisplayId}/shipment/origindestination.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.Accessorial(*, id=None, name=None, description=None, price=None, isSelected=None, **extra_data)[source]
Bases:
ResponseModel,IdentifiedModelAccessorial — GET /job/{jobDisplayId}/shipment/accessorials.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentExportData(*, exportData=None, valuesSpecified=None, soldTo=None, commodities=None, packingInfo=None, customsValue=None, invoiceNumber=None, purchaseOrderNumber=None, termsOfSale=None, exporterTaxId=None, consigneeTaxId=None, totalCosts=None, uspsSpecific=None, fedExSpecific=None, upsSpecific=None, **extra_data)[source]
Bases:
ResponseModelExport data — GET /job/{jobDisplayId}/shipment/exportdata.
- Parameters:
exportData (dict | None)
valuesSpecified (dict | None)
soldTo (dict | None)
commodities (list | None)
packingInfo (list | None)
customsValue (float | None)
invoiceNumber (str | None)
purchaseOrderNumber (str | None)
termsOfSale (str | None)
exporterTaxId (str | None)
consigneeTaxId (str | None)
totalCosts (dict | None)
uspsSpecific (dict | None)
fedExSpecific (dict | None)
upsSpecific (dict | None)
extra_data (Any)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.RatesState(*, state=None, rates=None, fromZip=None, toZip=None, itemWeight=None, services=None, parcelItems=None, parcelServices=None, shipOutDate=None, **extra_data)[source]
Bases:
ResponseModelRates state — GET /job/{jobDisplayId}/shipment/ratesstate.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentWeight(*, pounds=None, originalWeight=None, originalWeightMeasureUnit=None, **extra_data)[source]
Bases:
ResponseModelWeight details for a shipment.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentInfo(*, shipmentId=None, status=None, carrier=None, proNumber=None, usedAPI=None, historyProviderName=None, historyStatuses=None, weight=None, jobWeight=None, successfully=None, errorMessage=None, multipleShipments=None, packages=None, estimatedDelivery=None, **extra_data)[source]
Bases:
ResponseModelShipment info — GET /shipment.
- Parameters:
shipmentId (str | None)
status (str | None)
carrier (str | None)
proNumber (str | None)
usedAPI (int | None)
historyProviderName (str | None)
historyStatuses (list | None)
weight (ShipmentWeight | None)
jobWeight (float | None)
successfully (bool | None)
errorMessage (str | None)
multipleShipments (bool | None)
packages (list | None)
estimatedDelivery (str | None)
extra_data (Any)
- weight: ShipmentWeight | None
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.RadioButtonOption(*, description=None, code=None, **extra_data)[source]
Bases:
ResponseModelRadio button option within an accessorial option.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.AccessorialOption(*, key=None, type=None, radioButtonOptions=None, **extra_data)[source]
Bases:
ResponseModelOption within a global accessorial.
- Parameters:
key (str | None)
type (int | None)
radioButtonOptions (List[RadioButtonOption] | None)
extra_data (Any)
- radio_button_options: List[RadioButtonOption] | None
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.GlobalAccessorial(*, id=None, name=None, category=None, description=None, price=None, options=None, uniqueId=None, sourceAPIs=None, **extra_data)[source]
Bases:
ResponseModelGlobal accessorial — GET /shipment/accessorials.
- Parameters:
- options: List[AccessorialOption] | None
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentBookRequest(*, providerOptionIndex=None, shipDate=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/shipment/book.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.AccessorialAddRequest(*, addOnId=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/shipment/accessorial.
- Parameters:
addOnId (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentRateQuoteRequest(*, ShipOutDate=None, RatesSources=None, SettingsKey=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/shipment/ratequotes.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.shipments.ShipmentExportRequest(*, exportData=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/shipment/exportdata.
- Parameters:
exportData (dict | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].