Skip to content

Commit c23df4d

Browse files
Update generated code for v1868 and 2025-07-30.preview
1 parent a3fb002 commit c23df4d

File tree

9 files changed

+785
-24
lines changed

9 files changed

+785
-24
lines changed

src/main/java/com/stripe/events/V2CoreAccountLinkCompletedEvent.java renamed to src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import lombok.Setter;
99

1010
@Getter
11-
public final class V2CoreAccountLinkCompletedEvent extends Event {
12-
/** Data for the v2.core.account_link.completed event. */
11+
public final class V2CoreAccountLinkReturnedEvent extends Event {
12+
/** Data for the v2.core.account_link.returned event. */
1313
@SerializedName("data")
14-
V2CoreAccountLinkCompletedEvent.EventData data;
14+
V2CoreAccountLinkReturnedEvent.EventData data;
1515

1616
@Getter
1717
@Setter

src/main/java/com/stripe/model/v2/EventDataClassLookup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public final class EventDataClassLookup {
9191
"v2.core.account[requirements].updated",
9292
com.stripe.events.V2CoreAccountIncludingRequirementsUpdatedEvent.class);
9393
eventClassLookup.put(
94-
"v2.core.account_link.completed", com.stripe.events.V2CoreAccountLinkCompletedEvent.class);
94+
"v2.core.account_link.returned", com.stripe.events.V2CoreAccountLinkReturnedEvent.class);
9595
eventClassLookup.put(
9696
"v2.core.account.closed", com.stripe.events.V2CoreAccountClosedEvent.class);
9797
eventClassLookup.put(

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4945,6 +4945,10 @@ public static class TermsOfService extends StripeObject {
49454945
@SerializedName("account")
49464946
InnerAccount account;
49474947

4948+
/** Details on the Account's acceptance of Treasury-specific terms of service. */
4949+
@SerializedName("storer")
4950+
Storer storer;
4951+
49484952
/**
49494953
* For more details about InnerAccount, please refer to the <a
49504954
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -4974,6 +4978,36 @@ public static class InnerAccount extends StripeObject {
49744978
@SerializedName("user_agent")
49754979
String userAgent;
49764980
}
4981+
4982+
/**
4983+
* For more details about Storer, please refer to the <a
4984+
* href="https://docs.stripe.com/api">API Reference.</a>
4985+
*/
4986+
@Getter
4987+
@Setter
4988+
@EqualsAndHashCode(callSuper = false)
4989+
public static class Storer extends StripeObject {
4990+
/**
4991+
* The time when the Account's representative accepted the terms of service. Represented
4992+
* as a RFC 3339 date &amp; time UTC value in millisecond precision, for example:
4993+
* 2022-09-18T13:22:18.123Z.
4994+
*/
4995+
@SerializedName("date")
4996+
Instant date;
4997+
4998+
/**
4999+
* The IP address from which the Account's representative accepted the terms of service.
5000+
*/
5001+
@SerializedName("ip")
5002+
String ip;
5003+
5004+
/**
5005+
* The user agent of the browser from which the Account's representative accepted the
5006+
* terms of service.
5007+
*/
5008+
@SerializedName("user_agent")
5009+
String userAgent;
5010+
}
49775011
}
49785012
}
49795013

src/main/java/com/stripe/model/v2/core/AccountLink.java

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@ public static class UseCase extends StripeObject {
8282
@EqualsAndHashCode(callSuper = false)
8383
public static class AccountOnboarding extends StripeObject {
8484
/**
85-
* Open Enum. A v2/account can be configured to enable certain functionality. The
86-
* configuration param targets the v2/account_link to collect information for the specified
87-
* v2/account configuration/s.
85+
* Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding
86+
* flow.
87+
*/
88+
@SerializedName("collection_options")
89+
CollectionOptions collectionOptions;
90+
91+
/**
92+
* Open Enum. A v2/core/account can be configured to enable certain functionality. The
93+
* configuration param targets the v2/core/account_link to collect information for the
94+
* specified v2/core/account configuration/s.
8895
*/
8996
@SerializedName("configurations")
9097
List<String> configurations;
@@ -104,6 +111,35 @@ public static class AccountOnboarding extends StripeObject {
104111
/** The URL that the user will be redirected to upon completing the linked flow. */
105112
@SerializedName("return_url")
106113
String returnUrl;
114+
115+
/**
116+
* For more details about CollectionOptions, please refer to the <a
117+
* href="https://docs.stripe.com/api">API Reference.</a>
118+
*/
119+
@Getter
120+
@Setter
121+
@EqualsAndHashCode(callSuper = false)
122+
public static class CollectionOptions extends StripeObject {
123+
/**
124+
* Specifies whether the platform collects only currently_due requirements ({@code
125+
* currently_due}) or both currently_due and eventually_due requirements ({@code
126+
* eventually_due}). If you don’t specify collection_options, the default value is
127+
* currently_due.
128+
*
129+
* <p>One of {@code currently_due}, or {@code eventually_due}.
130+
*/
131+
@SerializedName("fields")
132+
String fields;
133+
134+
/**
135+
* Specifies whether the platform collects future_requirements in addition to requirements
136+
* in Connect Onboarding. The default value is {@code omit}.
137+
*
138+
* <p>One of {@code include}, or {@code omit}.
139+
*/
140+
@SerializedName("future_requirements")
141+
String futureRequirements;
142+
}
107143
}
108144

109145
/**
@@ -114,6 +150,13 @@ public static class AccountOnboarding extends StripeObject {
114150
@Setter
115151
@EqualsAndHashCode(callSuper = false)
116152
public static class AccountUpdate extends StripeObject {
153+
/**
154+
* Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding
155+
* flow.
156+
*/
157+
@SerializedName("collection_options")
158+
CollectionOptions collectionOptions;
159+
117160
/**
118161
* Open Enum. A v2/account can be configured to enable certain functionality. The
119162
* configuration param targets the v2/account_link to collect information for the specified
@@ -137,6 +180,35 @@ public static class AccountUpdate extends StripeObject {
137180
/** The URL that the user will be redirected to upon completing the linked flow. */
138181
@SerializedName("return_url")
139182
String returnUrl;
183+
184+
/**
185+
* For more details about CollectionOptions, please refer to the <a
186+
* href="https://docs.stripe.com/api">API Reference.</a>
187+
*/
188+
@Getter
189+
@Setter
190+
@EqualsAndHashCode(callSuper = false)
191+
public static class CollectionOptions extends StripeObject {
192+
/**
193+
* Specifies whether the platform collects only currently_due requirements ({@code
194+
* currently_due}) or both currently_due and eventually_due requirements ({@code
195+
* eventually_due}). If you don’t specify collection_options, the default value is
196+
* currently_due.
197+
*
198+
* <p>One of {@code currently_due}, or {@code eventually_due}.
199+
*/
200+
@SerializedName("fields")
201+
String fields;
202+
203+
/**
204+
* Specifies whether the platform collects future_requirements in addition to requirements
205+
* in Connect Onboarding. The default value is {@code omit}.
206+
*
207+
* <p>One of {@code include}, or {@code omit}.
208+
*/
209+
@SerializedName("future_requirements")
210+
String futureRequirements;
211+
}
140212
}
141213
}
142214
}

