Skip to content

Commit

Permalink
Update generated code for v1358
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 15, 2024
1 parent d7c4ffc commit d33c136
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1357
v1358
14 changes: 14 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/com/stripe/model/StripeError.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d33c136

Please sign in to comment.