Skip to content

Commit 3634b0f

Browse files
stripe-openapi[bot]jar-striperamya-stripe
authored
Support for APIs in the new API version 2025-03-31.basil (#3056)
* Update generated code for v1635 * Update generated code for v1636 * Update generated code for v1638 * Update generated code for v1640 * removes subscription_items from options (#3081) --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: jar-stripe <jar@stripe.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
1 parent 17c8ff9 commit 3634b0f

File tree

303 files changed

+4907
-3398
lines changed

Some content is hidden

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

303 files changed

+4907
-3398
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/Stripe.net/Constants/ApiVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ namespace Stripe
33
{
44
internal class ApiVersion
55
{
6-
public const string Current = "2025-02-24.acacia";
6+
public const string Current = "2025-03-31.basil";
77
}
88
}

src/Stripe.net/Constants/EventTypes.cs

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,41 @@ public static class EventTypes
8181
/// </summary>
8282
public const string BillingAlertTriggered = "billing.alert.triggered";
8383

84+
/// <summary>
85+
/// Occurs when a credit balance transaction is created.
86+
/// </summary>
87+
public const string BillingCreditBalanceTransactionCreated = "billing.credit_balance_transaction.created";
88+
89+
/// <summary>
90+
/// Occurs when a credit grant is created.
91+
/// </summary>
92+
public const string BillingCreditGrantCreated = "billing.credit_grant.created";
93+
94+
/// <summary>
95+
/// Occurs when a credit grant is updated.
96+
/// </summary>
97+
public const string BillingCreditGrantUpdated = "billing.credit_grant.updated";
98+
99+
/// <summary>
100+
/// Occurs when a meter is created.
101+
/// </summary>
102+
public const string BillingMeterCreated = "billing.meter.created";
103+
104+
/// <summary>
105+
/// Occurs when a meter is deactivated.
106+
/// </summary>
107+
public const string BillingMeterDeactivated = "billing.meter.deactivated";
108+
109+
/// <summary>
110+
/// Occurs when a meter is reactivated.
111+
/// </summary>
112+
public const string BillingMeterReactivated = "billing.meter.reactivated";
113+
114+
/// <summary>
115+
/// Occurs when a meter is updated.
116+
/// </summary>
117+
public const string BillingMeterUpdated = "billing.meter.updated";
118+
84119
/// <summary>
85120
/// Occurs whenever a capability has new requirements or a new status.
86121
/// </summary>
@@ -490,6 +525,11 @@ public static class EventTypes
490525
/// </summary>
491526
public const string InvoiceOverdue = "invoice.overdue";
492527

528+
/// <summary>
529+
/// Occurs when an invoice transitions to paid with a non-zero amount_overpaid.
530+
/// </summary>
531+
public const string InvoiceOverpaid = "invoice.overpaid";
532+
493533
/// <summary>
494534
/// Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid
495535
/// out-of-band.
@@ -502,8 +542,8 @@ public static class EventTypes
502542
public const string InvoicePaymentActionRequired = "invoice.payment_action_required";
503543

504544
/// <summary>
505-
/// Occurs whenever an invoice payment attempt fails, due either to a declined payment or to
506-
/// the lack of a stored payment method.
545+
/// Occurs whenever an invoice payment attempt fails, due to either a declined payment,
546+
/// including soft decline, or to the lack of a stored payment method.
507547
/// </summary>
508548
public const string InvoicePaymentFailed = "invoice.payment_failed";
509549

@@ -918,7 +958,8 @@ public static class EventTypes
918958

919959
/// <summary>
920960
/// Occurs whenever a review is closed. The review's <c>reason</c> field indicates why:
921-
/// <c>approved</c>, <c>disputed</c>, <c>refunded</c>, or <c>refunded_as_fraud</c>.
961+
/// <c>approved</c>, <c>disputed</c>, <c>refunded</c>, <c>refunded_as_fraud</c>, or
962+
/// <c>canceled</c>.
922963
/// </summary>
923964
public const string ReviewClosed = "review.closed";
924965

src/Stripe.net/Entities/Accounts/Account.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
5757
public AccountBusinessProfile BusinessProfile { get; set; }
5858

5959
/// <summary>
60-
/// The business type. After you create an <a
61-
/// href="https://stripe.com/api/account_links">Account Link</a> or <a
62-
/// href="https://stripe.com/api/account_sessions">Account Session</a>, this property is
63-
/// only returned for accounts where <a
64-
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
65-
/// is <c>application</c>, which includes Custom accounts.
60+
/// The business type.
6661
/// One of: <c>company</c>, <c>government_entity</c>, <c>individual</c>, or
6762
/// <c>non_profit</c>.
6863
/// </summary>
@@ -192,7 +187,7 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
192187
/// <summary>
193188
/// This is an object representing a person associated with a Stripe account.
194189
///
195-
/// A platform cannot access a person for an account where <a
190+
/// A platform can only access a subset of data in a person for an account where <a
196191
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">account.controller.requirement_collection</a>
197192
/// is <c>stripe</c>, which includes Standard and Express accounts, after creating an
198193
/// Account Link or Account Session to start Connect onboarding.

src/Stripe.net/Entities/Accounts/AccountCapabilities.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
107107
#endif
108108
public string BankTransferPayments { get; set; }
109109

110+
/// <summary>
111+
/// The status of the Billie capability of the account, or whether the account can directly
112+
/// process Billie payments.
113+
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
114+
/// </summary>
115+
[JsonProperty("billie_payments")]
116+
#if NET6_0_OR_GREATER
117+
[STJS.JsonPropertyName("billie_payments")]
118+
#endif
119+
public string BilliePayments { get; set; }
120+
110121
/// <summary>
111122
/// The status of the blik payments capability of the account, or whether the account can
112123
/// directly process blik charges.
@@ -381,6 +392,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
381392
#endif
382393
public string NaverPayPayments { get; set; }
383394

395+
/// <summary>
396+
/// The status of the New Zealand BECS Direct Debit payments capability of the account, or
397+
/// whether the account can directly process New Zealand BECS Direct Debit charges.
398+
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
399+
/// </summary>
400+
[JsonProperty("nz_bank_account_becs_debit_payments")]
401+
#if NET6_0_OR_GREATER
402+
[STJS.JsonPropertyName("nz_bank_account_becs_debit_payments")]
403+
#endif
404+
public string NzBankAccountBecsDebitPayments { get; set; }
405+
384406
/// <summary>
385407
/// The status of the OXXO payments capability of the account, or whether the account can
386408
/// directly process OXXO charges.
@@ -469,6 +491,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
469491
#endif
470492
public string SamsungPayPayments { get; set; }
471493

494+
/// <summary>
495+
/// The status of the Satispay capability of the account, or whether the account can
496+
/// directly process Satispay payments.
497+
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
498+
/// </summary>
499+
[JsonProperty("satispay_payments")]
500+
#if NET6_0_OR_GREATER
501+
[STJS.JsonPropertyName("satispay_payments")]
502+
#endif
503+
public string SatispayPayments { get; set; }
504+
472505
/// <summary>
473506
/// The status of the SEPA customer_balance payments (EUR currency) capability of the
474507
/// account, or whether the account can directly process SEPA customer_balance charges.

src/Stripe.net/Entities/Accounts/AccountCompany.cs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ public class AccountCompany : StripeEntity<AccountCompany>
8787
public string ExportPurposeCode { get; set; }
8888

8989
/// <summary>
90-
/// The company's legal name.
90+
/// The company's legal name. Also available for accounts where <a
91+
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
92+
/// is <c>stripe</c>.
9193
/// </summary>
9294
[JsonProperty("name")]
9395
#if NET6_0_OR_GREATER
@@ -96,7 +98,10 @@ public class AccountCompany : StripeEntity<AccountCompany>
9698
public string Name { get; set; }
9799

98100
/// <summary>
99-
/// The Kana variation of the company's legal name (Japan only).
101+
/// The Kana variation of the company's legal name (Japan only). Also available for accounts
102+
/// where <a
103+
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
104+
/// is <c>stripe</c>.
100105
/// </summary>
101106
[JsonProperty("name_kana")]
102107
#if NET6_0_OR_GREATER
@@ -105,7 +110,10 @@ public class AccountCompany : StripeEntity<AccountCompany>
105110
public string NameKana { get; set; }
106111

107112
/// <summary>
108-
/// The Kanji variation of the company's legal name (Japan only).
113+
/// The Kanji variation of the company's legal name (Japan only). Also available for
114+
/// accounts where <a
115+
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
116+
/// is <c>stripe</c>.
109117
/// </summary>
110118
[JsonProperty("name_kanji")]
111119
#if NET6_0_OR_GREATER
@@ -139,6 +147,12 @@ public class AccountCompany : StripeEntity<AccountCompany>
139147
public AccountCompanyOwnershipDeclaration OwnershipDeclaration { get; set; }
140148

141149
/// <summary>
150+
/// This value is used to determine if a business is exempt from providing ultimate
151+
/// beneficial owners. See <a
152+
/// href="https://support.stripe.com/questions/exemption-from-providing-ownership-details">this
153+
/// support article</a> and <a
154+
/// href="https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api">changelog</a>
155+
/// for more details.
142156
/// One of: <c>qualified_entity_exceeds_ownership_threshold</c>, or
143157
/// <c>qualifies_as_financial_institution</c>.
144158
/// </summary>
@@ -158,7 +172,10 @@ public class AccountCompany : StripeEntity<AccountCompany>
158172
public string Phone { get; set; }
159173

160174
/// <summary>
161-
/// The category identifying the legal structure of the company or legal entity. See <a
175+
/// The category identifying the legal structure of the company or legal entity. Also
176+
/// available for accounts where <a
177+
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
178+
/// is <c>stripe</c>. See <a
162179
/// href="https://stripe.com/docs/connect/identity-verification#business-structure">Business
163180
/// structure</a> for more details.
164181
/// One of: <c>free_zone_establishment</c>, <c>free_zone_llc</c>,

src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
1010
{
1111
/// <summary>
1212
/// The code for the type of error.
13-
/// One of: <c>invalid_address_city_state_postal_code</c>,
13+
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
1414
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
1515
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
1616
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
1717
/// <c>invalid_dob_age_under_18</c>, <c>invalid_dob_age_under_minimum</c>,
1818
/// <c>invalid_product_description_length</c>, <c>invalid_product_description_url_match</c>,
19-
/// <c>invalid_representative_country</c>,
19+
/// <c>invalid_representative_country</c>, <c>invalid_signator</c>,
2020
/// <c>invalid_statement_descriptor_business_mismatch</c>,
2121
/// <c>invalid_statement_descriptor_denylisted</c>,
2222
/// <c>invalid_statement_descriptor_length</c>,
@@ -59,6 +59,7 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
5959
/// <c>verification_document_not_uploaded</c>, <c>verification_document_photo_mismatch</c>,
6060
/// <c>verification_document_too_large</c>, <c>verification_document_type_not_supported</c>,
6161
/// <c>verification_extraneous_directors</c>, <c>verification_failed_address_match</c>,
62+
/// <c>verification_failed_authorizer_authority</c>,
6263
/// <c>verification_failed_business_iec_number</c>,
6364
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
6465
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
@@ -67,6 +68,7 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
6768
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
6869
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
6970
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
71+
/// <c>verification_rejected_ownership_exemption_reason</c>,
7072
/// <c>verification_requires_additional_memorandum_of_associations</c>,
7173
/// <c>verification_requires_additional_proof_of_registration</c>, or
7274
/// <c>verification_supportability</c>.

src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
1010
{
1111
/// <summary>
1212
/// The code for the type of error.
13-
/// One of: <c>invalid_address_city_state_postal_code</c>,
13+
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
1414
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
1515
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
1616
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
1717
/// <c>invalid_dob_age_under_18</c>, <c>invalid_dob_age_under_minimum</c>,
1818
/// <c>invalid_product_description_length</c>, <c>invalid_product_description_url_match</c>,
19-
/// <c>invalid_representative_country</c>,
19+
/// <c>invalid_representative_country</c>, <c>invalid_signator</c>,
2020
/// <c>invalid_statement_descriptor_business_mismatch</c>,
2121
/// <c>invalid_statement_descriptor_denylisted</c>,
2222
/// <c>invalid_statement_descriptor_length</c>,
@@ -59,6 +59,7 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
5959
/// <c>verification_document_not_uploaded</c>, <c>verification_document_photo_mismatch</c>,
6060
/// <c>verification_document_too_large</c>, <c>verification_document_type_not_supported</c>,
6161
/// <c>verification_extraneous_directors</c>, <c>verification_failed_address_match</c>,
62+
/// <c>verification_failed_authorizer_authority</c>,
6263
/// <c>verification_failed_business_iec_number</c>,
6364
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
6465
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
@@ -67,6 +68,7 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
6768
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
6869
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
6970
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
71+
/// <c>verification_rejected_ownership_exemption_reason</c>,
7072
/// <c>verification_requires_additional_memorandum_of_associations</c>,
7173
/// <c>verification_requires_additional_proof_of_registration</c>, or
7274
/// <c>verification_supportability</c>.

src/Stripe.net/Entities/Accounts/AccountSettingsInvoices.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,16 @@ public List<TaxId> DefaultAccountTaxIds
5454
#endif
5555
internal List<ExpandableField<TaxId>> InternalDefaultAccountTaxIds { get; set; }
5656
#endregion
57+
58+
/// <summary>
59+
/// Whether payment methods should be saved when a payment is completed for a one-time
60+
/// invoices on a hosted invoice page.
61+
/// One of: <c>always</c>, <c>never</c>, or <c>offer</c>.
62+
/// </summary>
63+
[JsonProperty("hosted_payment_method_save")]
64+
#if NET6_0_OR_GREATER
65+
[STJS.JsonPropertyName("hosted_payment_method_save")]
66+
#endif
67+
public string HostedPaymentMethodSave { get; set; }
5768
}
5869
}

src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ApplicationFeeFeeSource : StripeEntity<ApplicationFeeFeeSource>
2727
public string Payout { get; set; }
2828

2929
/// <summary>
30-
/// Type of object that created the application fee, either <c>charge</c> or <c>payout</c>.
30+
/// Type of object that created the application fee.
3131
/// One of: <c>charge</c>, or <c>payout</c>.
3232
/// </summary>
3333
[JsonProperty("type")]

0 commit comments

Comments
 (0)