From 6b6cb115bf8de9f52df72d5afdba9bb0d93ce818 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Wed, 1 Jul 2026 12:01:33 -0600 Subject: [PATCH] feat: adds PaymentMode to carrier account create params --- CHANGELOG.md | 6 +++++- EasyPost.nuspec | 2 +- EasyPost/Models/API/CarrierAccount.cs | 6 ++++++ EasyPost/Parameters/CarrierAccount/Create.cs | 6 ++++++ EasyPost/Properties/VersionInfo.cs | 6 +++--- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5f41717c..242639fe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # CHANGELOG -## v7.8.0 (2025-06-25) +## v7.9.0 (2026-07-01) + +- Adds `PaymentMode` to carrier account create params + +## v7.8.0 (2026-06-25) - Adds `params` to `requestPin` ensuring users can pass `easypost_details` to the call diff --git a/EasyPost.nuspec b/EasyPost.nuspec index 3ebe223f6..3aa9235bb 100644 --- a/EasyPost.nuspec +++ b/EasyPost.nuspec @@ -3,7 +3,7 @@ EasyPost-Official EasyPost (Official) - 7.8.0 + 7.9.0 EasyPost EasyPost https://www.easypost.com diff --git a/EasyPost/Models/API/CarrierAccount.cs b/EasyPost/Models/API/CarrierAccount.cs index c9a29ee23..6b3128b8f 100644 --- a/EasyPost/Models/API/CarrierAccount.cs +++ b/EasyPost/Models/API/CarrierAccount.cs @@ -74,6 +74,12 @@ public class CarrierAccount : EasyPostObject, Parameters.ICarrierAccountParamete [JsonProperty("type")] public string? Type { get; set; } + /// + /// The payment mode for the associated carrier account. + /// + [JsonProperty("payment_mode")] + public string? PaymentMode { get; set; } + #endregion } } diff --git a/EasyPost/Parameters/CarrierAccount/Create.cs b/EasyPost/Parameters/CarrierAccount/Create.cs index e3e5fb5b3..c8d60be82 100644 --- a/EasyPost/Parameters/CarrierAccount/Create.cs +++ b/EasyPost/Parameters/CarrierAccount/Create.cs @@ -44,6 +44,12 @@ public class Create : ACreate [TopLevelRequestParameter(Necessity.Required, "carrier_account", "type")] public override string? Type { get; set; } + /// + /// Payment mode for the new . + /// + [TopLevelRequestParameter(Necessity.Optional, "carrier_account", "payment_mode")] + public string? PaymentMode { get; set; } + #endregion /// diff --git a/EasyPost/Properties/VersionInfo.cs b/EasyPost/Properties/VersionInfo.cs index 2f52c1a8e..e9045c550 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.8.0")] -[assembly: AssemblyFileVersion("7.8.0")] -[assembly: AssemblyInformationalVersion("7.8.0")] +[assembly: AssemblyVersion("7.9.0")] +[assembly: AssemblyFileVersion("7.9.0")] +[assembly: AssemblyInformationalVersion("7.9.0")]