Skip to content

Commit f35fa6c

Browse files
Update generated code for v2277 and 1af5aa444ea8141a2d2b8d86e76c73f788f65e09
1 parent d7dea7c commit f35fa6c

111 files changed

Lines changed: 9067 additions & 953 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.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
826bf48af8bcd391512daeaf283b8486347b14c8
1+
1af5aa444ea8141a2d2b8d86e76c73f788f65e09

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2253
1+
v2277

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 = "2026-04-22.preview";
5+
public static final String CURRENT = "2026-05-27.preview";
66
}

src/main/java/com/stripe/StripeEventNotificationHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// File copied from our code generator; changes here will be overwritten.
12
package com.stripe;
23

34
// event-notification-class-imports: The beginning of the section generated from our OpenAPI spec

src/main/java/com/stripe/events/UnknownEventNotification.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// File copied from our code generator; changes here will be overwritten.
12
package com.stripe.events;
23

34
import com.google.gson.annotations.SerializedName;

src/main/java/com/stripe/examples/EventNotificationHandlerEndpoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// File copied from our code generator; changes here will be overwritten.
12
package com.stripe.examples;
23

34
import com.stripe.StripeClient;

src/main/java/com/stripe/examples/EventNotificationWebhookHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// File copied from our code generator; changes here will be overwritten.
12
package com.stripe.examples;
23

