Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added error codes for funding sources errors #107

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ShipEngineSDK/Enums/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,17 @@ public enum ErrorCode
/// </summary>
[EnumMember(Value = "webhook_event_type_conflict")]
WebhookEventTypeConflict,

/// <summary>
/// Funding source isnt properly configured and can't be used.
/// </summary>
[EnumMember(Value = "funding_source_missing_configuration")]
FundingSourceMissingConfiguration,

/// <summary>
/// There was an unexpected problem with a funding source.
/// </summary>
[EnumMember(Value = "funding_source_error")]
FundingSourceError,
}
}
14 changes: 13 additions & 1 deletion ShipEngineSDK/Enums/ErrorType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
/// 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.
/// </summary>/
[EnumMember(Value = "system")]
System
System,

/// <summary>
/// General wallet error type.
/// </summary>/
[EnumMember(Value = "wallet")]
Wallet,

Check warning on line 50 in ShipEngineSDK/Enums/ErrorType.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest


/// <summary>
/// General funding sources error type.
/// </summary>/
[EnumMember(Value = "funding_sources")]
FundingSources

Check warning on line 56 in ShipEngineSDK/Enums/ErrorType.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

}
}
2 changes: 2 additions & 0 deletions ShipEngineSDK/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions ShipEngineSDK/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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!
Expand Down
8 changes: 6 additions & 2 deletions generation/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5641,7 +5641,9 @@
"validation",
"security",
"system",
"integrations"
"integrations",
"wallet",
"funding_sources"
],
"description": "The type of error\n"
},
Expand Down Expand Up @@ -5691,7 +5693,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"
},
Expand Down
Loading