Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-09-30.preview
b7d9dec4da43fdbe727b3b4d8007a7099aa61beb
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2028
v2100
2 changes: 2 additions & 0 deletions src/Stripe.net/Constants/FilePurpose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public static class FilePurpose

public const string PciDocument = "pci_document";

public const string PlatformTermsOfService = "platform_terms_of_service";

public const string Selfie = "selfie";

public const string SigmaScheduledQuery = "sigma_scheduled_query";
Expand Down
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCompany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ public class AccountCompany : StripeEntity<AccountCompany>
#endif
public AccountCompanyRegistrationDate RegistrationDate { get; set; }

/// <summary>
/// This hash is used to attest that the representative is authorized to act as the
/// representative of their legal entity.
/// </summary>
[JsonProperty("representative_declaration")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("representative_declaration")]
#endif
public AccountCompanyRepresentativeDeclaration RepresentativeDeclaration { get; set; }

/// <summary>
/// The category identifying the legal structure of the company or legal entity. Also
/// available for accounts where <a
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountCompanyRepresentativeDeclaration : StripeEntity<AccountCompanyRepresentativeDeclaration>
{
/// <summary>
/// The Unix timestamp marking when the representative declaration attestation was made.
/// </summary>
[JsonProperty("date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("date")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime? Date { get; set; }

/// <summary>
/// The IP address from which the representative declaration attestation was made.
/// </summary>
[JsonProperty("ip")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("ip")]
#endif
public string Ip { get; set; }

/// <summary>
/// The user-agent string from the browser where the representative declaration attestation
/// was made.
/// </summary>
[JsonProperty("user_agent")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("user_agent")]
#endif
public string UserAgent { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_data_not_found</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_data_not_found</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_data_not_found</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_data_not_found</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ namespace Stripe.BillingPortal
#endif

/// <summary>
/// A portal configuration describes the functionality and behavior of a portal session.
/// A portal configuration describes the functionality and behavior you embed in a portal
/// session. Related guide: <a
/// href="https://stripe.com/customer-management/configure-portal">Configure the customer
/// portal</a>.
/// </summary>
#if NET6_0_OR_GREATER
[STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class CapabilityFutureRequirementsError : StripeEntity<CapabilityFutureRe
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_data_not_found</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ChargePaymentMethodDetailsCrypto : StripeEntity<ChargePaymentMethod

/// <summary>
/// The blockchain network that the transaction was sent on.
/// One of: <c>base</c>, <c>ethereum</c>, or <c>polygon</c>.
/// One of: <c>base</c>, <c>ethereum</c>, <c>polygon</c>, or <c>solana</c>.
/// </summary>
[JsonProperty("network")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ChargePaymentMethodDetailsRechnung : StripeEntity<ChargePaymentMethodDetailsRechnung>
{
/// <summary>
/// Payment portal URL.
/// </summary>
[JsonProperty("payment_portal_url")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payment_portal_url")]
#endif
public string PaymentPortalUrl { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
#endif
public SessionPaymentMethodOptionsSwish Swish { get; set; }

[JsonProperty("twint")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("twint")]
#endif
public SessionPaymentMethodOptionsTwint Twint { get; set; }

[JsonProperty("us_bank_account")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("us_bank_account")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class SessionPaymentMethodOptionsTwint : StripeEntity<SessionPaymentMethodOptionsTwint>
{
/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// If you provide a Customer with the PaymentIntent, you can use this parameter to <a
/// href="https://stripe.com/payments/save-during-payment">attach the payment method</a> to
/// the Customer after the PaymentIntent is confirmed and the customer completes any
/// required actions. If you don't provide a Customer, you can still <a
/// href="https://stripe.com/api/payment_methods/attach">attach</a> the payment method to a
/// Customer after the transaction completes.
///
/// If the payment method is <c>card_present</c> and isn't a digital wallet, Stripe creates
/// and attaches a <a
/// href="https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card</a>
/// payment method representing the card to the Customer instead.
///
/// When processing card payments, Stripe uses <c>setup_future_usage</c> to help you comply
/// with regional legislation and network rules, such as <a
/// href="https://stripe.com/strong-customer-authentication">SCA</a>.
/// </summary>
[JsonProperty("setup_future_usage")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("setup_future_usage")]
#endif
public string SetupFutureUsage { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,16 @@ public Customer Customer
/// One of: <c>acss_debit</c>, <c>affirm</c>, <c>afterpay_clearpay</c>, <c>alipay</c>,
/// <c>alma</c>, <c>amazon_pay</c>, <c>au_becs_debit</c>, <c>bacs_debit</c>,
/// <c>bancontact</c>, <c>billie</c>, <c>blik</c>, <c>boleto</c>, <c>card</c>,
/// <c>card_present</c>, <c>cashapp</c>, <c>crypto</c>, <c>customer_balance</c>, <c>eps</c>,
/// <c>fpx</c>, <c>giropay</c>, <c>gopay</c>, <c>grabpay</c>, <c>id_bank_transfer</c>,
/// <c>ideal</c>, <c>interac_present</c>, <c>kakao_pay</c>, <c>klarna</c>, <c>konbini</c>,
/// <c>kr_card</c>, <c>link</c>, <c>mb_way</c>, <c>mobilepay</c>, <c>multibanco</c>,
/// <c>naver_pay</c>, <c>nz_bank_account</c>, <c>oxxo</c>, <c>p24</c>, <c>pay_by_bank</c>,
/// <c>payco</c>, <c>paynow</c>, <c>paypal</c>, <c>paypay</c>, <c>payto</c>, <c>pix</c>,
/// <c>promptpay</c>, <c>qris</c>, <c>rechnung</c>, <c>revolut_pay</c>, <c>samsung_pay</c>,
/// <c>satispay</c>, <c>sepa_debit</c>, <c>shopeepay</c>, <c>sofort</c>,
/// <c>stripe_balance</c>, <c>swish</c>, <c>twint</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// <c>card_present</c>, <c>cashapp</c>, <c>crypto</c>, <c>custom</c>,
/// <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>, <c>gopay</c>,
/// <c>grabpay</c>, <c>id_bank_transfer</c>, <c>ideal</c>, <c>interac_present</c>,
/// <c>kakao_pay</c>, <c>klarna</c>, <c>konbini</c>, <c>kr_card</c>, <c>link</c>,
/// <c>mb_way</c>, <c>mobilepay</c>, <c>multibanco</c>, <c>naver_pay</c>,
/// <c>nz_bank_account</c>, <c>oxxo</c>, <c>p24</c>, <c>pay_by_bank</c>, <c>payco</c>,
/// <c>paynow</c>, <c>paypal</c>, <c>paypay</c>, <c>payto</c>, <c>pix</c>, <c>promptpay</c>,
/// <c>qris</c>, <c>rechnung</c>, <c>revolut_pay</c>, <c>samsung_pay</c>, <c>satispay</c>,
/// <c>sepa_debit</c>, <c>shopeepay</c>, <c>sofort</c>, <c>stripe_balance</c>, <c>swish</c>,
/// <c>twint</c>, <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
Expand Down
19 changes: 19 additions & 0 deletions src/Stripe.net/Entities/CreditNotes/CreditNoteRefund.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ public class CreditNoteRefund : StripeEntity<CreditNoteRefund>
#endif
public long AmountRefunded { get; set; }

/// <summary>
/// The PaymentRecord refund details associated with this credit note refund.
/// </summary>
[JsonProperty("payment_record_refund")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payment_record_refund")]
#endif
public CreditNoteRefundPaymentRecordRefund PaymentRecordRefund { get; set; }

#region Expandable Refund

/// <summary>
Expand Down Expand Up @@ -61,5 +70,15 @@ public Refund Refund
#endif
internal ExpandableField<Refund> InternalRefund { get; set; }
#endregion

/// <summary>
/// Type of the refund, one of <c>refund</c> or <c>payment_record_refund</c>.
/// One of: <c>payment_record_refund</c>, or <c>refund</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("type")]
#endif
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class CreditNoteRefundPaymentRecordRefund : StripeEntity<CreditNoteRefundPaymentRecordRefund>
{
/// <summary>
/// ID of the payment record.
/// </summary>
[JsonProperty("payment_record")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payment_record")]
#endif
public string PaymentRecord { get; set; }

/// <summary>
/// ID of the refund group.
/// </summary>
[JsonProperty("refund_group")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("refund_group")]
#endif
public string RefundGroup { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@ public class CustomerSessionComponents : StripeEntity<CustomerSessionComponents>
#endif
public CustomerSessionComponentsBuyButton BuyButton { get; set; }

/// <summary>
/// This hash contains whether the customer sheet is enabled and the features it supports.
/// </summary>
[JsonProperty("customer_sheet")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("customer_sheet")]
#endif
public CustomerSessionComponentsCustomerSheet CustomerSheet { get; set; }

/// <summary>
/// This hash contains whether the mobile payment element is enabled and the features it
/// supports.
/// </summary>
[JsonProperty("mobile_payment_element")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("mobile_payment_element")]
#endif
public CustomerSessionComponentsMobilePaymentElement MobilePaymentElement { get; set; }

/// <summary>
/// This hash contains whether the Payment Element is enabled and the features it supports.
/// </summary>
Expand All @@ -34,5 +53,14 @@ public class CustomerSessionComponents : StripeEntity<CustomerSessionComponents>
[STJS.JsonPropertyName("pricing_table")]
#endif
public CustomerSessionComponentsPricingTable PricingTable { get; set; }

/// <summary>
/// This hash contains whether the Tax ID Element is enabled and the features it supports.
/// </summary>
[JsonProperty("tax_id_element")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("tax_id_element")]
#endif
public CustomerSessionComponentsTaxIdElement TaxIdElement { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class CustomerSessionComponentsCustomerSheet : StripeEntity<CustomerSessionComponentsCustomerSheet>
{
/// <summary>
/// Whether the customer sheet is enabled.
/// </summary>
[JsonProperty("enabled")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("enabled")]
#endif
public bool Enabled { get; set; }

/// <summary>
/// This hash defines whether the customer sheet supports certain features.
/// </summary>
[JsonProperty("features")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("features")]
#endif
public CustomerSessionComponentsCustomerSheetFeatures Features { get; set; }
}
}
Loading
Loading