-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
326 additions
and
102 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
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
11 changes: 11 additions & 0 deletions
11
src/main/java/com/stripe/exception/oauth/OAuthException.java
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,62 @@ | ||
package com.stripe.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public class StripeError extends StripeObject { | ||
/** For card errors, the ID of the failed charge. */ | ||
@SerializedName("charge") | ||
String charge; | ||
|
||
/** | ||
* For some errors that could be handled programmatically, a short string indicating the [error | ||
* code](/docs/error-codes) reported. | ||
*/ | ||
@SerializedName("code") | ||
String code; | ||
|
||
/** | ||
* For card errors resulting from a card issuer decline, a short string indicating the [card | ||
* issuer's reason for the decline](/docs/declines#issuer-declines) if they provide one. | ||
*/ | ||
@SerializedName("decline_code") | ||
String declineCode; | ||
|
||
/** A URL to more information about the [error code](/docs/error-codes) reported. */ | ||
@SerializedName("doc_url") | ||
String docUrl; | ||
|
||
/** | ||
* A human-readable message providing more details about the error. For card errors, these | ||
* messages can be shown to your users. | ||
*/ | ||
@SerializedName("message") | ||
String message; | ||
|
||
/** | ||
* If the error is parameter-specific, the parameter related to the error. For example, you can | ||
* use this to display a message near the correct form field. | ||
*/ | ||
@SerializedName("param") | ||
String param; | ||
|
||
// TODO: add `payment_method` | ||
|
||
/** | ||
* The source object for errors returned on a request involving a source. | ||
*/ | ||
@SerializedName("source") | ||
ExternalAccount source; | ||
|
||
/** | ||
* The type of error returned. One of `api_connection_error`, `api_error`, `authentication_error`, | ||
* `card_error`, `idempotency_error`, `invalid_request_error`, or `rate_limit_error` | ||
*/ | ||
@SerializedName("type") | ||
String type; | ||
} |
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 @@ | ||
package com.stripe.model.oauth; | ||
|
||
import com.stripe.model.StripeObject; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public class OAuthError extends StripeObject { | ||
String error; | ||
String errorDescription; | ||
} |
Oops, something went wrong.