Skip to content

Commit 508af8d

Browse files
Support for APIs in the new API version 2025-03-31.basil (#1950)
* Update generated code for v1583 * Update generated code for v1583 * Update generated code for v1618 * Update generated code for v1620 * Update generated code for v1635 * Update generated code for v1636 * Update generated code for v1638 * Update generated code for v1640 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: helenye-stripe <[email protected]>
1 parent 90fb1f5 commit 508af8d

File tree

140 files changed

+13443
-32732
lines changed

Some content is hidden

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

140 files changed

+13443
-32732
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1505
1+
v1640

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 = "2025-02-24.acacia";
5+
public static final String CURRENT = "2025-03-31.basil";
66
}

src/main/java/com/stripe/StripeClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ public com.stripe.service.InvoiceItemService invoiceItems() {
237237
return new com.stripe.service.InvoiceItemService(this.getResponseGetter());
238238
}
239239

240+
public com.stripe.service.InvoicePaymentService invoicePayments() {
241+
return new com.stripe.service.InvoicePaymentService(this.getResponseGetter());
242+
}
243+
240244
public com.stripe.service.InvoiceRenderingTemplateService invoiceRenderingTemplates() {
241245
return new com.stripe.service.InvoiceRenderingTemplateService(this.getResponseGetter());
242246
}

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

Lines changed: 98 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ public class Account extends ApiResource implements MetadataStore<Account>, Paym
4949
BusinessProfile businessProfile;
5050

5151
/**
52-
* The business type. After you create an <a href="https://stripe.com/api/account_links">Account
53-
* Link</a> or <a href="https://stripe.com/api/account_sessions">Account Session</a>, this
54-
* property is only returned for accounts where <a
55-
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
56-
* is {@code application}, which includes Custom accounts.
52+
* The business type.
5753
*
5854
* <p>One of {@code company}, {@code government_entity}, {@code individual}, or {@code
5955
* non_profit}.
@@ -132,7 +128,7 @@ public class Account extends ApiResource implements MetadataStore<Account>, Paym
132128
/**
133129
* This is an object representing a person associated with a Stripe account.
134130
*
135-
* <p>A platform cannot access a person for an account where <a
131+
* <p>A platform can only access a subset of data in a person for an account where <a
136132
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">account.controller.requirement_collection</a>
137133
* is {@code stripe}, which includes Standard and Express accounts, after creating an Account Link
138134
* or Account Session to start Connect onboarding.
@@ -938,6 +934,15 @@ public static class Capabilities extends StripeObject {
938934
@SerializedName("bank_transfer_payments")
939935
String bankTransferPayments;
940936

937+
/**
938+
* The status of the Billie capability of the account, or whether the account can directly
939+
* process Billie payments.
940+
*
941+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
942+
*/
943+
@SerializedName("billie_payments")
944+
String billiePayments;
945+
941946
/**
942947
* The status of the blik payments capability of the account, or whether the account can
943948
* directly process blik charges.
@@ -1162,6 +1167,15 @@ public static class Capabilities extends StripeObject {
11621167
@SerializedName("naver_pay_payments")
11631168
String naverPayPayments;
11641169

1170+
/**
1171+
* The status of the New Zealand BECS Direct Debit payments capability of the account, or
1172+
* whether the account can directly process New Zealand BECS Direct Debit charges.
1173+
*
1174+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
1175+
*/
1176+
@SerializedName("nz_bank_account_becs_debit_payments")
1177+
String nzBankAccountBecsDebitPayments;
1178+
11651179
/**
11661180
* The status of the OXXO payments capability of the account, or whether the account can
11671181
* directly process OXXO charges.
@@ -1234,6 +1248,15 @@ public static class Capabilities extends StripeObject {
12341248
@SerializedName("samsung_pay_payments")
12351249
String samsungPayPayments;
12361250

1251+
/**
1252+
* The status of the Satispay capability of the account, or whether the account can directly
1253+
* process Satispay payments.
1254+
*
1255+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
1256+
*/
1257+
@SerializedName("satispay_payments")
1258+
String satispayPayments;
1259+
12371260
/**
12381261
* The status of the SEPA customer_balance payments (EUR currency) capability of the account, or
12391262
* whether the account can directly process SEPA customer_balance charges.
@@ -1396,15 +1419,29 @@ public static class Company extends StripeObject {
13961419
@SerializedName("export_purpose_code")
13971420
String exportPurposeCode;
13981421

1399-
/** The company's legal name. */
1422+
/**
1423+
* The company's legal name. Also available for accounts where <a
1424+
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
1425+
* is {@code stripe}.
1426+
*/
14001427
@SerializedName("name")
14011428
String name;
14021429

