Skip to content

Commit 00642a7

Browse files
Merge pull request #107 from ShipEngine/ENGINE-7190-funding-sources-wallet-errors
Added error codes for funding sources errors
2 parents 3c0020e + 91cee04 commit 00642a7

File tree

8 files changed

+50
-14
lines changed

8 files changed

+50
-14
lines changed

CHANGELOG.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Changelog
22

3-
43
## 1.0.0
54

65
### Features
@@ -16,15 +15,13 @@ Implement the following SDK methods.
1615
- `CreateLabelFromRate`
1716
- `GetRatesWithShipmentDetails`
1817

19-
2018
## 1.0.7
2119

2220
### Features
2321

2422
Implement the following SDK methods.
25-
- `CreateImplicitManifest`
26-
2723

24+
- `CreateImplicitManifest`
2825

2926
## 1.1.0
3027

@@ -41,7 +38,6 @@ Rename LabelDownload method to the more generic Download
4138

4239
Some documentation linking errors and minor typos
4340

44-
4541
## 1.1.1
4642

4743
### Added
@@ -52,7 +48,6 @@ Some documentation linking errors and minor typos
5248

5349
The Customs Item Quantity type has been changed to integer type for CreateLabelFromShipmentDetails model.
5450

55-
5651
## 1.1.2
5752

5853
### Fixed
@@ -150,7 +145,7 @@ Updated nuget package dependencies
150145

151146
### Added
152147

153-
- Created new SDK methods for the entire API that sit next to the pre-existing methods. The pre-existing methods will be deprecated eventually.
148+
- Created new SDK methods for the entire API that sit next to the pre-existing methods. The pre-existing methods will be deprecated eventually.
154149

155150
## 2.2.0
156151

@@ -175,7 +170,7 @@ Fixed handling of No Content responses
175170

176171
- Added ability to scope request modifiers by using the `.WithRequestModifier()` method instead of the `.ModifyRequest` property.
177172
This will allow consumers to modify a single request without affecting any other consumers of the client. It also allows for
178-
multiple modifiers to be added. For example, a modifier could be added at the global level that applies to all requests and then
173+
multiple modifiers to be added. For example, a modifier could be added at the global level that applies to all requests and then
179174
another modifier can be added for a single request.
180175

181176
## 2.3.1
@@ -200,4 +195,11 @@ Fixed handling of No Content responses
200195

201196
### Added
202197

203-
- Added error code MultipackageNotSupported
198+
- Added error code MultipackageNotSupported
199+
200+
## 2.3.5
201+
202+
### Added
203+
204+
- Added error code FundingSourceMissingConfiguration
205+
- Added error code FundingSourceError

ShipEngineSDK/Enums/ErrorCode.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,18 @@ public enum ErrorCode
262262
[EnumMember(Value = "webhook_event_type_conflict")]
263263
WebhookEventTypeConflict,
264264

265+
/// <summary>
266+
/// Funding source isnt properly configured and can't be used.
267+
/// </summary>
268+
[EnumMember(Value = "funding_source_missing_configuration")]
269+
FundingSourceMissingConfiguration,
270+
271+
/// <summary>
272+
/// There was an unexpected problem with a funding source.
273+
/// </summary>
274+
[EnumMember(Value = "funding_source_error")]
275+
FundingSourceError,
276+
265277
/// <summary>
266278
/// The attempted operation does not support multiple packages.
267279
/// </summary>

ShipEngineSDK/Enums/ErrorType.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ public enum ErrorType
4141
/// 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.
4242
/// </summary>/
4343
[EnumMember(Value = "system")]
44-
System
44+
System,
45+
46+
/// <summary>
47+
/// General wallet error type.
48+
/// </summary>/
49+
[EnumMember(Value = "wallet")]
50+
Wallet,
51+
52+
/// <summary>
53+
/// General funding sources error type.
54+
/// </summary>/
55+
[EnumMember(Value = "funding_sources")]
56+
FundingSources
4557
}
4658
}

ShipEngineSDK/PublicAPI.Shipped.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ ShipEngineSDK.ErrorCode.Unspecified = 35 -> ShipEngineSDK.ErrorCode
873873
ShipEngineSDK.ErrorCode.VerificationFailure = 36 -> ShipEngineSDK.ErrorCode
874874
ShipEngineSDK.ErrorCode.WarehouseConflict = 37 -> ShipEngineSDK.ErrorCode
875875
ShipEngineSDK.ErrorCode.WebhookEventTypeConflict = 38 -> ShipEngineSDK.ErrorCode
876+
ShipEngineSDK.ErrorCode.FundingSourceMissingConfiguration = 39 -> ShipEngineSDK.ErrorCode
877+
ShipEngineSDK.ErrorCode.FundingSourceError = 40 -> ShipEngineSDK.ErrorCode
876878
ShipEngineSDK.ErrorSource
877879
ShipEngineSDK.ErrorSource.Carrier = 1 -> ShipEngineSDK.ErrorSource
878880
ShipEngineSDK.ErrorSource.OrderSource = 2 -> ShipEngineSDK.ErrorSource

