diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d469526029c..dc09197e85a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1357 \ No newline at end of file +v1358 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 240e5288e42..ea9ee2d154b 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1028,6 +1028,20 @@ public static class LineItem extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Outcome extends StripeObject { + /** + * For charges declined by the network, a 2 digit code which indicates the advice returned by + * the network on how to proceed with an error. + */ + @SerializedName("network_advice_code") + String networkAdviceCode; + + /** + * For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates + * the reason the authorization failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** * Possible values are {@code approved_by_network}, {@code declined_by_network}, {@code * not_sent_to_network}, and {@code reversed_after_approval}. The value {@code diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java index 2cbbd68fa97..e11a267b828 100644 --- a/src/main/java/com/stripe/model/StripeError.java +++ b/src/main/java/com/stripe/model/StripeError.java @@ -124,6 +124,20 @@ public class StripeError extends StripeObject { @SerializedName("message") String message; + /** + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice + * given to merchant by the card network on how to proceed with an error. + */ + @SerializedName("network_advice_code") + String networkAdviceCode; + + /** + * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code + * which indicates the reason the authorization failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** * 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.