Skip to content

Commit 43d6800

Browse files
Update generated code (#2000)
* Update generated code for v1756 * Update generated code for v1757 * Update generated code for v1758 * Update generated code for v1767 * Update generated code for v1770 * Update generated code for v1772 * Update generated code for v1773 * Update generated code for --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
1 parent 49a6a12 commit 43d6800

File tree

62 files changed

+8120
-538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+8120
-538
lines changed

OPENAPI_VERSION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
v1719

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-04-30.basil";
5+
public static final String CURRENT = "2025-05-28.basil";
66
}

src/main/java/com/stripe/model/Account.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,15 @@ public static class Capabilities extends StripeObject {
12251225
@SerializedName("paynow_payments")
12261226
String paynowPayments;
12271227

1228+
/**
1229+
* The status of the pix payments capability of the account, or whether the account can directly
1230+
* process pix charges.
1231+
*
1232+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
1233+
*/
1234+
@SerializedName("pix_payments")
1235+
String pixPayments;
1236+
12281237
/**
12291238
* The status of the promptpay payments capability of the account, or whether the account can
12301239
* directly process promptpay charges.

src/main/java/com/stripe/model/AccountSession.java

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ public static class Components extends StripeObject {
135135
@SerializedName("balances")
136136
Balances balances;
137137

138+
@SerializedName("disputes_list")
139+
DisputesList disputesList;
140+
138141
@SerializedName("documents")
139142
Documents documents;
140143

@@ -156,6 +159,9 @@ public static class Components extends StripeObject {
156159
@SerializedName("payment_details")
157160
PaymentDetails paymentDetails;
158161

162+
@SerializedName("payment_disputes")
163+
PaymentDisputes paymentDisputes;
164+
159165
@SerializedName("payments")
160166
Payments payments;
161167

@@ -327,6 +333,56 @@ public static class Features extends StripeObject {
327333
}
328334
}
329335

336+
/**
337+
* For more details about DisputesList, please refer to the <a
338+
* href="https://docs.stripe.com/api">API Reference.</a>
339+
*/
340+
@Getter
341+
@Setter
342+
@EqualsAndHashCode(callSuper = false)
343+
public static class DisputesList extends StripeObject {
344+
/** Whether the embedded component is enabled. */
345+
@SerializedName("enabled")
346+
Boolean enabled;
347+
348+
@SerializedName("features")
349+
Features features;
350+
351+
/**
352+
* For more details about Features, please refer to the <a
353+
* href="https://docs.stripe.com/api">API Reference.</a>
354+
*/
355+
@Getter
356+
@Setter
357+
@EqualsAndHashCode(callSuper = false)
358+
public static class Features extends StripeObject {
359+
/**
360+
* Whether to allow capturing and cancelling payment intents. This is {@code true} by
361+
* default.
362+
*/
363+
@SerializedName("capture_payments")
364+
Boolean capturePayments;
365+
366+
/**
367+
* Whether to allow connected accounts to manage destination charges that are created on
368+
* behalf of them. This is {@code false} by default.
369+
*/
370+
@SerializedName("destination_on_behalf_of_charge_management")
371+
Boolean destinationOnBehalfOfChargeManagement;
372+
373+
/**
374+
* Whether to allow responding to disputes, including submitting evidence and accepting
375+
* disputes. This is {@code true} by default.
376+
*/
377+
@SerializedName("dispute_management")
378+
Boolean disputeManagement;
379+
380+
/** Whether to allow sending refunds. This is {@code true} by default. */
381+
@SerializedName("refund_management")
382+
Boolean refundManagement;
383+
}
384+
}
385+
330386
/**
331387
* For more details about Documents, please refer to the <a
332388
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -613,6 +669,49 @@ public static class Features extends StripeObject {
613669
}
614670
}
615671

672+
/**
673+
* For more details about PaymentDisputes, please refer to the <a
674+
* href="https://docs.stripe.com/api">API Reference.</a>
675+
*/
676+
@Getter
677+
@Setter
678+
@EqualsAndHashCode(callSuper = false)
679+
public static class PaymentDisputes extends StripeObject {
680+
/** Whether the embedded component is enabled. */
681+
@SerializedName("enabled")
682+
Boolean enabled;
683+
684+
@SerializedName("features")
685+
Features features;
686+
687+
/**
688+
* For more details about Features, please refer to the <a
689+
* href="https://docs.stripe.com/api">API Reference.</a>
690+
*/
691+
@Getter
692+
@Setter
693+
@EqualsAndHashCode(callSuper = false)
694+
public static class Features extends StripeObject {
695+
/**
696+
* Whether to allow connected accounts to manage destination charges that are created on
697+
* behalf of them. This is {@code false} by default.
698+
*/
699+
@SerializedName("destination_on_behalf_of_charge_management")
700+
Boolean destinationOnBehalfOfChargeManagement;
701+
702+
/**
703+
* Whether to allow responding to disputes, including submitting evidence and accepting
704+
* disputes. This is {@code true} by default.
705+
*/
706+
@SerializedName("dispute_management")
707+
Boolean disputeManagement;
708+
709+
/** Whether to allow sending refunds. This is {@code true} by default. */
710+
@SerializedName("refund_management")
711+
Boolean refundManagement;
712+
}
713+
}
714+
616715
/**
617716
* For more details about Payments, please refer to the <a
618717
* href="https://docs.stripe.com/api">API Reference.</a>

src/main/java/com/stripe/model/Balance.java

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public class Balance extends ApiResource {
8181
@SerializedName("pending")
8282
List<Balance.Pending> pending;
8383

84+
@SerializedName("refund_and_dispute_prefunding")
85+
RefundAndDisputePrefunding refundAndDisputePrefunding;
86+
8487
/**
8588
* Retrieves the current account balance, based on the authentication that was used to make the
8689
* request. For a sample request, see <a
@@ -472,9 +475,135 @@ public static class SourceTypes extends StripeObject {
472475
}
473476
}
474477

478+
/**
479+
* For more details about RefundAndDisputePrefunding, please refer to the <a
480+
* href="https://docs.stripe.com/api">API Reference.</a>
481+
*/
482+
@Getter
483+
@Setter
484+
@EqualsAndHashCode(callSuper = false)
485+
public static class RefundAndDisputePrefunding extends StripeObject {
486+
/** Funds that are available for use. */
487+
@SerializedName("available")
488+
List<Balance.RefundAndDisputePrefunding.Available> available;
489+
490+
/** Funds that are pending. */
491+
@SerializedName("pending")
492+
List<Balance.RefundAndDisputePrefunding.Pending> pending;
493+
494+
/**
495+
* For more details about Available, please refer to the <a
496+
* href="https://docs.stripe.com/api">API Reference.</a>
497+
*/
498+
@Getter
499+
@Setter
500+
@EqualsAndHashCode(callSuper = false)
501+
public static class Available extends StripeObject {
502+
/** Balance amount. */
503+
@SerializedName("amount")
504+
Long amount;
505+
506+
/**
507+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
508+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
509+
* currency</a>.
510+
*/
511+
@SerializedName("currency")
512+
String currency;
513+
514+
@SerializedName("source_types")
515+
SourceTypes sourceTypes;
516+
517+
/**
518+
* For more details about SourceTypes, please refer to the <a
519+
* href="https://docs.stripe.com/api">API Reference.</a>
520+
*/
521+
@Getter
522+
@Setter
523+
@EqualsAndHashCode(callSuper = false)
524+
public static class SourceTypes extends StripeObject {
525+
/**
526+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
527+
* payments</a>.
528+
*/
529+
@SerializedName("bank_account")
530+
Long bankAccount;
531+
532+
/**
533+
* Amount coming from most payment methods, including cards as well as <a
534+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
535+
*/
536+
@SerializedName("card")
537+
Long card;
538+
539+
/**
540+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
541+
* payment method.
542+
*/
543+
@SerializedName("fpx")
544+
Long fpx;
545+
}
546+
}
547+
548+
/**
549+
* For more details about Pending, please refer to the <a href="https://docs.stripe.com/api">API
550+
* Reference.</a>
551+
*/
552+
@Getter
553+
@Setter
554+
@EqualsAndHashCode(callSuper = false)
555+
public static class Pending extends StripeObject {
556+
/** Balance amount. */
557+
@SerializedName("amount")
558+
Long amount;
559+
560+
/**
561+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
562+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
563+
* currency</a>.
564+
*/
565+
@SerializedName("currency")
566+
String currency;
567+
568+
@SerializedName("source_types")
569+
SourceTypes sourceTypes;
570+
571+
/**
572+
* For more details about SourceTypes, please refer to the <a
573+
* href="https://docs.stripe.com/api">API Reference.</a>
574+
*/
575+
@Getter
576+
@Setter
577+
@EqualsAndHashCode(callSuper = false)
578+
public static class SourceTypes extends StripeObject {
579+
/**
580+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
581+
* payments</a>.
582+
*/
583+
@SerializedName("bank_account")
584+
Long bankAccount;
585+
586+
/**
587+
* Amount coming from most payment methods, including cards as well as <a
588+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
589+
*/
590+
@SerializedName("card")
591+
Long card;
592+
593+
/**
594+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
595+
* payment method.
596+
*/
597+
@SerializedName("fpx")
598+
Long fpx;
599+
}
600+
}
601+
}
602+
475603
@Override
476604
public void setResponseGetter(StripeResponseGetter responseGetter) {
477605
super.setResponseGetter(responseGetter);
478606
trySetResponseGetter(issuing, responseGetter);
607+
trySetResponseGetter(refundAndDisputePrefunding, responseGetter);
479608
}
480609
}

