Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3131c0d
Update generated code for v1641
stripe-openapi[bot] Mar 28, 2025
6c78bb2
Update generated code for v1641
stripe-openapi[bot] Mar 28, 2025
1ef0474
removes subscription_items from options (#3080)
jar-stripe Mar 28, 2025
17c8ff9
Merge breaking changes from sdk-release/next-major branch to master (…
ramya-stripe Mar 31, 2025
e4447de
Merge upstream and update generated code for v1641
stripe-openapi[bot] Mar 31, 2025
d59cc82
Update generated code for v1641
stripe-openapi[bot] Mar 31, 2025
3634b0f
Support for APIs in the new API version 2025-03-31.basil (#3056)
stripe-openapi[bot] Mar 31, 2025
3a76b23
Merge upstream and update generated code for v1642
stripe-openapi[bot] Mar 31, 2025
4ea1e5a
Clean up ListOptions (#3078)
mbroshi-stripe Mar 31, 2025
27c4921
Merge upstream and update generated code for v1642
stripe-openapi[bot] Mar 31, 2025
f34440c
Remove tests for field being removed (#3083)
helenye-stripe Mar 31, 2025
6aba649
removed unused manually maintained options class (#3084)
jar-stripe Mar 31, 2025
c22d386
Merge upstream and update generated code for v1642
stripe-openapi[bot] Mar 31, 2025
6bcc5a2
Merge upstream and update generated code for v1642
stripe-openapi[bot] Mar 31, 2025
e3a9740
Update generated code (#3082)
stripe-openapi[bot] Mar 31, 2025
72b859d
Merge upstream and update generated code for v1643
stripe-openapi[bot] Apr 1, 2025
03e3d14
Remove ListOptionsWithCreated (#3085)
mbroshi-stripe Apr 1, 2025
0bbe4a3
Merge upstream and update generated code for v1644
stripe-openapi[bot] Apr 1, 2025
25cc851
Update generated code for v1645
stripe-openapi[bot] Apr 1, 2025
1a399c8
Update generated code for v1646
stripe-openapi[bot] Apr 1, 2025
63fe1a1
Update generated code for v1648
stripe-openapi[bot] Apr 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1505
v1648
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2025-02-24.acacia";
public const string Current = "2025-03-31.preview";
}
}
43 changes: 42 additions & 1 deletion src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public static class EventTypes
/// </summary>
public const string ApplicationFeeRefunded = "application_fee.refunded";

/// <summary>
/// Occurs whenever a balance settings status or property has changed.
/// </summary>
public const string BalanceSettingsUpdated = "balance_settings.updated";

/// <summary>
/// Occurs whenever your Stripe balance has been updated (e.g., when a charge is available
/// to be paid out). By default, Stripe automatically transfers funds in your balance to
Expand Down Expand Up @@ -91,11 +96,46 @@ public static class EventTypes
/// </summary>
public const string BillingAlertTriggered = "billing.alert.triggered";

/// <summary>
/// Occurs when a credit balance transaction is created.
/// </summary>
public const string BillingCreditBalanceTransactionCreated = "billing.credit_balance_transaction.created";

/// <summary>
/// Occurs when a credit grant is created.
/// </summary>
public const string BillingCreditGrantCreated = "billing.credit_grant.created";

/// <summary>
/// Occurs when a credit grant is updated.
/// </summary>
public const string BillingCreditGrantUpdated = "billing.credit_grant.updated";

/// <summary>
/// Notifies of errors on a billing meter.
/// </summary>
public const string BillingMeterErrorReportTriggered = "billing.meter_error_report.triggered";

/// <summary>
/// Occurs when a meter is created.
/// </summary>
public const string BillingMeterCreated = "billing.meter.created";

/// <summary>
/// Occurs when a meter is deactivated.
/// </summary>
public const string BillingMeterDeactivated = "billing.meter.deactivated";

/// <summary>
/// Occurs when a meter is reactivated.
/// </summary>
public const string BillingMeterReactivated = "billing.meter.reactivated";

/// <summary>
/// Occurs when a meter is updated.
/// </summary>
public const string BillingMeterUpdated = "billing.meter.updated";

/// <summary>
/// Occurs whenever a capability has new requirements or a new status.
/// </summary>
Expand Down Expand Up @@ -1089,7 +1129,8 @@ public static class EventTypes

/// <summary>
/// Occurs whenever a review is closed. The review's <c>reason</c> field indicates why:
/// <c>approved</c>, <c>disputed</c>, <c>refunded</c>, or <c>refunded_as_fraud</c>.
/// <c>approved</c>, <c>disputed</c>, <c>refunded</c>, <c>refunded_as_fraud</c>, or
/// <c>canceled</c>.
/// </summary>
public const string ReviewClosed = "review.closed";

Expand Down
9 changes: 2 additions & 7 deletions src/Stripe.net/Entities/Accounts/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
public AccountBusinessProfile BusinessProfile { get; set; }

/// <summary>
/// The business type. After you create an <a
/// href="https://stripe.com/api/account_links">Account Link</a> or <a
/// href="https://stripe.com/api/account_sessions">Account Session</a>, this property is
/// only returned for accounts where <a
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
/// is <c>application</c>, which includes Custom accounts.
/// The business type.
/// One of: <c>company</c>, <c>government_entity</c>, <c>individual</c>, or
/// <c>non_profit</c>.
/// </summary>
Expand Down Expand Up @@ -192,7 +187,7 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
/// <summary>
/// This is an object representing a person associated with a Stripe account.
///
/// A platform cannot access a person for an account where <a
/// A platform can only access a subset of data in a person for an account where <a
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">account.controller.requirement_collection</a>
/// is <c>stripe</c>, which includes Standard and Express accounts, after creating an
/// Account Link or Account Session to start Connect onboarding.
Expand Down
44 changes: 44 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
#endif
public string BankTransferPayments { get; set; }

/// <summary>
/// The status of the Billie capability of the account, or whether the account can directly
/// process Billie payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("billie_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("billie_payments")]
#endif
public string BilliePayments { get; set; }

/// <summary>
/// The status of the blik payments capability of the account, or whether the account can
/// directly process blik charges.
Expand Down Expand Up @@ -434,6 +445,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
#endif
public string NaverPayPayments { get; set; }

/// <summary>
/// The status of the New Zealand BECS Direct Debit payments capability of the account, or
/// whether the account can directly process New Zealand BECS Direct Debit charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("nz_bank_account_becs_debit_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("nz_bank_account_becs_debit_payments")]
#endif
public string NzBankAccountBecsDebitPayments { get; set; }

/// <summary>
/// The status of the OXXO payments capability of the account, or whether the account can
/// directly process OXXO charges.
Expand Down Expand Up @@ -566,6 +588,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
#endif
public string SamsungPayPayments { get; set; }

/// <summary>
/// The status of the Satispay capability of the account, or whether the account can
/// directly process Satispay payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("satispay_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("satispay_payments")]
#endif
public string SatispayPayments { get; set; }

/// <summary>
/// The status of the SEPA customer_balance payments (EUR currency) capability of the
/// account, or whether the account can directly process SEPA customer_balance charges.
Expand Down Expand Up @@ -610,6 +643,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
#endif
public string SofortPayments { get; set; }

/// <summary>
/// The status of the stripe_balance payments capability of the account, or whether the
/// account can directly process stripe_balance charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("stripe_balance_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("stripe_balance_payments")]
#endif
public string StripeBalancePayments { get; set; }

/// <summary>
/// The status of the Swish capability of the account, or whether the account can directly
/// process Swish payments.
Expand Down
25 changes: 21 additions & 4 deletions src/Stripe.net/Entities/Accounts/AccountCompany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ public class AccountCompany : StripeEntity<AccountCompany>
public string ExportPurposeCode { get; set; }

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

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

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

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

/// <summary>
/// The category identifying the legal structure of the company or legal entity. See <a
/// The category identifying the legal structure of the company or legal entity. Also
/// available for accounts where <a
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
/// is <c>stripe</c>. See <a
/// href="https://stripe.com/docs/connect/identity-verification#business-structure">Business
/// structure</a> for more details.
/// One of: <c>free_zone_establishment</c>, <c>free_zone_llc</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_dob_age_under_minimum</c>,
/// <c>invalid_product_description_length</c>, <c>invalid_product_description_url_match</c>,
/// <c>invalid_representative_country</c>,
/// <c>invalid_representative_country</c>, <c>invalid_signator</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
Expand Down Expand Up @@ -59,6 +59,7 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>verification_document_not_uploaded</c>, <c>verification_document_photo_mismatch</c>,
/// <c>verification_document_too_large</c>, <c>verification_document_type_not_supported</c>,
/// <c>verification_extraneous_directors</c>, <c>verification_failed_address_match</c>,
/// <c>verification_failed_authorizer_authority</c>,
/// <c>verification_failed_business_iec_number</c>,
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
Expand All @@ -67,6 +68,7 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_rejected_ownership_exemption_reason</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_dob_age_under_minimum</c>,
/// <c>invalid_product_description_length</c>, <c>invalid_product_description_url_match</c>,
/// <c>invalid_representative_country</c>,
/// <c>invalid_representative_country</c>, <c>invalid_signator</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
Expand Down Expand Up @@ -59,6 +59,7 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>verification_document_not_uploaded</c>, <c>verification_document_photo_mismatch</c>,
/// <c>verification_document_too_large</c>, <c>verification_document_type_not_supported</c>,
/// <c>verification_extraneous_directors</c>, <c>verification_failed_address_match</c>,
/// <c>verification_failed_authorizer_authority</c>,
/// <c>verification_failed_business_iec_number</c>,
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
Expand All @@ -67,6 +68,7 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_rejected_ownership_exemption_reason</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
Expand Down
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountSettingsInvoices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,16 @@ public List<TaxId> DefaultAccountTaxIds
#endif
internal List<ExpandableField<TaxId>> InternalDefaultAccountTaxIds { get; set; }
#endregion

/// <summary>
/// Whether payment methods should be saved when a payment is completed for a one-time
/// invoices on a hosted invoice page.
/// One of: <c>always</c>, <c>never</c>, or <c>offer</c>.
/// </summary>
[JsonProperty("hosted_payment_method_save")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("hosted_payment_method_save")]
#endif
public string HostedPaymentMethodSave { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ApplicationFeeFeeSource : StripeEntity<ApplicationFeeFeeSource>
public string Payout { get; set; }

/// <summary>
/// Type of object that created the application fee, either <c>charge</c> or <c>payout</c>.
/// Type of object that created the application fee.
/// One of: <c>charge</c>, or <c>payout</c>.
/// </summary>
[JsonProperty("type")]
Expand Down
51 changes: 51 additions & 0 deletions src/Stripe.net/Entities/BalanceSettings/BalanceSettings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// "Options for customizing account balances within Stripe.".
/// </summary>
public class BalanceSettings : StripeEntity<BalanceSettings>, IHasObject
{
/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("object")]
#endif
public string Object { get; set; }

/// <summary>
/// A Boolean indicating if Stripe should try to reclaim negative balances from an attached
/// bank account. See <a href="https://stripe.com/connect/account-balances">Understanding
/// Connect account balances</a> for details. The default value is <c>false</c> when <a
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
/// is <c>application</c>, which includes Custom accounts, otherwise <c>true</c>.
/// </summary>
[JsonProperty("debit_negative_balances")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("debit_negative_balances")]
#endif
public bool? DebitNegativeBalances { get; set; }

/// <summary>
/// Settings specific to the account's payouts.
/// </summary>
[JsonProperty("payouts")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payouts")]
#endif
public BalanceSettingsPayouts Payouts { get; set; }

[JsonProperty("settlement_timing")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("settlement_timing")]
#endif
public BalanceSettingsSettlementTiming SettlementTiming { get; set; }
}
}
Loading
Loading