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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b7168aabb0ad2d376d2f6d2e5ec34e5e55d1f702
2ceb45f50a72455c534a54d634b015602dc55f2d
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2344
v2345
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +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>partner_disabled_dispute_rate</c>, <c>partner_disabled_responsibilities</c>,
/// <c>partner_disabled_restricted_business</c>, <c>partner_disabled_suspected_fraud</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>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +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>partner_disabled_dispute_rate</c>, <c>partner_disabled_responsibilities</c>,
/// <c>partner_disabled_restricted_business</c>, <c>partner_disabled_suspected_fraud</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>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +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>partner_disabled_dispute_rate</c>, <c>partner_disabled_responsibilities</c>,
/// <c>partner_disabled_restricted_business</c>, <c>partner_disabled_suspected_fraud</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>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +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>partner_disabled_dispute_rate</c>, <c>partner_disabled_responsibilities</c>,
/// <c>partner_disabled_restricted_business</c>, <c>partner_disabled_suspected_fraud</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>,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AlertNotification : StripeEntity<AlertNotification>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
[STJS.JsonPropertyName("id")]
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
[STJS.JsonPropertyName("object")]
public string Object { get; set; }

/// <summary>
/// Whether the alert was triggered or recovered.
/// One of: <c>recovered</c>, or <c>triggered</c>.
/// </summary>
[JsonProperty("action")]
[STJS.JsonPropertyName("action")]
public string Action { get; set; }

