Skip to content

Commit

Permalink
Update generated code for v1310
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 17, 2024
1 parent 134b240 commit 6c9ac94
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1309
v1310
39 changes: 39 additions & 0 deletions src/main/java/com/stripe/model/PaymentMethodDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class PaymentMethodDomain extends ApiResource implements HasId {
/** Indicates the status of a specific payment method on a payment method domain. */
@SerializedName("amazon_pay")
AmazonPay amazonPay;

/** Indicates the status of a specific payment method on a payment method domain. */
@SerializedName("apple_pay")
ApplePay applePay;
Expand Down Expand Up @@ -358,6 +362,40 @@ public PaymentMethodDomain validate(
return getResponseGetter().request(request, PaymentMethodDomain.class);
}

/** Indicates the status of a specific payment method on a payment method domain. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmazonPay extends StripeObject {
/**
* The status of the payment method on the domain.
*
* <p>One of {@code active}, or {@code inactive}.
*/
@SerializedName("status")
String status;

/**
* Contains additional details about the status of a payment method for a specific payment
* method domain.
*/
@SerializedName("status_details")
StatusDetails statusDetails;

/**
* Contains additional details about the status of a payment method for a specific payment
* method domain.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class StatusDetails extends StripeObject {
/** The error message associated with the status of the payment method on the domain. */
@SerializedName("error_message")
String errorMessage;
}
}

/** Indicates the status of a specific payment method on a payment method domain. */
@Getter
@Setter
Expand Down Expand Up @@ -497,6 +535,7 @@ public static class StatusDetails extends StripeObject {
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(amazonPay, responseGetter);
trySetResponseGetter(applePay, responseGetter);
trySetResponseGetter(googlePay, responseGetter);
trySetResponseGetter(link, responseGetter);
Expand Down

0 comments on commit 6c9ac94

Please sign in to comment.