Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
5bff0b8
add codeowners file (#3055)
xavdid-stripe Feb 13, 2025
c908684
Improved examples (#3054)
jar-stripe Feb 20, 2025
c6e0fff
Update generated code (#3050)
stripe-openapi[bot] Feb 24, 2025
95630d8
Bump version to 47.4.0
prathmesh-stripe Feb 24, 2025
9214022
Remove Upcoming Lines API from SDK (#3064)
jar-stripe Mar 14, 2025
4d1f28a
Merge upstream and update generated code for v1583
stripe-openapi[bot] Mar 19, 2025
e1f7fc2
Update generated code for v1585
stripe-openapi[bot] Mar 19, 2025
2327133
Update generated code for v1586
stripe-openapi[bot] Mar 20, 2025
d3fa803
Update generated code for v1587
stripe-openapi[bot] Mar 20, 2025
0a33ef1
Update generated code for v1588
stripe-openapi[bot] Mar 20, 2025
d374300
Update generated code for v1590
stripe-openapi[bot] Mar 20, 2025
1618729
Update generated code for v1591
stripe-openapi[bot] Mar 20, 2025
d8af53c
Update generated code for v1593
stripe-openapi[bot] Mar 20, 2025
18bb72b
Update generated code for v1594
stripe-openapi[bot] Mar 20, 2025
a882b0f
Update generated code for v1595
stripe-openapi[bot] Mar 20, 2025
a5b3fec
Update generated code for v1596
stripe-openapi[bot] Mar 20, 2025
92d6a50
Update generated code for v1597
stripe-openapi[bot] Mar 20, 2025
bc03698
Update generated code for v1598
stripe-openapi[bot] Mar 20, 2025
a31c3fc
Update generated code for v1599
stripe-openapi[bot] Mar 20, 2025
2dda203
Update generated code for v1602
stripe-openapi[bot] Mar 20, 2025
32cb04a
Update generated code for v1604
stripe-openapi[bot] Mar 21, 2025
a955989
Update generated code for v1605
stripe-openapi[bot] Mar 21, 2025
ad61c5a
Update generated code for v1606
stripe-openapi[bot] Mar 21, 2025
c1368cf
Update generated code for v1607
stripe-openapi[bot] Mar 21, 2025
b2cb26b
Update generated code for v1608
stripe-openapi[bot] Mar 21, 2025
ec99365
Update generated code for v1609
stripe-openapi[bot] Mar 21, 2025
a2a748a
Update generated code for v1610
stripe-openapi[bot] Mar 21, 2025
b32c3ed
Update generated code for v1611
stripe-openapi[bot] Mar 21, 2025
43b2326
Update generated code for v1612
stripe-openapi[bot] Mar 21, 2025
f56dd90
Update generated code for v1613
stripe-openapi[bot] Mar 24, 2025
526f0cf
Update generated code for v1615
stripe-openapi[bot] Mar 24, 2025
74eb1ea
Update generated code for v1618
stripe-openapi[bot] Mar 25, 2025
8ae1031
Update generated code for v1620
stripe-openapi[bot] Mar 25, 2025
1c449da
Update generated code for v1621
stripe-openapi[bot] Mar 25, 2025
38aa218
Update generated code for v1622
stripe-openapi[bot] Mar 25, 2025
2fe73a2
Update generated code for v1625
stripe-openapi[bot] Mar 25, 2025
06e760e
Update generated code for v1626
stripe-openapi[bot] Mar 25, 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
v1626
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.basil";
}
}
38 changes: 37 additions & 1 deletion src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,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 +1124,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
22 changes: 22 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 @@ -566,6 +577,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
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
14 changes: 12 additions & 2 deletions src/Stripe.net/Entities/BankAccounts/BankAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ public class BankAccount : StripeEntity<BankAccount>, IHasId, IHasMetadata, IHas

/// <summary>
/// (ID of the Account)
/// The ID of the account that the bank account is associated with.
/// The account this bank account belongs to. Only applicable on Accounts (not customers or
/// recipients) This property is only available when returned as an <a
/// href="https://stripe.com/api/external_account_bank_accounts/object">External Account</a>
/// where <a
/// href="https://stripe.com/api/accounts/object#account_object-controller-is_controller">controller.is_controller</a>
/// is <c>true</c>.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
Expand All @@ -59,7 +64,12 @@ public string AccountId

/// <summary>
/// (Expanded)
/// The ID of the account that the bank account is associated with.
/// The account this bank account belongs to. Only applicable on Accounts (not customers or
/// recipients) This property is only available when returned as an <a
/// href="https://stripe.com/api/external_account_bank_accounts/object">External Account</a>
/// where <a
/// href="https://stripe.com/api/accounts/object#account_object-controller-is_controller">controller.is_controller</a>
/// is <c>true</c>.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
{
/// <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 BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <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 BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <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
Loading
Loading