34
import com.stripe.StripeClient;

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,15 @@ public static class Capabilities extends StripeObject {
978978
@SerializedName("billie_payments")
979979
String billiePayments;
980980

981+
/**
982+
* The status of the Bizum capability of the account, or whether the account can directly
983+
* process Bizum payments.
984+
*
985+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
986+
*/
987+
@SerializedName("bizum_payments")
988+
String bizumPayments;
989+
981990
/**
982991
* The status of the blik payments capability of the account, or whether the account can
983992
* directly process blik charges.
@@ -1390,6 +1399,15 @@ public static class Capabilities extends StripeObject {
13901399
@SerializedName("satispay_payments")
13911400
String satispayPayments;
13921401

1402+
/**
1403+
* The status of the Scalapay capability of the account, or whether the account can directly
1404+
* process Scalapay payments.
1405+
*
1406+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
1407+
*/
1408+
@SerializedName("scalapay_payments")
1409+
String scalapayPayments;
1410+
13931411
/**
13941412
* The status of the SEPA customer_balance payments (EUR currency) capability of the account, or
13951413
* whether the account can directly process SEPA customer_balance charges.

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

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ public static class Payments extends StripeObject {
161161
@Setter
162162
@EqualsAndHashCode(callSuper = false)
163163
public static class Payouts extends StripeObject {
164+
/**
165+
* Configures per-currency rules for automatically transferring funds from the payments
166+
* balance to a FinancialAccount.
167+
*/
168+
@SerializedName("automatic_transfer_rules_by_currency")
169+
Map<String, List<BalanceSettings.Payments.Payouts.AutomaticTransferRulesByCurrency>>
170+
automaticTransferRulesByCurrency;
171+
164172
/**
165173
* The minimum balance amount to retain per currency after automatic payouts. Only funds that
166174
* exceed these amounts are paid out. Learn more about the <a
@@ -194,6 +202,37 @@ public static class Payouts extends StripeObject {
194202
@SerializedName("status")
195203
String status;
196204

205+
/**
206+
* For more details about AutomaticTransferRulesByCurrency, please refer to the <a
207+
* href="https://docs.stripe.com/api">API Reference.</a>
208+
*/
209+
@Getter
210+
@Setter
211+
@EqualsAndHashCode(callSuper = false)
212+
public static class AutomaticTransferRulesByCurrency extends StripeObject {
213+
/**
214+
* The ID of the FinancialAccount that funds will be transferred to during automatic
215+
* transfers.
216+
*/
217+
@SerializedName("payout_method")
218+
String payoutMethod;
219+
220+
/**
221+
* The maximum amount in minor units to transfer to the FinancialAccount. Only applicable
222+
* when {@code type} is {@code transfer_up_to_amount}.
223+
*/
224+
@SerializedName("transfer_up_to_amount")
225+
Long transferUpToAmount;
226+
227+
/**
228+
* The type of automatic transfer rule.
229+
*
230+
* <p>One of {@code transfer_all}, or {@code transfer_up_to_amount}.
231+
*/
232+
@SerializedName("type")
233+
String type;
234+
}
235+
197236
/**
198237
* For more details about Schedule, please refer to the <a
199238
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -244,6 +283,48 @@ public static class SettlementTiming extends StripeObject {
244283
*/
245284
@SerializedName("delay_days_override")
246285
Long delayDaysOverride;
286+
287+
/**
288+
* Customized start of day configuration for automatic payouts to group and send payments in
289+
* local timezones with a customized day starting time. For details, see our <a
290+
* href="https://stripe.com/connect/customized-start-of-day">Customized start of day</a>
291+
* documentation.
292+
*/
293+
@SerializedName("start_of_day")
294+
StartOfDay startOfDay;
295+
296+
/**
297+
* For more details about StartOfDay, please refer to the <a
298+
* href="https://docs.stripe.com/api">API Reference.</a>
299+
*/
300+
@Getter
301+
@Setter
302+
@EqualsAndHashCode(callSuper = false)
303+
public static class StartOfDay extends StripeObject {
304+
/**
305+
* Hour at which the customized start of day begins according to the given timezone. Must be
306+
* a <a
307+
* href="https://stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs">supported
308+
* customized start of day hour</a>.
309+
*/
310+
@SerializedName("hour")
311+
Long hour;
312+
313+
/**
314+
* Minutes at which the customized start of day begins according to the given timezone. Must
315+
* be either 0 or 30.
316+
*/
317+
@SerializedName("minutes")
318+
Long minutes;
319+
320+
/**
321+
* Timezone for the customized start of day. Must be a <a
322+
* href="https://stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs">supported
323+
* customized start of day timezone</a>.
324+
*/
325+
@SerializedName("timezone")
326+
String timezone;
327+
}
247328
}
248329
}
249330

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,9 @@ public static class PaymentMethodDetails extends StripeObject {
11861186
@SerializedName("billie")
11871187
Billie billie;
11881188

1189+
@SerializedName("bizum")
1190+
Bizum bizum;
1191+
11891192
@SerializedName("blik")
11901193
Blik blik;
11911194

@@ -1306,6 +1309,9 @@ public static class PaymentMethodDetails extends StripeObject {
13061309
@SerializedName("satispay")
13071310
Satispay satispay;
13081311

1312+
@SerializedName("scalapay")
1313+
Scalapay scalapay;
1314+
13091315
@SerializedName("sepa_credit_transfer")
13101316
SepaCreditTransfer sepaCreditTransfer;
13111317

@@ -1822,6 +1828,19 @@ public static class Billie extends StripeObject {
18221828
String transactionId;
18231829
}
18241830

1831+
/**
1832+
* For more details about Bizum, please refer to the <a href="https://docs.stripe.com/api">API
1833+
* Reference.</a>
1834+
*/
1835+
@Getter
1836+
@Setter
1837+
@EqualsAndHashCode(callSuper = false)
1838+
public static class Bizum extends StripeObject {
1839+
/** The Bizum transaction ID associated with this payment. */
1840+
@SerializedName("transaction_id")
1841+
String transactionId;
1842+
}
1843+
18251844
/**
18261845
* For more details about Blik, please refer to the <a href="https://docs.stripe.com/api">API
18271846
* Reference.</a>
@@ -3998,6 +4017,19 @@ public static class Satispay extends StripeObject {
39984017
String transactionId;
39994018
}
40004019

4020+
/**
4021+
* For more details about Scalapay, please refer to the <a
4022+
* href="https://docs.stripe.com/api">API Reference.</a>
4023+
*/
4024+
@Getter
4025+
@Setter
4026+
@EqualsAndHashCode(callSuper = false)
4027+
public static class Scalapay extends StripeObject {
4028+
/** The Scalapay transaction ID associated with this payment. */
4029+
@SerializedName("transaction_id")
4030+
String transactionId;
4031+
}
4032+
40014033
/**
40024034
* For more details about SepaCreditTransfer, please refer to the <a
40034035
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -4240,7 +4272,11 @@ public static class Swish extends StripeObject {
42404272
@Getter
42414273
@Setter
42424274
@EqualsAndHashCode(callSuper = false)
4243-
public static class Twint extends StripeObject {}
4275+
public static class Twint extends StripeObject {
4276+
/** ID of the multi use Mandate generated by the PaymentIntent. */
4277+
@SerializedName("mandate")
4278+
String mandate;
4279+
}
42444280

42454281
/**
42464282
* For more details about Upi, please refer to the <a href="https://docs.stripe.com/api">API

0 commit comments

Comments
 (0)