ShipEngineSDK/PublicAPI.Unshipped.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ ShipEngineSDK.Enums.ErrorCode.Unspecified = 35 -> ShipEngineSDK.Enums.ErrorCode
433433
ShipEngineSDK.Enums.ErrorCode.VerificationFailure = 36 -> ShipEngineSDK.Enums.ErrorCode
434434
ShipEngineSDK.Enums.ErrorCode.WarehouseConflict = 37 -> ShipEngineSDK.Enums.ErrorCode
435435
ShipEngineSDK.Enums.ErrorCode.WebhookEventTypeConflict = 38 -> ShipEngineSDK.Enums.ErrorCode
436+
ShipEngineSDK.Enums.ErrorCode.FundingSourceMissingConfiguration = 39 -> ShipEngineSDK.Enums.ErrorCode
437+
ShipEngineSDK.Enums.ErrorCode.FundingSourceError = 40 -> ShipEngineSDK.Enums.ErrorCode
436438
ShipEngineSDK.Enums.ErrorSource
437439
ShipEngineSDK.Enums.ErrorSource.Carrier = 1 -> ShipEngineSDK.Enums.ErrorSource
438440
ShipEngineSDK.Enums.ErrorSource.OrderSource = 2 -> ShipEngineSDK.Enums.ErrorSource
@@ -5718,6 +5720,8 @@ static ShipEngineSDK.Model.ErrorCode.Unspecified.get -> ShipEngineSDK.Model.Erro
57185720
static ShipEngineSDK.Model.ErrorCode.VerificationFailure.get -> ShipEngineSDK.Model.ErrorCode!
57195721
static ShipEngineSDK.Model.ErrorCode.WarehouseConflict.get -> ShipEngineSDK.Model.ErrorCode!
57205722
static ShipEngineSDK.Model.ErrorCode.WebhookEventTypeConflict.get -> ShipEngineSDK.Model.ErrorCode!
5723+
static ShipEngineSDK.Model.ErrorCode.FundingSourceMissingConfiguration.get -> ShipEngineSDK.Model.ErrorCode!
5724+
static ShipEngineSDK.Model.ErrorCode.FundingSourceError.get -> ShipEngineSDK.Model.ErrorCode!
57215725
static ShipEngineSDK.Model.ErrorSource.Carrier.get -> ShipEngineSDK.Model.ErrorSource!
57225726
static ShipEngineSDK.Model.ErrorSource.OrderSource.get -> ShipEngineSDK.Model.ErrorSource!
57235727
static ShipEngineSDK.Model.ErrorSource.Shipengine.get -> ShipEngineSDK.Model.ErrorSource!

ShipEngineSDK/ShipEngineSDK.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PackageId>ShipEngine</PackageId>
55
<PackageTags>sdk;rest;api;shipping;rates;label;tracking;cost;address;validation;normalization;fedex;ups;usps;</PackageTags>
66

7-
<Version>2.3.4</Version>
7+
<Version>2.3.5</Version>
88
<Authors>ShipEngine</Authors>
99
<Company>ShipEngine</Company>
1010
<Summary>The official ShipEngine C# SDK for .NET</Summary>

generation/swagger.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5641,7 +5641,9 @@
56415641
"validation",
56425642
"security",
56435643
"system",
5644-
"integrations"
5644+
"integrations",
5645+
"wallet",
5646+
"funding_sources"
56455647
],
56465648
"description": "The type of error\n"
56475649
},
@@ -5691,7 +5693,9 @@
56915693
"incompatible_paired_labels",
56925694
"invalid_charge_event",
56935695
"invalid_object",
5694-
"no_rates_returned"
5696+
"no_rates_returned",
5697+
"funding_source_missing_configuration",
5698+
"funding_source_error"
56955699
],
56965700
"description": "The error code specified for the failed API Call"
56975701
},

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"packageName": "ShipEngineSDK",
1414
"ignoreFileOverride": "./.openapi-generator-ignore",
1515
"additionalProperties": {
16-
"packageVersion": "2.3.4",
16+
"packageVersion": "2.3.5",
1717
"targetFramework": "netstandard2.0",
1818
"validatable": false,
1919
"sourceFolder": "",

0 commit comments

Comments
 (0)