/// <summary>
/// End of the aggregation period for which this notification was sent. Only present for
/// usage threshold alerts.
/// </summary>
[JsonProperty("aggregation_period_end")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("aggregation_period_end")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? AggregationPeriodEnd { get; set; }

/// <summary>
/// Start of the aggregation period for which this notification was sent. Only present for
/// usage threshold alerts.
/// </summary>
[JsonProperty("aggregation_period_start")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("aggregation_period_start")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? AggregationPeriodStart { get; set; }

/// <summary>
/// ID of the billing alert that generated this notification.
/// </summary>
[JsonProperty("alert")]
[STJS.JsonPropertyName("alert")]
public string Alert { get; set; }

/// <summary>
/// The type of billing alert that generated this notification.
/// One of: <c>credit_balance_threshold</c>, <c>spend_threshold</c>, or
/// <c>usage_threshold</c>.
/// </summary>
[JsonProperty("alert_type")]
[STJS.JsonPropertyName("alert_type")]
public string AlertType { get; set; }

/// <summary>
/// The billing cadence associated with this notification. Only present for spend threshold
/// alerts grouped by billing cadence.
/// </summary>
[JsonProperty("cadence")]
[STJS.JsonPropertyName("cadence")]
public string Cadence { get; set; }

/// <summary>
/// Three-letter ISO currency code for the value, in lowercase. Only present for spend and
/// credit balance threshold alerts.
/// </summary>
[JsonProperty("currency")]
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }

/// <summary>
/// Custom pricing unit for the threshold value.
/// </summary>
[JsonProperty("custom_pricing_unit")]
[STJS.JsonPropertyName("custom_pricing_unit")]
public string CustomPricingUnit { get; set; }

/// <summary>
/// ID of the customer for which the alert notification was sent.
/// </summary>
[JsonProperty("customer")]
[STJS.JsonPropertyName("customer")]
public string Customer { get; set; }

/// <summary>
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
public bool Livemode { get; set; }

/// <summary>
/// ID of the billing meter associated with this notification. Only present for usage
/// threshold alerts.
/// </summary>
[JsonProperty("meter")]
[STJS.JsonPropertyName("meter")]
public string Meter { get; set; }

/// <summary>
/// ID of the event delivered for this notification. Retrievable via the Events API for a
/// limited time; for long-term audit scenarios, capture the full event payload at webhook
/// delivery time.
/// </summary>
[JsonProperty("notification_event")]
[STJS.JsonPropertyName("notification_event")]
public string NotificationEvent { get; set; }

/// <summary>
/// Time at which the notification was sent. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("notified_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("notified_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime NotifiedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// ID of the subscription associated with this notification. Only present for spend
/// threshold alerts grouped by subscription.
/// </summary>
[JsonProperty("subscription")]
[STJS.JsonPropertyName("subscription")]
public string Subscription { get; set; }

/// <summary>
/// The value that triggered the alert. This may be a decimal string for custom pricing unit
/// alerts. For usage threshold alerts, this is the meter event count. For credit balance
/// and spend threshold alerts, this is the amount in the smallest currency unit.
/// </summary>
[JsonProperty("value")]
[STJS.JsonPropertyName("value")]
public string Value { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +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>partner_disabled_dispute_rate</c>, <c>partner_disabled_responsibilities</c>,
/// <c>partner_disabled_restricted_business</c>, <c>partner_disabled_suspected_fraud</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>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace Stripe
public class ChargePaymentMethodDetailsAmazonPayFundingCard : StripeEntity<ChargePaymentMethodDetailsAmazonPayFundingCard>
{
/// <summary>
/// Card brand. Can be <c>amex</c>, <c>cartes_bancaires</c>, <c>diners</c>, <c>discover</c>,
/// <c>eftpos_au</c>, <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>,
/// <c>visa</c> or <c>unknown</c>.
/// Card brand. Can be <c>American Express</c>, <c>Cartes Bancaires</c>, <c>Diners Club</c>,
/// <c>Discover</c>, <c>Eftpos Australia</c>, <c>Girocard</c>, <c>JCB</c>,
/// <c>MasterCard</c>, <c>UnionPay</c>, <c>Visa</c>, or <c>Unknown</c>.
/// </summary>
[JsonProperty("brand")]
[STJS.JsonPropertyName("brand")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity<ChargePay

/// <summary>
/// Indicates the outcome of 3D Secure authentication.
/// One of: <c>attempt_acknowledged</c>, <c>authenticated</c>, <c>exempted</c>,
/// <c>failed</c>, <c>not_supported</c>, or <c>processing_error</c>.
/// One of: <c>attempt_acknowledged</c>, <c>authenticated</c>, <c>data_share_only</c>,
/// <c>exempted</c>, <c>failed</c>, <c>not_supported</c>, or <c>processing_error</c>.
/// </summary>
[JsonProperty("result")]
[STJS.JsonPropertyName("result")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace Stripe
public class ChargePaymentMethodDetailsRevolutPayFundingCard : StripeEntity<ChargePaymentMethodDetailsRevolutPayFundingCard>
{
/// <summary>
/// Card brand. Can be <c>amex</c>, <c>cartes_bancaires</c>, <c>diners</c>, <c>discover</c>,
/// <c>eftpos_au</c>, <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>,
/// <c>visa</c> or <c>unknown</c>.
/// Card brand. Can be <c>American Express</c>, <c>Cartes Bancaires</c>, <c>Diners Club</c>,
/// <c>Discover</c>, <c>Eftpos Australia</c>, <c>Girocard</c>, <c>JCB</c>,
/// <c>MasterCard</c>, <c>UnionPay</c>, <c>Visa</c>, or <c>Unknown</c>.
/// </summary>
[JsonProperty("brand")]
[STJS.JsonPropertyName("brand")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public Customer Customer
/// <c>qris</c>, <c>rechnung</c>, <c>revolut_pay</c>, <c>samsung_pay</c>, <c>satispay</c>,
/// <c>scalapay</c>, <c>sepa_debit</c>, <c>shopeepay</c>, <c>sofort</c>,
/// <c>stripe_balance</c>, <c>sunbit</c>, <c>swish</c>, <c>tamara</c>, <c>twint</c>,
/// <c>upi</c>, <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// <c>upi</c>, <c>us_bank_account</c>, <c>vipps</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
Expand All @@ -339,6 +339,10 @@ public Customer Customer
[STJS.JsonPropertyName("us_bank_account")]
public ConfirmationTokenPaymentMethodPreviewUsBankAccount UsBankAccount { get; set; }

[JsonProperty("vipps")]
[STJS.JsonPropertyName("vipps")]
public ConfirmationTokenPaymentMethodPreviewVipps Vipps { get; set; }

[JsonProperty("wechat_pay")]
[STJS.JsonPropertyName("wechat_pay")]
public ConfirmationTokenPaymentMethodPreviewWechatPay WechatPay { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// File generated from our OpenAPI spec
namespace Stripe.SharedPayment
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class GrantedTokenPaymentMethodDetailsZip : StripeEntity<GrantedTokenPaymentMethodDetailsZip>
public class ConfirmationTokenPaymentMethodPreviewVipps : StripeEntity<ConfirmationTokenPaymentMethodPreviewVipps>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public class CustomerConsumerWallet : StripeEntity<CustomerConsumerWallet>, IHas
/// <summary>
/// The blockchain network for this wallet.
/// One of: <c>aptos</c>, <c>avalanche</c>, <c>base</c>, <c>bitcoin</c>, <c>ethereum</c>,
/// <c>optimism</c>, <c>polygon</c>, <c>solana</c>, <c>stellar</c>, or <c>worldchain</c>.
/// <c>optimism</c>, <c>polygon</c>, <c>solana</c>, <c>stellar</c>, <c>sui</c>, or
/// <c>worldchain</c>.
/// </summary>
[JsonProperty("network")]
[STJS.JsonPropertyName("network")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// File generated from our OpenAPI spec
namespace Stripe.Crypto
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

/// <summary>
/// A crypto deposit address is a blockchain address that can be used by a merchant for
/// deposit mode crypto payments.
/// </summary>
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class DepositAddress : StripeEntity<DepositAddress>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
[STJS.JsonPropertyName("id")]
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
[STJS.JsonPropertyName("object")]
public string Object { get; set; }

[JsonProperty("address")]
[STJS.JsonPropertyName("address")]
public string Address { get; set; }

[JsonProperty("created")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("created")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

[JsonProperty("customer")]
[STJS.JsonPropertyName("customer")]
public string Customer { get; set; }

[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
public bool Livemode { get; set; }

/// <summary>
/// Set of <a href="https://docs.stripe.com/api/metadata">key-value pairs</a> that you can
/// attach to an object. This can be useful for storing additional information about the
/// object in a structured format.
/// </summary>
[JsonProperty("metadata")]
[STJS.JsonPropertyName("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// One of: <c>base</c>, <c>solana</c>, or <c>tempo</c>.
/// </summary>
[JsonProperty("network")]
[STJS.JsonPropertyName("network")]
public string Network { get; set; }

[JsonProperty("supported_tokens")]
[STJS.JsonPropertyName("supported_tokens")]
public List<DepositAddressSupportedToken> SupportedTokens { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec
namespace Stripe.Crypto
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class DepositAddressSupportedToken : StripeEntity<DepositAddressSupportedToken>
{
/// <summary>
/// The on-chain contract address for the supported token currency on this specific network.
/// </summary>
[JsonProperty("token_contract_address")]
[STJS.JsonPropertyName("token_contract_address")]
public string TokenContractAddress { get; set; }

/// <summary>
/// The supported token currency. Supported token currencies include: <c>usdc</c>.
/// </summary>
[JsonProperty("token_currency")]
[STJS.JsonPropertyName("token_currency")]
public string TokenCurrency { get; set; }
}
}
Loading
Loading