Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
01ef56a
Update generated code for v1741
stripe-openapi[bot] May 9, 2025
ab74d93
Update generated code for v1742
stripe-openapi[bot] May 9, 2025
cd05f66
Update generated code for v1743
stripe-openapi[bot] May 9, 2025
c2d1a04
Update generated code for v1745
stripe-openapi[bot] May 9, 2025
dbb3f7f
Update generated code for v1746
stripe-openapi[bot] May 10, 2025
dae8b06
Update generated code for v1747
stripe-openapi[bot] May 12, 2025
7b1661d
Update generated code for v1748
stripe-openapi[bot] May 13, 2025
582670c
Update generated code for v1751
stripe-openapi[bot] May 13, 2025
d260217
Update generated code for v1753
stripe-openapi[bot] May 14, 2025
dbf267e
Update generated code for v1754
stripe-openapi[bot] May 14, 2025
ba69c7d
Update generated code for v1755
stripe-openapi[bot] May 14, 2025
7dda2c6
Update generated code for v1756
stripe-openapi[bot] May 15, 2025
b83c36e
Update generated code for v1756
stripe-openapi[bot] May 15, 2025
a1cb75b
Update generated code for v1757
stripe-openapi[bot] May 15, 2025
f8cda01
Update generated code for v1758
stripe-openapi[bot] May 15, 2025
d4b49cf
Update generated code for v1759
stripe-openapi[bot] May 15, 2025
e0a5e0b
Update generated code for v1760
stripe-openapi[bot] May 15, 2025
6c5fa42
Update generated code for v1761
stripe-openapi[bot] May 15, 2025
1f02874
Update generated code for v1762
stripe-openapi[bot] May 15, 2025
205a5b0
Update generated code for v1763
stripe-openapi[bot] May 16, 2025
8262785
Update generated code for v1764
stripe-openapi[bot] May 16, 2025
f465408
Update generated code for v1765
stripe-openapi[bot] May 16, 2025
a4d60f7
Update generated code for v1766
stripe-openapi[bot] May 16, 2025
e507db5
Update generated code for v1767
stripe-openapi[bot] May 16, 2025
6a65ccf
Update generated code for v1768
stripe-openapi[bot] May 16, 2025
f88ec0f
Update generated code for v1769
stripe-openapi[bot] May 16, 2025
83880ec
Update generated code for v1770
stripe-openapi[bot] May 19, 2025
34a610c
Update generated code for v1771
stripe-openapi[bot] May 21, 2025
c4bc1d5
Update generated code for v1773
stripe-openapi[bot] May 22, 2025
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1719
v1773
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-04-30.preview";
public const string Current = "2025-05-28.preview";
}
}
10 changes: 5 additions & 5 deletions src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ public static class EventTypes
/// </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>
Expand Down Expand Up @@ -597,6 +592,11 @@ public static class EventTypes
/// </summary>
public const string IdentityVerificationSessionVerified = "identity.verification_session.verified";

/// <summary>
/// Occurs when an InvoicePayment is successfully paid.
/// </summary>
public const string InvoicePaymentPaid = "invoice_payment.paid";

/// <summary>
/// Occurs whenever a new invoice is created. To learn how webhooks can be used with this
/// event, and how they can affect it, see <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
#endif
public AccountSessionComponentsCapitalFinancingPromotion CapitalFinancingPromotion { get; set; }

[JsonProperty("disputes_list")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("disputes_list")]
#endif
public AccountSessionComponentsDisputesList DisputesList { get; set; }

[JsonProperty("documents")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("documents")]
Expand Down Expand Up @@ -86,6 +92,12 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
#endif
public AccountSessionComponentsPaymentDetails PaymentDetails { get; set; }

[JsonProperty("payment_disputes")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payment_disputes")]
#endif
public AccountSessionComponentsPaymentDisputes PaymentDisputes { get; set; }

[JsonProperty("payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payments")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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 AccountSessionComponentsDisputesList : StripeEntity<AccountSessionComponentsDisputesList>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("enabled")]
#endif
public bool Enabled { get; set; }

[JsonProperty("features")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("features")]
#endif
public AccountSessionComponentsDisputesListFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// 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 AccountSessionComponentsDisputesListFeatures : StripeEntity<AccountSessionComponentsDisputesListFeatures>
{
/// <summary>
/// Whether to allow capturing and cancelling payment intents. This is <c>true</c> by
/// default.
/// </summary>
[JsonProperty("capture_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("capture_payments")]
#endif
public bool CapturePayments { get; set; }

/// <summary>
/// Whether to allow connected accounts to manage destination charges that are created on
/// behalf of them. This is <c>false</c> by default.
/// </summary>
[JsonProperty("destination_on_behalf_of_charge_management")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("destination_on_behalf_of_charge_management")]
#endif
public bool DestinationOnBehalfOfChargeManagement { get; set; }

/// <summary>
/// Whether to allow responding to disputes, including submitting evidence and accepting
/// disputes. This is <c>true</c> by default.
/// </summary>
[JsonProperty("dispute_management")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("dispute_management")]
#endif
public bool DisputeManagement { get; set; }

/// <summary>
/// Whether to allow sending refunds. This is <c>true</c> by default.
/// </summary>
[JsonProperty("refund_management")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("refund_management")]
#endif
public bool RefundManagement { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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 AccountSessionComponentsPaymentDisputes : StripeEntity<AccountSessionComponentsPaymentDisputes>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("enabled")]
#endif
public bool Enabled { get; set; }

[JsonProperty("features")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("features")]
#endif
public AccountSessionComponentsPaymentDisputesFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// 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 AccountSessionComponentsPaymentDisputesFeatures : StripeEntity<AccountSessionComponentsPaymentDisputesFeatures>
{
/// <summary>
/// Whether to allow connected accounts to manage destination charges that are created on
/// behalf of them. This is <c>false</c> by default.
/// </summary>
[JsonProperty("destination_on_behalf_of_charge_management")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("destination_on_behalf_of_charge_management")]
#endif
public bool DestinationOnBehalfOfChargeManagement { get; set; }

/// <summary>
/// Whether to allow responding to disputes, including submitting evidence and accepting
/// disputes. This is <c>true</c> by default.
/// </summary>
[JsonProperty("dispute_management")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("dispute_management")]
#endif
public bool DisputeManagement { get; set; }

/// <summary>
/// Whether to allow sending refunds. This is <c>true</c> by default.
/// </summary>
[JsonProperty("refund_management")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("refund_management")]
#endif
public bool RefundManagement { get; set; }
}
}
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
#endif
public string PaytoPayments { get; set; }

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

/// <summary>
/// The status of the promptpay payments capability of the account, or whether the account
/// can directly process promptpay charges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ public class BalanceTransaction : StripeEntity<BalanceTransaction>, IHasId, IHas
#endif
public DateTime AvailableOn { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The balance that this transaction impacts.
/// One of: <c>issuing</c>, <c>payments</c>, or <c>refund_and_dispute_prefunding</c>.
/// </summary>
[JsonProperty("balance_type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("balance_type")]
#endif
public string BalanceType { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Balances/Balance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,11 @@ public class Balance : StripeEntity<Balance>, IHasObject
[STJS.JsonPropertyName("pending")]
#endif
public List<BalanceAmount> Pending { get; set; }

[JsonProperty("refund_and_dispute_prefunding")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("refund_and_dispute_prefunding")]
#endif
public BalanceRefundAndDisputePrefunding RefundAndDisputePrefunding { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceRefundAndDisputePrefunding : StripeEntity<BalanceRefundAndDisputePrefunding>
{
/// <summary>
/// Funds that are available for use.
/// </summary>
[JsonProperty("available")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("available")]
#endif
public List<BalanceRefundAndDisputePrefundingAvailable> Available { get; set; }

/// <summary>
/// Funds that are pending.
/// </summary>
[JsonProperty("pending")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("pending")]
#endif
public List<BalanceRefundAndDisputePrefundingPending> Pending { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// 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 BalanceRefundAndDisputePrefundingAvailable : StripeEntity<BalanceRefundAndDisputePrefundingAvailable>
{
/// <summary>
/// Balance amount.
/// </summary>
[JsonProperty("amount")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount")]
#endif
public long Amount { get; set; }

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("currency")]
#endif
public string Currency { get; set; }

[JsonProperty("source_types")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("source_types")]
#endif
public BalanceRefundAndDisputePrefundingAvailableSourceTypes SourceTypes { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// 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 BalanceRefundAndDisputePrefundingAvailableSourceTypes : StripeEntity<BalanceRefundAndDisputePrefundingAvailableSourceTypes>
{
/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bank_account")]
#endif
public long BankAccount { get; set; }

/// <summary>
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("card")]
#endif
public long Card { get; set; }

/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("fpx")]
#endif
public long Fpx { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
#endif

public class ProductProvisioningGiftCardFixedAmount : StripeEntity<ProductProvisioningGiftCardFixedAmount>
public class BalanceRefundAndDisputePrefundingPending : StripeEntity<BalanceRefundAndDisputePrefundingPending>
{
/// <summary>
/// The initial amount with which the provisioned gift card will be created.
/// Balance amount.
/// </summary>
[JsonProperty("amount")]
#if NET6_0_OR_GREATER
Expand All @@ -27,5 +27,11 @@ public class ProductProvisioningGiftCardFixedAmount : StripeEntity<ProductProvis
[STJS.JsonPropertyName("currency")]
#endif
public string Currency { get; set; }

[JsonProperty("source_types")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("source_types")]
#endif
public BalanceRefundAndDisputePrefundingPendingSourceTypes SourceTypes { get; set; }
}
}
Loading
Loading