Skip to content

Update generated code #2000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
v1719
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2025-04-30.basil";
public static final String CURRENT = "2025-05-28.basil";
}
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("paynow_payments")
String paynowPayments;

/**
* The status of the pix payments capability of the account, or whether the account can directly
* process pix charges.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("pix_payments")
String pixPayments;

/**
* The status of the promptpay payments capability of the account, or whether the account can
* directly process promptpay charges.
Expand Down
99 changes: 99 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ public static class Components extends StripeObject {
@SerializedName("balances")
Balances balances;

@SerializedName("disputes_list")
DisputesList disputesList;

@SerializedName("documents")
Documents documents;

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

@SerializedName("payment_disputes")
PaymentDisputes paymentDisputes;

@SerializedName("payments")
Payments payments;

Expand Down Expand Up @@ -327,6 +333,56 @@ public static class Features extends StripeObject {
}
}

/**
* For more details about DisputesList, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class DisputesList extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Whether to allow capturing and cancelling payment intents. This is {@code true} by
* default.
*/
@SerializedName("capture_payments")
Boolean capturePayments;

/**
* Whether to allow connected accounts to manage destination charges that are created on
* behalf of them. This is {@code false} by default.
*/
@SerializedName("destination_on_behalf_of_charge_management")
Boolean destinationOnBehalfOfChargeManagement;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting
* disputes. This is {@code true} by default.
*/
@SerializedName("dispute_management")
Boolean disputeManagement;

/** Whether to allow sending refunds. This is {@code true} by default. */
@SerializedName("refund_management")
Boolean refundManagement;
}
}

/**
* For more details about Documents, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -613,6 +669,49 @@ public static class Features extends StripeObject {
}
}

/**
* For more details about PaymentDisputes, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PaymentDisputes extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Whether to allow connected accounts to manage destination charges that are created on
* behalf of them. This is {@code false} by default.
*/
@SerializedName("destination_on_behalf_of_charge_management")
Boolean destinationOnBehalfOfChargeManagement;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting
* disputes. This is {@code true} by default.
*/
@SerializedName("dispute_management")
Boolean disputeManagement;

/** Whether to allow sending refunds. This is {@code true} by default. */
@SerializedName("refund_management")
Boolean refundManagement;
}
}

/**
* For more details about Payments, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
129 changes: 129 additions & 0 deletions src/main/java/com/stripe/model/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public class Balance extends ApiResource {
@SerializedName("pending")
List<Balance.Pending> pending;

@SerializedName("refund_and_dispute_prefunding")
RefundAndDisputePrefunding refundAndDisputePrefunding;

/**
* Retrieves the current account balance, based on the authentication that was used to make the
* request. For a sample request, see <a
Expand Down Expand Up @@ -472,9 +475,135 @@ public static class SourceTypes extends StripeObject {
}
}

/**
* For more details about RefundAndDisputePrefunding, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RefundAndDisputePrefunding extends StripeObject {
/** Funds that are available for use. */
@SerializedName("available")
List<Balance.RefundAndDisputePrefunding.Available> available;

/** Funds that are pending. */
@SerializedName("pending")
List<Balance.RefundAndDisputePrefunding.Pending> pending;

/**
* For more details about Available, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Available extends StripeObject {
/** Balance amount. */
@SerializedName("amount")
Long amount;

/**
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
* currency</a>.
*/
@SerializedName("currency")
String currency;

@SerializedName("source_types")
SourceTypes sourceTypes;

/**
* For more details about SourceTypes, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
}

/**
* For more details about Pending, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Pending extends StripeObject {
/** Balance amount. */
@SerializedName("amount")
Long amount;

/**
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
* currency</a>.
*/
@SerializedName("currency")
String currency;

@SerializedName("source_types")
SourceTypes sourceTypes;

/**
* For more details about SourceTypes, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
}
}

@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(issuing, responseGetter);
trySetResponseGetter(refundAndDisputePrefunding, responseGetter);
}
}
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ public class BalanceTransaction extends ApiResource implements HasId {
@SerializedName("available_on")
Long availableOn;

/**
* The balance that this transaction impacts.
*
* <p>One of {@code issuing}, {@code payments}, or {@code refund_and_dispute_prefunding}.
*/
@SerializedName("balance_type")
String balanceType;

/** Time at which the object was created. Measured in seconds since the Unix epoch. */
@SerializedName("created")
Long created;
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ public static class Requirements extends StripeObject {
List<Capability.Requirements.Alternative> alternatives;

/**
* Date by which the fields in {@code currently_due} must be collected to keep the capability
* enabled for the account. These fields may disable the capability sooner if the next threshold
* is reached before they are collected.
* The date by which all required account information must be both submitted and verified. This
* includes fields listed in {@code currently_due} as well as those in {@code
* pending_verification}. If any required information is missing or unverified by this date, the
* account may be disabled. Note that {@code current_deadline} may change if additional {@code
* currently_due} requirements are requested.
*/
@SerializedName("current_deadline")
Long currentDeadline;
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,20 @@ public static class AcssDebit extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Affirm extends StripeObject {
/**
* ID of the <a href="https://stripe.com/docs/api/terminal/locations">location</a> that this
* transaction's reader is assigned to.
*/
@SerializedName("location")
String location;

/**
* ID of the <a href="https://stripe.com/docs/api/terminal/readers">reader</a> this
* transaction was made on.
*/
@SerializedName("reader")
String reader;

/** The Affirm transaction ID associated with this payment. */
@SerializedName("transaction_id")
String transactionId;
Expand Down Expand Up @@ -3827,6 +3841,20 @@ public static class WechatPay extends StripeObject {
@SerializedName("fingerprint")
String fingerprint;

/**
* ID of the <a href="https://stripe.com/docs/api/terminal/locations">location</a> that this
* transaction's reader is assigned to.
*/
@SerializedName("location")
String location;

/**
* ID of the <a href="https://stripe.com/docs/api/terminal/readers">reader</a> this
* transaction was made on.
*/
@SerializedName("reader")
String reader;

/** Transaction ID of this particular WeChat Pay transaction. */
@SerializedName("transaction_id")
String transactionId;
Expand Down
Loading