Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- **Upgraded to .NET 8** - **Removed dependencies on RestSharp and Newtonsoft** - **Replaced Newtonsoft with System.Text.Json for serialization** - **Addressed issue of incompatible use of System.Text.Json and Newtonsoft** - **Modernized TaxjarAPI with the following objectives:** - Made implementation injectable and testable - Utilized HttpClientFactory for best practices - Minimized reflection usage - Created public `ITaxjarApi` interface for custom implementations and mocks - Changed date properties from `string` to `DateTime` for proper serialization and direct access - Created `TaxjarApiOptions` class for configurable options - Added `AddTaxjar` extension method to register Taxjar with the service collection - Replaced RestSharp with `HttpClientFactory` to prevent port exhaustion and outdated DNS, and to leverage Polly for resilience - Removed all synchronous methods to embrace asynchronous operations in HttpClient - Changed method signatures to use strongly typed records instead of anonymous objects - Removed calls to `GetProperty()` and `GetValue()`
- Loading branch information