src/main/java/com/stripe/param/v2/core/AccountCreateParams.java

Lines changed: 138 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12275,9 +12275,14 @@ public static class TermsOfService {
1227512275
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1227612276
Map<String, Object> extraParams;
1227712277

12278-
private TermsOfService(Account account, Map<String, Object> extraParams) {
12278+
/** Details on the Account's acceptance of Treasury-specific terms of service. */
12279+
@SerializedName("storer")
12280+
Storer storer;
12281+
12282+
private TermsOfService(Account account, Map<String, Object> extraParams, Storer storer) {
1227912283
this.account = account;
1228012284
this.extraParams = extraParams;
12285+
this.storer = storer;
1228112286
}
1228212287

1228312288
public static Builder builder() {
@@ -12289,10 +12294,12 @@ public static class Builder {
1228912294

1229012295
private Map<String, Object> extraParams;
1229112296

12297+
private Storer storer;
12298+
1229212299
/** Finalize and obtain parameter instance from this builder. */
1229312300
public AccountCreateParams.Identity.Attestations.TermsOfService build() {
1229412301
return new AccountCreateParams.Identity.Attestations.TermsOfService(
12295-
this.account, this.extraParams);
12302+
this.account, this.extraParams, this.storer);
1229612303
}
1229712304

1229812305
/**
@@ -12333,6 +12340,13 @@ public Builder putAllExtraParam(Map<String, Object> map) {
1233312340
this.extraParams.putAll(map);
1233412341
return this;
1233512342
}
12343+
12344+
/** Details on the Account's acceptance of Treasury-specific terms of service. */
12345+
public Builder setStorer(
12346+
AccountCreateParams.Identity.Attestations.TermsOfService.Storer storer) {
12347+
this.storer = storer;
12348+
return this;
12349+
}
1233612350
}
1233712351

1233812352
@Getter
@@ -12456,6 +12470,128 @@ public Builder setUserAgent(String userAgent) {
1245612470
}
1245712471
}
1245812472
}
12473+
12474+
@Getter
12475+
@EqualsAndHashCode(callSuper = false)
12476+
public static class Storer {
12477+
/**
12478+
* <strong>Required.</strong> The time when the Account's representative accepted the
12479+
* terms of service. Represented as a RFC 3339 date &amp; time UTC value in millisecond
12480+
* precision, for example: 2022-09-18T13:22:18.123Z.
12481+
*/
12482+
@SerializedName("date")
12483+
Instant date;
12484+
12485+
/**
12486+
* Map of extra parameters for custom features not available in this client library. The
12487+
* content in this map is not serialized under this field's {@code @SerializedName} value.
12488+
* Instead, each key/value pair is serialized as if the key is a root-level field
12489+
* (serialized) name in this param object. Effectively, this map is flattened to its
12490+
* parent instance.
12491+
*/
12492+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
12493+
Map<String, Object> extraParams;
12494+
12495+
/**
12496+
* <strong>Required.</strong> The IP address from which the Account's representative
12497+
* accepted the terms of service.
12498+
*/
12499+
@SerializedName("ip")
12500+
String ip;
12501+
12502+
/**
12503+
* The user agent of the browser from which the Account's representative accepted the
12504+
* terms of service.
12505+
*/
12506+
@SerializedName("user_agent")
12507+
String userAgent;
12508+
12509+
private Storer(
12510+
Instant date, Map<String, Object> extraParams, String ip, String userAgent) {
12511+
this.date = date;
12512+
this.extraParams = extraParams;
12513+
this.ip = ip;
12514+
this.userAgent = userAgent;
12515+
}
12516+
12517+
public static Builder builder() {
12518+
return new Builder();
12519+
}
12520+
12521+
public static class Builder {
12522+
private Instant date;
12523+
12524+
private Map<String, Object> extraParams;
12525+
12526+
private String ip;
12527+
12528+
private String userAgent;
12529+
12530+
/** Finalize and obtain parameter instance from this builder. */
12531+
public AccountCreateParams.Identity.Attestations.TermsOfService.Storer build() {
12532+
return new AccountCreateParams.Identity.Attestations.TermsOfService.Storer(
12533+
this.date, this.extraParams, this.ip, this.userAgent);
12534+
}
12535+
12536+
/**
12537+
* <strong>Required.</strong> The time when the Account's representative accepted the
12538+
* terms of service. Represented as a RFC 3339 date &amp; time UTC value in millisecond
12539+
* precision, for example: 2022-09-18T13:22:18.123Z.
12540+
*/
12541+
public Builder setDate(Instant date) {
12542+
this.date = date;
12543+
return this;
12544+
}
12545+
12546+
/**
12547+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
12548+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
12549+
* original map. See {@link
12550+
* AccountCreateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the
12551+
* field documentation.
12552+
*/
12553+
public Builder putExtraParam(String key, Object value) {
12554+
if (this.extraParams == null) {
12555+
this.extraParams = new HashMap<>();
12556+
}
12557+
this.extraParams.put(key, value);
12558+
return this;
12559+
}
12560+
12561+
/**
12562+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
12563+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
12564+
* original map. See {@link
12565+
* AccountCreateParams.Identity.Attestations.TermsOfService.Storer#extraParams} for the
12566+
* field documentation.
12567+
*/
12568+
public Builder putAllExtraParam(Map<String, Object> map) {
12569+
if (this.extraParams == null) {
12570+
this.extraParams = new HashMap<>();
12571+
}
12572+
this.extraParams.putAll(map);
12573+
return this;
12574+
}
12575+
12576+
/**
12577+
* <strong>Required.</strong> The IP address from which the Account's representative
12578+
* accepted the terms of service.
12579+
*/
12580+
public Builder setIp(String ip) {
12581+
this.ip = ip;
12582+
return this;
12583+
}
12584+
12585+
/**
12586+
* The user agent of the browser from which the Account's representative accepted the
12587+
* terms of service.
12588+
*/
12589+
public Builder setUserAgent(String userAgent) {
12590+
this.userAgent = userAgent;
12591+
return this;
12592+
}
12593+
}
12594+
}
1245912595
}
1246012596
}
1246112597

0 commit comments

Comments
 (0)