Lookup Models
Lookup models for the ACPortal API.
- class ab.api.models.lookup.LookupItemsParams(*, jobDisplayId=None, jobItemId=None)[source]
Bases:
RequestModelQuery parameters for GET /lookup/items.
- 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.lookup.LookupDocumentTypesParams(*, documentSource=None)[source]
Bases:
RequestModelQuery parameters for GET /lookup/documentTypes.
- Parameters:
documentSource (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.lookup.LookupDensityClassMapParams(*, carrierApi=None)[source]
Bases:
RequestModelQuery parameters for GET /lookup/densityClassMap.
- Parameters:
carrierApi (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.lookup.ContactTypeEntity(*, id=None, name=None, description=None, value=None, **extra_data)[source]
Bases:
ResponseModelContact type — GET /lookup/contactTypes.
- 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.lookup.CountryCodeDto(*, code=None, name=None, id=None, iataCode=None, **extra_data)[source]
Bases:
ResponseModelCountry code — GET /lookup/countries.
- 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.lookup.JobStatus(*, id=None, name=None, description=None, key=None, value=None, **extra_data)[source]
Bases:
ResponseModelJob status entry — GET /lookup/jobStatuses.
- 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.lookup.LookupItem(*, id=None, name=None, **extra_data)[source]
Bases:
ResponseModelGeneric lookup item — GET /lookup/items.
- 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.lookup.LookupValue(*, id=None, key=None, name=None, value=None, **extra_data)[source]
Bases:
ResponseModelGeneric lookup value — GET /lookup/{masterConstantKey}.
Source: MasterData.cs — controller returns id/key/name/value.
- 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.lookup.AccessKey(*, accessKey=None, friendlyName=None, **extra_data)[source]
Bases:
ResponseModelAccess key record — GET /lookup/accessKeys.
Source: APIAccessKey.cs — accessKey/friendlyName fields.
- 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.lookup.AccessKeySetup(*, accessKey=None, friendlyName=None, userId=None, userIdentifier=None, referredById=None, referredBy=None, useAgentSearch=None, allowJobInfoUpdate=None, allowJobInfoUpdateWithoutBookingKey=None, ipProtections=None, parcelTransportationMultiplier=None, parcelAccessorialMultiplier=None, itemsCombineMaxInches=None, usePackLaborCalculation=None, useBasePickupFeeCalculation=None, forceAgentPickup=None, **extra_data)[source]
Bases:
ResponseModelAccess key setup details — GET /lookup/accessKey/{accessKey}.
Source: APIAccessKeySetup.cs — includes parent AccessKey fields.
- Parameters:
accessKey (str | None)
friendlyName (str | None)
userId (str | None)
userIdentifier (int | None)
referredById (str | None)
referredBy (str | None)
useAgentSearch (bool | None)
allowJobInfoUpdate (bool | None)
allowJobInfoUpdateWithoutBookingKey (bool | None)
ipProtections (list | None)
parcelTransportationMultiplier (float | None)
parcelAccessorialMultiplier (float | None)
itemsCombineMaxInches (int | None)
usePackLaborCalculation (bool | None)
useBasePickupFeeCalculation (bool | None)
forceAgentPickup (bool | 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.lookup.DocumentTypeBySource(*, name=None, value=None, documentSource=None, **extra_data)[source]
Bases:
ResponseModelDocument type by source — GET /lookup/documentTypes.
Source: DocumentTypeBySource.cs — name/value/documentSource fields.
- 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.lookup.PPCCampaign(*, id=None, name=None, **extra_data)[source]
Bases:
ResponseModelPPC campaign — GET /lookup/PPCCampaigns.
Source: PPCCampaign.cs — id/name fields.
- 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.lookup.CommonInsuranceSlab(*, id=None, key=None, name=None, value=None, insuranceSlabID=None, transpTypeID=None, deductibleAmount=None, isActive=None, rate=None, revision=None, insuranceType=None, **extra_data)[source]
Bases:
ResponseModelCommon insurance slab — GET /lookup/comonInsurance.
Source: Live API — insurance slab entity with rate/deductible fields.
- 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.lookup.ParcelPackageType(*, id=None, name=None, code=None, description=None, carrierAPI=None, carrierCode=None, weightLimit=None, lengthLimit=None, widthLimit=None, heightLimit=None, priority=None, weight=None, length=None, width=None, height=None, isActive=None, cost=None, sell=None, **extra_data)[source]
Bases:
ResponseModelParcel package type — GET /lookup/parcelPackageTypes.
Source: Live API response — full package type entity.
- Parameters:
id (int | None)
name (str | None)
code (str | None)
description (str | None)
carrierAPI (int | None)
carrierCode (str | None)
weightLimit (float | None)
lengthLimit (float | None)
widthLimit (float | None)
heightLimit (float | None)
priority (int | None)
weight (float | None)
length (float | None)
width (float | None)
height (float | None)
isActive (bool | None)
cost (float | None)
sell (float | 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.lookup.DensityClassEntry(*, rangeEnd=None, value=None, **extra_data)[source]
Bases:
ResponseModelDensity-to-class mapping — GET /lookup/densityClassMap.
Source: Live API — GuidSequentialRangeValue shape.
- 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].