Skip to content

Commit 9e20a11

Browse files
Update generated code (#1923)
* Update generated code for v1341 * Update generated code for v1347 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 27bf7cf commit 9e20a11

File tree

75 files changed

+1690
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1690
-327
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1319
1+
v1347

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 = "2024-10-28.acacia";
5+
public static final String CURRENT = "2024-11-20.acacia";
66
}

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,16 @@ public static class FutureRequirements extends StripeObject {
17781778
@SerializedName("currently_due")
17791779
List<String> currentlyDue;
17801780

1781-
/** This is typed as a string for consistency with {@code requirements.disabled_reason}. */
1781+
/**
1782+
* This is typed as an enum for consistency with {@code requirements.disabled_reason}.
1783+
*
1784+
* <p>One of {@code action_required.requested_capabilities}, {@code listed}, {@code other},
1785+
* {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification},
1786+
* {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code
1787+
* rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code
1788+
* rejected.terms_of_service}, {@code requirements.past_due}, {@code
1789+
* requirements.pending_verification}, or {@code under_review}.
1790+
*/
17821791
@SerializedName("disabled_reason")
17831792
String disabledReason;
17841793

@@ -1970,13 +1979,16 @@ public static class Requirements extends StripeObject {
19701979
List<String> currentlyDue;
19711980

19721981
/**
1973-
* If the account is disabled, this string describes why. <a
1982+
* If the account is disabled, this enum describes why. <a
19741983
* href="https://stripe.com/docs/connect/handling-api-verification">Learn more about handling
1975-
* verification issues</a>. Can be {@code action_required.requested_capabilities}, {@code
1976-
* requirements.past_due}, {@code requirements.pending_verification}, {@code listed}, {@code
1977-
* platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, {@code
1978-
* rejected.listed}, {@code rejected.other}, {@code rejected.terms_of_service}, {@code
1979-
* under_review}, or {@code other}.
1984+
* verification issues</a>.
1985+
*
1986+
* <p>One of {@code action_required.requested_capabilities}, {@code listed}, {@code other},
1987+
* {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification},
1988+
* {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code
1989+
* rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code
1990+
* rejected.terms_of_service}, {@code requirements.past_due}, {@code
1991+
* requirements.pending_verification}, or {@code under_review}.
19801992
*/
19811993
@SerializedName("disabled_reason")
19821994
String disabledReason;

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,8 @@ public static class Card extends StripeObject {
16751675

16761676
/**
16771677
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1678-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1678+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1679+
* unknown}.
16791680
*/
16801681
@SerializedName("brand")
16811682
String brand;
@@ -1779,7 +1780,8 @@ public static class Card extends StripeObject {
17791780
/**
17801781
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
17811782
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
1782-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1783+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1784+
* unknown}.
17831785
*/
17841786
@SerializedName("network")
17851787
String network;
@@ -2218,7 +2220,8 @@ public static class CardPresent extends StripeObject {
22182220

22192221
/**
22202222
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
2221-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
2223+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
2224+
* unknown}.
22222225
*/
22232226
@SerializedName("brand")
22242227
String brand;
@@ -2330,7 +2333,8 @@ public static class CardPresent extends StripeObject {
23302333
/**
23312334
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
23322335
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
2333-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
2336+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
2337+
* unknown}.
23342338
*/
23352339
@SerializedName("network")
23362340
String network;
@@ -2792,7 +2796,8 @@ public static class InteracPresent extends StripeObject {
27922796
/**
27932797
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
27942798
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
2795-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
2799+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
2800+
* unknown}.
27962801
*/
27972802
@SerializedName("network")
27982803
String network;

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ public static class Boleto extends StripeObject {
610610
public static class Card extends StripeObject {
611611
/**
612612
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
613-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
613+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
614+
* unknown}.
614615
*/
615616
@SerializedName("brand")
616617
String brand;
@@ -807,7 +808,8 @@ public static class CardPresent extends StripeObject {
807808

808809
/**
809810
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
810-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
811+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
812+
* {@code unknown}.
811813
*/
812814
@SerializedName("brand")
813815
String brand;
@@ -920,8 +922,8 @@ public static class CardPresent extends StripeObject {
920922
/**
921923
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
922924
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
923-
* interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
924-
* unknown}.
925+
* interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code
926+
* visa}, or {@code unknown}.
925927
*/
926928
@SerializedName("network")
927929
String network;
@@ -1277,7 +1279,8 @@ public static class VisaCheckout extends StripeObject {
12771279
public static class CardPresent extends StripeObject {
12781280
/**
12791281
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1280-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1282+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1283+
* unknown}.
12811284
*/
12821285
@SerializedName("brand")
12831286
String brand;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,8 @@ public static class AmazonPay extends StripeObject {
11131113
public static class Card extends StripeObject {
11141114
/**
11151115
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1116-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1116+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1117+
* unknown}.
11171118
*/
11181119
@SerializedName("brand")
11191120
String brand;

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ public class File extends ApiResource implements HasId {
6767
*
6868
* <p>One of {@code account_requirement}, {@code additional_verification}, {@code business_icon},
6969
* {@code business_logo}, {@code customer_signature}, {@code dispute_evidence}, {@code
70-
* document_provider_identity_document}, {@code finance_report_run}, {@code identity_document},
71-
* {@code identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code
72-
* pci_document}, {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload},
73-
* or {@code terminal_reader_splashscreen}.
70+
* document_provider_identity_document}, {@code finance_report_run}, {@code
71+
* financial_account_statement}, {@code identity_document}, {@code
72+
* identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document},
73+
* {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code
74+
* terminal_reader_splashscreen}.
7475
*/
7576
@SerializedName("purpose")
7677
String purpose;

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,24 @@ public static class FinancialAddress extends StripeObject {
124124
@Setter
125125
@EqualsAndHashCode(callSuper = false)
126126
public static class Aba extends StripeObject {
127+
@SerializedName("account_holder_address")
128+
Address accountHolderAddress;
129+
130+
/** The account holder name. */
131+
@SerializedName("account_holder_name")
132+
String accountHolderName;
133+
127134
/** The ABA account number. */
128135
@SerializedName("account_number")
129136
String accountNumber;
130137

138+
/** The account type. */
139+
@SerializedName("account_type")
140+
String accountType;
141+
142+
@SerializedName("bank_address")
143+
Address bankAddress;
144+
131145
/** The bank name. */
132146
@SerializedName("bank_name")
133147
String bankName;
@@ -203,10 +217,24 @@ public static class Spei extends StripeObject {
203217
@Setter
204218
@EqualsAndHashCode(callSuper = false)
205219
public static class Swift extends StripeObject {
220+
@SerializedName("account_holder_address")
221+
Address accountHolderAddress;
222+
223+
/** The account holder name. */
224+
@SerializedName("account_holder_name")
225+
String accountHolderName;
226+
206227
/** The account number. */
207228
@SerializedName("account_number")
208229
String accountNumber;
209230

231+
/** The account type. */
232+
@SerializedName("account_type")
233+
String accountType;
234+
235+
@SerializedName("bank_address")
236+
Address bankAddress;
237+
210238
/** The bank name. */
211239
@SerializedName("bank_name")
212240
String bankName;

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,14 +2267,15 @@ public static class CustomerTaxId extends StripeObject {
22672267
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
22682268
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
22692269
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat},
2270-
* {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn},
2271-
* {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code
2272-
* ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code
2273-
* cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat},
2274-
* {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code
2275-
* ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code kz_bin},
2276-
* {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code
2277-
* uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or {@code unknown}.
2270+
* {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code li_vat},
2271+
* {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code
2272+
* ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code
2273+
* ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat},
2274+
* {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code
2275+
* si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat},
2276+
* {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code
2277+
* tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or
2278+
* {@code unknown}.
22782279
*/
22792280
@SerializedName("type")
22802281
String type;

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,11 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P
251251
@Setter(lombok.AccessLevel.NONE)
252252
ExpandableField<PaymentMethod> paymentMethod;
253253

254-
/** Information about the payment method configuration used for this PaymentIntent. */
254+
/**
255+
* Information about the <a
256+
* href="https://stripe.com/docs/api/payment_method_configurations">payment method
257+
* configuration</a> used for this PaymentIntent.
258+
*/
255259
@SerializedName("payment_method_configuration_details")
256260
PaymentMethodConfigurationDetails paymentMethodConfigurationDetails;
257261

@@ -1822,10 +1826,24 @@ public static class FinancialAddress extends StripeObject {
18221826
@Setter
18231827
@EqualsAndHashCode(callSuper = false)
18241828
public static class Aba extends StripeObject {
1829+
@SerializedName("account_holder_address")
1830+
Address accountHolderAddress;
1831+
1832+
/** The account holder name. */
1833+
@SerializedName("account_holder_name")
1834+
String accountHolderName;
1835+
18251836
/** The ABA account number. */
18261837
@SerializedName("account_number")
18271838
String accountNumber;
18281839

1840+
/** The account type. */
1841+
@SerializedName("account_type")
1842+
String accountType;
1843+
1844+
@SerializedName("bank_address")
1845+
Address bankAddress;
1846+
18291847
/** The bank name. */
18301848
@SerializedName("bank_name")
18311849
String bankName;
@@ -1901,10 +1919,24 @@ public static class Spei extends StripeObject {
19011919
@Setter
19021920
@EqualsAndHashCode(callSuper = false)
19031921
public static class Swift extends StripeObject {
1922+
@SerializedName("account_holder_address")
1923+
Address accountHolderAddress;
1924+
1925+
/** The account holder name. */
1926+
@SerializedName("account_holder_name")
1927+
String accountHolderName;
1928+
19041929
/** The account number. */
19051930
@SerializedName("account_number")
19061931
String accountNumber;
19071932

1933+
/** The account type. */
1934+
@SerializedName("account_type")
1935+
String accountType;
1936+
1937+
@SerializedName("bank_address")
1938+
Address bankAddress;
1939+
19081940
/** The bank name. */
19091941
@SerializedName("bank_name")
19101942
String bankName;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public class PaymentLink extends ApiResource implements HasId, MetadataStore<Pay
202202
* Indicates the type of transaction being performed which customizes relevant text on the page,
203203
* such as the submit button.
204204
*
205-
* <p>One of {@code auto}, {@code book}, {@code donate}, or {@code pay}.
205+
* <p>One of {@code auto}, {@code book}, {@code donate}, {@code pay}, or {@code subscribe}.
206206
*/
207207
@SerializedName("submit_type")
208208
String submitType;

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ public static class Boleto extends StripeObject {
843843
public static class Card extends StripeObject {
844844
/**
845845
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
846-
* jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
846+
* jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
847847
*/
848848
@SerializedName("brand")
849849
String brand;
@@ -1039,7 +1039,8 @@ public static class CardPresent extends StripeObject {
10391039

10401040
/**
10411041
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1042-
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1042+
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
1043+
* {@code unknown}.
10431044
*/
10441045
@SerializedName("brand")
10451046
String brand;
@@ -1151,8 +1152,8 @@ public static class CardPresent extends StripeObject {
11511152
/**
11521153
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
11531154
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
1154-
* interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1155-
* unknown}.
1155+
* interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code
1156+
* visa}, or {@code unknown}.
11561157
*/
11571158
@SerializedName("network")
11581159
String network;
@@ -1503,7 +1504,7 @@ public static class VisaCheckout extends StripeObject {
15031504
public static class CardPresent extends StripeObject {
15041505
/**
15051506
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
1506-
* jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1507+
* jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
15071508
*/
15081509
@SerializedName("brand")
15091510
String brand;

0 commit comments

Comments
 (0)