1403-
/** The Kana variation of the company's legal name (Japan only). */
1430+
/**
1431+
* The Kana variation of the company's legal name (Japan only). Also available for accounts
1432+
* where <a
1433+
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
1434+
* is {@code stripe}.
1435+
*/
14041436
@SerializedName("name_kana")
14051437
String nameKana;
14061438

1407-
/** The Kanji variation of the company's legal name (Japan only). */
1439+
/**
1440+
* The Kanji variation of the company's legal name (Japan only). Also available for accounts
1441+
* where <a
1442+
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
1443+
* is {@code stripe}.
1444+
*/
14081445
@SerializedName("name_kanji")
14091446
String nameKanji;
14101447

@@ -1427,6 +1464,17 @@ public static class Company extends StripeObject {
14271464
@SerializedName("ownership_declaration")
14281465
OwnershipDeclaration ownershipDeclaration;
14291466

1467+
/**
1468+
* This value is used to determine if a business is exempt from providing ultimate beneficial
1469+
* owners. See <a
1470+
* href="https://support.stripe.com/questions/exemption-from-providing-ownership-details">this
1471+
* support article</a> and <a
1472+
* href="https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api">changelog</a>
1473+
* for more details.
1474+
*
1475+
* <p>One of {@code qualified_entity_exceeds_ownership_threshold}, or {@code
1476+
* qualifies_as_financial_institution}.
1477+
*/
14301478
@SerializedName("ownership_exemption_reason")
14311479
String ownershipExemptionReason;
14321480

@@ -1435,7 +1483,10 @@ public static class Company extends StripeObject {
14351483
String phone;
14361484

14371485
/**
1438-
* The category identifying the legal structure of the company or legal entity. See <a
1486+
* The category identifying the legal structure of the company or legal entity. Also available
1487+
* for accounts where <a
1488+
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
1489+
* is {@code stripe}. See <a
14391490
* href="https://stripe.com/docs/connect/identity-verification#business-structure">Business
14401491
* structure</a> for more details.
14411492
*
@@ -1898,16 +1949,16 @@ public static class Errors extends StripeObject {
18981949
/**
18991950
* The code for the type of error.
19001951
*
1901-
* <p>One of {@code invalid_address_city_state_postal_code}, {@code
1902-
* invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code
1903-
* invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code
1904-
* invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
1952+
* <p>One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
1953+
* {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
1954+
* {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
1955+
* {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
19051956
* invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
19061957
* invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
1907-
* invalid_representative_country}, {@code invalid_statement_descriptor_business_mismatch},
1908-
* {@code invalid_statement_descriptor_denylisted}, {@code
1909-
* invalid_statement_descriptor_length}, {@code
1910-
* invalid_statement_descriptor_prefix_denylisted}, {@code
1958+
* invalid_representative_country}, {@code invalid_signator}, {@code
1959+
* invalid_statement_descriptor_business_mismatch}, {@code
1960+
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
1961+
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
19111962
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
19121963
* invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code
19131964
* invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code
@@ -1942,14 +1993,15 @@ public static class Errors extends StripeObject {
19421993
* {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
19431994
* {@code verification_document_too_large}, {@code verification_document_type_not_supported},
19441995
* {@code verification_extraneous_directors}, {@code verification_failed_address_match},
1945-
* {@code verification_failed_business_iec_number}, {@code
1946-
* verification_failed_document_match}, {@code verification_failed_id_number_match}, {@code
1947-
* verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
1948-
* verification_failed_name_match}, {@code verification_failed_other}, {@code
1949-
* verification_failed_representative_authority}, {@code
1996+
* {@code verification_failed_authorizer_authority}, {@code
1997+
* verification_failed_business_iec_number}, {@code verification_failed_document_match},
1998+
* {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
1999+
* {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
2000+
* verification_failed_other}, {@code verification_failed_representative_authority}, {@code
19502001
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
19512002
* verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code
19522003
* verification_missing_executives}, {@code verification_missing_owners}, {@code
2004+
* verification_rejected_ownership_exemption_reason}, {@code
19532005
* verification_requires_additional_memorandum_of_associations}, {@code
19542006
* verification_requires_additional_proof_of_registration}, or {@code
19552007
* verification_supportability}.
@@ -2098,16 +2150,16 @@ public static class Errors extends StripeObject {
20982150
/**
20992151
* The code for the type of error.
21002152
*
2101-
* <p>One of {@code invalid_address_city_state_postal_code}, {@code
2102-
* invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code
2103-
* invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code
2104-
* invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
2153+
* <p>One of {@code information_missing}, {@code invalid_address_city_state_postal_code},
2154+
* {@code invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox},
2155+
* {@code invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted},
2156+
* {@code invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code
21052157
* invalid_dob_age_under_18}, {@code invalid_dob_age_under_minimum}, {@code
21062158
* invalid_product_description_length}, {@code invalid_product_description_url_match}, {@code
2107-
* invalid_representative_country}, {@code invalid_statement_descriptor_business_mismatch},
2108-
* {@code invalid_statement_descriptor_denylisted}, {@code
2109-
* invalid_statement_descriptor_length}, {@code
2110-
* invalid_statement_descriptor_prefix_denylisted}, {@code
2159+
* invalid_representative_country}, {@code invalid_signator}, {@code
2160+
* invalid_statement_descriptor_business_mismatch}, {@code
2161+
* invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length},
2162+
* {@code invalid_statement_descriptor_prefix_denylisted}, {@code
21112163
* invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code
21122164
* invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code
21132165
* invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code
@@ -2142,14 +2194,15 @@ public static class Errors extends StripeObject {
21422194
* {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
21432195
* {@code verification_document_too_large}, {@code verification_document_type_not_supported},
21442196
* {@code verification_extraneous_directors}, {@code verification_failed_address_match},
2145-
* {@code verification_failed_business_iec_number}, {@code
2146-
* verification_failed_document_match}, {@code verification_failed_id_number_match}, {@code
2147-
* verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
2148-
* verification_failed_name_match}, {@code verification_failed_other}, {@code
2149-
* verification_failed_representative_authority}, {@code
2197+
* {@code verification_failed_authorizer_authority}, {@code
2198+
* verification_failed_business_iec_number}, {@code verification_failed_document_match},
2199+
* {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
2200+
* {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
2201+
* verification_failed_other}, {@code verification_failed_representative_authority}, {@code
21502202
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
21512203
* verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code
21522204
* verification_missing_executives}, {@code verification_missing_owners}, {@code
2205+
* verification_rejected_ownership_exemption_reason}, {@code
21532206
* verification_requires_additional_memorandum_of_associations}, {@code
21542207
* verification_requires_additional_proof_of_registration}, or {@code
21552208
* verification_supportability}.
@@ -2454,6 +2507,15 @@ public static class Invoices extends StripeObject {
24542507
@SerializedName("default_account_tax_ids")
24552508
List<ExpandableField<TaxId>> defaultAccountTaxIds;
24562509

2510+
/**
2511+
* Whether payment methods should be saved when a payment is completed for a one-time invoices
2512+
* on a hosted invoice page.
2513+
*
2514+
* <p>One of {@code always}, {@code never}, or {@code offer}.
2515+
*/
2516+
@SerializedName("hosted_payment_method_save")
2517+
String hostedPaymentMethodSave;
2518+
24572519
/** Get IDs of expandable {@code defaultAccountTaxIds} object list. */
24582520
public List<String> getDefaultAccountTaxIds() {
24592521
return (this.defaultAccountTaxIds != null)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public static class FeeSource extends StripeObject {
319319
String payout;
320320

321321
/**
322-
* Type of object that created the application fee, either {@code charge} or {@code payout}.
322+
* Type of object that created the application fee.
323323
*
324324
* <p>One of {@code charge}, or {@code payout}.
325325
*/

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ public class BalanceTransaction extends ApiResource implements HasId {
130130
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
131131
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
132132
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
133-
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
134-
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. Learn
135-
* more about <a href="https://stripe.com/docs/reports/balance-transaction-types">balance
136-
* transaction types and what they represent</a>. To classify transactions for accounting
137-
* purposes, consider {@code reporting_category} instead.
133+
* {@code stripe_fx_fee}, {@code stripe_balance_payment_debit}, {@code
134+
* stripe_balance_payment_debit_reversal}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
135+
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
136+
* transfer_refund}. Learn more about <a
137+
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
138+
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
139+
* reporting_category} instead.
138140
*
139141
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
140142
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
@@ -146,9 +148,11 @@ public class BalanceTransaction extends ApiResource implements HasId {
146148
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
147149
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
148150
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
149-
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
150-
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
151-
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
151+
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
152+
* stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code
153+
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
154+
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
155+
* transfer_refund}.
152156
*/
153157
@SerializedName("type")
154158
String type;

0 commit comments

Comments
 (0)