Skip to content

Commit e6b80e5

Browse files
Update generated code for v1374
1 parent e9daf5a commit e6b80e5

File tree

4 files changed

+199
-1
lines changed

4 files changed

+199
-1
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1373
1+
v1374

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,14 @@ public static class Capabilities extends StripeObject {
914914
@SerializedName("au_becs_debit_payments")
915915
String auBecsDebitPayments;
916916

917+
/**
918+
* The status of the automatic_indirect_tax capability of the account.
919+
*
920+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
921+
*/
922+
@SerializedName("automatic_indirect_tax")
923+
String automaticIndirectTax;
924+
917925
/**
918926
* The status of the Bacs Direct Debits payments capability of the account, or whether the
919927
* account can directly process Bacs Direct Debits charges.

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

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,10 @@ public static class Capabilities {
12491249
@SerializedName("au_becs_debit_payments")
12501250
AuBecsDebitPayments auBecsDebitPayments;
12511251

1252+
/** The automatic_indirect_tax capability. */
1253+
@SerializedName("automatic_indirect_tax")
1254+
AutomaticIndirectTax automaticIndirectTax;
1255+
12521256
/** The bacs_debit_payments capability. */
12531257
@SerializedName("bacs_debit_payments")
12541258
BacsDebitPayments bacsDebitPayments;
@@ -1501,6 +1505,7 @@ private Capabilities(
15011505
AlmaPayments almaPayments,
15021506
AmazonPayPayments amazonPayPayments,
15031507
AuBecsDebitPayments auBecsDebitPayments,
1508+
AutomaticIndirectTax automaticIndirectTax,
15041509
BacsDebitPayments bacsDebitPayments,
15051510
BancontactPayments bancontactPayments,
15061511
BankTransferPayments bankTransferPayments,
@@ -1567,6 +1572,7 @@ private Capabilities(
15671572
this.almaPayments = almaPayments;
15681573
this.amazonPayPayments = amazonPayPayments;
15691574
this.auBecsDebitPayments = auBecsDebitPayments;
1575+
this.automaticIndirectTax = automaticIndirectTax;
15701576
this.bacsDebitPayments = bacsDebitPayments;
15711577
this.bancontactPayments = bancontactPayments;
15721578
this.bankTransferPayments = bankTransferPayments;
@@ -1646,6 +1652,8 @@ public static class Builder {
16461652

16471653
private AuBecsDebitPayments auBecsDebitPayments;
16481654

1655+
private AutomaticIndirectTax automaticIndirectTax;
1656+
16491657
private BacsDebitPayments bacsDebitPayments;
16501658

16511659
private BancontactPayments bancontactPayments;
@@ -1775,6 +1783,7 @@ public AccountCreateParams.Capabilities build() {
17751783
this.almaPayments,
17761784
this.amazonPayPayments,
17771785
this.auBecsDebitPayments,
1786+
this.automaticIndirectTax,
17781787
this.bacsDebitPayments,
17791788
this.bancontactPayments,
17801789
this.bankTransferPayments,
@@ -1878,6 +1887,13 @@ public Builder setAuBecsDebitPayments(
18781887
return this;
18791888
}
18801889

1890+
/** The automatic_indirect_tax capability. */
1891+
public Builder setAutomaticIndirectTax(
1892+
AccountCreateParams.Capabilities.AutomaticIndirectTax automaticIndirectTax) {
1893+
this.automaticIndirectTax = automaticIndirectTax;
1894+
return this;
1895+
}
1896+
18811897
/** The bacs_debit_payments capability. */
18821898
public Builder setBacsDebitPayments(
18831899
AccountCreateParams.Capabilities.BacsDebitPayments bacsDebitPayments) {
@@ -2779,6 +2795,85 @@ public Builder setRequested(Boolean requested) {
27792795
}
27802796
}
27812797

2798+
@Getter
2799+
public static class AutomaticIndirectTax {
2800+
/**
2801+
* Map of extra parameters for custom features not available in this client library. The
2802+
* content in this map is not serialized under this field's {@code @SerializedName} value.
2803+
* Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2804+
* name in this param object. Effectively, this map is flattened to its parent instance.
2805+
*/
2806+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2807+
Map<String, Object> extraParams;
2808+
2809+
/**
2810+
* Passing true requests the capability for the account, if it is not already requested. A
2811+
* requested capability may not immediately become active. Any requirements to activate the
2812+
* capability are returned in the {@code requirements} arrays.
2813+
*/
2814+
@SerializedName("requested")
2815+
Boolean requested;
2816+
2817+
private AutomaticIndirectTax(Map<String, Object> extraParams, Boolean requested) {
2818+
this.extraParams = extraParams;
2819+
this.requested = requested;
2820+
}
2821+
2822+
public static Builder builder() {
2823+
return new Builder();
2824+
}
2825+
2826+
public static class Builder {
2827+
private Map<String, Object> extraParams;
2828+
2829+
private Boolean requested;
2830+
2831+
/** Finalize and obtain parameter instance from this builder. */
2832+
public AccountCreateParams.Capabilities.AutomaticIndirectTax build() {
2833+
return new AccountCreateParams.Capabilities.AutomaticIndirectTax(
2834+
this.extraParams, this.requested);
2835+
}
2836+
2837+
/**
2838+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
2839+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2840+
* map. See {@link AccountCreateParams.Capabilities.AutomaticIndirectTax#extraParams} for
2841+
* the field documentation.
2842+
*/
2843+
public Builder putExtraParam(String key, Object value) {
2844+
if (this.extraParams == null) {
2845+
this.extraParams = new HashMap<>();
2846+
}
2847+
this.extraParams.put(key, value);
2848+
return this;
2849+
}
2850+
2851+
/**
2852+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2853+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2854+
* map. See {@link AccountCreateParams.Capabilities.AutomaticIndirectTax#extraParams} for
2855+
* the field documentation.
2856+
*/
2857+
public Builder putAllExtraParam(Map<String, Object> map) {
2858+
if (this.extraParams == null) {
2859+
this.extraParams = new HashMap<>();
2860+
}
2861+
this.extraParams.putAll(map);
2862+
return this;
2863+
}
2864+
2865+
/**
2866+
* Passing true requests the capability for the account, if it is not already requested. A
2867+
* requested capability may not immediately become active. Any requirements to activate the
2868+
* capability are returned in the {@code requirements} arrays.
2869+
*/
2870+
public Builder setRequested(Boolean requested) {
2871+
this.requested = requested;
2872+
return this;
2873+
}
2874+
}
2875+
}
2876+
27822877
@Getter
27832878
public static class BacsDebitPayments {
27842879
/**

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

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,10 @@ public static class Capabilities {
13471347
@SerializedName("au_becs_debit_payments")
13481348
AuBecsDebitPayments auBecsDebitPayments;
13491349

1350+
/** The automatic_indirect_tax capability. */
1351+
@SerializedName("automatic_indirect_tax")
1352+
AutomaticIndirectTax automaticIndirectTax;
1353+
13501354
/** The bacs_debit_payments capability. */
13511355
@SerializedName("bacs_debit_payments")
13521356
BacsDebitPayments bacsDebitPayments;
@@ -1599,6 +1603,7 @@ private Capabilities(
15991603
AlmaPayments almaPayments,
16001604
AmazonPayPayments amazonPayPayments,
16011605
AuBecsDebitPayments auBecsDebitPayments,
1606+
AutomaticIndirectTax automaticIndirectTax,
16021607
BacsDebitPayments bacsDebitPayments,
16031608
BancontactPayments bancontactPayments,
16041609
BankTransferPayments bankTransferPayments,
@@ -1665,6 +1670,7 @@ private Capabilities(
16651670
this.almaPayments = almaPayments;
16661671
this.amazonPayPayments = amazonPayPayments;
16671672
this.auBecsDebitPayments = auBecsDebitPayments;
1673+
this.automaticIndirectTax = automaticIndirectTax;
16681674
this.bacsDebitPayments = bacsDebitPayments;
16691675
this.bancontactPayments = bancontactPayments;
16701676
this.bankTransferPayments = bankTransferPayments;
@@ -1744,6 +1750,8 @@ public static class Builder {
17441750

17451751
private AuBecsDebitPayments auBecsDebitPayments;
17461752

1753+
private AutomaticIndirectTax automaticIndirectTax;
1754+
17471755
private BacsDebitPayments bacsDebitPayments;
17481756

17491757
private BancontactPayments bancontactPayments;
@@ -1873,6 +1881,7 @@ public AccountUpdateParams.Capabilities build() {
18731881
this.almaPayments,
18741882
this.amazonPayPayments,
18751883
this.auBecsDebitPayments,
1884+
this.automaticIndirectTax,
18761885
this.bacsDebitPayments,
18771886
this.bancontactPayments,
18781887
this.bankTransferPayments,
@@ -1976,6 +1985,13 @@ public Builder setAuBecsDebitPayments(
19761985
return this;
19771986
}
19781987

1988+
/** The automatic_indirect_tax capability. */
1989+
public Builder setAutomaticIndirectTax(
1990+
AccountUpdateParams.Capabilities.AutomaticIndirectTax automaticIndirectTax) {
1991+
this.automaticIndirectTax = automaticIndirectTax;
1992+
return this;
1993+
}
1994+
19791995
/** The bacs_debit_payments capability. */
19801996
public Builder setBacsDebitPayments(
19811997
AccountUpdateParams.Capabilities.BacsDebitPayments bacsDebitPayments) {
@@ -2877,6 +2893,85 @@ public Builder setRequested(Boolean requested) {
28772893
}
28782894
}
28792895

2896+
@Getter
2897+
public static class AutomaticIndirectTax {
2898+
/**
2899+
* Map of extra parameters for custom features not available in this client library. The
2900+
* content in this map is not serialized under this field's {@code @SerializedName} value.
2901+
* Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2902+
* name in this param object. Effectively, this map is flattened to its parent instance.
2903+
*/
2904+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2905+
Map<String, Object> extraParams;
2906+
2907+
/**
2908+
* Passing true requests the capability for the account, if it is not already requested. A
2909+
* requested capability may not immediately become active. Any requirements to activate the
2910+
* capability are returned in the {@code requirements} arrays.
2911+
*/
2912+
@SerializedName("requested")
2913+
Boolean requested;
2914+
2915+
private AutomaticIndirectTax(Map<String, Object> extraParams, Boolean requested) {
2916+
this.extraParams = extraParams;
2917+
this.requested = requested;
2918+
}
2919+
2920+
public static Builder builder() {
2921+
return new Builder();
2922+
}
2923+
2924+
public static class Builder {
2925+
private Map<String, Object> extraParams;
2926+
2927+
private Boolean requested;
2928+
2929+
/** Finalize and obtain parameter instance from this builder. */
2930+
public AccountUpdateParams.Capabilities.AutomaticIndirectTax build() {
2931+
return new AccountUpdateParams.Capabilities.AutomaticIndirectTax(
2932+
this.extraParams, this.requested);
2933+
}
2934+
2935+
/**
2936+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
2937+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2938+
* map. See {@link AccountUpdateParams.Capabilities.AutomaticIndirectTax#extraParams} for
2939+
* the field documentation.
2940+
*/
2941+
public Builder putExtraParam(String key, Object value) {
2942+
if (this.extraParams == null) {
2943+
this.extraParams = new HashMap<>();
2944+
}
2945+
this.extraParams.put(key, value);
2946+
return this;
2947+
}
2948+
2949+
/**
2950+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2951+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2952+
* map. See {@link AccountUpdateParams.Capabilities.AutomaticIndirectTax#extraParams} for
2953+
* the field documentation.
2954+
*/
2955+
public Builder putAllExtraParam(Map<String, Object> map) {
2956+
if (this.extraParams == null) {
2957+
this.extraParams = new HashMap<>();
2958+
}
2959+
this.extraParams.putAll(map);
2960+
return this;
2961+
}
2962+
2963+
/**
2964+
* Passing true requests the capability for the account, if it is not already requested. A
2965+
* requested capability may not immediately become active. Any requirements to activate the
2966+
* capability are returned in the {@code requirements} arrays.
2967+
*/
2968+
public Builder setRequested(Boolean requested) {
2969+
this.requested = requested;
2970+
return this;
2971+
}
2972+
}
2973+
}
2974+
28802975
@Getter
28812976
public static class BacsDebitPayments {
28822977
/**

0 commit comments

Comments
 (0)