src/main/java/com/stripe/model/BalanceTransaction.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public class BalanceTransaction extends ApiResource implements HasId {
4040
@SerializedName("available_on")
4141
Long availableOn;
4242

43+
/**
44+
* The balance that this transaction impacts.
45+
*
46+
* <p>One of {@code issuing}, {@code payments}, or {@code refund_and_dispute_prefunding}.
47+
*/
48+
@SerializedName("balance_type")
49+
String balanceType;
50+
4351
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
4452
@SerializedName("created")
4553
Long created;

src/main/java/com/stripe/model/Capability.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,11 @@ public static class Requirements extends StripeObject {
340340
List<Capability.Requirements.Alternative> alternatives;
341341

342342
/**
343-
* Date by which the fields in {@code currently_due} must be collected to keep the capability
344-
* enabled for the account. These fields may disable the capability sooner if the next threshold
345-
* is reached before they are collected.
343+
* The date by which all required account information must be both submitted and verified. This
344+
* includes fields listed in {@code currently_due} as well as those in {@code
345+
* pending_verification}. If any required information is missing or unverified by this date, the
346+
* account may be disabled. Note that {@code current_deadline} may change if additional {@code
347+
* currently_due} requirements are requested.
346348
*/
347349
@SerializedName("current_deadline")
348350
Long currentDeadline;

src/main/java/com/stripe/model/Charge.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,20 @@ public static class AcssDebit extends StripeObject {
14311431
@Setter
14321432
@EqualsAndHashCode(callSuper = false)
14331433
public static class Affirm extends StripeObject {
1434+
/**
1435+
* ID of the <a href="https://stripe.com/docs/api/terminal/locations">location</a> that this
1436+
* transaction's reader is assigned to.
1437+
*/
1438+
@SerializedName("location")
1439+
String location;
1440+
1441+
/**
1442+
* ID of the <a href="https://stripe.com/docs/api/terminal/readers">reader</a> this
1443+
* transaction was made on.
1444+
*/
1445+
@SerializedName("reader")
1446+
String reader;
1447+
14341448
/** The Affirm transaction ID associated with this payment. */
14351449
@SerializedName("transaction_id")
14361450
String transactionId;
@@ -3827,6 +3841,20 @@ public static class WechatPay extends StripeObject {
38273841
@SerializedName("fingerprint")
38283842
String fingerprint;
38293843

3844+
/**
3845+
* ID of the <a href="https://stripe.com/docs/api/terminal/locations">location</a> that this
3846+
* transaction's reader is assigned to.
3847+
*/
3848+
@SerializedName("location")
3849+
String location;
3850+
3851+
/**
3852+
* ID of the <a href="https://stripe.com/docs/api/terminal/readers">reader</a> this
3853+
* transaction was made on.
3854+
*/
3855+
@SerializedName("reader")
3856+
String reader;
3857+
38303858
/** Transaction ID of this particular WeChat Pay transaction. */
38313859
@SerializedName("transaction_id")
38323860
String transactionId;

0 commit comments

Comments
 (0)