@@ -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
0 commit comments