Skip to content

Commit b34c9ba

Browse files
Update generated code (#2086)
* Update generated code for v2042 and * Update generated code for v2093 and * Update generated code for v2095 and * Update generated code for v2096 and * Update generated code for v2099 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 90e5bd9 commit b34c9ba

103 files changed

Lines changed: 24811 additions & 529 deletions

File tree

Some content is hidden

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

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-09-30.clover
1+
577fcb57736b925392ea563c0284df9002c75ac9

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2028
1+
v2099

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

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

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-09-30.clover";
5+
public static final String CURRENT = "2025-10-29.clover";
66
public static final String CURRENT_MAJOR = "clover";
77
}

src/main/java/com/stripe/StripeClient.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,18 @@ public com.stripe.service.MandateService mandates() {
541541
return new com.stripe.service.MandateService(this.getResponseGetter());
542542
}
543543

544+
/**
545+
* @deprecated StripeClient.paymentAttemptRecords() is deprecated, use
546+
* StripeClient.v1().paymentAttemptRecords() instead. All functionality under it has been
547+
* copied over to StripeClient.v1().paymentAttemptRecords(). See <a
548+
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
549+
* guide</a> for more on this and tips on migrating to the new v1 namespace.
550+
*/
551+
@Deprecated
552+
public com.stripe.service.PaymentAttemptRecordService paymentAttemptRecords() {
553+
return new com.stripe.service.PaymentAttemptRecordService(this.getResponseGetter());
554+
}
555+
544556
/**
545557
* @deprecated StripeClient.paymentIntents() is deprecated, use StripeClient.v1().paymentIntents()
546558
* instead. All functionality under it has been copied over to
@@ -601,6 +613,18 @@ public com.stripe.service.PaymentMethodService paymentMethods() {
601613
return new com.stripe.service.PaymentMethodService(this.getResponseGetter());
602614
}
603615

616+
/**
617+
* @deprecated StripeClient.paymentRecords() is deprecated, use StripeClient.v1().paymentRecords()
618+
* instead. All functionality under it has been copied over to
619+
* StripeClient.v1().paymentRecords(). See <a
620+
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
621+
* guide</a> for more on this and tips on migrating to the new v1 namespace.
622+
*/
623+
@Deprecated
624+
public com.stripe.service.PaymentRecordService paymentRecords() {
625+
return new com.stripe.service.PaymentRecordService(this.getResponseGetter());
626+
}
627+
604628
/**
605629
* @deprecated StripeClient.payouts() is deprecated, use StripeClient.v1().payouts() instead. All
606630
* functionality under it has been copied over to StripeClient.v1().payouts(). See <a

src/main/java/com/stripe/exception/TemporarySessionExpiredException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import com.stripe.model.StripeObject;
77
import com.stripe.net.StripeResponseGetter;
88

9-
/** Information about the error that occurred. */
9+
/** The temporary session token has expired. */
1010
public final class TemporarySessionExpiredException extends ApiException {
1111
private static final long serialVersionUID = 2L;
1212

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,13 @@ public static class Company extends StripeObject {
15161516
@SerializedName("registration_date")
15171517
RegistrationDate registrationDate;
15181518

1519+
/**
1520+
* This hash is used to attest that the representative is authorized to act as the
1521+
* representative of their legal entity.
1522+
*/
1523+
@SerializedName("representative_declaration")
1524+
RepresentativeDeclaration representativeDeclaration;
1525+
15191526
/**
15201527
* The category identifying the legal structure of the company or legal entity. Also available
15211528
* for accounts where <a
@@ -1701,6 +1708,30 @@ public static class RegistrationDate extends StripeObject {
17011708
Long year;
17021709
}
17031710

1711+
/**
1712+
* For more details about RepresentativeDeclaration, please refer to the <a
1713+
* href="https://docs.stripe.com/api">API Reference.</a>
1714+
*/
1715+
@Getter
1716+
@Setter
1717+
@EqualsAndHashCode(callSuper = false)
1718+
public static class RepresentativeDeclaration extends StripeObject {
1719+
/** The Unix timestamp marking when the representative declaration attestation was made. */
1720+
@SerializedName("date")
1721+
Long date;
1722+
1723+
/** The IP address from which the representative declaration attestation was made. */
1724+
@SerializedName("ip")
1725+
String ip;
1726+
1727+
/**
1728+
* The user-agent string from the browser where the representative declaration attestation was
1729+
* made.
1730+
*/
1731+
@SerializedName("user_agent")
1732+
String userAgent;
1733+
}
1734+
17041735
/**
17051736
* For more details about Verification, please refer to the <a
17061737
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ public static class Crypto extends StripeObject {
26902690
/**
26912691
* The blockchain network that the transaction was sent on.
26922692
*
2693-
* <p>One of {@code base}, {@code ethereum}, or {@code polygon}.
2693+
* <p>One of {@code base}, {@code ethereum}, {@code polygon}, or {@code solana}.
26942694
*/
26952695
@SerializedName("network")
26962696
String network;

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,14 @@ public static class PaymentMethodPreview extends StripeObject {
442442
* <p>One of {@code acss_debit}, {@code affirm}, {@code afterpay_clearpay}, {@code alipay},
443443
* {@code alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code
444444
* bancontact}, {@code billie}, {@code blik}, {@code boleto}, {@code card}, {@code
445-
* card_present}, {@code cashapp}, {@code crypto}, {@code customer_balance}, {@code eps}, {@code
446-
* fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, {@code interac_present}, {@code
447-
* kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way},
448-
* {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code
449-
* oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal},
450-
* {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay}, {@code satispay},
451-
* {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account},
452-
* {@code wechat_pay}, or {@code zip}.
445+
* card_present}, {@code cashapp}, {@code crypto}, {@code custom}, {@code customer_balance},
446+
* {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, {@code
447+
* interac_present}, {@code kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code
448+
* link}, {@code mb_way}, {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code
449+
* nz_bank_account}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code
450+
* paynow}, {@code paypal}, {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code
451+
* samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code
452+
* twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}.
453453
*/
454454
@SerializedName("type")
455455
String type;

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,20 @@ public static class Refund extends StripeObject {
739739
@SerializedName("amount_refunded")
740740
Long amountRefunded;
741741

742+
/** The PaymentRecord refund details associated with this credit note refund. */
743+
@SerializedName("payment_record_refund")
744+
PaymentRecordRefund paymentRecordRefund;
745+
742746
/** ID of the refund. */
743747
@SerializedName("refund")
744748
@Getter(lombok.AccessLevel.NONE)
745749
@Setter(lombok.AccessLevel.NONE)
746750
ExpandableField<com.stripe.model.Refund> refund;
747751

752+
/** Type of the refund, one of {@code refund} or {@code payment_record_refund}. */
753+
@SerializedName("type")
754+
String type;
755+
748756
/** Get ID of expandable {@code refund} object. */
749757
public String getRefund() {
750758
return (this.refund != null) ? this.refund.getId() : null;
@@ -763,6 +771,23 @@ public void setRefundObject(com.stripe.model.Refund expandableObject) {
763771
this.refund =
764772
new ExpandableField<com.stripe.model.Refund>(expandableObject.getId(), expandableObject);
765773
}
774+
775+
/**
776+
* For more details about PaymentRecordRefund, please refer to the <a
777+
* href="https://docs.stripe.com/api">API Reference.</a>
778+
*/
779+
@Getter
780+
@Setter
781+
@EqualsAndHashCode(callSuper = false)
782+
public static class PaymentRecordRefund extends StripeObject {
783+
/** ID of the payment record. */
784+
@SerializedName("payment_record")
785+
String paymentRecord;
786+
787+
/** ID of the refund group. */
788+
@SerializedName("refund_group")
789+
String refundGroup;
790+
}
766791
}
767792

768793
/**

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,15 @@ public static class Tax extends StripeObject {
979979
@SerializedName("location")
980980
Location location;
981981

982+
/**
983+
* The tax calculation provider used for location resolution. Defaults to {@code stripe} when
984+
* not using a <a href="https://stripe.com/tax/third-party-apps">third-party provider</a>.
985+
*
986+
* <p>One of {@code anrok}, {@code avalara}, {@code sphere}, or {@code stripe}.
987+
*/
988+
@SerializedName("provider")
989+
String provider;
990+
982991
/**
983992
* For more details about Location, please refer to the <a
984993
* href="https://docs.stripe.com/api">API Reference.</a>

0 commit comments

Comments
 (0)