Skip to content

Commit 1eee247

Browse files
Update generated code for v1442
1 parent 89e599c commit 1eee247

File tree

2 files changed

+166
-3
lines changed

2 files changed

+166
-3
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1441
1+
v1442

src/main/java/com/stripe/param/AccountSessionCreateParams.java

+165-2
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ public static class Components {
240240
@SerializedName("tax_settings")
241241
TaxSettings taxSettings;
242242

243+
/** Configuration for the tax threshold monitoring embedded component. */
244+
@SerializedName("tax_threshold_monitoring")
245+
TaxThresholdMonitoring taxThresholdMonitoring;
246+
243247
private Components(
244248
AccountManagement accountManagement,
245249
AccountOnboarding accountOnboarding,
@@ -265,7 +269,8 @@ private Components(
265269
Recipients recipients,
266270
ReportingChart reportingChart,
267271
TaxRegistrations taxRegistrations,
268-
TaxSettings taxSettings) {
272+
TaxSettings taxSettings,
273+
TaxThresholdMonitoring taxThresholdMonitoring) {
269274
this.accountManagement = accountManagement;
270275
this.accountOnboarding = accountOnboarding;
271276
this.appInstall = appInstall;
@@ -291,6 +296,7 @@ private Components(
291296
this.reportingChart = reportingChart;
292297
this.taxRegistrations = taxRegistrations;
293298
this.taxSettings = taxSettings;
299+
this.taxThresholdMonitoring = taxThresholdMonitoring;
294300
}
295301

296302
public static Builder builder() {
@@ -348,6 +354,8 @@ public static class Builder {
348354

349355
private TaxSettings taxSettings;
350356

357+
private TaxThresholdMonitoring taxThresholdMonitoring;
358+
351359
/** Finalize and obtain parameter instance from this builder. */
352360
public AccountSessionCreateParams.Components build() {
353361
return new AccountSessionCreateParams.Components(
@@ -375,7 +383,8 @@ public AccountSessionCreateParams.Components build() {
375383
this.recipients,
376384
this.reportingChart,
377385
this.taxRegistrations,
378-
this.taxSettings);
386+
this.taxSettings,
387+
this.taxThresholdMonitoring);
379388
}
380389

381390
/** Configuration for the account management embedded component. */
@@ -564,6 +573,13 @@ public Builder setTaxSettings(AccountSessionCreateParams.Components.TaxSettings
564573
this.taxSettings = taxSettings;
565574
return this;
566575
}
576+
577+
/** Configuration for the tax threshold monitoring embedded component. */
578+
public Builder setTaxThresholdMonitoring(
579+
AccountSessionCreateParams.Components.TaxThresholdMonitoring taxThresholdMonitoring) {
580+
this.taxThresholdMonitoring = taxThresholdMonitoring;
581+
return this;
582+
}
567583
}
568584

569585
@Getter
@@ -4979,5 +4995,152 @@ public Builder putAllExtraParam(Map<String, Object> map) {
49794995
}
49804996
}
49814997
}
4998+
4999+
@Getter
5000+
public static class TaxThresholdMonitoring {
5001+
/** <strong>Required.</strong> Whether the embedded component is enabled. */
5002+
@SerializedName("enabled")
5003+
Boolean enabled;
5004+
5005+
/**
5006+
* Map of extra parameters for custom features not available in this client library. The
5007+
* content in this map is not serialized under this field's {@code @SerializedName} value.
5008+
* Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
5009+
* name in this param object. Effectively, this map is flattened to its parent instance.
5010+
*/
5011+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
5012+
Map<String, Object> extraParams;
5013+
5014+
/** The list of features enabled in the embedded component. */
5015+
@SerializedName("features")
5016+
Features features;
5017+
5018+
private TaxThresholdMonitoring(
5019+
Boolean enabled, Map<String, Object> extraParams, Features features) {
5020+
this.enabled = enabled;
5021+
this.extraParams = extraParams;
5022+
this.features = features;
5023+
}
5024+
5025+
public static Builder builder() {
5026+
return new Builder();
5027+
}
5028+
5029+
public static class Builder {
5030+
private Boolean enabled;
5031+
5032+
private Map<String, Object> extraParams;
5033+
5034+
private Features features;
5035+
5036+
/** Finalize and obtain parameter instance from this builder. */
5037+
public AccountSessionCreateParams.Components.TaxThresholdMonitoring build() {
5038+
return new AccountSessionCreateParams.Components.TaxThresholdMonitoring(
5039+
this.enabled, this.extraParams, this.features);
5040+
}
5041+
5042+
/** <strong>Required.</strong> Whether the embedded component is enabled. */
5043+
public Builder setEnabled(Boolean enabled) {
5044+
this.enabled = enabled;
5045+
return this;
5046+
}
5047+
5048+
/**
5049+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
5050+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
5051+
* map. See {@link AccountSessionCreateParams.Components.TaxThresholdMonitoring#extraParams}
5052+
* for the field documentation.
5053+
*/
5054+
public Builder putExtraParam(String key, Object value) {
5055+
if (this.extraParams == null) {
5056+
this.extraParams = new HashMap<>();
5057+
}
5058+
this.extraParams.put(key, value);
5059+
return this;
5060+
}
5061+
5062+
/**
5063+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
5064+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
5065+
* map. See {@link AccountSessionCreateParams.Components.TaxThresholdMonitoring#extraParams}
5066+
* for the field documentation.
5067+
*/
5068+
public Builder putAllExtraParam(Map<String, Object> map) {
5069+
if (this.extraParams == null) {
5070+
this.extraParams = new HashMap<>();
5071+
}
5072+
this.extraParams.putAll(map);
5073+
return this;
5074+
}
5075+
5076+
/** The list of features enabled in the embedded component. */
5077+
public Builder setFeatures(
5078+
AccountSessionCreateParams.Components.TaxThresholdMonitoring.Features features) {
5079+
this.features = features;
5080+
return this;
5081+
}
5082+
}
5083+
5084+
@Getter
5085+
public static class Features {
5086+
/**
5087+
* Map of extra parameters for custom features not available in this client library. The
5088+
* content in this map is not serialized under this field's {@code @SerializedName} value.
5089+
* Instead, each key/value pair is serialized as if the key is a root-level field
5090+
* (serialized) name in this param object. Effectively, this map is flattened to its parent
5091+
* instance.
5092+
*/
5093+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
5094+
Map<String, Object> extraParams;
5095+
5096+
private Features(Map<String, Object> extraParams) {
5097+
this.extraParams = extraParams;
5098+
}
5099+
5100+
public static Builder builder() {
5101+
return new Builder();
5102+
}
5103+
5104+
public static class Builder {
5105+
private Map<String, Object> extraParams;
5106+
5107+
/** Finalize and obtain parameter instance from this builder. */
5108+
public AccountSessionCreateParams.Components.TaxThresholdMonitoring.Features build() {
5109+
return new AccountSessionCreateParams.Components.TaxThresholdMonitoring.Features(
5110+
this.extraParams);
5111+
}
5112+
5113+
/**
5114+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
5115+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
5116+
* map. See {@link
5117+
* AccountSessionCreateParams.Components.TaxThresholdMonitoring.Features#extraParams} for
5118+
* the field documentation.
5119+
*/
5120+
public Builder putExtraParam(String key, Object value) {
5121+
if (this.extraParams == null) {
5122+
this.extraParams = new HashMap<>();
5123+
}
5124+
this.extraParams.put(key, value);
5125+
return this;
5126+
}
5127+
5128+
/**
5129+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
5130+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
5131+
* map. See {@link
5132+
* AccountSessionCreateParams.Components.TaxThresholdMonitoring.Features#extraParams} for
5133+
* the field documentation.
5134+
*/
5135+
public Builder putAllExtraParam(Map<String, Object> map) {
5136+
if (this.extraParams == null) {
5137+
this.extraParams = new HashMap<>();
5138+
}
5139+
this.extraParams.putAll(map);
5140+
return this;
5141+
}
5142+
}
5143+
}
5144+
}
49825145
}
49835146
}

0 commit comments

Comments
 (0)