v3.0.0
Upgrading major versions of this project? Refer to the Upgrade Guide.
Breaking Changes
- Dropped explicit support for .NET Framework, replaced with .NET Standard 2.0
- Upgrades RestSharp from v106 to v107
- Project was built with C# 8.0
- Project is now entirely asynchronous which will require the addition of async/await on function calls
- Renames methods from
List()
toAll()
to make our library consistent (previously we had methods calling the/all
endpoint with both names) - Removes the unusable
Rating
class - Removes
shipment.GetRates()
method since the shipment object already has rates. If you need to get new rates for a shipment, please use theshipment.RegenerateRates()
method. - Must use
verify
andverify_strict
parameters to verify addresses during creation, per our API docs;verification
andstrict_verification
will no longer work - Clarify XList vs XCollection distinction:
ReportList
,ScanFormList
,ShipmentList
andTrackerList
renamed toReportCollection
,ScanFormCollection
,ShipmentCollection
andTrackerCollection
to match the other names throughout the project
- Functions previously called
Destroy
are now calledDelete
for consistency (eg: deleting a carrier account)
Features
- Adds explicit support for .NET 5.0 & 6.0
- Adds F# & Visual Basic compatibility
- Adds
RetrieveMe()
which retrieves the authenticated user without the need to pass an ID - Adds missing
billing_ref
anddropoff_type
Shipment options - Adds comprehensive test suite for .NET/.NET Core
- Adds
declaration
attribute toCustomsInfo
class - Adds missing
id
property to theBrand
class - Adds option to pass in a custom
HttpClient
to the Client constructor (.NET/.NET Core only) - Adds
CreateAndBuy
function to the Batch class
Bug Fixes
- Fixes bug where
AddressCollection
was storingBatch
objects rather thanAddress
objects - Fixes Address creation respecting
verify
andverify_strict
parameters - Fixes a bug where Pickup error messages were not deserializing properly
closes #151 , #152, #190, #245
Full Changelog: v2.8.1...v3.0.0