-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from gocardless/template-changes
Changes from gocardless-dotnet-template
- Loading branch information
Showing
14 changed files
with
239 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"error": { | ||
"message": "Authentication Failed", | ||
"errors": [ | ||
{ | ||
"reason": "authentication_failed", | ||
"message": "Authentication Failed" | ||
} | ||
], | ||
"documentation_url": "https://developer.gocardless.com/api-reference/#api-usage-errors", | ||
"type": "authentication_failed", | ||
"request_id": "b0e48853-abcd-41fa-9554-5f71820e915d", | ||
"code": 401 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"error": { | ||
"message": "Rate Limit Reached you have made too many requests", | ||
"errors": [ | ||
{ | ||
"reason": "rate_limit_reached", | ||
"message": "Rate Limit Reached you have made too many requests" | ||
} | ||
], | ||
"documentation_url": "https://developer.gocardless.com/api-reference/#making-requests-rate-limiting", | ||
"type": "rate_limit_reached", | ||
"request_id": "b0e48853-abcd-41fa-9554-5f71820e915d", | ||
"code": 429 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using GoCardless.Errors; | ||
|
||
namespace GoCardless.Exceptions | ||
{ | ||
public class AuthenticationFailedException : InvalidApiUsageException | ||
{ | ||
/// <summary> | ||
///Exception thrown when you have failed the authentication check | ||
/// </summary> | ||
internal AuthenticationFailedException(ApiErrorResponse apiErrorResponse) :base(apiErrorResponse) | ||
{ | ||
} | ||
public new IReadOnlyList<Error.IError> Errors => base.Errors.Cast<Error.IError>().ToList().AsReadOnly(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using GoCardless.Errors; | ||
|
||
namespace GoCardless.Exceptions | ||
{ | ||
public class InsufficientPermissionsException : InvalidApiUsageException | ||
{ | ||
/// <summary> | ||
///Specific Exception thrown when the requestor has a lack of permission for the desired action | ||
/// </summary> | ||
internal InsufficientPermissionsException(ApiErrorResponse apiErrorResponse) : base(apiErrorResponse) | ||
{ | ||
} | ||
|
||
public new IReadOnlyList<Error.IError> Errors => base.Errors.Cast<Error.IError>().ToList().AsReadOnly(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using GoCardless.Errors; | ||
|
||
namespace GoCardless.Exceptions | ||
{ | ||
public class RateLimitReachedException : InvalidApiUsageException | ||
{ | ||
/// <summary> | ||
///Exception thrown when you have reached the rate limit for the number of requests you can make | ||
///Currently the default rate limit is sent to 1000 requests per minute per integrator | ||
/// </summary> | ||
internal RateLimitReachedException(ApiErrorResponse apiErrorResponse) :base(apiErrorResponse) | ||
{ | ||
} | ||
public new IReadOnlyList<Error.IError> Errors => base.Errors.Cast<Error.IError>().ToList().AsReadOnly(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters