diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ac02bf57c54..d3851e0e307 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1309 \ No newline at end of file +v1310 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentMethodDomain.java b/src/main/java/com/stripe/model/PaymentMethodDomain.java index 92361370fc9..47232987254 100644 --- a/src/main/java/com/stripe/model/PaymentMethodDomain.java +++ b/src/main/java/com/stripe/model/PaymentMethodDomain.java @@ -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; @@ -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. + * + *

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 @@ -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);