Skip to content

Commit

Permalink
Update generated code (#1670)
Browse files Browse the repository at this point in the history
* Update generated code for v599

* Update generated code for v600

* Update generated code for v601

* Update generated code for v602

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and pakrym-stripe authored Oct 16, 2023
1 parent 940dd54 commit e5066c3
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 10 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v596
v602
11 changes: 8 additions & 3 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,18 @@ public class Customer extends ApiResource implements HasId, MetadataStore<Custom
Boolean deleted;

/**
* If Stripe bills the customer's latest invoice by automatically charging and the latest charge
* fails, it sets {@code delinquent`` to }true{@code . If Stripe bills the invoice by sending it,
* and the invoice isn't paid by the due date, it also sets `delinquent} to {@code true}.
* Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice
* or marking it uncollectible via the API will set this field to false. An automatic payment
* failure or passing the {@code invoice.due_date} will set this field to {@code true}.
*
* <p>If an invoice becomes uncollectible by <a
* href="https://stripe.com/docs/billing/automatic-collection">dunning</a>, {@code delinquent}
* doesn't reset to {@code false}.
*
* <p>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;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
* <p>Related guides: - <a
* href="https://stripe.com/docs/connect/payment-method-configurations">Payment Method
* Configurations API</a> - <a
* href="https://stripe.com/docs/payments/multiple-payment-method-configs">Multiple payment method
* configurations on dynamic payment methods</a> - <a
* href="https://stripe.com/docs/payments/multiple-payment-method-configs">Multiple configurations
* on dynamic payment methods</a> - <a
* href="https://stripe.com/docs/connect/multiple-payment-method-configurations">Multiple
* configurations for your Connect accounts</a>
*/
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/issuing/Token.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

/**
* An issuing token object is created when an issued card is added to a digital wallet. As a <a
* href="https://stripe.com/docs/issuing">card issuer</a>, you can view and manage these tokens
* href="https://stripe.com/docs/issuing">card issuer</a>, you can <a
* href="https://stripe.com/docs/issuing/controls/token-management">view and manage these tokens</a>
* through Stripe.
*/
@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),

Expand Down
39 changes: 39 additions & 0 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<com.stripe.model.ExternalAccount> 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<com.stripe.model.ExternalAccount> 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);
Expand Down

0 comments on commit e5066c3

Please sign in to comment.