diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e6c86cecd6e..d42b9191871 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v596 \ No newline at end of file +v602 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java index b4c268b0701..2c2540732be 100644 --- a/src/main/java/com/stripe/model/Customer.java +++ b/src/main/java/com/stripe/model/Customer.java @@ -88,13 +88,18 @@ public class Customer extends ApiResource implements HasId, MetadataStoreIf an invoice becomes uncollectible by dunning, {@code delinquent} * doesn't reset to {@code false}. + * + *

If you care whether the customer has paid their most recent subscription invoice, use {@code + * subscription.status} instead. Paying or marking uncollectible any customer invoice regardless + * of whether it is the latest invoice for a subscription will always set this field to {@code + * false}. */ @SerializedName("delinquent") Boolean delinquent; diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java index f9e8205063c..f64234e80a4 100644 --- a/src/main/java/com/stripe/model/Event.java +++ b/src/main/java/com/stripe/model/Event.java @@ -143,9 +143,9 @@ public class Event extends ApiResource implements HasId { * issuing_card.created}, {@code issuing_card.updated}, {@code issuing_cardholder.created}, {@code * issuing_cardholder.updated}, {@code issuing_dispute.closed}, {@code issuing_dispute.created}, * {@code issuing_dispute.funds_reinstated}, {@code issuing_dispute.submitted}, {@code - * issuing_dispute.updated}, {@code issuing_transaction.created}, {@code - * issuing_transaction.updated}, {@code mandate.updated}, {@code - * payment_intent.amount_capturable_updated}, {@code payment_intent.canceled}, {@code + * issuing_dispute.updated}, {@code issuing_token.created}, {@code issuing_token.updated}, {@code + * issuing_transaction.created}, {@code issuing_transaction.updated}, {@code mandate.updated}, + * {@code payment_intent.amount_capturable_updated}, {@code payment_intent.canceled}, {@code * payment_intent.created}, {@code payment_intent.partially_funded}, {@code * payment_intent.payment_failed}, {@code payment_intent.processing}, {@code * payment_intent.requires_action}, {@code payment_intent.succeeded}, {@code diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java index 38c023f7797..7f5d00effc3 100644 --- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java +++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java @@ -43,8 +43,8 @@ *

Related guides: - Payment Method * Configurations API - Multiple payment method - * configurations on dynamic payment methods - Multiple configurations + * on dynamic payment methods - Multiple * configurations for your Connect accounts */ diff --git a/src/main/java/com/stripe/model/issuing/Token.java b/src/main/java/com/stripe/model/issuing/Token.java index ff91440bd9b..fb1d9472e6e 100644 --- a/src/main/java/com/stripe/model/issuing/Token.java +++ b/src/main/java/com/stripe/model/issuing/Token.java @@ -23,7 +23,8 @@ /** * An issuing token object is created when an issued card is added to a digital wallet. As a card issuer, you can view and manage these tokens + * href="https://stripe.com/docs/issuing">card issuer, you can view and manage these tokens * through Stripe. */ @Getter diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index 26819929718..a6688b74978 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -889,6 +889,12 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("issuing_dispute.updated") ISSUING_DISPUTE__UPDATED("issuing_dispute.updated"), + @SerializedName("issuing_token.created") + ISSUING_TOKEN__CREATED("issuing_token.created"), + + @SerializedName("issuing_token.updated") + ISSUING_TOKEN__UPDATED("issuing_token.updated"), + @SerializedName("issuing_transaction.created") ISSUING_TRANSACTION__CREATED("issuing_transaction.created"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index 1278f81f97e..4fe21540baa 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -562,6 +562,12 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("issuing_dispute.updated") ISSUING_DISPUTE__UPDATED("issuing_dispute.updated"), + @SerializedName("issuing_token.created") + ISSUING_TOKEN__CREATED("issuing_token.created"), + + @SerializedName("issuing_token.updated") + ISSUING_TOKEN__UPDATED("issuing_token.updated"), + @SerializedName("issuing_transaction.created") ISSUING_TRANSACTION__CREATED("issuing_transaction.created"), diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java index 73dc40df383..1e971ae022e 100644 --- a/src/test/java/com/stripe/functional/GeneratedExamples.java +++ b/src/test/java/com/stripe/functional/GeneratedExamples.java @@ -2466,6 +2466,45 @@ public void testCapabilityServiceUpdate() throws StripeException { null); } + @Test + public void testExternalAccountServiceList2() throws StripeException { + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.ExternalAccountListParams params = + com.stripe.param.ExternalAccountListParams.builder() + .setObject("bank_account") + .setLimit(3L) + .build(); + + com.stripe.model.StripeCollection stripeCollection = + client.accounts().externalAccounts().list("acct_xxxxxxxxxxxxx", params); + assertNotNull(stripeCollection); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v1/accounts/acct_xxxxxxxxxxxxx/external_accounts", + params.toMap(), + null); + } + + @Test + public void testExternalAccountServiceList3() throws StripeException { + StripeClient client = new StripeClient(networkSpy); + + com.stripe.param.ExternalAccountListParams params = + com.stripe.param.ExternalAccountListParams.builder().setObject("card").setLimit(3L).build(); + + com.stripe.model.StripeCollection stripeCollection = + client.accounts().externalAccounts().list("acct_xxxxxxxxxxxxx", params); + assertNotNull(stripeCollection); + verifyRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + "/v1/accounts/acct_xxxxxxxxxxxxx/external_accounts", + params.toMap(), + null); + } + @Test public void testExternalAccountServiceCreate() throws StripeException { StripeClient client = new StripeClient(networkSpy);