Client class
The Main EasyPost Client
ClientConfiguration config = ClientConfiguration("TEST_API_KEY", "PRODUCTION_API_KEY", ApiVersion.v2);
Client client = Client(config);
Constructors
- Client(ClientConfiguration config)
- Creates a new Client instance.
Properties
- accounts → AccountService
-
Services for account-related methods of the EasyPost API.
no setter
- addresses → AddressService
-
Service for address-related methods of the EasyPost API.
no setter
- apiKeys → ApiKeyService
-
Service for API key-related methods of the EasyPost API.
no setter
- batches → BatchService
-
Service for batch-related methods of the EasyPost API.
no setter
- billing → BillingService
-
Service for billing-related methods of the EasyPost API.
no setter
- carrierAccounts → CarrierAccountService
-
Service for carrier account-related methods of the EasyPost API.
no setter
- carrierMetadata → CarrierInfoService
-
Service for carrier info-related methods of the EasyPost API.
no setter
- carrierTypes → CarrierTypeService
-
Service for carrier type-related methods of the EasyPost API.
no setter
- config → ClientConfiguration
-
HTTP Client
final
- customsInfos → CustomsInfoService
-
Service for customs info-related methods of the EasyPost API.
no setter
- customsItems → CustomsItemService
-
Service for customs item-related methods of the EasyPost API.
no setter
- endShippers → EndShipperService
-
Service for end shipper-related methods of the EasyPost API.
no setter
- events → EventService
-
Service for event-related methods of the EasyPost API.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- insurance → InsuranceService
-
Service for insurance-related methods of the EasyPost API.
no setter
- orders → OrderService
-
Service for order-related methods of the EasyPost API.
no setter
- parcels → ParcelService
-
Service for parcel-related methods of the EasyPost API.
no setter
- partners → PartnerService
-
Service for white-label partner-related methods of the EasyPost API.
no setter
- pickups → PickupService
-
Service for pickup-related methods of the EasyPost API.
no setter
- rates → RateService
-
Service for rate-related methods of the EasyPost API.
no setter
- referrals → ReferralCustomerService
-
Service for referral customer-related methods of the EasyPost API.
no setter
- refunds → RefundService
-
Service for refund-related methods of the EasyPost API.
no setter
- reports → ReportService
-
Service for report-related methods of the EasyPost API.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanForms → ScanFormService
-
Service for scan form-related methods of the EasyPost API.
no setter
- shipments → ShipmentService
-
Service for shipment-related methods of the EasyPost API.
no setter
- trackers → TrackerService
-
Service for tracker-related methods of the EasyPost API.
no setter
- users → UserService
-
Service for user-related methods of the EasyPost API.
no setter
- webhooks → WebhookService
-
Service for webhook-related methods of the EasyPost API.
no setter
Methods
-
enableProductionMode(
) → void - Switches the client to production mode.
-
enableTestMode(
) → void - Switches the client to test mode.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
HttpMethod method, String url, ApiVersion apiVersion, {Map< String, dynamic> ? parameters, String? rootElement}) → Future<bool> -
requestJson(
HttpMethod method, String url, ApiVersion apiVersion, {Map< String, dynamic> ? parameters, String? rootElement}) → Future -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited