Skip to content

feat: adds reference to claims #622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## v7.1.0 (2025-05-29)

- Adds `Reference` to Claims
- Adds `ReplacementOrder` and `StoreCredit` to Claim `PaymentMethod` list

## v7.0.1 (2025-05-27)

- Corrects the endpoint used for creating/updating UPS accounts
Expand Down
2 changes: 1 addition & 1 deletion EasyPost.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>EasyPost-Official</id>
<title>EasyPost (Official)</title>
<version>7.0.1</version>
<version>7.1.0</version>
<authors>EasyPost</authors>
<owners>EasyPost</owners>
<projectUrl>https://www.easypost.com</projectUrl>
Expand Down
6 changes: 6 additions & 0 deletions EasyPost/Models/API/Claim.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public class Claim : EasyPostObject, Parameters.IClaimParameter
[JsonProperty("recipient_name")]
public string? RecipientName { get; set; }

/// <summary>
/// An optional value that may be used in place of ID when doing Retrieve calls for this claim.
/// </summary>
[JsonProperty("reference")]
public string? Reference { get; set; }

/// <summary>
/// The amount that has been requested for reimbursement.
/// </summary>
Expand Down
12 changes: 12 additions & 0 deletions EasyPost/Models/API/ClaimPaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ public class ClaimPaymentMethod : ValueEnum
// ReSharper disable once InconsistentNaming
public static readonly ClaimPaymentMethod ACH = new(3, "ach");

/// <summary>
/// An enum representing paying a claim reimbursement via a replacement order.
/// </summary>
// ReSharper disable once InconsistentNaming
public static readonly ClaimPaymentMethod ReplacementOrder = new(4, "replacement_order");

/// <summary>
/// An enum representing paying a claim reimbursement via store credit.
/// </summary>
// ReSharper disable once InconsistentNaming
public static readonly ClaimPaymentMethod StoreCredit = new(5, "store_credit");

/// <summary>
/// Initializes a new instance of the <see cref="ClaimPaymentMethod"/> class.
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions EasyPost/Parameters/Claim/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ public class Create : BaseParameters<Models.API.Claim>, IClaimParameter
[TopLevelRequestParameter(Necessity.Optional, "recipient_name")]
public string? RecipientName { get; set; }

/// <summary>
/// An optional value that may be used in place of ID when doing Retrieve calls for this claim.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "reference")]
public string? Reference { get; set; }

/// <summary>
/// The email address of the contact for the claim.
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions EasyPost/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

// Version information for an assembly must follow semantic versioning
// When releasing a release candidate, append a 4th digit being the number of the release candidate
[assembly: AssemblyVersion("7.0.1")]
[assembly: AssemblyFileVersion("7.0.1")]
[assembly: AssemblyInformationalVersion("7.0.1")]
[assembly: AssemblyVersion("7.1.0")]
[assembly: AssemblyFileVersion("7.1.0")]
[assembly: AssemblyInformationalVersion("7.1.0")]
Loading