Skip to content

Commit 54f9398

Browse files
authored
Merge pull request #622 from EasyPost/claim_reference
feat: adds reference to claims
2 parents 960bab0 + f73fdb3 commit 54f9398

File tree

6 files changed

+33
-4
lines changed

6 files changed

+33
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## v7.1.0 (2025-05-29)
4+
5+
- Adds `Reference` to Claims
6+
- Adds `ReplacementOrder` and `StoreCredit` to Claim `PaymentMethod` list
7+
38
## v7.0.1 (2025-05-27)
49

510
- Corrects the endpoint used for creating/updating UPS accounts

EasyPost.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>EasyPost-Official</id>
55
<title>EasyPost (Official)</title>
6-
<version>7.0.1</version>
6+
<version>7.1.0</version>
77
<authors>EasyPost</authors>
88
<owners>EasyPost</owners>
99
<projectUrl>https://www.easypost.com</projectUrl>

EasyPost/Models/API/Claim.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ public class Claim : EasyPostObject, Parameters.IClaimParameter
8383
[JsonProperty("recipient_name")]
8484
public string? RecipientName { get; set; }
8585

86+
/// <summary>
87+
/// An optional value that may be used in place of ID when doing Retrieve calls for this claim.
88+
/// </summary>
89+
[JsonProperty("reference")]
90+
public string? Reference { get; set; }
91+
8692
/// <summary>
8793
/// The amount that has been requested for reimbursement.
8894
/// </summary>

EasyPost/Models/API/ClaimPaymentMethod.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ public class ClaimPaymentMethod : ValueEnum
2323
// ReSharper disable once InconsistentNaming
2424
public static readonly ClaimPaymentMethod ACH = new(3, "ach");
2525

26+
/// <summary>
27+
/// An enum representing paying a claim reimbursement via a replacement order.
28+
/// </summary>
29+
// ReSharper disable once InconsistentNaming
30+
public static readonly ClaimPaymentMethod ReplacementOrder = new(4, "replacement_order");
31+
32+
/// <summary>
33+
/// An enum representing paying a claim reimbursement via store credit.
34+
/// </summary>
35+
// ReSharper disable once InconsistentNaming
36+
public static readonly ClaimPaymentMethod StoreCredit = new(5, "store_credit");
37+
2638
/// <summary>
2739
/// Initializes a new instance of the <see cref="ClaimPaymentMethod"/> class.
2840
/// </summary>

EasyPost/Parameters/Claim/Create.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ public class Create : BaseParameters<Models.API.Claim>, IClaimParameter
6464
[TopLevelRequestParameter(Necessity.Optional, "recipient_name")]
6565
public string? RecipientName { get; set; }
6666

67+
/// <summary>
68+
/// An optional value that may be used in place of ID when doing Retrieve calls for this claim.
69+
/// </summary>
70+
[TopLevelRequestParameter(Necessity.Optional, "reference")]
71+
public string? Reference { get; set; }
72+
6773
/// <summary>
6874
/// The email address of the contact for the claim.
6975
/// </summary>

EasyPost/Properties/VersionInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

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

0 commit comments

Comments
 (0)