From 55fd081a1e26941665247303117a458356a8c099 Mon Sep 17 00:00:00 2001 From: "christian.casado" Date: Tue, 6 Aug 2024 18:40:04 +0200 Subject: [PATCH 1/4] Added error codes for funding sources errors --- ShipEngineSDK/Enums/ErrorCode.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ShipEngineSDK/Enums/ErrorCode.cs b/ShipEngineSDK/Enums/ErrorCode.cs index 26fdc481..4322e7a7 100644 --- a/ShipEngineSDK/Enums/ErrorCode.cs +++ b/ShipEngineSDK/Enums/ErrorCode.cs @@ -261,5 +261,17 @@ public enum ErrorCode /// [EnumMember(Value = "webhook_event_type_conflict")] WebhookEventTypeConflict, + + /// + /// Funding source isnt properly configured and can't be used. + /// + [EnumMember(Value = "funding_source_missing_configuration")] + FundingSourceMissingConfiguration, + + /// + /// There was an unexpected problem with a funding source. + /// + [EnumMember(Value = "funding_source_error")] + FundingSourceError, } } \ No newline at end of file From d7d78237d4337ffe2a0953d62b100c93d7e4db5e Mon Sep 17 00:00:00 2001 From: "christian.casado" Date: Wed, 7 Aug 2024 09:14:37 +0200 Subject: [PATCH 2/4] Added error codes for funding sources errors --- ShipEngineSDK/PublicAPI.Shipped.txt | 2 ++ ShipEngineSDK/PublicAPI.Unshipped.txt | 4 ++++ generation/swagger.json | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ShipEngineSDK/PublicAPI.Shipped.txt b/ShipEngineSDK/PublicAPI.Shipped.txt index 470c837f..fcf163a3 100644 --- a/ShipEngineSDK/PublicAPI.Shipped.txt +++ b/ShipEngineSDK/PublicAPI.Shipped.txt @@ -872,6 +872,8 @@ ShipEngineSDK.ErrorCode.Unspecified = 35 -> ShipEngineSDK.ErrorCode ShipEngineSDK.ErrorCode.VerificationFailure = 36 -> ShipEngineSDK.ErrorCode ShipEngineSDK.ErrorCode.WarehouseConflict = 37 -> ShipEngineSDK.ErrorCode ShipEngineSDK.ErrorCode.WebhookEventTypeConflict = 38 -> ShipEngineSDK.ErrorCode +ShipEngineSDK.ErrorCode.FundingSourceMissingConfiguration = 39 -> ShipEngineSDK.ErrorCode +ShipEngineSDK.ErrorCode.FundingSourceError = 40 -> ShipEngineSDK.ErrorCode ShipEngineSDK.ErrorSource ShipEngineSDK.ErrorSource.Carrier = 1 -> ShipEngineSDK.ErrorSource ShipEngineSDK.ErrorSource.OrderSource = 2 -> ShipEngineSDK.ErrorSource diff --git a/ShipEngineSDK/PublicAPI.Unshipped.txt b/ShipEngineSDK/PublicAPI.Unshipped.txt index c5d7f171..cf4f1cec 100644 --- a/ShipEngineSDK/PublicAPI.Unshipped.txt +++ b/ShipEngineSDK/PublicAPI.Unshipped.txt @@ -433,6 +433,8 @@ ShipEngineSDK.Enums.ErrorCode.Unspecified = 35 -> ShipEngineSDK.Enums.ErrorCode ShipEngineSDK.Enums.ErrorCode.VerificationFailure = 36 -> ShipEngineSDK.Enums.ErrorCode ShipEngineSDK.Enums.ErrorCode.WarehouseConflict = 37 -> ShipEngineSDK.Enums.ErrorCode ShipEngineSDK.Enums.ErrorCode.WebhookEventTypeConflict = 38 -> ShipEngineSDK.Enums.ErrorCode +ShipEngineSDK.Enums.ErrorCode.FundingSourceMissingConfiguration = 39 -> ShipEngineSDK.Enums.ErrorCode +ShipEngineSDK.Enums.ErrorCode.FundingSourceError = 40 -> ShipEngineSDK.Enums.ErrorCode ShipEngineSDK.Enums.ErrorSource ShipEngineSDK.Enums.ErrorSource.Carrier = 1 -> ShipEngineSDK.Enums.ErrorSource ShipEngineSDK.Enums.ErrorSource.OrderSource = 2 -> ShipEngineSDK.Enums.ErrorSource @@ -5718,6 +5720,8 @@ static ShipEngineSDK.Model.ErrorCode.Unspecified.get -> ShipEngineSDK.Model.Erro static ShipEngineSDK.Model.ErrorCode.VerificationFailure.get -> ShipEngineSDK.Model.ErrorCode! static ShipEngineSDK.Model.ErrorCode.WarehouseConflict.get -> ShipEngineSDK.Model.ErrorCode! static ShipEngineSDK.Model.ErrorCode.WebhookEventTypeConflict.get -> ShipEngineSDK.Model.ErrorCode! +static ShipEngineSDK.Model.ErrorCode.FundingSourceMissingConfiguration.get -> ShipEngineSDK.Model.ErrorCode! +static ShipEngineSDK.Model.ErrorCode.FundingSourceError.get -> ShipEngineSDK.Model.ErrorCode! static ShipEngineSDK.Model.ErrorSource.Carrier.get -> ShipEngineSDK.Model.ErrorSource! static ShipEngineSDK.Model.ErrorSource.OrderSource.get -> ShipEngineSDK.Model.ErrorSource! static ShipEngineSDK.Model.ErrorSource.Shipengine.get -> ShipEngineSDK.Model.ErrorSource! diff --git a/generation/swagger.json b/generation/swagger.json index ca870b7f..36ea623f 100644 --- a/generation/swagger.json +++ b/generation/swagger.json @@ -5691,7 +5691,9 @@ "incompatible_paired_labels", "invalid_charge_event", "invalid_object", - "no_rates_returned" + "no_rates_returned", + "funding_source_missing_configuration", + "funding_source_error" ], "description": "The error code specified for the failed API Call" }, From 2f61e08fbdd6aa3f2e384c83cc2c6d31e7ce2322 Mon Sep 17 00:00:00 2001 From: "christian.casado" Date: Wed, 7 Aug 2024 10:04:48 +0200 Subject: [PATCH 3/4] Added error codes for funding sources errors --- ShipEngineSDK/Enums/ErrorType.cs | 14 +++++++++++++- generation/swagger.json | 4 +++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ShipEngineSDK/Enums/ErrorType.cs b/ShipEngineSDK/Enums/ErrorType.cs index 03ba95b2..beed585d 100644 --- a/ShipEngineSDK/Enums/ErrorType.cs +++ b/ShipEngineSDK/Enums/ErrorType.cs @@ -41,6 +41,18 @@ public enum ErrorType /// An unknown or unexpected error occurred in our system. Or an error occurred that has not yet been assigned a specific error_type. If you receive persistent system errors, then please contact our support or check our API status page to see if there's a known issue. /// / [EnumMember(Value = "system")] - System + System, + + /// + /// General wallet error type. + /// / + [EnumMember(Value = "wallet")] + Wallet, + + /// + /// General funding sources error type. + /// / + [EnumMember(Value = "funding_sources")] + FundingSources } } \ No newline at end of file diff --git a/generation/swagger.json b/generation/swagger.json index 36ea623f..ae758397 100644 --- a/generation/swagger.json +++ b/generation/swagger.json @@ -5641,7 +5641,9 @@ "validation", "security", "system", - "integrations" + "integrations", + "wallet", + "funding_sources" ], "description": "The type of error\n" }, From 91cee0446fbca5cf710b741e1ebbd545770df0dc Mon Sep 17 00:00:00 2001 From: "christian.casado" Date: Wed, 8 Jan 2025 23:02:58 +0100 Subject: [PATCH 4/4] increase of version --- CHANGELOG.md | 20 +++++++++++--------- ShipEngineSDK/ShipEngineSDK.csproj | 2 +- openapitools.json | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c14a6a1c..46de8511 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,5 @@ # Changelog - ## 1.0.0 ### Features @@ -16,15 +15,13 @@ Implement the following SDK methods. - `CreateLabelFromRate` - `GetRatesWithShipmentDetails` - ## 1.0.7 ### Features Implement the following SDK methods. -- `CreateImplicitManifest` - +- `CreateImplicitManifest` ## 1.1.0 @@ -41,7 +38,6 @@ Rename LabelDownload method to the more generic Download Some documentation linking errors and minor typos - ## 1.1.1 ### Added @@ -52,7 +48,6 @@ Some documentation linking errors and minor typos The Customs Item Quantity type has been changed to integer type for CreateLabelFromShipmentDetails model. - ## 1.1.2 ### Fixed @@ -150,7 +145,7 @@ Updated nuget package dependencies ### Added -- Created new SDK methods for the entire API that sit next to the pre-existing methods. The pre-existing methods will be deprecated eventually. +- Created new SDK methods for the entire API that sit next to the pre-existing methods. The pre-existing methods will be deprecated eventually. ## 2.2.0 @@ -175,7 +170,7 @@ Fixed handling of No Content responses - Added ability to scope request modifiers by using the `.WithRequestModifier()` method instead of the `.ModifyRequest` property. This will allow consumers to modify a single request without affecting any other consumers of the client. It also allows for - multiple modifiers to be added. For example, a modifier could be added at the global level that applies to all requests and then + multiple modifiers to be added. For example, a modifier could be added at the global level that applies to all requests and then another modifier can be added for a single request. ## 2.3.1 @@ -200,4 +195,11 @@ Fixed handling of No Content responses ### Added -- Added error code MultipackageNotSupported \ No newline at end of file +- Added error code MultipackageNotSupported + +## 2.3.5 + +### Added + +- Added error code FundingSourceMissingConfiguration +- Added error code FundingSourceError diff --git a/ShipEngineSDK/ShipEngineSDK.csproj b/ShipEngineSDK/ShipEngineSDK.csproj index b796f82e..ad1d7323 100644 --- a/ShipEngineSDK/ShipEngineSDK.csproj +++ b/ShipEngineSDK/ShipEngineSDK.csproj @@ -4,7 +4,7 @@ ShipEngine sdk;rest;api;shipping;rates;label;tracking;cost;address;validation;normalization;fedex;ups;usps; - 2.3.4 + 2.3.5 ShipEngine ShipEngine The official ShipEngine C# SDK for .NET diff --git a/openapitools.json b/openapitools.json index 570cc2bd..e6f95d7d 100644 --- a/openapitools.json +++ b/openapitools.json @@ -13,7 +13,7 @@ "packageName": "ShipEngineSDK", "ignoreFileOverride": "./.openapi-generator-ignore", "additionalProperties": { - "packageVersion": "2.3.4", + "packageVersion": "2.3.5", "targetFramework": "netstandard2.0", "validatable": false, "sourceFolder": "",