diff --git a/API_VERSION b/API_VERSION
index 0336d6a3a58..fb725068586 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-2025-08-27.basil
\ No newline at end of file
+2025-09-30.clover
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 6598803dc33..c98313a5c81 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1932
\ No newline at end of file
+v2021
\ No newline at end of file
diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java
index b78ef170199..23d4cc98162 100644
--- a/src/main/java/com/stripe/ApiVersion.java
+++ b/src/main/java/com/stripe/ApiVersion.java
@@ -2,6 +2,6 @@
package com.stripe;
final class ApiVersion {
- public static final String CURRENT = "2025-08-27.basil";
- public static final String CURRENT_MAJOR = "basil";
+ public static final String CURRENT = "2025-09-30.clover";
+ public static final String CURRENT_MAJOR = "clover";
}
diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java
index e181cb02976..5618cd8b500 100644
--- a/src/main/java/com/stripe/StripeClient.java
+++ b/src/main/java/com/stripe/StripeClient.java
@@ -126,705 +126,804 @@ public com.stripe.service.V2Services v2() {
}
/**
- * Deprecation Warning: StripeClient.accountLinks() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().accountLinks(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.accountLinks() is deprecated, use StripeClient.v1().accountLinks()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().accountLinks(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.AccountLinkService accountLinks() {
return new com.stripe.service.AccountLinkService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.accountSessions() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().accountSessions(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.accountSessions() is deprecated, use
+ * StripeClient.v1().accountSessions() instead. All functionality under it has been copied
+ * over to StripeClient.v1().accountSessions(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.AccountSessionService accountSessions() {
return new com.stripe.service.AccountSessionService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.accounts() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().accounts(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.accounts() is deprecated, use StripeClient.v1().accounts() instead.
+ * All functionality under it has been copied over to StripeClient.v1().accounts(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.AccountService accounts() {
return new com.stripe.service.AccountService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.applePayDomains() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().applePayDomains(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.applePayDomains() is deprecated, use
+ * StripeClient.v1().applePayDomains() instead. All functionality under it has been copied
+ * over to StripeClient.v1().applePayDomains(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ApplePayDomainService applePayDomains() {
return new com.stripe.service.ApplePayDomainService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.applicationFees() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().applicationFees(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.applicationFees() is deprecated, use
+ * StripeClient.v1().applicationFees() instead. All functionality under it has been copied
+ * over to StripeClient.v1().applicationFees(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ApplicationFeeService applicationFees() {
return new com.stripe.service.ApplicationFeeService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.apps() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().apps(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.apps() is deprecated, use StripeClient.v1().apps() instead. All
+ * functionality under it has been copied over to StripeClient.v1().apps(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.AppsService apps() {
return new com.stripe.service.AppsService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.balance() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().balance(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.balance() is deprecated, use StripeClient.v1().balance() instead. All
+ * functionality under it has been copied over to StripeClient.v1().balance(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.BalanceService balance() {
return new com.stripe.service.BalanceService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.balanceTransactions() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().balanceTransactions(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.balanceSettings() is deprecated, use
+ * StripeClient.v1().balanceSettings() instead. All functionality under it has been copied
+ * over to StripeClient.v1().balanceSettings(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
+ public com.stripe.service.BalanceSettingsService balanceSettings() {
+ return new com.stripe.service.BalanceSettingsService(this.getResponseGetter());
+ }
+
+ /**
+ * @deprecated StripeClient.balanceTransactions() is deprecated, use
+ * StripeClient.v1().balanceTransactions() instead. All functionality under it has been copied
+ * over to StripeClient.v1().balanceTransactions(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
+ */
+ @Deprecated
public com.stripe.service.BalanceTransactionService balanceTransactions() {
return new com.stripe.service.BalanceTransactionService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.billing() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().billing(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.billing() is deprecated, use StripeClient.v1().billing() instead. All
+ * functionality under it has been copied over to StripeClient.v1().billing(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.BillingService billing() {
return new com.stripe.service.BillingService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.billingPortal() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().billingPortal(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.billingPortal() is deprecated, use StripeClient.v1().billingPortal()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().billingPortal(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.BillingPortalService billingPortal() {
return new com.stripe.service.BillingPortalService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.charges() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().charges(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.charges() is deprecated, use StripeClient.v1().charges() instead. All
+ * functionality under it has been copied over to StripeClient.v1().charges(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ChargeService charges() {
return new com.stripe.service.ChargeService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.checkout() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().checkout(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.checkout() is deprecated, use StripeClient.v1().checkout() instead.
+ * All functionality under it has been copied over to StripeClient.v1().checkout(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.CheckoutService checkout() {
return new com.stripe.service.CheckoutService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.climate() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().climate(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.climate() is deprecated, use StripeClient.v1().climate() instead. All
+ * functionality under it has been copied over to StripeClient.v1().climate(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ClimateService climate() {
return new com.stripe.service.ClimateService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.confirmationTokens() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().confirmationTokens(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.confirmationTokens() is deprecated, use
+ * StripeClient.v1().confirmationTokens() instead. All functionality under it has been copied
+ * over to StripeClient.v1().confirmationTokens(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ConfirmationTokenService confirmationTokens() {
return new com.stripe.service.ConfirmationTokenService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.countrySpecs() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().countrySpecs(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.countrySpecs() is deprecated, use StripeClient.v1().countrySpecs()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().countrySpecs(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.CountrySpecService countrySpecs() {
return new com.stripe.service.CountrySpecService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.coupons() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().coupons(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.coupons() is deprecated, use StripeClient.v1().coupons() instead. All
+ * functionality under it has been copied over to StripeClient.v1().coupons(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.CouponService coupons() {
return new com.stripe.service.CouponService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.creditNotes() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().creditNotes(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.creditNotes() is deprecated, use StripeClient.v1().creditNotes()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().creditNotes(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.CreditNoteService creditNotes() {
return new com.stripe.service.CreditNoteService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.customerSessions() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().customerSessions(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.customerSessions() is deprecated, use
+ * StripeClient.v1().customerSessions() instead. All functionality under it has been copied
+ * over to StripeClient.v1().customerSessions(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.CustomerSessionService customerSessions() {
return new com.stripe.service.CustomerSessionService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.customers() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().customers(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.customers() is deprecated, use StripeClient.v1().customers() instead.
+ * All functionality under it has been copied over to StripeClient.v1().customers(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.CustomerService customers() {
return new com.stripe.service.CustomerService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.disputes() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().disputes(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.disputes() is deprecated, use StripeClient.v1().disputes() instead.
+ * All functionality under it has been copied over to StripeClient.v1().disputes(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.DisputeService disputes() {
return new com.stripe.service.DisputeService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.entitlements() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().entitlements(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.entitlements() is deprecated, use StripeClient.v1().entitlements()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().entitlements(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.EntitlementsService entitlements() {
return new com.stripe.service.EntitlementsService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.ephemeralKeys() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().ephemeralKeys(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.ephemeralKeys() is deprecated, use StripeClient.v1().ephemeralKeys()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().ephemeralKeys(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.EphemeralKeyService ephemeralKeys() {
return new com.stripe.service.EphemeralKeyService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.events() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().events(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.events() is deprecated, use StripeClient.v1().events() instead. All
+ * functionality under it has been copied over to StripeClient.v1().events(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.EventService events() {
return new com.stripe.service.EventService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.exchangeRates() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().exchangeRates(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.exchangeRates() is deprecated, use StripeClient.v1().exchangeRates()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().exchangeRates(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ExchangeRateService exchangeRates() {
return new com.stripe.service.ExchangeRateService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.fileLinks() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().fileLinks(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.fileLinks() is deprecated, use StripeClient.v1().fileLinks() instead.
+ * All functionality under it has been copied over to StripeClient.v1().fileLinks(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.FileLinkService fileLinks() {
return new com.stripe.service.FileLinkService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.files() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().files(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.files() is deprecated, use StripeClient.v1().files() instead. All
+ * functionality under it has been copied over to StripeClient.v1().files(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.FileService files() {
return new com.stripe.service.FileService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.financialConnections() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().financialConnections(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.financialConnections() is deprecated, use
+ * StripeClient.v1().financialConnections() instead. All functionality under it has been
+ * copied over to StripeClient.v1().financialConnections(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.FinancialConnectionsService financialConnections() {
return new com.stripe.service.FinancialConnectionsService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.forwarding() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().forwarding(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.forwarding() is deprecated, use StripeClient.v1().forwarding()
+ * instead. All functionality under it has been copied over to StripeClient.v1().forwarding().
+ * See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ForwardingService forwarding() {
return new com.stripe.service.ForwardingService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.identity() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().identity(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.identity() is deprecated, use StripeClient.v1().identity() instead.
+ * All functionality under it has been copied over to StripeClient.v1().identity(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.IdentityService identity() {
return new com.stripe.service.IdentityService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.invoiceItems() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().invoiceItems(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.invoiceItems() is deprecated, use StripeClient.v1().invoiceItems()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().invoiceItems(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.InvoiceItemService invoiceItems() {
return new com.stripe.service.InvoiceItemService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.invoicePayments() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().invoicePayments(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.invoicePayments() is deprecated, use
+ * StripeClient.v1().invoicePayments() instead. All functionality under it has been copied
+ * over to StripeClient.v1().invoicePayments(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.InvoicePaymentService invoicePayments() {
return new com.stripe.service.InvoicePaymentService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.invoiceRenderingTemplates() will be deprecated in the next
- * major release. All functionality under it has been copied over to
- * StripeClient.v1().invoiceRenderingTemplates(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.invoiceRenderingTemplates() is deprecated, use
+ * StripeClient.v1().invoiceRenderingTemplates() instead. All functionality under it has been
+ * copied over to StripeClient.v1().invoiceRenderingTemplates(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.InvoiceRenderingTemplateService invoiceRenderingTemplates() {
return new com.stripe.service.InvoiceRenderingTemplateService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.invoices() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().invoices(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.invoices() is deprecated, use StripeClient.v1().invoices() instead.
+ * All functionality under it has been copied over to StripeClient.v1().invoices(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.InvoiceService invoices() {
return new com.stripe.service.InvoiceService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.issuing() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().issuing(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.issuing() is deprecated, use StripeClient.v1().issuing() instead. All
+ * functionality under it has been copied over to StripeClient.v1().issuing(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.IssuingService issuing() {
return new com.stripe.service.IssuingService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.mandates() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().mandates(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.mandates() is deprecated, use StripeClient.v1().mandates() instead.
+ * All functionality under it has been copied over to StripeClient.v1().mandates(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.MandateService mandates() {
return new com.stripe.service.MandateService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.paymentIntents() will be deprecated in the next major
- * release. All functionality under it has been copied over to StripeClient.v1().paymentIntents().
- * See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.paymentIntents() is deprecated, use StripeClient.v1().paymentIntents()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().paymentIntents(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PaymentIntentService paymentIntents() {
return new com.stripe.service.PaymentIntentService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.paymentLinks() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().paymentLinks(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.paymentLinks() is deprecated, use StripeClient.v1().paymentLinks()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().paymentLinks(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PaymentLinkService paymentLinks() {
return new com.stripe.service.PaymentLinkService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.paymentMethodConfigurations() will be deprecated in the next
- * major release. All functionality under it has been copied over to
- * StripeClient.v1().paymentMethodConfigurations(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.paymentMethodConfigurations() is deprecated, use
+ * StripeClient.v1().paymentMethodConfigurations() instead. All functionality under it has
+ * been copied over to StripeClient.v1().paymentMethodConfigurations(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PaymentMethodConfigurationService paymentMethodConfigurations() {
return new com.stripe.service.PaymentMethodConfigurationService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.paymentMethodDomains() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().paymentMethodDomains(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.paymentMethodDomains() is deprecated, use
+ * StripeClient.v1().paymentMethodDomains() instead. All functionality under it has been
+ * copied over to StripeClient.v1().paymentMethodDomains(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PaymentMethodDomainService paymentMethodDomains() {
return new com.stripe.service.PaymentMethodDomainService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.paymentMethods() will be deprecated in the next major
- * release. All functionality under it has been copied over to StripeClient.v1().paymentMethods().
- * See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.paymentMethods() is deprecated, use StripeClient.v1().paymentMethods()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().paymentMethods(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PaymentMethodService paymentMethods() {
return new com.stripe.service.PaymentMethodService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.payouts() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().payouts(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.payouts() is deprecated, use StripeClient.v1().payouts() instead. All
+ * functionality under it has been copied over to StripeClient.v1().payouts(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PayoutService payouts() {
return new com.stripe.service.PayoutService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.plans() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().plans(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.plans() is deprecated, use StripeClient.v1().plans() instead. All
+ * functionality under it has been copied over to StripeClient.v1().plans(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PlanService plans() {
return new com.stripe.service.PlanService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.prices() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().prices(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.prices() is deprecated, use StripeClient.v1().prices() instead. All
+ * functionality under it has been copied over to StripeClient.v1().prices(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PriceService prices() {
return new com.stripe.service.PriceService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.products() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().products(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.products() is deprecated, use StripeClient.v1().products() instead.
+ * All functionality under it has been copied over to StripeClient.v1().products(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ProductService products() {
return new com.stripe.service.ProductService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.promotionCodes() will be deprecated in the next major
- * release. All functionality under it has been copied over to StripeClient.v1().promotionCodes().
- * See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.promotionCodes() is deprecated, use StripeClient.v1().promotionCodes()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().promotionCodes(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.PromotionCodeService promotionCodes() {
return new com.stripe.service.PromotionCodeService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.quotes() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().quotes(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.quotes() is deprecated, use StripeClient.v1().quotes() instead. All
+ * functionality under it has been copied over to StripeClient.v1().quotes(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.QuoteService quotes() {
return new com.stripe.service.QuoteService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.radar() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().radar(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.radar() is deprecated, use StripeClient.v1().radar() instead. All
+ * functionality under it has been copied over to StripeClient.v1().radar(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.RadarService radar() {
return new com.stripe.service.RadarService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.refunds() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().refunds(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.refunds() is deprecated, use StripeClient.v1().refunds() instead. All
+ * functionality under it has been copied over to StripeClient.v1().refunds(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.RefundService refunds() {
return new com.stripe.service.RefundService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.reporting() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().reporting(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.reporting() is deprecated, use StripeClient.v1().reporting() instead.
+ * All functionality under it has been copied over to StripeClient.v1().reporting(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ReportingService reporting() {
return new com.stripe.service.ReportingService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.reviews() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().reviews(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.reviews() is deprecated, use StripeClient.v1().reviews() instead. All
+ * functionality under it has been copied over to StripeClient.v1().reviews(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ReviewService reviews() {
return new com.stripe.service.ReviewService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.setupAttempts() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().setupAttempts(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.setupAttempts() is deprecated, use StripeClient.v1().setupAttempts()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().setupAttempts(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.SetupAttemptService setupAttempts() {
return new com.stripe.service.SetupAttemptService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.setupIntents() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().setupIntents(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.setupIntents() is deprecated, use StripeClient.v1().setupIntents()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().setupIntents(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.SetupIntentService setupIntents() {
return new com.stripe.service.SetupIntentService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.shippingRates() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().shippingRates(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.shippingRates() is deprecated, use StripeClient.v1().shippingRates()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().shippingRates(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.ShippingRateService shippingRates() {
return new com.stripe.service.ShippingRateService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.sigma() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().sigma(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.sigma() is deprecated, use StripeClient.v1().sigma() instead. All
+ * functionality under it has been copied over to StripeClient.v1().sigma(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.SigmaService sigma() {
return new com.stripe.service.SigmaService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.sources() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().sources(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.sources() is deprecated, use StripeClient.v1().sources() instead. All
+ * functionality under it has been copied over to StripeClient.v1().sources(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.SourceService sources() {
return new com.stripe.service.SourceService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.subscriptionItems() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().subscriptionItems(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.subscriptionItems() is deprecated, use
+ * StripeClient.v1().subscriptionItems() instead. All functionality under it has been copied
+ * over to StripeClient.v1().subscriptionItems(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.SubscriptionItemService subscriptionItems() {
return new com.stripe.service.SubscriptionItemService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.subscriptionSchedules() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().subscriptionSchedules(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.subscriptionSchedules() is deprecated, use
+ * StripeClient.v1().subscriptionSchedules() instead. All functionality under it has been
+ * copied over to StripeClient.v1().subscriptionSchedules(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.SubscriptionScheduleService subscriptionSchedules() {
return new com.stripe.service.SubscriptionScheduleService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.subscriptions() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().subscriptions(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.subscriptions() is deprecated, use StripeClient.v1().subscriptions()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().subscriptions(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.SubscriptionService subscriptions() {
return new com.stripe.service.SubscriptionService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.tax() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().tax(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.tax() is deprecated, use StripeClient.v1().tax() instead. All
+ * functionality under it has been copied over to StripeClient.v1().tax(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TaxService tax() {
return new com.stripe.service.TaxService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.taxCodes() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().taxCodes(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.taxCodes() is deprecated, use StripeClient.v1().taxCodes() instead.
+ * All functionality under it has been copied over to StripeClient.v1().taxCodes(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TaxCodeService taxCodes() {
return new com.stripe.service.TaxCodeService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.taxIds() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().taxIds(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.taxIds() is deprecated, use StripeClient.v1().taxIds() instead. All
+ * functionality under it has been copied over to StripeClient.v1().taxIds(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TaxIdService taxIds() {
return new com.stripe.service.TaxIdService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.taxRates() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().taxRates(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.taxRates() is deprecated, use StripeClient.v1().taxRates() instead.
+ * All functionality under it has been copied over to StripeClient.v1().taxRates(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TaxRateService taxRates() {
return new com.stripe.service.TaxRateService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.terminal() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().terminal(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.terminal() is deprecated, use StripeClient.v1().terminal() instead.
+ * All functionality under it has been copied over to StripeClient.v1().terminal(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TerminalService terminal() {
return new com.stripe.service.TerminalService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.testHelpers() will be deprecated in the next major release.
- * All functionality under it has been copied over to StripeClient.v1().testHelpers(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.testHelpers() is deprecated, use StripeClient.v1().testHelpers()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().testHelpers(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TestHelpersService testHelpers() {
return new com.stripe.service.TestHelpersService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.tokens() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().tokens(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.tokens() is deprecated, use StripeClient.v1().tokens() instead. All
+ * functionality under it has been copied over to StripeClient.v1().tokens(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TokenService tokens() {
return new com.stripe.service.TokenService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.topups() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().topups(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.topups() is deprecated, use StripeClient.v1().topups() instead. All
+ * functionality under it has been copied over to StripeClient.v1().topups(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TopupService topups() {
return new com.stripe.service.TopupService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.transfers() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().transfers(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.transfers() is deprecated, use StripeClient.v1().transfers() instead.
+ * All functionality under it has been copied over to StripeClient.v1().transfers(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TransferService transfers() {
return new com.stripe.service.TransferService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.treasury() will be deprecated in the next major release. All
- * functionality under it has been copied over to StripeClient.v1().treasury(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.treasury() is deprecated, use StripeClient.v1().treasury() instead.
+ * All functionality under it has been copied over to StripeClient.v1().treasury(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.TreasuryService treasury() {
return new com.stripe.service.TreasuryService(this.getResponseGetter());
}
/**
- * Deprecation Warning: StripeClient.webhookEndpoints() will be deprecated in the next major
- * release. All functionality under it has been copied over to
- * StripeClient.v1().webhookEndpoints(). See migration
- * guide for more on this and tips on migrating to the new v1 namespace.
+ * @deprecated StripeClient.webhookEndpoints() is deprecated, use
+ * StripeClient.v1().webhookEndpoints() instead. All functionality under it has been copied
+ * over to StripeClient.v1().webhookEndpoints(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
*/
+ @Deprecated
public com.stripe.service.WebhookEndpointService webhookEndpoints() {
return new com.stripe.service.WebhookEndpointService(this.getResponseGetter());
}
diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java
index b039480686c..f7d773eac50 100644
--- a/src/main/java/com/stripe/model/Account.java
+++ b/src/main/java/com/stripe/model/Account.java
@@ -1144,6 +1144,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("link_payments")
String linkPayments;
+ /**
+ * The status of the MB WAY payments capability of the account, or whether the account can
+ * directly process MB WAY charges.
+ *
+ *
One of {@code active}, {@code inactive}, or {@code pending}.
+ */
+ @SerializedName("mb_way_payments")
+ String mbWayPayments;
+
/**
* The status of the MobilePay capability of the account, or whether the account can directly
* process MobilePay charges.
@@ -1234,6 +1243,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("paynow_payments")
String paynowPayments;
+ /**
+ * The status of the Paypay capability of the account, or whether the account can directly
+ * process Paypay payments.
+ *
+ *
One of {@code active}, {@code inactive}, or {@code pending}.
+ */
+ @SerializedName("paypay_payments")
+ String paypayPayments;
+
/**
* The status of the pix payments capability of the account, or whether the account can directly
* process pix charges.
@@ -1997,14 +2015,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- *
One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -2023,29 +2041,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -2199,14 +2218,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- *
One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -2225,29 +2244,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
diff --git a/src/main/java/com/stripe/model/Address.java b/src/main/java/com/stripe/model/Address.java
index 042bcd4c261..f65f0d5f101 100644
--- a/src/main/java/com/stripe/model/Address.java
+++ b/src/main/java/com/stripe/model/Address.java
@@ -21,11 +21,11 @@ public class Address extends StripeObject {
@SerializedName("country")
String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
diff --git a/src/main/java/com/stripe/model/BalanceSettings.java b/src/main/java/com/stripe/model/BalanceSettings.java
new file mode 100644
index 00000000000..70c1f411113
--- /dev/null
+++ b/src/main/java/com/stripe/model/BalanceSettings.java
@@ -0,0 +1,255 @@
+// File generated from our OpenAPI spec
+package com.stripe.model;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.BalanceSettingsRetrieveParams;
+import com.stripe.param.BalanceSettingsUpdateParams;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * Options for customizing account balances and payout settings for a Stripe platform’s connected
+ * accounts.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class BalanceSettings extends ApiResource {
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ *
Equal to {@code balance_settings}.
+ */
+ @SerializedName("object")
+ String object;
+
+ @SerializedName("payments")
+ Payments payments;
+
+ /**
+ * Retrieves balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings retrieve() throws StripeException {
+ return retrieve((Map) null, (RequestOptions) null);
+ }
+
+ /**
+ * Retrieves balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings retrieve(RequestOptions options) throws StripeException {
+ return retrieve((Map) null, options);
+ }
+
+ /**
+ * Retrieves balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings retrieve(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/balance_settings";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, BalanceSettings.class);
+ }
+
+ /**
+ * Retrieves balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings retrieve(
+ BalanceSettingsRetrieveParams params, RequestOptions options) throws StripeException {
+ String path = "/v1/balance_settings";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, BalanceSettings.class);
+ }
+
+ /**
+ * Updates balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings update(Map params) throws StripeException {
+ return update(params, (RequestOptions) null);
+ }
+
+ /**
+ * Updates balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings update(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/balance_settings";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, BalanceSettings.class);
+ }
+
+ /**
+ * Updates balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings update(BalanceSettingsUpdateParams params) throws StripeException {
+ return update(params, (RequestOptions) null);
+ }
+
+ /**
+ * Updates balance settings for a given connected account. Related guide: Making API calls for connected accounts
+ */
+ public static BalanceSettings update(BalanceSettingsUpdateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/balance_settings";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, BalanceSettings.class);
+ }
+
+ /**
+ * For more details about Payments, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payments extends StripeObject {
+ /**
+ * A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank
+ * account. See Understanding Connect
+ * account balances for details. The default value is {@code false} when controller.requirement_collection
+ * is {@code application}, which includes Custom accounts, otherwise {@code true}.
+ */
+ @SerializedName("debit_negative_balances")
+ Boolean debitNegativeBalances;
+
+ /** Settings specific to the account's payouts. */
+ @SerializedName("payouts")
+ Payouts payouts;
+
+ @SerializedName("settlement_timing")
+ SettlementTiming settlementTiming;
+
+ /**
+ * For more details about Payouts, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payouts extends StripeObject {
+ /**
+ * The minimum balance amount to retain per currency after automatic payouts. Only funds that
+ * exceed these amounts are paid out. Learn more about the minimum balances
+ * for automatic payouts.
+ */
+ @SerializedName("minimum_balance_by_currency")
+ Map minimumBalanceByCurrency;
+
+ /**
+ * Details on when funds from charges are available, and when they are paid out to an external
+ * account. See our Setting Bank and
+ * Debit Card Payouts documentation for details.
+ */
+ @SerializedName("schedule")
+ Schedule schedule;
+
+ /**
+ * The text that appears on the bank account statement for payouts. If not set, this defaults
+ * to the platform's bank descriptor as set in the Dashboard.
+ */
+ @SerializedName("statement_descriptor")
+ String statementDescriptor;
+
+ /**
+ * Whether the funds in this account can be paid out.
+ *
+ * One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * For more details about Schedule, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Schedule extends StripeObject {
+ /**
+ * How frequently funds will be paid out. One of {@code manual} (payouts only created via
+ * API call), {@code daily}, {@code weekly}, or {@code monthly}.
+ */
+ @SerializedName("interval")
+ String interval;
+
+ /**
+ * The day of the month funds will be paid out. Only shown if {@code interval} is monthly.
+ * Payouts scheduled between the 29th and 31st of the month are sent on the last day of
+ * shorter months.
+ */
+ @SerializedName("monthly_payout_days")
+ List monthlyPayoutDays;
+
+ /**
+ * The days of the week when available funds are paid out, specified as an array, for
+ * example, [{@code monday}, {@code tuesday}]. Only shown if {@code interval} is weekly.
+ */
+ @SerializedName("weekly_payout_days")
+ List weeklyPayoutDays;
+ }
+ }
+
+ /**
+ * For more details about SettlementTiming, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SettlementTiming extends StripeObject {
+ /** The number of days charge funds are held before becoming available. */
+ @SerializedName("delay_days")
+ Long delayDays;
+
+ /**
+ * The number of days charge funds are held before becoming available. If present, overrides
+ * the default, or minimum available, for the account.
+ */
+ @SerializedName("delay_days_override")
+ Long delayDaysOverride;
+ }
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(payments, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/BankAccount.java b/src/main/java/com/stripe/model/BankAccount.java
index 11764f9dafc..5284ebe11fe 100644
--- a/src/main/java/com/stripe/model/BankAccount.java
+++ b/src/main/java/com/stripe/model/BankAccount.java
@@ -552,14 +552,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- * One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -578,29 +578,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -680,14 +681,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- *
One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -706,29 +707,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java
index f0c8d1b3e45..0b49c7c1f22 100644
--- a/src/main/java/com/stripe/model/Capability.java
+++ b/src/main/java/com/stripe/model/Capability.java
@@ -246,14 +246,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- *
One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -272,29 +272,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -431,14 +432,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- *
One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -457,29 +458,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
diff --git a/src/main/java/com/stripe/model/Card.java b/src/main/java/com/stripe/model/Card.java
index 5b22ef8f7fd..bd10533c495 100644
--- a/src/main/java/com/stripe/model/Card.java
+++ b/src/main/java/com/stripe/model/Card.java
@@ -90,9 +90,9 @@ public class Card extends ApiResource
List availablePayoutMethods;
/**
- * Card brand. Can be {@code American Express}, {@code Diners Club}, {@code Discover}, {@code
- * Eftpos Australia}, {@code Girocard}, {@code JCB}, {@code MasterCard}, {@code UnionPay}, {@code
- * Visa}, or {@code Unknown}.
+ * Card brand. Can be {@code American Express}, {@code Cartes Bancaires}, {@code Diners Club},
+ * {@code Discover}, {@code Eftpos Australia}, {@code Girocard}, {@code JCB}, {@code MasterCard},
+ * {@code UnionPay}, {@code Visa}, or {@code Unknown}.
*/
@SerializedName("brand")
String brand;
diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java
index 0952ca5cd80..276b5c8aabb 100644
--- a/src/main/java/com/stripe/model/Charge.java
+++ b/src/main/java/com/stripe/model/Charge.java
@@ -23,9 +23,9 @@
/**
* The {@code Charge} object represents a single attempt to move money into your Stripe account.
- * PaymentIntent confirmation is the most common way to create Charges, but transferring money to a
- * different Stripe account through Connect also creates Charges. Some legacy payment flows create
- * Charges directly, which is not recommended for new integrations.
+ * PaymentIntent confirmation is the most common way to create Charges, but Account Debits may also create Charges.
+ * Some legacy payment flows create Charges directly, which is not recommended for new integrations.
*/
@Getter
@Setter
@@ -1240,6 +1240,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("link")
Link link;
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
@SerializedName("mobilepay")
Mobilepay mobilepay;
@@ -1270,6 +1273,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("paypal")
Paypal paypal;
+ @SerializedName("paypay")
+ Paypay paypay;
+
@SerializedName("pix")
Pix pix;
@@ -3278,6 +3284,15 @@ public static class Link extends StripeObject {
String country;
}
+ /**
+ * For more details about MbWay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay extends StripeObject {}
+
/**
* For more details about Mobilepay, please refer to the API Reference.
@@ -3557,6 +3572,15 @@ public static class SellerProtection extends StripeObject {
}
}
+ /**
+ * For more details about Paypay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypay extends StripeObject {}
+
/**
* For more details about Pix, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index d7a19863930..1cdd8be1f9a 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -374,6 +374,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("link")
Link link;
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
@SerializedName("mobilepay")
Mobilepay mobilepay;
@@ -404,6 +407,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("paypal")
Paypal paypal;
+ @SerializedName("paypay")
+ Paypay paypay;
+
@SerializedName("pix")
Pix pix;
@@ -441,12 +447,12 @@ public static class PaymentMethodPreview extends StripeObject {
* bancontact}, {@code billie}, {@code blik}, {@code boleto}, {@code card}, {@code
* card_present}, {@code cashapp}, {@code crypto}, {@code customer_balance}, {@code eps}, {@code
* fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, {@code interac_present}, {@code
- * kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code
- * mobilepay}, {@code multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code oxxo},
- * {@code p24}, {@code pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code pix},
- * {@code promptpay}, {@code revolut_pay}, {@code samsung_pay}, {@code satispay}, {@code
- * sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code
- * wechat_pay}, or {@code zip}.
+ * kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way},
+ * {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code
+ * oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal},
+ * {@code paypay}, {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay},
+ * {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code
+ * us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
@@ -1899,6 +1905,15 @@ public static class Link extends StripeObject {
String persistentToken;
}
+ /**
+ * For more details about MbWay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay extends StripeObject {}
+
/**
* For more details about Mobilepay, please refer to the API Reference.
@@ -2064,6 +2079,15 @@ public static class Paypal extends StripeObject {
String payerId;
}
+ /**
+ * For more details about Paypay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypay extends StripeObject {}
+
/**
* For more details about Pix, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java
index a25a06ff9fd..2cb7a88927e 100644
--- a/src/main/java/com/stripe/model/Customer.java
+++ b/src/main/java/com/stripe/model/Customer.java
@@ -52,6 +52,10 @@ public class Customer extends ApiResource implements HasId, MetadataStoresubscriptions, invoices, checkout sessions, quotes, and more. Coupons do not work with
- * conventional one-off charges or payment intents.
- */
- @SerializedName("coupon")
- Coupon coupon;
-
/** The ID of the customer associated with this discount. */
@SerializedName("customer")
@Getter(lombok.AccessLevel.NONE)
@@ -94,6 +81,9 @@ public class Discount extends StripeObject implements HasId {
@Setter(lombok.AccessLevel.NONE)
ExpandableField promotionCode;
+ @SerializedName("source")
+ Source source;
+
/** Date that the coupon was applied. */
@SerializedName("start")
Long start;
@@ -147,4 +137,45 @@ public void setPromotionCodeObject(PromotionCode expandableObject) {
this.promotionCode =
new ExpandableField(expandableObject.getId(), expandableObject);
}
+
+ /**
+ * For more details about Source, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Source extends StripeObject {
+ /** The coupon that was redeemed to create this discount. */
+ @SerializedName("coupon")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField coupon;
+
+ /**
+ * The source type of the discount.
+ *
+ * Equal to {@code coupon}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Get ID of expandable {@code coupon} object. */
+ public String getCoupon() {
+ return (this.coupon != null) ? this.coupon.getId() : null;
+ }
+
+ public void setCoupon(String id) {
+ this.coupon = ApiResource.setExpandableFieldId(id, this.coupon);
+ }
+
+ /** Get expanded {@code coupon}. */
+ public Coupon getCouponObject() {
+ return (this.coupon != null) ? this.coupon.getExpanded() : null;
+ }
+
+ public void setCouponObject(Coupon expandableObject) {
+ this.coupon = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+ }
}
diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java
index 84007fef7b5..1ce9341ee21 100644
--- a/src/main/java/com/stripe/model/Dispute.java
+++ b/src/main/java/com/stripe/model/Dispute.java
@@ -878,11 +878,11 @@ public static class ShippingAddress extends StripeObject {
@SerializedName("country")
String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -966,11 +966,11 @@ public static class ShippingAddress extends StripeObject {
@SerializedName("country")
String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -1190,6 +1190,10 @@ public static class Card extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Klarna extends StripeObject {
+ /** Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason. */
+ @SerializedName("chargeback_loss_reason_code")
+ String chargebackLossReasonCode;
+
/** The reason for the dispute as defined by Klarna. */
@SerializedName("reason_code")
String reasonCode;
diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java
index 4d73ba4db60..b22584af125 100644
--- a/src/main/java/com/stripe/model/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/EventDataClassLookup.java
@@ -21,6 +21,7 @@ public final class EventDataClassLookup {
classLookup.put("application", Application.class);
classLookup.put("application_fee", ApplicationFee.class);
classLookup.put("balance", Balance.class);
+ classLookup.put("balance_settings", BalanceSettings.class);
classLookup.put("balance_transaction", BalanceTransaction.class);
classLookup.put("bank_account", BankAccount.class);
classLookup.put("capability", Capability.class);
diff --git a/src/main/java/com/stripe/model/ExchangeRate.java b/src/main/java/com/stripe/model/ExchangeRate.java
index 50f6240bc25..6c82ffc2ec4 100644
--- a/src/main/java/com/stripe/model/ExchangeRate.java
+++ b/src/main/java/com/stripe/model/ExchangeRate.java
@@ -17,10 +17,14 @@
import lombok.Setter;
/**
- * {@code ExchangeRate} objects allow you to determine the rates that Stripe is currently using to
- * convert from one currency to another. Since this number is variable throughout the day, there are
- * various reasons why you might want to know the current rate (for example, to dynamically price an
- * item for a user with a default payment in a foreign currency).
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ * {@code ExchangeRate} objects allow you to determine the rates that Stripe is currently using
+ * to convert from one currency to another. Since this number is variable throughout the day, there
+ * are various reasons why you might want to know the current rate (for example, to dynamically
+ * price an item for a user with a default payment in a foreign currency).
*
*
Please refer to our Exchange Rates API guide
* for more details.
@@ -74,17 +78,27 @@ public class ExchangeRate extends ApiResource implements HasId {
Map rates;
/**
- * Returns a list of objects that contain the rates at which foreign currencies are converted to
- * one another. Only shows the currencies for which Stripe supports.
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ * Returns a list of objects that contain the rates at which foreign currencies are converted
+ * to one another. Only shows the currencies for which Stripe supports.
*/
+ @Deprecated
public static ExchangeRateCollection list(Map params) throws StripeException {
return list(params, (RequestOptions) null);
}
/**
- * Returns a list of objects that contain the rates at which foreign currencies are converted to
- * one another. Only shows the currencies for which Stripe supports.
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ * Returns a list of objects that contain the rates at which foreign currencies are converted
+ * to one another. Only shows the currencies for which Stripe supports.
*/
+ @Deprecated
public static ExchangeRateCollection list(Map params, RequestOptions options)
throws StripeException {
String path = "/v1/exchange_rates";
@@ -94,17 +108,27 @@ public static ExchangeRateCollection list(Map params, RequestOpt
}
/**
- * Returns a list of objects that contain the rates at which foreign currencies are converted to
- * one another. Only shows the currencies for which Stripe supports.
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ * Returns a list of objects that contain the rates at which foreign currencies are converted
+ * to one another. Only shows the currencies for which Stripe supports.
*/
+ @Deprecated
public static ExchangeRateCollection list(ExchangeRateListParams params) throws StripeException {
return list(params, (RequestOptions) null);
}
/**
- * Returns a list of objects that contain the rates at which foreign currencies are converted to
- * one another. Only shows the currencies for which Stripe supports.
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ *
Returns a list of objects that contain the rates at which foreign currencies are converted
+ * to one another. Only shows the currencies for which Stripe supports.
*/
+ @Deprecated
public static ExchangeRateCollection list(ExchangeRateListParams params, RequestOptions options)
throws StripeException {
String path = "/v1/exchange_rates";
@@ -119,18 +143,39 @@ public static ExchangeRateCollection list(ExchangeRateListParams params, Request
return getGlobalResponseGetter().request(request, ExchangeRateCollection.class);
}
- /** Retrieves the exchange rates from the given currency to every supported currency. */
+ /**
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ *
Retrieves the exchange rates from the given currency to every supported currency.
+ */
+ @Deprecated
public static ExchangeRate retrieve(String rateId) throws StripeException {
return retrieve(rateId, (Map) null, (RequestOptions) null);
}
- /** Retrieves the exchange rates from the given currency to every supported currency. */
+ /**
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ * Retrieves the exchange rates from the given currency to every supported currency.
+ */
+ @Deprecated
public static ExchangeRate retrieve(String rateId, RequestOptions options)
throws StripeException {
return retrieve(rateId, (Map) null, options);
}
- /** Retrieves the exchange rates from the given currency to every supported currency. */
+ /**
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ * Retrieves the exchange rates from the given currency to every supported currency.
+ */
+ @Deprecated
public static ExchangeRate retrieve(
String rateId, Map params, RequestOptions options) throws StripeException {
String path = String.format("/v1/exchange_rates/%s", ApiResource.urlEncodeId(rateId));
@@ -139,7 +184,14 @@ public static ExchangeRate retrieve(
return getGlobalResponseGetter().request(request, ExchangeRate.class);
}
- /** Retrieves the exchange rates from the given currency to every supported currency. */
+ /**
+ * [Deprecated] The {@code ExchangeRate} APIs are deprecated. Please use the FX Quotes
+ * API instead.
+ *
+ * Retrieves the exchange rates from the given currency to every supported currency.
+ */
+ @Deprecated
public static ExchangeRate retrieve(
String rateId, ExchangeRateRetrieveParams params, RequestOptions options)
throws StripeException {
diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java
index 3e7ae0a0338..3d0f57f2715 100644
--- a/src/main/java/com/stripe/model/InvoiceItem.java
+++ b/src/main/java/com/stripe/model/InvoiceItem.java
@@ -115,6 +115,13 @@ public class InvoiceItem extends ApiResource implements HasId, MetadataStore metadata;
+ /**
+ * The amount after discounts, but before credits and taxes. This field is {@code null} for {@code
+ * discountable=true} items.
+ */
+ @SerializedName("net_amount")
+ Long netAmount;
+
/**
* String representing the object's type. Objects of the same type share the same value.
*
@@ -141,6 +148,9 @@ public class InvoiceItem extends ApiResource implements HasId, MetadataStoreAPI Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ProrationDetails extends StripeObject {
+ /** Discount amounts applied when the proration was created. */
+ @SerializedName("discount_amounts")
+ List discountAmounts;
+
+ /**
+ * For more details about DiscountAmount, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DiscountAmount extends StripeObject {
+ /** The amount, in cents (or local equivalent), of the discount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** The discount that was applied to get this discount amount. */
+ @SerializedName("discount")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField discount;
+
+ /** Get ID of expandable {@code discount} object. */
+ public String getDiscount() {
+ return (this.discount != null) ? this.discount.getId() : null;
+ }
+
+ public void setDiscount(String id) {
+ this.discount = ApiResource.setExpandableFieldId(id, this.discount);
+ }
+
+ /** Get expanded {@code discount}. */
+ public Discount getDiscountObject() {
+ return (this.discount != null) ? this.discount.getExpanded() : null;
+ }
+
+ public void setDiscountObject(Discount expandableObject) {
+ this.discount = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+ }
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
@@ -579,6 +639,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(parent, responseGetter);
trySetResponseGetter(period, responseGetter);
trySetResponseGetter(pricing, responseGetter);
+ trySetResponseGetter(prorationDetails, responseGetter);
trySetResponseGetter(testClock, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 2be3c903202..20689bedd9a 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -2607,6 +2607,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("link")
Link link;
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
@SerializedName("mobilepay")
Mobilepay mobilepay;
@@ -2637,6 +2640,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("paypal")
Paypal paypal;
+ @SerializedName("paypay")
+ Paypay paypay;
+
@SerializedName("pix")
Pix pix;
@@ -4097,6 +4103,39 @@ public static class Link extends StripeObject {
String setupFutureUsage;
}
+ /**
+ * For more details about MbWay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay extends StripeObject {
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ *
+ *
Equal to {@code none}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
+ }
+
/**
* For more details about Mobilepay, please refer to the API Reference.
@@ -4439,6 +4478,15 @@ public static class Paypal extends StripeObject {
String setupFutureUsage;
}
+ /**
+ * For more details about Paypay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypay extends StripeObject {}
+
/**
* For more details about Pix, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index 7189206d53e..438529dfa7f 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -156,6 +156,9 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore
key-value pairs that you can attach
* to an object. This can be useful for storing additional information about the object in a
@@ -203,6 +206,9 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore
API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay extends StripeObject {}
+
/**
* For more details about Mobilepay, please refer to the API
* Reference.
@@ -2252,6 +2268,15 @@ public static class Paypal extends StripeObject {
String payerId;
}
+ /**
+ * For more details about Paypay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypay extends StripeObject {}
+
/**
* For more details about Pix, please refer to the API
* Reference.
@@ -2603,6 +2628,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(konbini, responseGetter);
trySetResponseGetter(krCard, responseGetter);
trySetResponseGetter(link, responseGetter);
+ trySetResponseGetter(mbWay, responseGetter);
trySetResponseGetter(mobilepay, responseGetter);
trySetResponseGetter(multibanco, responseGetter);
trySetResponseGetter(naverPay, responseGetter);
@@ -2613,6 +2639,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(payco, responseGetter);
trySetResponseGetter(paynow, responseGetter);
trySetResponseGetter(paypal, responseGetter);
+ trySetResponseGetter(paypay, responseGetter);
trySetResponseGetter(pix, responseGetter);
trySetResponseGetter(promptpay, responseGetter);
trySetResponseGetter(radarOptions, responseGetter);
diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
index ad21e06edf3..36815874197 100644
--- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
+++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
@@ -209,6 +209,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("paypal")
Paypal paypal;
+ @SerializedName("paypay")
+ Paypay paypay;
+
@SerializedName("pix")
Pix pix;
@@ -2388,6 +2391,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about Paypay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypay extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ *
One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ *
One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about Pix, please refer to the API
* Reference.
@@ -3042,6 +3096,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(payco, responseGetter);
trySetResponseGetter(paynow, responseGetter);
trySetResponseGetter(paypal, responseGetter);
+ trySetResponseGetter(paypay, responseGetter);
trySetResponseGetter(pix, responseGetter);
trySetResponseGetter(promptpay, responseGetter);
trySetResponseGetter(revolutPay, responseGetter);
diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java
index e5ec6fbc793..3ddbfc54c9e 100644
--- a/src/main/java/com/stripe/model/Person.java
+++ b/src/main/java/com/stripe/model/Person.java
@@ -541,14 +541,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- *
One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -567,29 +567,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -757,14 +758,14 @@ public static class Errors extends StripeObject {
/**
* The code for the type of error.
*
- *
One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
- * {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
- * {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
- * {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
- * invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
- * invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
- * invalid_representative_country}, {@code invalid_signator}, {@code
- * invalid_statement_descriptor_business_mismatch}, {@code
+ *
One of {@code external_request}, {@code information_missing}, {@code
+ * invalid_address_city_state_postal_code}, {@code invalid_address_highway_contract_box},
+ * {@code invalid_address_private_mailbox}, {@code invalid_business_profile_name}, {@code
+ * invalid_business_profile_name_denylisted}, {@code invalid_company_name_denylisted}, {@code
+ * invalid_dob_age_over_maximum}, {@code invalid_dob_age_under_18}, {@code
+ * invalid_dob_age_under_minimum}, {@code invalid_product_description_length}, {@code
+ * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code
+ * invalid_signator}, {@code invalid_statement_descriptor_business_mismatch}, {@code
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
@@ -783,29 +784,30 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_return_policy}, {@code
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
- * {@code invalid_value_other}, {@code verification_directors_mismatch}, {@code
- * verification_document_address_mismatch}, {@code verification_document_address_missing},
- * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
- * {@code verification_document_directors_mismatch}, {@code
- * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
- * verification_document_expired}, {@code verification_document_failed_copy}, {@code
- * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
- * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
- * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
- * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
- * verification_document_issue_or_expiry_date_missing}, {@code
- * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
- * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
- * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
- * {@code verification_document_not_readable}, {@code verification_document_not_signed},
- * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
- * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
- * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
- * {@code verification_failed_authorizer_authority}, {@code
- * verification_failed_business_iec_number}, {@code verification_failed_document_match},
- * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
- * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
- * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
+ * {@code invalid_value_other}, {@code unsupported_business_type}, {@code
+ * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
+ * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
+ * verification_document_country_not_supported}, {@code
+ * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
+ * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
+ * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
+ * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
+ * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
+ * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
+ * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
+ * {@code verification_document_manipulated}, {@code verification_document_missing_back},
+ * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
+ * {@code verification_document_name_missing}, {@code
+ * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
+ * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
+ * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
+ * {@code verification_document_type_not_supported}, {@code
+ * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
+ * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
+ * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
+ * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
+ * verification_failed_name_match}, {@code verification_failed_other}, {@code
+ * verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
diff --git a/src/main/java/com/stripe/model/PromotionCode.java b/src/main/java/com/stripe/model/PromotionCode.java
index f7269e5afb7..3930ee8a431 100644
--- a/src/main/java/com/stripe/model/PromotionCode.java
+++ b/src/main/java/com/stripe/model/PromotionCode.java
@@ -19,9 +19,8 @@
import lombok.Setter;
/**
- * A Promotion Code represents a customer-redeemable code for a coupon. You can create multiple codes for a single
- * coupon.
+ * A Promotion Code represents a customer-redeemable code for an underlying promotion. You can
+ * create multiple codes for a single promotion.
*
*
If you enable promotion codes in your customer portal
@@ -48,19 +47,6 @@ public class PromotionCode extends ApiResource implements HasId, MetadataStoresubscriptions
, invoices, checkout sessions, quotes, and more. Coupons do not work with
- * conventional one-off charges or payment intents.
- */
- @SerializedName("coupon")
- Coupon coupon;
-
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
@SerializedName("created")
Long created;
@@ -108,6 +94,9 @@ public class PromotionCode extends ApiResource implements HasId, MetadataStore
params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
- * A promotion code points to a coupon. You can optionally restrict the code to a specific
- * customer, redemption limit, and expiration date.
+ * A promotion code points to an underlying promotion. You can optionally restrict the code to a
+ * specific customer, redemption limit, and expiration date.
*/
public static PromotionCode create(Map params, RequestOptions options)
throws StripeException {
@@ -154,16 +143,16 @@ public static PromotionCode create(Map params, RequestOptions op
}
/**
- * A promotion code points to a coupon. You can optionally restrict the code to a specific
- * customer, redemption limit, and expiration date.
+ * A promotion code points to an underlying promotion. You can optionally restrict the code to a
+ * specific customer, redemption limit, and expiration date.
*/
public static PromotionCode create(PromotionCodeCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
- * A promotion code points to a coupon. You can optionally restrict the code to a specific
- * customer, redemption limit, and expiration date.
+ * A promotion code points to an underlying promotion. You can optionally restrict the code to a
+ * specific customer, redemption limit, and expiration date.
*/
public static PromotionCode create(PromotionCodeCreateParams params, RequestOptions options)
throws StripeException {
@@ -315,6 +304,47 @@ public PromotionCode update(PromotionCodeUpdateParams params, RequestOptions opt
return getResponseGetter().request(request, PromotionCode.class);
}
+ /**
+ * For more details about Promotion, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Promotion extends StripeObject {
+ /** If promotion {@code type} is {@code coupon}, the coupon for this promotion. */
+ @SerializedName("coupon")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField coupon;
+
+ /**
+ * The type of promotion.
+ *
+ * Equal to {@code coupon}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Get ID of expandable {@code coupon} object. */
+ public String getCoupon() {
+ return (this.coupon != null) ? this.coupon.getId() : null;
+ }
+
+ public void setCoupon(String id) {
+ this.coupon = ApiResource.setExpandableFieldId(id, this.coupon);
+ }
+
+ /** Get expanded {@code coupon}. */
+ public Coupon getCouponObject() {
+ return (this.coupon != null) ? this.coupon.getExpanded() : null;
+ }
+
+ public void setCouponObject(Coupon expandableObject) {
+ this.coupon = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+ }
+
/**
* For more details about Restrictions, please refer to the API Reference.
@@ -369,8 +399,8 @@ public static class CurrencyOption extends StripeObject {
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
- trySetResponseGetter(coupon, responseGetter);
trySetResponseGetter(customer, responseGetter);
+ trySetResponseGetter(promotion, responseGetter);
trySetResponseGetter(restrictions, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/Quote.java b/src/main/java/com/stripe/model/Quote.java
index 98666a51950..0bfb66484e6 100644
--- a/src/main/java/com/stripe/model/Quote.java
+++ b/src/main/java/com/stripe/model/Quote.java
@@ -1466,6 +1466,9 @@ public static class SubscriptionData extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BillingMode extends StripeObject {
+ @SerializedName("flexible")
+ Flexible flexible;
+
/**
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
*
@@ -1473,6 +1476,23 @@ public static class BillingMode extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Flexible, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Flexible extends StripeObject {
+ /**
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
+ *
+ * One of {@code included}, or {@code itemized}.
+ */
+ @SerializedName("proration_discounts")
+ String prorationDiscounts;
+ }
}
}
diff --git a/src/main/java/com/stripe/model/Source.java b/src/main/java/com/stripe/model/Source.java
index d02f94fcd5a..9c38e470312 100644
--- a/src/main/java/com/stripe/model/Source.java
+++ b/src/main/java/com/stripe/model/Source.java
@@ -1146,8 +1146,8 @@ public static class Redirect extends StripeObject {
/**
* The status of the redirect, either {@code pending} (ready to be used by your customer to
- * authenticate the transaction), {@code succeeded} (succesful authentication, cannot be reused)
- * or {@code not_required} (redirect should not be used) or {@code failed} (failed
+ * authenticate the transaction), {@code succeeded} (successful authentication, cannot be
+ * reused) or {@code not_required} (redirect should not be used) or {@code failed} (failed
* authentication, cannot be reused).
*/
@SerializedName("status")
diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java
index e287d7944bf..6ca0e963796 100644
--- a/src/main/java/com/stripe/model/StripeError.java
+++ b/src/main/java/com/stripe/model/StripeError.java
@@ -46,11 +46,13 @@ public class StripeError extends StripeObject {
* customer_max_payment_methods}, {@code customer_max_subscriptions}, {@code
* customer_session_expired}, {@code customer_tax_location_invalid}, {@code debit_not_authorized},
* {@code email_invalid}, {@code expired_card}, {@code financial_connections_account_inactive},
- * {@code financial_connections_no_successful_transaction_refresh}, {@code
- * forwarding_api_inactive}, {@code forwarding_api_invalid_parameter}, {@code
- * forwarding_api_retryable_upstream_error}, {@code forwarding_api_upstream_connection_error},
- * {@code forwarding_api_upstream_connection_timeout}, {@code forwarding_api_upstream_error},
- * {@code idempotency_key_in_use}, {@code incorrect_address}, {@code incorrect_cvc}, {@code
+ * {@code financial_connections_account_pending_account_numbers}, {@code
+ * financial_connections_account_unavailable_account_numbers}, {@code
+ * financial_connections_no_successful_transaction_refresh}, {@code forwarding_api_inactive},
+ * {@code forwarding_api_invalid_parameter}, {@code forwarding_api_retryable_upstream_error},
+ * {@code forwarding_api_upstream_connection_error}, {@code
+ * forwarding_api_upstream_connection_timeout}, {@code forwarding_api_upstream_error}, {@code
+ * idempotency_key_in_use}, {@code incorrect_address}, {@code incorrect_cvc}, {@code
* incorrect_number}, {@code incorrect_zip}, {@code india_recurring_payment_mandate_canceled},
* {@code instant_payouts_config_disabled}, {@code instant_payouts_currency_disabled}, {@code
* instant_payouts_limit_exceeded}, {@code instant_payouts_unsupported}, {@code
diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java
index 4649031b54d..b3954dfac7b 100644
--- a/src/main/java/com/stripe/model/Subscription.java
+++ b/src/main/java/com/stripe/model/Subscription.java
@@ -1401,6 +1401,10 @@ public static class BillingCycleAnchorConfig extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BillingMode extends StripeObject {
+ /** Configure behavior for flexible billing mode. */
+ @SerializedName("flexible")
+ Flexible flexible;
+
/**
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
*
@@ -1412,6 +1416,23 @@ public static class BillingMode extends StripeObject {
/** Details on when the current billing_mode was adopted. */
@SerializedName("updated_at")
Long updatedAt;
+
+ /**
+ * For more details about Flexible, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Flexible extends StripeObject {
+ /**
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
+ *
+ *
One of {@code included}, or {@code itemized}.
+ */
+ @SerializedName("proration_discounts")
+ String prorationDiscounts;
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java
index f014e1895f4..38dda20bb73 100644
--- a/src/main/java/com/stripe/model/SubscriptionSchedule.java
+++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java
@@ -564,6 +564,10 @@ public SubscriptionSchedule update(
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BillingMode extends StripeObject {
+ /** Configure behavior for flexible billing mode. */
+ @SerializedName("flexible")
+ Flexible flexible;
+
/**
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
*
@@ -575,6 +579,23 @@ public static class BillingMode extends StripeObject {
/** Details on when the current billing_mode was adopted. */
@SerializedName("updated_at")
Long updatedAt;
+
+ /**
+ * For more details about Flexible, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Flexible extends StripeObject {
+ /**
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
+ *
+ *
One of {@code included}, or {@code itemized}.
+ */
+ @SerializedName("proration_discounts")
+ String prorationDiscounts;
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/billingportal/Configuration.java b/src/main/java/com/stripe/model/billingportal/Configuration.java
index 29ef889e4f0..3a3b455e6d8 100644
--- a/src/main/java/com/stripe/model/billingportal/Configuration.java
+++ b/src/main/java/com/stripe/model/billingportal/Configuration.java
@@ -449,6 +449,16 @@ public static class SubscriptionUpdate extends StripeObject {
@SerializedName("schedule_at_period_end")
ScheduleAtPeriodEnd scheduleAtPeriodEnd;
+ /**
+ * Determines how handle updates to trialing subscriptions. Valid values are {@code end_trial}
+ * and {@code continue_trial}. Defaults to a value of {@code end_trial} if you don't set it
+ * during creation.
+ *
+ *
One of {@code continue_trial}, or {@code end_trial}.
+ */
+ @SerializedName("trial_update_behavior")
+ String trialUpdateBehavior;
+
/**
* For more details about Product, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java
index d767167fe2d..5aa92c00b43 100644
--- a/src/main/java/com/stripe/model/checkout/Session.java
+++ b/src/main/java/com/stripe/model/checkout/Session.java
@@ -94,6 +94,9 @@ public class Session extends ApiResource implements HasId, MetadataStore discounts;
+ /**
+ * A list of the types of payment methods (e.g., {@code card}) that should be excluded from this
+ * Checkout Session. This should only be used when payment methods for this Checkout Session are
+ * managed through the Stripe
+ * Dashboard.
+ */
+ @SerializedName("excluded_payment_method_types")
+ List excludedPaymentMethodTypes;
+
/** The timestamp at which the Checkout Session will expire. */
@SerializedName("expires_at")
Long expiresAt;
@@ -262,6 +274,9 @@ public class Session extends ApiResource implements HasId, MetadataStoreAPI Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BrandingSettings extends StripeObject {
+ /**
+ * A hex color value starting with {@code #} representing the background color for the Checkout
+ * Session.
+ */
+ @SerializedName("background_color")
+ String backgroundColor;
+
+ /**
+ * The border style for the Checkout Session. Must be one of {@code rounded}, {@code
+ * rectangular}, or {@code pill}.
+ */
+ @SerializedName("border_style")
+ String borderStyle;
+
+ /**
+ * A hex color value starting with {@code #} representing the button color for the Checkout
+ * Session.
+ */
+ @SerializedName("button_color")
+ String buttonColor;
+
+ /** The display name shown on the Checkout Session. */
+ @SerializedName("display_name")
+ String displayName;
+
+ /**
+ * The font family for the Checkout Session. Must be one of the supported
+ * font families.
+ */
+ @SerializedName("font_family")
+ String fontFamily;
+
+ /** The icon for the Checkout Session. You cannot set both {@code logo} and {@code icon}. */
+ @SerializedName("icon")
+ Icon icon;
+
+ /** The logo for the Checkout Session. You cannot set both {@code logo} and {@code icon}. */
+ @SerializedName("logo")
+ Logo logo;
+
+ /**
+ * For more details about Icon, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Icon extends StripeObject {
+ /**
+ * The ID of a File upload representing the
+ * icon. Purpose must be {@code business_icon}. Required if {@code type} is {@code file} and
+ * disallowed otherwise.
+ */
+ @SerializedName("file")
+ String file;
+
+ /** The type of image for the icon. Must be one of {@code file} or {@code url}. */
+ @SerializedName("type")
+ String type;
+
+ /** The URL of the image. Present when {@code type} is {@code url}. */
+ @SerializedName("url")
+ String url;
+ }
+
+ /**
+ * For more details about Logo, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Logo extends StripeObject {
+ /**
+ * The ID of a File upload representing the
+ * logo. Purpose must be {@code business_logo}. Required if {@code type} is {@code file} and
+ * disallowed otherwise.
+ */
+ @SerializedName("file")
+ String file;
+
+ /** The type of image for the logo. Must be one of {@code file} or {@code url}. */
+ @SerializedName("type")
+ String type;
+
+ /** The URL of the image. Present when {@code type} is {@code url}. */
+ @SerializedName("url")
+ String url;
+ }
+ }
+
/**
* For more details about CollectedInformation, please refer to the API Reference.
@@ -1015,6 +1130,14 @@ public void setAccountObject(Account expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class CollectedInformation extends StripeObject {
+ /** Customer’s business name for this Checkout Session. */
+ @SerializedName("business_name")
+ String businessName;
+
+ /** Customer’s individual name for this Checkout Session. */
+ @SerializedName("individual_name")
+ String individualName;
+
/** Shipping information for this Checkout Session. */
@SerializedName("shipping_details")
ShippingDetails shippingDetails;
@@ -1394,6 +1517,10 @@ public static class CustomerDetails extends StripeObject {
@SerializedName("address")
Address address;
+ /** The customer's business name after a completed Checkout Session. */
+ @SerializedName("business_name")
+ String businessName;
+
/**
* The email associated with the Customer, if one exists, on the Checkout Session after a
* completed Checkout Session or at time of session expiry. Otherwise, if the customer has
@@ -1403,6 +1530,10 @@ public static class CustomerDetails extends StripeObject {
@SerializedName("email")
String email;
+ /** The customer's individual name after a completed Checkout Session. */
+ @SerializedName("individual_name")
+ String individualName;
+
/**
* The customer's name after a completed Checkout Session. Note: This property is populated only
* for sessions on or after March 30, 2022.
@@ -1705,6 +1836,61 @@ public static class RenderingOptions extends StripeObject {
}
}
+ /**
+ * For more details about NameCollection, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NameCollection extends StripeObject {
+ @SerializedName("business")
+ Business business;
+
+ @SerializedName("individual")
+ Individual individual;
+
+ /**
+ * For more details about Business, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Business extends StripeObject {
+ /** Indicates whether business name collection is enabled for the session. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * Whether the customer is required to complete the field before completing the Checkout
+ * Session. Defaults to {@code false}.
+ */
+ @SerializedName("optional")
+ Boolean optional;
+ }
+
+ /**
+ * For more details about Individual, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Individual extends StripeObject {
+ /** Indicates whether individual name collection is enabled for the session. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * Whether the customer is required to complete the field before completing the Checkout
+ * Session. Defaults to {@code false}.
+ */
+ @SerializedName("optional")
+ Boolean optional;
+ }
+ }
+
/**
* For more details about OptionalItem, please refer to the API Reference.
@@ -1790,6 +1976,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("alipay")
Alipay alipay;
+ @SerializedName("alma")
+ Alma alma;
+
@SerializedName("amazon_pay")
AmazonPay amazonPay;
@@ -1802,6 +1991,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("bancontact")
Bancontact bancontact;
+ @SerializedName("billie")
+ Billie billie;
+
@SerializedName("boleto")
Boleto boleto;
@@ -1877,6 +2069,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("samsung_pay")
SamsungPay samsungPay;
+ @SerializedName("satispay")
+ Satispay satispay;
+
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
@@ -2000,6 +2195,14 @@ public static class MandateOptions extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Affirm extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ * Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -2033,6 +2236,14 @@ public static class Affirm extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AfterpayClearpay extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -2091,6 +2302,23 @@ public static class Alipay extends StripeObject {
String setupFutureUsage;
}
+ /**
+ * For more details about Alma, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Alma extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+ }
+
/**
* For more details about AmazonPay, please refer to the API Reference.
@@ -2099,6 +2327,14 @@ public static class Alipay extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmazonPay extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -2259,6 +2495,23 @@ public static class Bancontact extends StripeObject {
String setupFutureUsage;
}
+ /**
+ * For more details about Billie, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Billie extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+ }
+
/**
* For more details about Boleto, please refer to the API
* Reference.
@@ -2308,6 +2561,14 @@ public static class Boleto extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
@SerializedName("installments")
Installments installments;
@@ -2449,6 +2710,14 @@ public static class Restrictions extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Cashapp extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -2784,6 +3053,14 @@ public static class KakaoPay extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Klarna extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -2900,6 +3177,14 @@ public static class KrCard extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Link extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -2933,6 +3218,14 @@ public static class Link extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Mobilepay extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -3262,6 +3555,14 @@ public static class Pix extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RevolutPay extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
@@ -3304,6 +3605,23 @@ public static class SamsungPay extends StripeObject {
String captureMethod;
}
+ /**
+ * For more details about Satispay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Satispay extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+ }
+
/**
* For more details about SepaDebit, please refer to the API Reference.
@@ -3917,6 +4235,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(adaptivePricing, responseGetter);
trySetResponseGetter(afterExpiration, responseGetter);
trySetResponseGetter(automaticTax, responseGetter);
+ trySetResponseGetter(brandingSettings, responseGetter);
trySetResponseGetter(collectedInformation, responseGetter);
trySetResponseGetter(consent, responseGetter);
trySetResponseGetter(consentCollection, responseGetter);
@@ -3927,6 +4246,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(invoice, responseGetter);
trySetResponseGetter(invoiceCreation, responseGetter);
trySetResponseGetter(lineItems, responseGetter);
+ trySetResponseGetter(nameCollection, responseGetter);
trySetResponseGetter(paymentIntent, responseGetter);
trySetResponseGetter(paymentLink, responseGetter);
trySetResponseGetter(paymentMethodConfigurationDetails, responseGetter);
diff --git a/src/main/java/com/stripe/model/issuing/Card.java b/src/main/java/com/stripe/model/issuing/Card.java
index 979aff4b95e..c2279b0a4a6 100644
--- a/src/main/java/com/stripe/model/issuing/Card.java
+++ b/src/main/java/com/stripe/model/issuing/Card.java
@@ -165,6 +165,10 @@ public class Card extends ApiResource implements HasId, MetadataStore {
@SerializedName("replacement_reason")
String replacementReason;
+ /** Text separate from cardholder name, printed on the card. */
+ @SerializedName("second_line")
+ String secondLine;
+
/** Where and how the card will be shipped. */
@SerializedName("shipping")
Shipping shipping;
diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java
index 97a756ab956..239ee21ba6d 100644
--- a/src/main/java/com/stripe/model/tax/Calculation.java
+++ b/src/main/java/com/stripe/model/tax/Calculation.java
@@ -290,11 +290,11 @@ public static class Address extends StripeObject {
@SerializedName("country")
String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -304,7 +304,7 @@ public static class Address extends StripeObject {
/**
* State/province as an ISO 3166-2
- * subdivision code, without country prefix. Example: "NY" or "TX".
+ * subdivision code, without country prefix, such as "NY" or "TX".
*/
@SerializedName("state")
String state;
@@ -380,11 +380,11 @@ public static class Address extends StripeObject {
@SerializedName("country")
String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -394,7 +394,7 @@ public static class Address extends StripeObject {
/**
* State/province as an ISO 3166-2
- * subdivision code, without country prefix. Example: "NY" or "TX".
+ * subdivision code, without country prefix, such as "NY" or "TX".
*/
@SerializedName("state")
String state;
diff --git a/src/main/java/com/stripe/model/tax/Settings.java b/src/main/java/com/stripe/model/tax/Settings.java
index b5090fc8d20..d26e2cb6c60 100644
--- a/src/main/java/com/stripe/model/tax/Settings.java
+++ b/src/main/java/com/stripe/model/tax/Settings.java
@@ -149,6 +149,15 @@ public static Settings update(SettingsUpdateParams params, RequestOptions option
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Defaults extends StripeObject {
+ /**
+ * The tax calculation provider this account uses. Defaults to {@code stripe} when not using a
+ * third-party provider.
+ *
+ * One of {@code anrok}, {@code avalara}, {@code sphere}, or {@code stripe}.
+ */
+ @SerializedName("provider")
+ String provider;
+
/**
* Default tax
diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java
index fd628992398..f67b062766f 100644
--- a/src/main/java/com/stripe/model/tax/Transaction.java
+++ b/src/main/java/com/stripe/model/tax/Transaction.java
@@ -335,11 +335,11 @@ public static class Address extends StripeObject {
@SerializedName("country")
String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -349,7 +349,7 @@ public static class Address extends StripeObject {
/**
* State/province as an ISO 3166-2
- * subdivision code, without country prefix. Example: "NY" or "TX".
+ * subdivision code, without country prefix, such as "NY" or "TX".
*/
@SerializedName("state")
String state;
@@ -438,11 +438,11 @@ public static class Address extends StripeObject {
@SerializedName("country")
String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -452,7 +452,7 @@ public static class Address extends StripeObject {
/**
* State/province as an ISO 3166-2
- * subdivision code, without country prefix. Example: "NY" or "TX".
+ * subdivision code, without country prefix, such as "NY" or "TX".
*/
@SerializedName("state")
String state;
diff --git a/src/main/java/com/stripe/model/terminal/Configuration.java b/src/main/java/com/stripe/model/terminal/Configuration.java
index afa388f1568..75dbbd4a3b4 100644
--- a/src/main/java/com/stripe/model/terminal/Configuration.java
+++ b/src/main/java/com/stripe/model/terminal/Configuration.java
@@ -33,6 +33,9 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class Configuration extends ApiResource implements HasId {
+ @SerializedName("bbpos_wisepad3")
+ BbposWisepad3 bbposWisepad3;
+
@SerializedName("bbpos_wisepos_e")
BbposWiseposE bbposWiseposE;
@@ -255,6 +258,39 @@ public Configuration update(ConfigurationUpdateParams params, RequestOptions opt
return getResponseGetter().request(request, Configuration.class);
}
+ /**
+ * For more details about BbposWisepad3, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BbposWisepad3 extends StripeObject {
+ /** A File ID representing an image to display on the reader. */
+ @SerializedName("splashscreen")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField splashscreen;
+
+ /** Get ID of expandable {@code splashscreen} object. */
+ public String getSplashscreen() {
+ return (this.splashscreen != null) ? this.splashscreen.getId() : null;
+ }
+
+ public void setSplashscreen(String id) {
+ this.splashscreen = ApiResource.setExpandableFieldId(id, this.splashscreen);
+ }
+
+ /** Get expanded {@code splashscreen}. */
+ public File getSplashscreenObject() {
+ return (this.splashscreen != null) ? this.splashscreen.getExpanded() : null;
+ }
+
+ public void setSplashscreenObject(File expandableObject) {
+ this.splashscreen = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+ }
+
/**
* For more details about BbposWiseposE, please refer to the API Reference.
@@ -1067,6 +1103,7 @@ public static class PersonalPsk extends StripeObject {
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
+ trySetResponseGetter(bbposWisepad3, responseGetter);
trySetResponseGetter(bbposWiseposE, responseGetter);
trySetResponseGetter(offline, responseGetter);
trySetResponseGetter(rebootWindow, responseGetter);
diff --git a/src/main/java/com/stripe/model/terminal/Location.java b/src/main/java/com/stripe/model/terminal/Location.java
index 93969929030..95871681b0e 100644
--- a/src/main/java/com/stripe/model/terminal/Location.java
+++ b/src/main/java/com/stripe/model/terminal/Location.java
@@ -6,6 +6,7 @@
import com.stripe.model.Address;
import com.stripe.model.HasId;
import com.stripe.model.MetadataStore;
+import com.stripe.model.StripeObject;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
@@ -33,6 +34,12 @@ public class Location extends ApiResource implements HasId, MetadataStoreAPI Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AddressKana extends StripeObject {
+ /** City/Ward. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /** Block/Building number. */
+ @SerializedName("line1")
+ String line1;
+
+ /** Building details. */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /** Prefecture. */
+ @SerializedName("state")
+ String state;
+
+ /** Town/cho-me. */
+ @SerializedName("town")
+ String town;
+ }
+
+ /**
+ * For more details about AddressKanji, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AddressKanji extends StripeObject {
+ /** City/Ward. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /** Block/Building number. */
+ @SerializedName("line1")
+ String line1;
+
+ /** Building details. */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /** Prefecture. */
+ @SerializedName("state")
+ String state;
+
+ /** Town/cho-me. */
+ @SerializedName("town")
+ String town;
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(address, responseGetter);
+ trySetResponseGetter(addressKana, responseGetter);
+ trySetResponseGetter(addressKanji, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index f9852718f76..02a708c5fb4 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -1114,11 +1114,11 @@ public static class SupportAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -1221,13 +1221,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -1412,6 +1412,10 @@ public static class Capabilities {
@SerializedName("link_payments")
LinkPayments linkPayments;
+ /** The mb_way_payments capability. */
+ @SerializedName("mb_way_payments")
+ MbWayPayments mbWayPayments;
+
/** The mobilepay_payments capability. */
@SerializedName("mobilepay_payments")
MobilepayPayments mobilepayPayments;
@@ -1452,6 +1456,10 @@ public static class Capabilities {
@SerializedName("paynow_payments")
PaynowPayments paynowPayments;
+ /** The paypay_payments capability. */
+ @SerializedName("paypay_payments")
+ PaypayPayments paypayPayments;
+
/** The pix_payments capability. */
@SerializedName("pix_payments")
PixPayments pixPayments;
@@ -1554,6 +1562,7 @@ private Capabilities(
KrCardPayments krCardPayments,
LegacyPayments legacyPayments,
LinkPayments linkPayments,
+ MbWayPayments mbWayPayments,
MobilepayPayments mobilepayPayments,
MultibancoPayments multibancoPayments,
MxBankTransferPayments mxBankTransferPayments,
@@ -1564,6 +1573,7 @@ private Capabilities(
PayByBankPayments payByBankPayments,
PaycoPayments paycoPayments,
PaynowPayments paynowPayments,
+ PaypayPayments paypayPayments,
PixPayments pixPayments,
PromptpayPayments promptpayPayments,
RevolutPayPayments revolutPayPayments,
@@ -1614,6 +1624,7 @@ private Capabilities(
this.krCardPayments = krCardPayments;
this.legacyPayments = legacyPayments;
this.linkPayments = linkPayments;
+ this.mbWayPayments = mbWayPayments;
this.mobilepayPayments = mobilepayPayments;
this.multibancoPayments = multibancoPayments;
this.mxBankTransferPayments = mxBankTransferPayments;
@@ -1624,6 +1635,7 @@ private Capabilities(
this.payByBankPayments = payByBankPayments;
this.paycoPayments = paycoPayments;
this.paynowPayments = paynowPayments;
+ this.paypayPayments = paypayPayments;
this.pixPayments = pixPayments;
this.promptpayPayments = promptpayPayments;
this.revolutPayPayments = revolutPayPayments;
@@ -1714,6 +1726,8 @@ public static class Builder {
private LinkPayments linkPayments;
+ private MbWayPayments mbWayPayments;
+
private MobilepayPayments mobilepayPayments;
private MultibancoPayments multibancoPayments;
@@ -1734,6 +1748,8 @@ public static class Builder {
private PaynowPayments paynowPayments;
+ private PaypayPayments paypayPayments;
+
private PixPayments pixPayments;
private PromptpayPayments promptpayPayments;
@@ -1804,6 +1820,7 @@ public AccountCreateParams.Capabilities build() {
this.krCardPayments,
this.legacyPayments,
this.linkPayments,
+ this.mbWayPayments,
this.mobilepayPayments,
this.multibancoPayments,
this.mxBankTransferPayments,
@@ -1814,6 +1831,7 @@ public AccountCreateParams.Capabilities build() {
this.payByBankPayments,
this.paycoPayments,
this.paynowPayments,
+ this.paypayPayments,
this.pixPayments,
this.promptpayPayments,
this.revolutPayPayments,
@@ -2075,6 +2093,13 @@ public Builder setLinkPayments(AccountCreateParams.Capabilities.LinkPayments lin
return this;
}
+ /** The mb_way_payments capability. */
+ public Builder setMbWayPayments(
+ AccountCreateParams.Capabilities.MbWayPayments mbWayPayments) {
+ this.mbWayPayments = mbWayPayments;
+ return this;
+ }
+
/** The mobilepay_payments capability. */
public Builder setMobilepayPayments(
AccountCreateParams.Capabilities.MobilepayPayments mobilepayPayments) {
@@ -2144,6 +2169,13 @@ public Builder setPaynowPayments(
return this;
}
+ /** The paypay_payments capability. */
+ public Builder setPaypayPayments(
+ AccountCreateParams.Capabilities.PaypayPayments paypayPayments) {
+ this.paypayPayments = paypayPayments;
+ return this;
+ }
+
/** The pix_payments capability. */
public Builder setPixPayments(AccountCreateParams.Capabilities.PixPayments pixPayments) {
this.pixPayments = pixPayments;
@@ -4816,6 +4848,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWayPayments {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private MbWayPayments(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Capabilities.MbWayPayments build() {
+ return new AccountCreateParams.Capabilities.MbWayPayments(
+ this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.MbWayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.MbWayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class MobilepayPayments {
@@ -5617,6 +5729,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaypayPayments {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private PaypayPayments(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Capabilities.PaypayPayments build() {
+ return new AccountCreateParams.Capabilities.PaypayPayments(
+ this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.PaypayPayments#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.PaypayPayments#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class PixPayments {
@@ -7507,11 +7699,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -7614,13 +7806,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -10743,11 +10935,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -10850,13 +11042,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -11339,11 +11531,11 @@ public static class RegisteredAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -11446,13 +11638,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -13264,16 +13456,15 @@ public static class Schedule {
/**
* The day of the week when available funds are paid out, specified as {@code monday},
- * {@code tuesday}, etc. (required and applicable only if {@code interval} is {@code
- * weekly}.)
+ * {@code tuesday}, etc. Required and applicable only if {@code interval} is {@code weekly}.
*/
@SerializedName("weekly_anchor")
WeeklyAnchor weeklyAnchor;
/**
* The days of the week when available funds are paid out, specified as an array, e.g.,
- * [{@code monday}, {@code tuesday}]. (required and applicable only if {@code interval} is
- * {@code weekly} and {@code weekly_anchor} is not set.)
+ * [{@code monday}, {@code tuesday}]. Required and applicable only if {@code interval} is
+ * {@code weekly}.
*/
@SerializedName("weekly_payout_days")
List weeklyPayoutDays;
@@ -13433,8 +13624,8 @@ public Builder addAllMonthlyPayoutDay(List elements) {
/**
* The day of the week when available funds are paid out, specified as {@code monday},
- * {@code tuesday}, etc. (required and applicable only if {@code interval} is {@code
- * weekly}.)
+ * {@code tuesday}, etc. Required and applicable only if {@code interval} is {@code
+ * weekly}.
*/
public Builder setWeeklyAnchor(
AccountCreateParams.Settings.Payouts.Schedule.WeeklyAnchor weeklyAnchor) {
@@ -13543,12 +13734,6 @@ public enum WeeklyPayoutDay implements ApiRequestParams.EnumParam {
@SerializedName("monday")
MONDAY("monday"),
- @SerializedName("saturday")
- SATURDAY("saturday"),
-
- @SerializedName("sunday")
- SUNDAY("sunday"),
-
@SerializedName("thursday")
THURSDAY("thursday"),
diff --git a/src/main/java/com/stripe/param/AccountPersonCreateParams.java b/src/main/java/com/stripe/param/AccountPersonCreateParams.java
index 419ba8b52c3..a9982ede685 100644
--- a/src/main/java/com/stripe/param/AccountPersonCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountPersonCreateParams.java
@@ -884,11 +884,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -989,13 +989,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -1872,11 +1872,11 @@ public static class RegisteredAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -1978,13 +1978,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java
index 45fad2e0a32..ab515d80358 100644
--- a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java
@@ -1001,11 +1001,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -1121,25 +1121,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
@@ -2118,11 +2118,11 @@ public static class RegisteredAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -2239,25 +2239,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java
index 4470540bece..e23fb227dfc 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -1173,11 +1173,11 @@ public static class SupportAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -1295,25 +1295,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
@@ -1510,6 +1510,10 @@ public static class Capabilities {
@SerializedName("link_payments")
LinkPayments linkPayments;
+ /** The mb_way_payments capability. */
+ @SerializedName("mb_way_payments")
+ MbWayPayments mbWayPayments;
+
/** The mobilepay_payments capability. */
@SerializedName("mobilepay_payments")
MobilepayPayments mobilepayPayments;
@@ -1550,6 +1554,10 @@ public static class Capabilities {
@SerializedName("paynow_payments")
PaynowPayments paynowPayments;
+ /** The paypay_payments capability. */
+ @SerializedName("paypay_payments")
+ PaypayPayments paypayPayments;
+
/** The pix_payments capability. */
@SerializedName("pix_payments")
PixPayments pixPayments;
@@ -1652,6 +1660,7 @@ private Capabilities(
KrCardPayments krCardPayments,
LegacyPayments legacyPayments,
LinkPayments linkPayments,
+ MbWayPayments mbWayPayments,
MobilepayPayments mobilepayPayments,
MultibancoPayments multibancoPayments,
MxBankTransferPayments mxBankTransferPayments,
@@ -1662,6 +1671,7 @@ private Capabilities(
PayByBankPayments payByBankPayments,
PaycoPayments paycoPayments,
PaynowPayments paynowPayments,
+ PaypayPayments paypayPayments,
PixPayments pixPayments,
PromptpayPayments promptpayPayments,
RevolutPayPayments revolutPayPayments,
@@ -1712,6 +1722,7 @@ private Capabilities(
this.krCardPayments = krCardPayments;
this.legacyPayments = legacyPayments;
this.linkPayments = linkPayments;
+ this.mbWayPayments = mbWayPayments;
this.mobilepayPayments = mobilepayPayments;
this.multibancoPayments = multibancoPayments;
this.mxBankTransferPayments = mxBankTransferPayments;
@@ -1722,6 +1733,7 @@ private Capabilities(
this.payByBankPayments = payByBankPayments;
this.paycoPayments = paycoPayments;
this.paynowPayments = paynowPayments;
+ this.paypayPayments = paypayPayments;
this.pixPayments = pixPayments;
this.promptpayPayments = promptpayPayments;
this.revolutPayPayments = revolutPayPayments;
@@ -1812,6 +1824,8 @@ public static class Builder {
private LinkPayments linkPayments;
+ private MbWayPayments mbWayPayments;
+
private MobilepayPayments mobilepayPayments;
private MultibancoPayments multibancoPayments;
@@ -1832,6 +1846,8 @@ public static class Builder {
private PaynowPayments paynowPayments;
+ private PaypayPayments paypayPayments;
+
private PixPayments pixPayments;
private PromptpayPayments promptpayPayments;
@@ -1902,6 +1918,7 @@ public AccountUpdateParams.Capabilities build() {
this.krCardPayments,
this.legacyPayments,
this.linkPayments,
+ this.mbWayPayments,
this.mobilepayPayments,
this.multibancoPayments,
this.mxBankTransferPayments,
@@ -1912,6 +1929,7 @@ public AccountUpdateParams.Capabilities build() {
this.payByBankPayments,
this.paycoPayments,
this.paynowPayments,
+ this.paypayPayments,
this.pixPayments,
this.promptpayPayments,
this.revolutPayPayments,
@@ -2173,6 +2191,13 @@ public Builder setLinkPayments(AccountUpdateParams.Capabilities.LinkPayments lin
return this;
}
+ /** The mb_way_payments capability. */
+ public Builder setMbWayPayments(
+ AccountUpdateParams.Capabilities.MbWayPayments mbWayPayments) {
+ this.mbWayPayments = mbWayPayments;
+ return this;
+ }
+
/** The mobilepay_payments capability. */
public Builder setMobilepayPayments(
AccountUpdateParams.Capabilities.MobilepayPayments mobilepayPayments) {
@@ -2242,6 +2267,13 @@ public Builder setPaynowPayments(
return this;
}
+ /** The paypay_payments capability. */
+ public Builder setPaypayPayments(
+ AccountUpdateParams.Capabilities.PaypayPayments paypayPayments) {
+ this.paypayPayments = paypayPayments;
+ return this;
+ }
+
/** The pix_payments capability. */
public Builder setPixPayments(AccountUpdateParams.Capabilities.PixPayments pixPayments) {
this.pixPayments = pixPayments;
@@ -4914,6 +4946,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWayPayments {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private MbWayPayments(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Capabilities.MbWayPayments build() {
+ return new AccountUpdateParams.Capabilities.MbWayPayments(
+ this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.MbWayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.MbWayPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class MobilepayPayments {
@@ -5715,6 +5827,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaypayPayments {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private PaypayPayments(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Capabilities.PaypayPayments build() {
+ return new AccountUpdateParams.Capabilities.PaypayPayments(
+ this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.PaypayPayments#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.PaypayPayments#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class PixPayments {
@@ -7676,11 +7868,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -7798,25 +7990,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
@@ -10750,11 +10942,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -10872,25 +11064,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
@@ -11475,11 +11667,11 @@ public static class RegisteredAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -11597,25 +11789,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
@@ -13661,16 +13853,15 @@ public static class Schedule {
/**
* The day of the week when available funds are paid out, specified as {@code monday},
- * {@code tuesday}, etc. (required and applicable only if {@code interval} is {@code
- * weekly}.)
+ * {@code tuesday}, etc. Required and applicable only if {@code interval} is {@code weekly}.
*/
@SerializedName("weekly_anchor")
WeeklyAnchor weeklyAnchor;
/**
* The days of the week when available funds are paid out, specified as an array, e.g.,
- * [{@code monday}, {@code tuesday}]. (required and applicable only if {@code interval} is
- * {@code weekly} and {@code weekly_anchor} is not set.)
+ * [{@code monday}, {@code tuesday}]. Required and applicable only if {@code interval} is
+ * {@code weekly}.
*/
@SerializedName("weekly_payout_days")
List weeklyPayoutDays;
@@ -13830,8 +14021,8 @@ public Builder addAllMonthlyPayoutDay(List elements) {
/**
* The day of the week when available funds are paid out, specified as {@code monday},
- * {@code tuesday}, etc. (required and applicable only if {@code interval} is {@code
- * weekly}.)
+ * {@code tuesday}, etc. Required and applicable only if {@code interval} is {@code
+ * weekly}.
*/
public Builder setWeeklyAnchor(
AccountUpdateParams.Settings.Payouts.Schedule.WeeklyAnchor weeklyAnchor) {
@@ -13940,12 +14131,6 @@ public enum WeeklyPayoutDay implements ApiRequestParams.EnumParam {
@SerializedName("monday")
MONDAY("monday"),
- @SerializedName("saturday")
- SATURDAY("saturday"),
-
- @SerializedName("sunday")
- SUNDAY("sunday"),
-
@SerializedName("thursday")
THURSDAY("thursday"),
diff --git a/src/main/java/com/stripe/param/BalanceSettingsRetrieveParams.java b/src/main/java/com/stripe/param/BalanceSettingsRetrieveParams.java
new file mode 100644
index 00000000000..f6d085f2939
--- /dev/null
+++ b/src/main/java/com/stripe/param/BalanceSettingsRetrieveParams.java
@@ -0,0 +1,100 @@
+// File generated from our OpenAPI spec
+package com.stripe.param;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class BalanceSettingsRetrieveParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private BalanceSettingsRetrieveParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BalanceSettingsRetrieveParams build() {
+ return new BalanceSettingsRetrieveParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BalanceSettingsRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BalanceSettingsRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BalanceSettingsRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BalanceSettingsRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/BalanceSettingsUpdateParams.java b/src/main/java/com/stripe/param/BalanceSettingsUpdateParams.java
new file mode 100644
index 00000000000..ac0ee91cad5
--- /dev/null
+++ b/src/main/java/com/stripe/param/BalanceSettingsUpdateParams.java
@@ -0,0 +1,750 @@
+// File generated from our OpenAPI spec
+package com.stripe.param;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.param.common.EmptyParam;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class BalanceSettingsUpdateParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Settings that apply to the Payments Balance.
+ */
+ @SerializedName("payments")
+ Payments payments;
+
+ private BalanceSettingsUpdateParams(
+ List expand, Map extraParams, Payments payments) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.payments = payments;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ private Payments payments;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BalanceSettingsUpdateParams build() {
+ return new BalanceSettingsUpdateParams(this.expand, this.extraParams, this.payments);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BalanceSettingsUpdateParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BalanceSettingsUpdateParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BalanceSettingsUpdateParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BalanceSettingsUpdateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Settings that apply to the Payments
+ * Balance.
+ */
+ public Builder setPayments(BalanceSettingsUpdateParams.Payments payments) {
+ this.payments = payments;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payments {
+ /**
+ * A Boolean indicating whether Stripe should try to reclaim negative balances from an attached
+ * bank account. For details, see Understanding Connect Account
+ * Balances.
+ */
+ @SerializedName("debit_negative_balances")
+ Boolean debitNegativeBalances;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Settings specific to the account's payouts. */
+ @SerializedName("payouts")
+ Payouts payouts;
+
+ /** Settings related to the account's balance settlement timing. */
+ @SerializedName("settlement_timing")
+ SettlementTiming settlementTiming;
+
+ private Payments(
+ Boolean debitNegativeBalances,
+ Map extraParams,
+ Payouts payouts,
+ SettlementTiming settlementTiming) {
+ this.debitNegativeBalances = debitNegativeBalances;
+ this.extraParams = extraParams;
+ this.payouts = payouts;
+ this.settlementTiming = settlementTiming;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Boolean debitNegativeBalances;
+
+ private Map extraParams;
+
+ private Payouts payouts;
+
+ private SettlementTiming settlementTiming;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BalanceSettingsUpdateParams.Payments build() {
+ return new BalanceSettingsUpdateParams.Payments(
+ this.debitNegativeBalances, this.extraParams, this.payouts, this.settlementTiming);
+ }
+
+ /**
+ * A Boolean indicating whether Stripe should try to reclaim negative balances from an
+ * attached bank account. For details, see Understanding Connect Account
+ * Balances.
+ */
+ public Builder setDebitNegativeBalances(Boolean debitNegativeBalances) {
+ this.debitNegativeBalances = debitNegativeBalances;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BalanceSettingsUpdateParams.Payments#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BalanceSettingsUpdateParams.Payments#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Settings specific to the account's payouts. */
+ public Builder setPayouts(BalanceSettingsUpdateParams.Payments.Payouts payouts) {
+ this.payouts = payouts;
+ return this;
+ }
+
+ /** Settings related to the account's balance settlement timing. */
+ public Builder setSettlementTiming(
+ BalanceSettingsUpdateParams.Payments.SettlementTiming settlementTiming) {
+ this.settlementTiming = settlementTiming;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payouts {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * The minimum balance amount to retain per currency after automatic payouts. Only funds that
+ * exceed these amounts are paid out. Learn more about the minimum balances
+ * for automatic payouts.
+ */
+ @SerializedName("minimum_balance_by_currency")
+ Object minimumBalanceByCurrency;
+
+ /**
+ * Details on when funds from charges are available, and when they are paid out to an external
+ * account. For details, see our Setting Bank and Debit
+ * Card Payouts documentation.
+ */
+ @SerializedName("schedule")
+ Schedule schedule;
+
+ /**
+ * The text that appears on the bank account statement for payouts. If not set, this defaults
+ * to the platform's bank descriptor as set in the Dashboard.
+ */
+ @SerializedName("statement_descriptor")
+ Object statementDescriptor;
+
+ private Payouts(
+ Map extraParams,
+ Object minimumBalanceByCurrency,
+ Schedule schedule,
+ Object statementDescriptor) {
+ this.extraParams = extraParams;
+ this.minimumBalanceByCurrency = minimumBalanceByCurrency;
+ this.schedule = schedule;
+ this.statementDescriptor = statementDescriptor;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Object minimumBalanceByCurrency;
+
+ private Schedule schedule;
+
+ private Object statementDescriptor;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BalanceSettingsUpdateParams.Payments.Payouts build() {
+ return new BalanceSettingsUpdateParams.Payments.Payouts(
+ this.extraParams,
+ this.minimumBalanceByCurrency,
+ this.schedule,
+ this.statementDescriptor);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link BalanceSettingsUpdateParams.Payments.Payouts#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link BalanceSettingsUpdateParams.Payments.Payouts#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `minimumBalanceByCurrency` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * BalanceSettingsUpdateParams.Payments.Payouts#minimumBalanceByCurrency} for the field
+ * documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder putMinimumBalanceByCurrency(String key, Long value) {
+ if (this.minimumBalanceByCurrency == null
+ || this.minimumBalanceByCurrency instanceof EmptyParam) {
+ this.minimumBalanceByCurrency = new HashMap();
+ }
+ ((Map) this.minimumBalanceByCurrency).put(key, value);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `minimumBalanceByCurrency` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * BalanceSettingsUpdateParams.Payments.Payouts#minimumBalanceByCurrency} for the field
+ * documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder putMinimumBalanceByCurrency(String key, EmptyParam value) {
+ if (this.minimumBalanceByCurrency == null
+ || this.minimumBalanceByCurrency instanceof EmptyParam) {
+ this.minimumBalanceByCurrency = new HashMap();
+ }
+ ((Map) this.minimumBalanceByCurrency).put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `minimumBalanceByCurrency` map. A map is initialized for
+ * the first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. Map values can only be one of the following types: `Long`, `EmptyParam`.
+ * See {@link BalanceSettingsUpdateParams.Payments.Payouts#minimumBalanceByCurrency} for the
+ * field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder putAllMinimumBalanceByCurrency(Map map) {
+ if (!map.values().stream().allMatch(v -> v instanceof Long || v instanceof EmptyParam)) {
+ throw new IllegalArgumentException(
+ "All map values must one of the following types: Long, EmptyParam");
+ }
+ if (this.minimumBalanceByCurrency == null
+ || this.minimumBalanceByCurrency instanceof EmptyParam) {
+ this.minimumBalanceByCurrency = new HashMap();
+ }
+ ((Map) this.minimumBalanceByCurrency).putAll(map);
+ return this;
+ }
+
+ /**
+ * The minimum balance amount to retain per currency after automatic payouts. Only funds
+ * that exceed these amounts are paid out. Learn more about the minimum balances
+ * for automatic payouts.
+ */
+ public Builder setMinimumBalanceByCurrency(EmptyParam minimumBalanceByCurrency) {
+ this.minimumBalanceByCurrency = minimumBalanceByCurrency;
+ return this;
+ }
+
+ /**
+ * The minimum balance amount to retain per currency after automatic payouts. Only funds
+ * that exceed these amounts are paid out. Learn more about the minimum balances
+ * for automatic payouts.
+ */
+ public Builder setMinimumBalanceByCurrency(Map minimumBalanceByCurrency) {
+ this.minimumBalanceByCurrency = minimumBalanceByCurrency;
+ return this;
+ }
+
+ /**
+ * Details on when funds from charges are available, and when they are paid out to an
+ * external account. For details, see our Setting Bank and
+ * Debit Card Payouts documentation.
+ */
+ public Builder setSchedule(BalanceSettingsUpdateParams.Payments.Payouts.Schedule schedule) {
+ this.schedule = schedule;
+ return this;
+ }
+
+ /**
+ * The text that appears on the bank account statement for payouts. If not set, this
+ * defaults to the platform's bank descriptor as set in the Dashboard.
+ */
+ public Builder setStatementDescriptor(String statementDescriptor) {
+ this.statementDescriptor = statementDescriptor;
+ return this;
+ }
+
+ /**
+ * The text that appears on the bank account statement for payouts. If not set, this
+ * defaults to the platform's bank descriptor as set in the Dashboard.
+ */
+ public Builder setStatementDescriptor(EmptyParam statementDescriptor) {
+ this.statementDescriptor = statementDescriptor;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Schedule {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * How frequently available funds are paid out. One of: {@code daily}, {@code manual},
+ * {@code weekly}, or {@code monthly}. Default is {@code daily}.
+ */
+ @SerializedName("interval")
+ Interval interval;
+
+ /**
+ * The days of the month when available funds are paid out, specified as an array of numbers
+ * between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are
+ * instead sent on the last day of a shorter month. Required and applicable only if {@code
+ * interval} is {@code monthly}.
+ */
+ @SerializedName("monthly_payout_days")
+ List monthlyPayoutDays;
+
+ /**
+ * The days of the week when available funds are paid out, specified as an array, e.g.,
+ * [{@code monday}, {@code tuesday}]. Required and applicable only if {@code interval} is
+ * {@code weekly}.
+ */
+ @SerializedName("weekly_payout_days")
+ List
+ weeklyPayoutDays;
+
+ private Schedule(
+ Map extraParams,
+ Interval interval,
+ List monthlyPayoutDays,
+ List
+ weeklyPayoutDays) {
+ this.extraParams = extraParams;
+ this.interval = interval;
+ this.monthlyPayoutDays = monthlyPayoutDays;
+ this.weeklyPayoutDays = weeklyPayoutDays;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Interval interval;
+
+ private List monthlyPayoutDays;
+
+ private List
+ weeklyPayoutDays;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BalanceSettingsUpdateParams.Payments.Payouts.Schedule build() {
+ return new BalanceSettingsUpdateParams.Payments.Payouts.Schedule(
+ this.extraParams, this.interval, this.monthlyPayoutDays, this.weeklyPayoutDays);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link BalanceSettingsUpdateParams.Payments.Payouts.Schedule#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link BalanceSettingsUpdateParams.Payments.Payouts.Schedule#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * How frequently available funds are paid out. One of: {@code daily}, {@code manual},
+ * {@code weekly}, or {@code monthly}. Default is {@code daily}.
+ */
+ public Builder setInterval(
+ BalanceSettingsUpdateParams.Payments.Payouts.Schedule.Interval interval) {
+ this.interval = interval;
+ return this;
+ }
+
+ /**
+ * Add an element to `monthlyPayoutDays` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link BalanceSettingsUpdateParams.Payments.Payouts.Schedule#monthlyPayoutDays} for
+ * the field documentation.
+ */
+ public Builder addMonthlyPayoutDay(Long element) {
+ if (this.monthlyPayoutDays == null) {
+ this.monthlyPayoutDays = new ArrayList<>();
+ }
+ this.monthlyPayoutDays.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `monthlyPayoutDays` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link BalanceSettingsUpdateParams.Payments.Payouts.Schedule#monthlyPayoutDays} for
+ * the field documentation.
+ */
+ public Builder addAllMonthlyPayoutDay(List elements) {
+ if (this.monthlyPayoutDays == null) {
+ this.monthlyPayoutDays = new ArrayList<>();
+ }
+ this.monthlyPayoutDays.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add an element to `weeklyPayoutDays` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link BalanceSettingsUpdateParams.Payments.Payouts.Schedule#weeklyPayoutDays} for
+ * the field documentation.
+ */
+ public Builder addWeeklyPayoutDay(
+ BalanceSettingsUpdateParams.Payments.Payouts.Schedule.WeeklyPayoutDay element) {
+ if (this.weeklyPayoutDays == null) {
+ this.weeklyPayoutDays = new ArrayList<>();
+ }
+ this.weeklyPayoutDays.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `weeklyPayoutDays` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link BalanceSettingsUpdateParams.Payments.Payouts.Schedule#weeklyPayoutDays} for
+ * the field documentation.
+ */
+ public Builder addAllWeeklyPayoutDay(
+ List
+ elements) {
+ if (this.weeklyPayoutDays == null) {
+ this.weeklyPayoutDays = new ArrayList<>();
+ }
+ this.weeklyPayoutDays.addAll(elements);
+ return this;
+ }
+ }
+
+ public enum Interval implements ApiRequestParams.EnumParam {
+ @SerializedName("daily")
+ DAILY("daily"),
+
+ @SerializedName("manual")
+ MANUAL("manual"),
+
+ @SerializedName("monthly")
+ MONTHLY("monthly"),
+
+ @SerializedName("weekly")
+ WEEKLY("weekly");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Interval(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum WeeklyPayoutDay implements ApiRequestParams.EnumParam {
+ @SerializedName("friday")
+ FRIDAY("friday"),
+
+ @SerializedName("monday")
+ MONDAY("monday"),
+
+ @SerializedName("thursday")
+ THURSDAY("thursday"),
+
+ @SerializedName("tuesday")
+ TUESDAY("tuesday"),
+
+ @SerializedName("wednesday")
+ WEDNESDAY("wednesday");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ WeeklyPayoutDay(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SettlementTiming {
+ /**
+ * Change {@code delay_days} for this account, which determines the number of days charge
+ * funds are held before becoming available. The maximum value is 31. Passing an empty string
+ * to {@code delay_days_override} will return {@code delay_days} to the default, which is the
+ * lowest available value for the account. Learn more about controlling delay
+ * days.
+ */
+ @SerializedName("delay_days_override")
+ Object delayDaysOverride;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private SettlementTiming(Object delayDaysOverride, Map extraParams) {
+ this.delayDaysOverride = delayDaysOverride;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Object delayDaysOverride;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BalanceSettingsUpdateParams.Payments.SettlementTiming build() {
+ return new BalanceSettingsUpdateParams.Payments.SettlementTiming(
+ this.delayDaysOverride, this.extraParams);
+ }
+
+ /**
+ * Change {@code delay_days} for this account, which determines the number of days charge
+ * funds are held before becoming available. The maximum value is 31. Passing an empty
+ * string to {@code delay_days_override} will return {@code delay_days} to the default,
+ * which is the lowest available value for the account. Learn more about controlling
+ * delay days.
+ */
+ public Builder setDelayDaysOverride(Long delayDaysOverride) {
+ this.delayDaysOverride = delayDaysOverride;
+ return this;
+ }
+
+ /**
+ * Change {@code delay_days} for this account, which determines the number of days charge
+ * funds are held before becoming available. The maximum value is 31. Passing an empty
+ * string to {@code delay_days_override} will return {@code delay_days} to the default,
+ * which is the lowest available value for the account. Learn more about controlling
+ * delay days.
+ */
+ public Builder setDelayDaysOverride(EmptyParam delayDaysOverride) {
+ this.delayDaysOverride = delayDaysOverride;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link BalanceSettingsUpdateParams.Payments.SettlementTiming#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link BalanceSettingsUpdateParams.Payments.SettlementTiming#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/ChargeCreateParams.java b/src/main/java/com/stripe/param/ChargeCreateParams.java
index c824304cd10..bc73185fe0e 100644
--- a/src/main/java/com/stripe/param/ChargeCreateParams.java
+++ b/src/main/java/com/stripe/param/ChargeCreateParams.java
@@ -907,11 +907,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -1014,13 +1014,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/ChargeUpdateParams.java b/src/main/java/com/stripe/param/ChargeUpdateParams.java
index 4413cb6a464..63414340f50 100644
--- a/src/main/java/com/stripe/param/ChargeUpdateParams.java
+++ b/src/main/java/com/stripe/param/ChargeUpdateParams.java
@@ -619,11 +619,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -741,25 +741,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
index 40045995471..4b43a90f184 100644
--- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
+++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
@@ -420,6 +420,13 @@ public static class PaymentMethodData {
@SerializedName("link")
Link link;
+ /**
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment
+ * method.
+ */
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
/**
* Set of key-value pairs that you can attach
* to an object. This can be useful for storing additional information about the object in a
@@ -499,6 +506,13 @@ public static class PaymentMethodData {
@SerializedName("paypal")
Paypal paypal;
+ /**
+ * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay
+ * payment method.
+ */
+ @SerializedName("paypay")
+ Paypay paypay;
+
/**
* If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment
* method.
@@ -627,6 +641,7 @@ private PaymentMethodData(
Konbini konbini,
KrCard krCard,
Link link,
+ MbWay mbWay,
Map metadata,
Mobilepay mobilepay,
Multibanco multibanco,
@@ -638,6 +653,7 @@ private PaymentMethodData(
Payco payco,
Paynow paynow,
Paypal paypal,
+ Paypay paypay,
Pix pix,
Promptpay promptpay,
RadarOptions radarOptions,
@@ -681,6 +697,7 @@ private PaymentMethodData(
this.konbini = konbini;
this.krCard = krCard;
this.link = link;
+ this.mbWay = mbWay;
this.metadata = metadata;
this.mobilepay = mobilepay;
this.multibanco = multibanco;
@@ -692,6 +709,7 @@ private PaymentMethodData(
this.payco = payco;
this.paynow = paynow;
this.paypal = paypal;
+ this.paypay = paypay;
this.pix = pix;
this.promptpay = promptpay;
this.radarOptions = radarOptions;
@@ -771,6 +789,8 @@ public static class Builder {
private Link link;
+ private MbWay mbWay;
+
private Map metadata;
private Mobilepay mobilepay;
@@ -793,6 +813,8 @@ public static class Builder {
private Paypal paypal;
+ private Paypay paypay;
+
private Pix pix;
private Promptpay promptpay;
@@ -853,6 +875,7 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() {
this.konbini,
this.krCard,
this.link,
+ this.mbWay,
this.metadata,
this.mobilepay,
this.multibanco,
@@ -864,6 +887,7 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() {
this.payco,
this.paynow,
this.paypal,
+ this.paypay,
this.pix,
this.promptpay,
this.radarOptions,
@@ -1171,6 +1195,15 @@ public Builder setLink(ConfirmationTokenCreateParams.PaymentMethodData.Link link
return this;
}
+ /**
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment
+ * method.
+ */
+ public Builder setMbWay(ConfirmationTokenCreateParams.PaymentMethodData.MbWay mbWay) {
+ this.mbWay = mbWay;
+ return this;
+ }
+
/**
* Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
@@ -1293,6 +1326,15 @@ public Builder setPaypal(ConfirmationTokenCreateParams.PaymentMethodData.Paypal
return this;
}
+ /**
+ * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay
+ * payment method.
+ */
+ public Builder setPaypay(ConfirmationTokenCreateParams.PaymentMethodData.Paypay paypay) {
+ this.paypay = paypay;
+ return this;
+ }
+
/**
* If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment
* method.
@@ -2296,11 +2338,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -2405,13 +2447,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -3805,6 +3847,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private MbWay(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ConfirmationTokenCreateParams.PaymentMethodData.MbWay build() {
+ return new ConfirmationTokenCreateParams.PaymentMethodData.MbWay(this.extraParams);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.MbWay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.MbWay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Mobilepay {
@@ -4620,6 +4720,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypay {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private Paypay(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ConfirmationTokenCreateParams.PaymentMethodData.Paypay build() {
+ return new ConfirmationTokenCreateParams.PaymentMethodData.Paypay(this.extraParams);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.Paypay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.Paypay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Pix {
@@ -5664,6 +5822,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("link")
LINK("link"),
+ @SerializedName("mb_way")
+ MB_WAY("mb_way"),
+
@SerializedName("mobilepay")
MOBILEPAY("mobilepay"),
@@ -5694,6 +5855,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("paypal")
PAYPAL("paypal"),
+ @SerializedName("paypay")
+ PAYPAY("paypay"),
+
@SerializedName("pix")
PIX("pix"),
@@ -6245,11 +6409,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -6352,13 +6516,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java
index c64735c67a4..18b6d44d0ad 100644
--- a/src/main/java/com/stripe/param/CustomerCreateParams.java
+++ b/src/main/java/com/stripe/param/CustomerCreateParams.java
@@ -27,6 +27,10 @@ public class CustomerCreateParams extends ApiRequestParams {
@SerializedName("balance")
Long balance;
+ /** The customer's business name. This may be up to 150 characters. */
+ @SerializedName("business_name")
+ Object businessName;
+
/** Balance information and default balance settings for this customer. */
@SerializedName("cash_balance")
CashBalance cashBalance;
@@ -58,6 +62,10 @@ public class CustomerCreateParams extends ApiRequestParams {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** The customer's full name. This may be up to 150 characters. */
+ @SerializedName("individual_name")
+ Object individualName;
+
/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* letters or numbers.
@@ -126,11 +134,13 @@ public class CustomerCreateParams extends ApiRequestParams {
private CustomerCreateParams(
Object address,
Long balance,
+ Object businessName,
CashBalance cashBalance,
String description,
String email,
List expand,
Map extraParams,
+ Object individualName,
String invoicePrefix,
InvoiceSettings invoiceSettings,
Object metadata,
@@ -148,11 +158,13 @@ private CustomerCreateParams(
Boolean validate) {
this.address = address;
this.balance = balance;
+ this.businessName = businessName;
this.cashBalance = cashBalance;
this.description = description;
this.email = email;
this.expand = expand;
this.extraParams = extraParams;
+ this.individualName = individualName;
this.invoicePrefix = invoicePrefix;
this.invoiceSettings = invoiceSettings;
this.metadata = metadata;
@@ -179,6 +191,8 @@ public static class Builder {
private Long balance;
+ private Object businessName;
+
private CashBalance cashBalance;
private String description;
@@ -189,6 +203,8 @@ public static class Builder {
private Map extraParams;
+ private Object individualName;
+
private String invoicePrefix;
private InvoiceSettings invoiceSettings;
@@ -224,11 +240,13 @@ public CustomerCreateParams build() {
return new CustomerCreateParams(
this.address,
this.balance,
+ this.businessName,
this.cashBalance,
this.description,
this.email,
this.expand,
this.extraParams,
+ this.individualName,
this.invoicePrefix,
this.invoiceSettings,
this.metadata,
@@ -269,6 +287,18 @@ public Builder setBalance(Long balance) {
return this;
}
+ /** The customer's business name. This may be up to 150 characters. */
+ public Builder setBusinessName(String businessName) {
+ this.businessName = businessName;
+ return this;
+ }
+
+ /** The customer's business name. This may be up to 150 characters. */
+ public Builder setBusinessName(EmptyParam businessName) {
+ this.businessName = businessName;
+ return this;
+ }
+
/** Balance information and default balance settings for this customer. */
public Builder setCashBalance(CustomerCreateParams.CashBalance cashBalance) {
this.cashBalance = cashBalance;
@@ -345,6 +375,18 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** The customer's full name. This may be up to 150 characters. */
+ public Builder setIndividualName(String individualName) {
+ this.individualName = individualName;
+ return this;
+ }
+
+ /** The customer's full name. This may be up to 150 characters. */
+ public Builder setIndividualName(EmptyParam individualName) {
+ this.individualName = individualName;
+ return this;
+ }
+
/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* letters or numbers.
@@ -556,11 +598,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -662,13 +704,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -1382,11 +1424,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -1490,13 +1532,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java
index 588caebbb85..b4c972f3a90 100644
--- a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java
+++ b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java
@@ -318,6 +318,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("link")
LINK("link"),
+ @SerializedName("mb_way")
+ MB_WAY("mb_way"),
+
@SerializedName("mobilepay")
MOBILEPAY("mobilepay"),
@@ -348,6 +351,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("paypal")
PAYPAL("paypal"),
+ @SerializedName("paypay")
+ PAYPAY("paypay"),
+
@SerializedName("pix")
PIX("pix"),
diff --git a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java
index fb75adf70d3..b0a61b4f634 100644
--- a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java
+++ b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java
@@ -318,6 +318,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("link")
LINK("link"),
+ @SerializedName("mb_way")
+ MB_WAY("mb_way"),
+
@SerializedName("mobilepay")
MOBILEPAY("mobilepay"),
@@ -348,6 +351,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("paypal")
PAYPAL("paypal"),
+ @SerializedName("paypay")
+ PAYPAY("paypay"),
+
@SerializedName("pix")
PIX("pix"),
diff --git a/src/main/java/com/stripe/param/CustomerPaymentSourceUpdateParams.java b/src/main/java/com/stripe/param/CustomerPaymentSourceUpdateParams.java
index 40a075540cf..cfb835b3cf1 100644
--- a/src/main/java/com/stripe/param/CustomerPaymentSourceUpdateParams.java
+++ b/src/main/java/com/stripe/param/CustomerPaymentSourceUpdateParams.java
@@ -563,11 +563,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -685,25 +685,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/CustomerUpdateParams.java b/src/main/java/com/stripe/param/CustomerUpdateParams.java
index ad19ad87e2a..c7bc87791f2 100644
--- a/src/main/java/com/stripe/param/CustomerUpdateParams.java
+++ b/src/main/java/com/stripe/param/CustomerUpdateParams.java
@@ -27,6 +27,10 @@ public class CustomerUpdateParams extends ApiRequestParams {
@SerializedName("balance")
Long balance;
+ /** The customer's business name. This may be up to 150 characters. */
+ @SerializedName("business_name")
+ Object businessName;
+
/** Balance information and default balance settings for this customer. */
@SerializedName("cash_balance")
CashBalance cashBalance;
@@ -72,6 +76,10 @@ public class CustomerUpdateParams extends ApiRequestParams {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** The customer's full name. This may be up to 150 characters. */
+ @SerializedName("individual_name")
+ Object individualName;
+
/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* letters or numbers.
@@ -129,12 +137,14 @@ public class CustomerUpdateParams extends ApiRequestParams {
private CustomerUpdateParams(
Object address,
Long balance,
+ Object businessName,
CashBalance cashBalance,
Object defaultSource,
Object description,
Object email,
List expand,
Map extraParams,
+ Object individualName,
Object invoicePrefix,
InvoiceSettings invoiceSettings,
Object metadata,
@@ -149,12 +159,14 @@ private CustomerUpdateParams(
Boolean validate) {
this.address = address;
this.balance = balance;
+ this.businessName = businessName;
this.cashBalance = cashBalance;
this.defaultSource = defaultSource;
this.description = description;
this.email = email;
this.expand = expand;
this.extraParams = extraParams;
+ this.individualName = individualName;
this.invoicePrefix = invoicePrefix;
this.invoiceSettings = invoiceSettings;
this.metadata = metadata;
@@ -178,6 +190,8 @@ public static class Builder {
private Long balance;
+ private Object businessName;
+
private CashBalance cashBalance;
private Object defaultSource;
@@ -190,6 +204,8 @@ public static class Builder {
private Map extraParams;
+ private Object individualName;
+
private Object invoicePrefix;
private InvoiceSettings invoiceSettings;
@@ -219,12 +235,14 @@ public CustomerUpdateParams build() {
return new CustomerUpdateParams(
this.address,
this.balance,
+ this.businessName,
this.cashBalance,
this.defaultSource,
this.description,
this.email,
this.expand,
this.extraParams,
+ this.individualName,
this.invoicePrefix,
this.invoiceSettings,
this.metadata,
@@ -262,6 +280,18 @@ public Builder setBalance(Long balance) {
return this;
}
+ /** The customer's business name. This may be up to 150 characters. */
+ public Builder setBusinessName(String businessName) {
+ this.businessName = businessName;
+ return this;
+ }
+
+ /** The customer's business name. This may be up to 150 characters. */
+ public Builder setBusinessName(EmptyParam businessName) {
+ this.businessName = businessName;
+ return this;
+ }
+
/** Balance information and default balance settings for this customer. */
public Builder setCashBalance(CustomerUpdateParams.CashBalance cashBalance) {
this.cashBalance = cashBalance;
@@ -390,6 +420,18 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** The customer's full name. This may be up to 150 characters. */
+ public Builder setIndividualName(String individualName) {
+ this.individualName = individualName;
+ return this;
+ }
+
+ /** The customer's full name. This may be up to 150 characters. */
+ public Builder setIndividualName(EmptyParam individualName) {
+ this.individualName = individualName;
+ return this;
+ }
+
/**
* The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase
* letters or numbers.
@@ -590,11 +632,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -712,25 +754,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
@@ -1506,11 +1548,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -1630,25 +1672,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/DisputeUpdateParams.java b/src/main/java/com/stripe/param/DisputeUpdateParams.java
index 1cd05ee3485..2a650e20b18 100644
--- a/src/main/java/com/stripe/param/DisputeUpdateParams.java
+++ b/src/main/java/com/stripe/param/DisputeUpdateParams.java
@@ -1581,11 +1581,11 @@ public static class ShippingAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -1708,25 +1708,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
@@ -2067,11 +2067,11 @@ public static class ShippingAddress {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -2194,25 +2194,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java
index 56eb39240e7..ba1f9bdd2e8 100644
--- a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java
+++ b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java
@@ -1122,19 +1122,28 @@ public static class ProductData {
@SerializedName("tax_code")
String taxCode;
+ /**
+ * A label that represents units of this product. When set, this will be included in
+ * customers' receipts, invoices, Checkout, and the customer portal.
+ */
+ @SerializedName("unit_label")
+ String unitLabel;
+
private ProductData(
String description,
Map extraParams,
List images,
Map metadata,
String name,
- String taxCode) {
+ String taxCode,
+ String unitLabel) {
this.description = description;
this.extraParams = extraParams;
this.images = images;
this.metadata = metadata;
this.name = name;
this.taxCode = taxCode;
+ this.unitLabel = unitLabel;
}
public static Builder builder() {
@@ -1154,6 +1163,8 @@ public static class Builder {
private String taxCode;
+ private String unitLabel;
+
/** Finalize and obtain parameter instance from this builder. */
public InvoiceAddLinesParams.Line.PriceData.ProductData build() {
return new InvoiceAddLinesParams.Line.PriceData.ProductData(
@@ -1162,7 +1173,8 @@ public InvoiceAddLinesParams.Line.PriceData.ProductData build() {
this.images,
this.metadata,
this.name,
- this.taxCode);
+ this.taxCode,
+ this.unitLabel);
}
/**
@@ -1270,6 +1282,15 @@ public Builder setTaxCode(String taxCode) {
this.taxCode = taxCode;
return this;
}
+
+ /**
+ * A label that represents units of this product. When set, this will be included in
+ * customers' receipts, invoices, Checkout, and the customer portal.
+ */
+ public Builder setUnitLabel(String unitLabel) {
+ this.unitLabel = unitLabel;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java
index d9e51691e0d..aa776ea067d 100644
--- a/src/main/java/com/stripe/param/InvoiceCreateParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java
@@ -1536,7 +1536,6 @@ public static class PaymentSettings {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
- * Should not be specified with payment_method_configuration
*/
@SerializedName("payment_method_types")
Object paymentMethodTypes;
@@ -1667,7 +1666,6 @@ public Builder addAllPaymentMethodType(
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
- * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
this.paymentMethodTypes = paymentMethodTypes;
@@ -1680,7 +1678,6 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
- * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(
List paymentMethodTypes) {
@@ -5041,11 +5038,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -5148,13 +5145,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
index 48f858575e5..ee1d9490752 100644
--- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
@@ -844,11 +844,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -951,13 +951,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -1101,11 +1101,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -1211,13 +1211,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -3101,15 +3101,20 @@ public static class BillingMode {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Configure behavior for flexible billing mode. */
+ @SerializedName("flexible")
+ Flexible flexible;
+
/**
* Required. Controls the calculation and orchestration of prorations and
- * invoices for subscriptions.
+ * invoices for subscriptions. If no value is passed, the default is {@code flexible}.
*/
@SerializedName("type")
Type type;
- private BillingMode(Map extraParams, Type type) {
+ private BillingMode(Map extraParams, Flexible flexible, Type type) {
this.extraParams = extraParams;
+ this.flexible = flexible;
this.type = type;
}
@@ -3120,12 +3125,14 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Flexible flexible;
+
private Type type;
/** Finalize and obtain parameter instance from this builder. */
public InvoiceCreatePreviewParams.ScheduleDetails.BillingMode build() {
return new InvoiceCreatePreviewParams.ScheduleDetails.BillingMode(
- this.extraParams, this.type);
+ this.extraParams, this.flexible, this.type);
}
/**
@@ -3156,9 +3163,16 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** Configure behavior for flexible billing mode. */
+ public Builder setFlexible(
+ InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible flexible) {
+ this.flexible = flexible;
+ return this;
+ }
+
/**
* Required. Controls the calculation and orchestration of prorations and
- * invoices for subscriptions.
+ * invoices for subscriptions. If no value is passed, the default is {@code flexible}.
*/
public Builder setType(InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Type type) {
this.type = type;
@@ -3166,6 +3180,102 @@ public Builder setType(InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Ty
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Flexible {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
+ */
+ @SerializedName("proration_discounts")
+ ProrationDiscounts prorationDiscounts;
+
+ private Flexible(Map extraParams, ProrationDiscounts prorationDiscounts) {
+ this.extraParams = extraParams;
+ this.prorationDiscounts = prorationDiscounts;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private ProrationDiscounts prorationDiscounts;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible build() {
+ return new InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible(
+ this.extraParams, this.prorationDiscounts);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
+ */
+ public Builder setProrationDiscounts(
+ InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible.ProrationDiscounts
+ prorationDiscounts) {
+ this.prorationDiscounts = prorationDiscounts;
+ return this;
+ }
+ }
+
+ public enum ProrationDiscounts implements ApiRequestParams.EnumParam {
+ @SerializedName("included")
+ INCLUDED("included"),
+
+ @SerializedName("itemized")
+ ITEMIZED("itemized");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ ProrationDiscounts(String value) {
+ this.value = value;
+ }
+ }
+ }
+
public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("classic")
CLASSIC("classic"),
@@ -3309,16 +3419,6 @@ public static class Phase {
@SerializedName("items")
List items;
- /**
- * Integer representing the multiplier applied to the price interval. For example, {@code
- * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3}
- * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date}
- * must not be set. This parameter is deprecated and will be removed in a future version. Use
- * {@code duration} instead.
- */
- @SerializedName("iterations")
- Long iterations;
-
/**
* Set of key-value pairs that you can
* attach to a phase. Metadata on a schedule's phase will update the underlying subscription's
@@ -3395,7 +3495,6 @@ private Phase(
Map extraParams,
InvoiceSettings invoiceSettings,
List items,
- Long iterations,
Map metadata,
String onBehalfOf,
ProrationBehavior prorationBehavior,
@@ -3419,7 +3518,6 @@ private Phase(
this.extraParams = extraParams;
this.invoiceSettings = invoiceSettings;
this.items = items;
- this.iterations = iterations;
this.metadata = metadata;
this.onBehalfOf = onBehalfOf;
this.prorationBehavior = prorationBehavior;
@@ -3467,8 +3565,6 @@ public static class Builder {
private List items;
- private Long iterations;
-
private Map metadata;
private String onBehalfOf;
@@ -3502,7 +3598,6 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Phase build() {
this.extraParams,
this.invoiceSettings,
this.items,
- this.iterations,
this.metadata,
this.onBehalfOf,
this.prorationBehavior,
@@ -3848,18 +3943,6 @@ public Builder addAllItem(
return this;
}
- /**
- * Integer representing the multiplier applied to the price interval. For example, {@code
- * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3}
- * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date}
- * must not be set. This parameter is deprecated and will be removed in a future version.
- * Use {@code duration} instead.
- */
- public Builder setIterations(Long iterations) {
- this.iterations = iterations;
- return this;
- }
-
/**
* Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
@@ -3996,8 +4079,9 @@ public static class AddInvoiceItem {
Map metadata;
/**
- * The period associated with this invoice item. Defaults to the period of the underlying
- * subscription that surrounds the start of the phase.
+ * The period associated with this invoice item. If not set, {@code period.start.type}
+ * defaults to {@code max_item_period_start} and {@code period.end.type} defaults to {@code
+ * min_item_period_end}.
*/
@SerializedName("period")
Period period;
@@ -4170,8 +4254,9 @@ public Builder putAllMetadata(Map map) {
}
/**
- * The period associated with this invoice item. Defaults to the period of the underlying
- * subscription that surrounds the start of the phase.
+ * The period associated with this invoice item. If not set, {@code period.start.type}
+ * defaults to {@code max_item_period_start} and {@code period.end.type} defaults to
+ * {@code min_item_period_end}.
*/
public Builder setPeriod(
InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Period period) {
@@ -7222,15 +7307,20 @@ public static class BillingMode {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Configure behavior for flexible billing mode. */
+ @SerializedName("flexible")
+ Flexible flexible;
+
/**
* Required. Controls the calculation and orchestration of prorations and
- * invoices for subscriptions.
+ * invoices for subscriptions. If no value is passed, the default is {@code flexible}.
*/
@SerializedName("type")
Type type;
- private BillingMode(Map extraParams, Type type) {
+ private BillingMode(Map extraParams, Flexible flexible, Type type) {
this.extraParams = extraParams;
+ this.flexible = flexible;
this.type = type;
}
@@ -7241,12 +7331,14 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Flexible flexible;
+
private Type type;
/** Finalize and obtain parameter instance from this builder. */
public InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode build() {
return new InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode(
- this.extraParams, this.type);
+ this.extraParams, this.flexible, this.type);
}
/**
@@ -7277,9 +7369,16 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** Configure behavior for flexible billing mode. */
+ public Builder setFlexible(
+ InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible flexible) {
+ this.flexible = flexible;
+ return this;
+ }
+
/**
* Required. Controls the calculation and orchestration of prorations and
- * invoices for subscriptions.
+ * invoices for subscriptions. If no value is passed, the default is {@code flexible}.
*/
public Builder setType(
InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Type type) {
@@ -7288,6 +7387,102 @@ public Builder setType(
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Flexible {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
+ */
+ @SerializedName("proration_discounts")
+ ProrationDiscounts prorationDiscounts;
+
+ private Flexible(Map extraParams, ProrationDiscounts prorationDiscounts) {
+ this.extraParams = extraParams;
+ this.prorationDiscounts = prorationDiscounts;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private ProrationDiscounts prorationDiscounts;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible build() {
+ return new InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible(
+ this.extraParams, this.prorationDiscounts);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
+ */
+ public Builder setProrationDiscounts(
+ InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible.ProrationDiscounts
+ prorationDiscounts) {
+ this.prorationDiscounts = prorationDiscounts;
+ return this;
+ }
+ }
+
+ public enum ProrationDiscounts implements ApiRequestParams.EnumParam {
+ @SerializedName("included")
+ INCLUDED("included"),
+
+ @SerializedName("itemized")
+ ITEMIZED("itemized");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ ProrationDiscounts(String value) {
+ this.value = value;
+ }
+ }
+ }
+
public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("classic")
CLASSIC("classic"),
diff --git a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java
index 0a4443dd488..7b97a557b1c 100644
--- a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java
+++ b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java
@@ -1006,19 +1006,28 @@ public static class ProductData {
@SerializedName("tax_code")
Object taxCode;
+ /**
+ * A label that represents units of this product. When set, this will be included in
+ * customers' receipts, invoices, Checkout, and the customer portal.
+ */
+ @SerializedName("unit_label")
+ Object unitLabel;
+
private ProductData(
Object description,
Map extraParams,
List images,
Map metadata,
Object name,
- Object taxCode) {
+ Object taxCode,
+ Object unitLabel) {
this.description = description;
this.extraParams = extraParams;
this.images = images;
this.metadata = metadata;
this.name = name;
this.taxCode = taxCode;
+ this.unitLabel = unitLabel;
}
public static Builder builder() {
@@ -1038,6 +1047,8 @@ public static class Builder {
private Object taxCode;
+ private Object unitLabel;
+
/** Finalize and obtain parameter instance from this builder. */
public InvoiceLineItemUpdateParams.PriceData.ProductData build() {
return new InvoiceLineItemUpdateParams.PriceData.ProductData(
@@ -1046,7 +1057,8 @@ public InvoiceLineItemUpdateParams.PriceData.ProductData build() {
this.images,
this.metadata,
this.name,
- this.taxCode);
+ this.taxCode,
+ this.unitLabel);
}
/**
@@ -1177,6 +1189,24 @@ public Builder setTaxCode(EmptyParam taxCode) {
this.taxCode = taxCode;
return this;
}
+
+ /**
+ * A label that represents units of this product. When set, this will be included in
+ * customers' receipts, invoices, Checkout, and the customer portal.
+ */
+ public Builder setUnitLabel(String unitLabel) {
+ this.unitLabel = unitLabel;
+ return this;
+ }
+
+ /**
+ * A label that represents units of this product. When set, this will be included in
+ * customers' receipts, invoices, Checkout, and the customer portal.
+ */
+ public Builder setUnitLabel(EmptyParam unitLabel) {
+ this.unitLabel = unitLabel;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java
index 8126abb27a0..131b46356cc 100644
--- a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java
+++ b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java
@@ -1146,19 +1146,28 @@ public static class ProductData {
@SerializedName("tax_code")
String taxCode;
+ /**
+ * A label that represents units of this product. When set, this will be included in
+ * customers' receipts, invoices, Checkout, and the customer portal.
+ */
+ @SerializedName("unit_label")
+ String unitLabel;
+
private ProductData(
String description,
Map extraParams,
List images,
Map metadata,
String name,
- String taxCode) {
+ String taxCode,
+ String unitLabel) {
this.description = description;
this.extraParams = extraParams;
this.images = images;
this.metadata = metadata;
this.name = name;
this.taxCode = taxCode;
+ this.unitLabel = unitLabel;
}
public static Builder builder() {
@@ -1178,6 +1187,8 @@ public static class Builder {
private String taxCode;
+ private String unitLabel;
+
/** Finalize and obtain parameter instance from this builder. */
public InvoiceUpdateLinesParams.Line.PriceData.ProductData build() {
return new InvoiceUpdateLinesParams.Line.PriceData.ProductData(
@@ -1186,7 +1197,8 @@ public InvoiceUpdateLinesParams.Line.PriceData.ProductData build() {
this.images,
this.metadata,
this.name,
- this.taxCode);
+ this.taxCode,
+ this.unitLabel);
}
/**
@@ -1296,6 +1308,15 @@ public Builder setTaxCode(String taxCode) {
this.taxCode = taxCode;
return this;
}
+
+ /**
+ * A label that represents units of this product. When set, this will be included in
+ * customers' receipts, invoices, Checkout, and the customer portal.
+ */
+ public Builder setUnitLabel(String unitLabel) {
+ this.unitLabel = unitLabel;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java
index 77b8e756e09..c246f64335f 100644
--- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java
+++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java
@@ -1516,7 +1516,6 @@ public static class PaymentSettings {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
- * Should not be specified with payment_method_configuration
*/
@SerializedName("payment_method_types")
Object paymentMethodTypes;
@@ -1647,7 +1646,6 @@ public Builder addAllPaymentMethodType(
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
- * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
this.paymentMethodTypes = paymentMethodTypes;
@@ -1660,7 +1658,6 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
- * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(
List paymentMethodTypes) {
@@ -5097,11 +5094,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
Object line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
Object line2;
@@ -5219,25 +5216,25 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(EmptyParam line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(EmptyParam line2) {
this.line2 = line2;
return this;
diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
index 2f014205a73..ad41528a52c 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -37,6 +37,10 @@ public class PaymentIntentConfirmParams extends ApiRequestParams {
@SerializedName("error_on_requires_action")
Boolean errorOnRequiresAction;
+ /** The list of payment method types to exclude from use with this payment. */
+ @SerializedName("excluded_payment_method_types")
+ Object excludedPaymentMethodTypes;
+
/** Specifies which fields in the response should be expanded. */
@SerializedName("expand")
List expand;
@@ -164,6 +168,7 @@ private PaymentIntentConfirmParams(
CaptureMethod captureMethod,
String confirmationToken,
Boolean errorOnRequiresAction,
+ Object excludedPaymentMethodTypes,
List expand,
Map extraParams,
String mandate,
@@ -182,6 +187,7 @@ private PaymentIntentConfirmParams(
this.captureMethod = captureMethod;
this.confirmationToken = confirmationToken;
this.errorOnRequiresAction = errorOnRequiresAction;
+ this.excludedPaymentMethodTypes = excludedPaymentMethodTypes;
this.expand = expand;
this.extraParams = extraParams;
this.mandate = mandate;
@@ -210,6 +216,8 @@ public static class Builder {
private Boolean errorOnRequiresAction;
+ private Object excludedPaymentMethodTypes;
+
private List expand;
private Map extraParams;
@@ -246,6 +254,7 @@ public PaymentIntentConfirmParams build() {
this.captureMethod,
this.confirmationToken,
this.errorOnRequiresAction,
+ this.excludedPaymentMethodTypes,
this.expand,
this.extraParams,
this.mandate,
@@ -293,6 +302,55 @@ public Builder setErrorOnRequiresAction(Boolean errorOnRequiresAction) {
return this;
}
+ /**
+ * Add an element to `excludedPaymentMethodTypes` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
+ * {@link PaymentIntentConfirmParams#excludedPaymentMethodTypes} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addExcludedPaymentMethodType(
+ PaymentIntentConfirmParams.ExcludedPaymentMethodType element) {
+ if (this.excludedPaymentMethodTypes == null
+ || this.excludedPaymentMethodTypes instanceof EmptyParam) {
+ this.excludedPaymentMethodTypes =
+ new ArrayList();
+ }
+ ((List) this.excludedPaymentMethodTypes)
+ .add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `excludedPaymentMethodTypes` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
+ * {@link PaymentIntentConfirmParams#excludedPaymentMethodTypes} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addAllExcludedPaymentMethodType(
+ List elements) {
+ if (this.excludedPaymentMethodTypes == null
+ || this.excludedPaymentMethodTypes instanceof EmptyParam) {
+ this.excludedPaymentMethodTypes =
+ new ArrayList();
+ }
+ ((List) this.excludedPaymentMethodTypes)
+ .addAll(elements);
+ return this;
+ }
+
+ /** The list of payment method types to exclude from use with this payment. */
+ public Builder setExcludedPaymentMethodTypes(EmptyParam excludedPaymentMethodTypes) {
+ this.excludedPaymentMethodTypes = excludedPaymentMethodTypes;
+ return this;
+ }
+
+ /** The list of payment method types to exclude from use with this payment. */
+ public Builder setExcludedPaymentMethodTypes(
+ List excludedPaymentMethodTypes) {
+ this.excludedPaymentMethodTypes = excludedPaymentMethodTypes;
+ return this;
+ }
+
/**
* Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
* subsequent calls adds additional elements to the original list. See {@link
@@ -1142,6 +1200,13 @@ public static class PaymentMethodData {
@SerializedName("link")
Link link;
+ /**
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment
+ * method.
+ */
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
/**
* Set of key-value pairs that you can attach
* to an object. This can be useful for storing additional information about the object in a
@@ -1221,6 +1286,13 @@ public static class PaymentMethodData {
@SerializedName("paypal")
Paypal paypal;
+ /**
+ * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay
+ * payment method.
+ */
+ @SerializedName("paypay")
+ Paypay paypay;
+
/**
* If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment
* method.
@@ -1349,6 +1421,7 @@ private PaymentMethodData(
Konbini konbini,
KrCard krCard,
Link link,
+ MbWay mbWay,
Map metadata,
Mobilepay mobilepay,
Multibanco multibanco,
@@ -1360,6 +1433,7 @@ private PaymentMethodData(
Payco payco,
Paynow paynow,
Paypal paypal,
+ Paypay paypay,
Pix pix,
Promptpay promptpay,
RadarOptions radarOptions,
@@ -1403,6 +1477,7 @@ private PaymentMethodData(
this.konbini = konbini;
this.krCard = krCard;
this.link = link;
+ this.mbWay = mbWay;
this.metadata = metadata;
this.mobilepay = mobilepay;
this.multibanco = multibanco;
@@ -1414,6 +1489,7 @@ private PaymentMethodData(
this.payco = payco;
this.paynow = paynow;
this.paypal = paypal;
+ this.paypay = paypay;
this.pix = pix;
this.promptpay = promptpay;
this.radarOptions = radarOptions;
@@ -1493,6 +1569,8 @@ public static class Builder {
private Link link;
+ private MbWay mbWay;
+
private Map metadata;
private Mobilepay mobilepay;
@@ -1515,6 +1593,8 @@ public static class Builder {
private Paypal paypal;
+ private Paypay paypay;
+
private Pix pix;
private Promptpay promptpay;
@@ -1575,6 +1655,7 @@ public PaymentIntentConfirmParams.PaymentMethodData build() {
this.konbini,
this.krCard,
this.link,
+ this.mbWay,
this.metadata,
this.mobilepay,
this.multibanco,
@@ -1586,6 +1667,7 @@ public PaymentIntentConfirmParams.PaymentMethodData build() {
this.payco,
this.paynow,
this.paypal,
+ this.paypay,
this.pix,
this.promptpay,
this.radarOptions,
@@ -1892,6 +1974,15 @@ public Builder setLink(PaymentIntentConfirmParams.PaymentMethodData.Link link) {
return this;
}
+ /**
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment
+ * method.
+ */
+ public Builder setMbWay(PaymentIntentConfirmParams.PaymentMethodData.MbWay mbWay) {
+ this.mbWay = mbWay;
+ return this;
+ }
+
/**
* Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
@@ -2013,6 +2104,15 @@ public Builder setPaypal(PaymentIntentConfirmParams.PaymentMethodData.Paypal pay
return this;
}
+ /**
+ * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay
+ * payment method.
+ */
+ public Builder setPaypay(PaymentIntentConfirmParams.PaymentMethodData.Paypay paypay) {
+ this.paypay = paypay;
+ return this;
+ }
+
/**
* If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment
* method.
@@ -3013,11 +3113,11 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
@SerializedName("line1")
String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
@SerializedName("line2")
String line2;
@@ -3122,13 +3222,13 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Address line 1 (e.g., street, PO Box, or company name). */
+ /** Address line 1, such as the street, PO Box, or company name. */
public Builder setLine1(String line1) {
this.line1 = line1;
return this;
}
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ /** Address line 2, such as the apartment, suite, unit, or building. */
public Builder setLine2(String line2) {
this.line2 = line2;
return this;
@@ -4514,6 +4614,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private MbWay(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentConfirmParams.PaymentMethodData.MbWay build() {
+ return new PaymentIntentConfirmParams.PaymentMethodData.MbWay(this.extraParams);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.MbWay#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.MbWay#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map