diff --git a/CHANGELOG.md b/CHANGELOG.md index a4fd82007..b129cde0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/EasyPost.nuspec b/EasyPost.nuspec index 3ff63fd4b..70ee0540e 100644 --- a/EasyPost.nuspec +++ b/EasyPost.nuspec @@ -3,7 +3,7 @@ EasyPost-Official EasyPost (Official) - 7.0.1 + 7.1.0 EasyPost EasyPost https://www.easypost.com diff --git a/EasyPost/Models/API/Claim.cs b/EasyPost/Models/API/Claim.cs index 9fe12b606..76b9760e0 100644 --- a/EasyPost/Models/API/Claim.cs +++ b/EasyPost/Models/API/Claim.cs @@ -83,6 +83,12 @@ public class Claim : EasyPostObject, Parameters.IClaimParameter [JsonProperty("recipient_name")] public string? RecipientName { get; set; } + /// + /// An optional value that may be used in place of ID when doing Retrieve calls for this claim. + /// + [JsonProperty("reference")] + public string? Reference { get; set; } + /// /// The amount that has been requested for reimbursement. /// diff --git a/EasyPost/Models/API/ClaimPaymentMethod.cs b/EasyPost/Models/API/ClaimPaymentMethod.cs index dd94f1fc0..612557f77 100644 --- a/EasyPost/Models/API/ClaimPaymentMethod.cs +++ b/EasyPost/Models/API/ClaimPaymentMethod.cs @@ -23,6 +23,18 @@ public class ClaimPaymentMethod : ValueEnum // ReSharper disable once InconsistentNaming public static readonly ClaimPaymentMethod ACH = new(3, "ach"); + /// + /// An enum representing paying a claim reimbursement via a replacement order. + /// + // ReSharper disable once InconsistentNaming + public static readonly ClaimPaymentMethod ReplacementOrder = new(4, "replacement_order"); + + /// + /// An enum representing paying a claim reimbursement via store credit. + /// + // ReSharper disable once InconsistentNaming + public static readonly ClaimPaymentMethod StoreCredit = new(5, "store_credit"); + /// /// Initializes a new instance of the class. /// diff --git a/EasyPost/Parameters/Claim/Create.cs b/EasyPost/Parameters/Claim/Create.cs index 98b3c68b3..168c2f703 100644 --- a/EasyPost/Parameters/Claim/Create.cs +++ b/EasyPost/Parameters/Claim/Create.cs @@ -64,6 +64,12 @@ public class Create : BaseParameters, IClaimParameter [TopLevelRequestParameter(Necessity.Optional, "recipient_name")] public string? RecipientName { get; set; } + /// + /// An optional value that may be used in place of ID when doing Retrieve calls for this claim. + /// + [TopLevelRequestParameter(Necessity.Optional, "reference")] + public string? Reference { get; set; } + /// /// The email address of the contact for the claim. /// diff --git a/EasyPost/Properties/VersionInfo.cs b/EasyPost/Properties/VersionInfo.cs index 83ef3996c..bb4318328 100644 --- a/EasyPost/Properties/VersionInfo.cs +++ b/EasyPost/Properties/VersionInfo.cs @@ -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")]