Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v7.7.3 (2026-04-28)

- Corrects nesting of `report` create parameters in request allowing params like `columns` and `additional_columns` to take effect correctly (closes #658)

## v7.7.2 (2026-04-21)

- Corrects mapping of `Zip` and `Country` params for `RegisterAddress` parameter set to `postal_code` and `country_code` on the request
Expand Down
20 changes: 1 addition & 19 deletions EasyPost.Integration/TestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using EasyVCR;

// ReSharper disable once CheckNamespace
namespace EasyPost.Integration.Utilities
namespace EasyPost.Integration
{
public class Utils
{
Expand Down Expand Up @@ -74,21 +74,6 @@ internal static string ReadFile(string path)
return File.ReadAllText(filePath);
}

internal static string NetVersion
{
get
{
// ReSharper disable once RedundantAssignment
// ReSharper disable once ConvertToConstant.Local
string netVersion = "net";
#if NET472
netVersion = "netstandard";
#endif

return netVersion;
}
}

// ReSharper disable once InconsistentNaming
public class VCR
{
Expand Down Expand Up @@ -123,9 +108,6 @@ public VCR(string? testCassettesFolder = null, ApiKey apiKey = ApiKey.Test)

_testCassettesFolder = Path.Combine(GetSourceFileDirectory(), CassettesFolder); // create "cassettes" folder in same directory as test files

string netVersionFolder = NetVersion;

_testCassettesFolder = Path.Combine(_testCassettesFolder, netVersionFolder); // create .NET version-specific folder in "cassettes" folder

if (testCassettesFolder != null)
{
Expand Down
4 changes: 2 additions & 2 deletions EasyPost.Tests/ServicesTests/EventServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task TestRetrieveAllPayloads()
UseVCR("retrieve_payloads_for_event");

// Create a webhook to receive the event
string url = $"https://example.com/all_payloads/{TestUtils.NetVersion}";
string url = "https://example.com/all_payloads";
Webhook webhook = await Client.Webhook.Create(new Dictionary<string, object> { { "url", url } });
CleanUpAfterTest(webhook.Id);

Expand Down Expand Up @@ -129,7 +129,7 @@ public async Task TestRetrievePayload()
UseVCR("retrieve_payload_for_event");

// Create a webhook to receive the event
string url = $"https://example.com/single_payload/{TestUtils.NetVersion}";
string url = $"https://example.com/single_payload";
Webhook webhook = await Client.Webhook.Create(new Dictionary<string, object> { { "url", url } });
CleanUpAfterTest(webhook.Id);

Expand Down
8 changes: 4 additions & 4 deletions EasyPost.Tests/ServicesTests/WebhookServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task TestCreate()
{
UseVCR("create");

string url = $"https://example.com/create/{TestUtils.NetVersion}";
string url = $"https://example.com/create";

Dictionary<string, object> webhookParams = new Dictionary<string, object>()
{
Expand Down Expand Up @@ -79,7 +79,7 @@ public async Task TestRetrieve()
{
UseVCR("retrieve");

string url = $"https://example.com/retrieve/{TestUtils.NetVersion}";
string url = $"https://example.com/retrieve";

Webhook webhook = await Client.Webhook.Create(new Dictionary<string, object> { { "url", url } });
CleanUpAfterTest(webhook.Id);
Expand Down Expand Up @@ -159,7 +159,7 @@ public async Task TestUpdate()
{
UseVCR("update");

string url = $"https://example.com/update/{TestUtils.NetVersion}";
string url = $"https://example.com/update";

Webhook webhook = await Client.Webhook.Create(new Dictionary<string, object> { { "url", url } });
CleanUpAfterTest(webhook.Id);
Expand Down Expand Up @@ -188,7 +188,7 @@ public async Task TestDelete()
{
UseVCR("delete");

string url = $"https://example.com/delete/{TestUtils.NetVersion}";
string url = $"https://example.com/delete";

Webhook webhook = await Client.Webhook.Create(new Dictionary<string, object> { { "url", url } });
CleanUpAfterTest(webhook.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task TestCreate()
{
UseVCR("create");

string url = $"https://example.com/beta/create/{TestUtils.NetVersion}";
string url = $"https://example.com/beta/create";

Dictionary<string, object> data = new Dictionary<string, object> { { "url", url } };

Expand Down Expand Up @@ -80,7 +80,7 @@ public async Task TestUpdate()
{
UseVCR("update");

string url = $"https://example.com/beta/update/{TestUtils.NetVersion}";
string url = $"https://example.com/beta/update";
Parameters.Webhook.Create webhookParameters = new()
{
Url = url,
Expand Down
19 changes: 0 additions & 19 deletions EasyPost.Tests/TestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,6 @@ internal static string ReadFile(string path)
return File.ReadAllText(filePath);
}

internal static string NetVersion
{
get
{
// ReSharper disable once RedundantAssignment
// ReSharper disable once ConvertToConstant.Local
string netVersion = "net";
#if NET472
netVersion = "netstandard";
#endif

return netVersion;
}
}

// ReSharper disable once InconsistentNaming
public class VCR
{
Expand Down Expand Up @@ -134,10 +119,6 @@ public VCR(string? testCassettesFolder = null, ApiKey apiKey = ApiKey.Test)

_testCassettesFolder = Path.Combine(GetSourceFileDirectory(), CassettesFolder); // create "cassettes" folder in same directory as test files

string netVersionFolder = NetVersion;

_testCassettesFolder = Path.Combine(_testCassettesFolder, netVersionFolder); // create .NET version-specific folder in "cassettes" folder

if (testCassettesFolder != null)
{
_testCassettesFolder = Path.Combine(_testCassettesFolder, testCassettesFolder); // create test group folder in .NET version-specific folder
Expand Down
49 changes: 49 additions & 0 deletions EasyPost.Tests/cassettes/event_service/all.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 94 additions & 0 deletions EasyPost.Tests/cassettes/event_service/get_next_page.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading