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
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 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;
Expand Down Expand Up @@ -107,7 +108,7 @@ public class PaymentIntentNextAction : StripeEntity<PaymentIntentNextAction>
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("use_stripe_sdk")]
#endif
public PaymentIntentNextActionUseStripeSdk UseStripeSdk { get; set; }
public Dictionary<string, object> UseStripeSdk { get; set; }

[JsonProperty("verify_with_microdeposits")]
#if NET6_0_OR_GREATER
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 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;
Expand Down Expand Up @@ -47,7 +48,7 @@ public class SetupIntentNextAction : StripeEntity<SetupIntentNextAction>
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("use_stripe_sdk")]
#endif
public SetupIntentNextActionUseStripeSdk UseStripeSdk { get; set; }
public Dictionary<string, object> UseStripeSdk { get; set; }

[JsonProperty("verify_with_microdeposits")]
#if NET6_0_OR_GREATER
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ public class CadenceBillingCycleMonth : StripeEntity<CadenceBillingCycleMonth>
#endif
public long DayOfMonth { get; set; }

/// <summary>
/// The month to anchor the billing on for a type="month" billing cycle from 1-12.
/// Occurrences are calculated from the month anchor.
/// </summary>
[JsonProperty("month_of_year")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("month_of_year")]
#endif
public long? MonthOfYear { get; set; }

/// <summary>
/// The time at which the billing cycle ends.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public class IntentActionDeactivateEffectiveAt : StripeEntity<IntentActionDeacti

/// <summary>
/// When the deactivate action will take effect.
/// One of: <c>current_billing_period_start</c>, <c>on_reserve</c>, or <c>timestamp</c>.
/// One of: <c>current_billing_period_end</c>, <c>current_billing_period_start</c>,
/// <c>on_reserve</c>, or <c>timestamp</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,23 @@ public class PricingPlanSubscriptionServicingStatusTransitions : StripeEntity<Pr
[STJS.JsonPropertyName("paused_at")]
#endif
public string PausedAt { get; set; }

/// <summary>
/// When the servicing is scheduled to transition to activate.
/// </summary>
[JsonProperty("will_activate_at")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("will_activate_at")]
#endif
public string WillActivateAt { get; set; }

/// <summary>
/// When the servicing is scheduled to cancel.
/// </summary>
[JsonProperty("will_cancel_at")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("will_cancel_at")]
#endif
public string WillCancelAt { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,23 @@ public class RateCardSubscriptionServicingStatusTransitions : StripeEntity<RateC
[STJS.JsonPropertyName("paused_at")]
#endif
public string PausedAt { get; set; }

/// <summary>
/// When the servicing is scheduled to transition to activate.
/// </summary>
[JsonProperty("will_activate_at")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("will_activate_at")]
#endif
public string WillActivateAt { get; set; }

/// <summary>
/// When the servicing is scheduled to cancel.
/// </summary>
[JsonProperty("will_cancel_at")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("will_cancel_at")]
#endif
public string WillCancelAt { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ public class ServiceActionCreditGrant : StripeEntity<ServiceActionCreditGrant>
#endif
public ServiceActionCreditGrantApplicabilityConfig ApplicabilityConfig { get; set; }

/// <summary>
/// The category of the credit grant.
/// One of: <c>paid</c>, or <c>promotional</c>.
/// </summary>
[JsonProperty("category")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("category")]
#endif
public string Category { get; set; }

/// <summary>
/// The expiry configuration for the credit grant.
/// </summary>
Expand All @@ -43,5 +53,15 @@ public class ServiceActionCreditGrant : StripeEntity<ServiceActionCreditGrant>
[STJS.JsonPropertyName("name")]
#endif
public string Name { get; set; }

/// <summary>
/// The desired priority for applying this credit grant. If not specified, it will be set to
/// the default value of 50. The highest priority is 0 and the lowest is 100.
/// </summary>
[JsonProperty("priority")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("priority")]
#endif
public long? Priority { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ public class ServiceActionCreditGrantPerTenant : StripeEntity<ServiceActionCredi
#endif
public ServiceActionCreditGrantPerTenantApplicabilityConfig ApplicabilityConfig { get; set; }

/// <summary>
/// The category of the credit grant.
/// One of: <c>paid</c>, or <c>promotional</c>.
/// </summary>
[JsonProperty("category")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("category")]
#endif
public string Category { get; set; }

/// <summary>
/// The expiry configuration for the credit grant.
/// </summary>
Expand All @@ -43,5 +53,15 @@ public class ServiceActionCreditGrantPerTenant : StripeEntity<ServiceActionCredi
[STJS.JsonPropertyName("name")]
#endif
public string Name { get; set; }

/// <summary>
/// The desired priority for applying this credit grant. If not specified, it will be set to
/// the default value of 50. The highest priority is 0 and the lowest is 100.
/// </summary>
[JsonProperty("priority")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("priority")]
#endif
public long? Priority { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,24 @@ public class ClaimableSandbox : StripeEntity<ClaimableSandbox>, IHasId, IHasObje
public string Object { get; set; }

/// <summary>
/// Keys that can be used to set up an integration for this sandbox and operate on the
/// account.
/// URL for user to claim sandbox into their existing Stripe account. The value will be null
/// if the sandbox status is <c>claimed</c> or <c>expired</c>.
/// </summary>
[JsonProperty("api_keys")]
[JsonProperty("claim_url")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("api_keys")]
[STJS.JsonPropertyName("claim_url")]
#endif
public ClaimableSandboxApiKeys ApiKeys { get; set; }
public string ClaimUrl { get; set; }

/// <summary>
/// URL for user to claim sandbox into their existing Stripe account.
/// The timestamp the sandbox was claimed. The value will be null if the sandbox status is
/// not <c>claimed</c>.
/// </summary>
[JsonProperty("claim_url")]
[JsonProperty("claimed_at")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("claim_url")]
[STJS.JsonPropertyName("claimed_at")]
#endif
public string ClaimUrl { get; set; }
public DateTime? ClaimedAt { get; set; }

/// <summary>
/// When the sandbox is created.
Expand All @@ -65,6 +66,16 @@ public class ClaimableSandbox : StripeEntity<ClaimableSandbox>, IHasId, IHasObje
#endif
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The timestamp the sandbox will expire. The value will be null if the sandbox is
/// <c>claimed</c>.
/// </summary>
[JsonProperty("expires_at")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("expires_at")]
#endif
public DateTime? ExpiresAt { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
Expand All @@ -83,5 +94,24 @@ public class ClaimableSandbox : StripeEntity<ClaimableSandbox>, IHasId, IHasObje
[STJS.JsonPropertyName("prefill")]
#endif
public ClaimableSandboxPrefill Prefill { get; set; }

/// <summary>
/// Data about the Stripe sandbox object.
/// </summary>
[JsonProperty("sandbox_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("sandbox_details")]
#endif
public ClaimableSandboxSandboxDetails SandboxDetails { get; set; }

/// <summary>
/// Status of the sandbox. One of <c>unclaimed</c>, <c>expired</c>, <c>claimed</c>.
/// One of: <c>claimed</c>, <c>expired</c>, or <c>unclaimed</c>.
/// </summary>
[JsonProperty("status")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("status")]
#endif
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Core
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ClaimableSandboxSandboxDetails : StripeEntity<ClaimableSandboxSandboxDetails>
{
/// <summary>
/// The sandbox's Stripe account ID.
/// </summary>
[JsonProperty("account")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("account")]
#endif
public string Account { get; set; }

/// <summary>
/// Keys that can be used to set up an integration for this sandbox and operate on the
/// account.
/// </summary>
[JsonProperty("api_keys")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("api_keys")]
#endif
public ClaimableSandboxSandboxDetailsApiKeys ApiKeys { get; set; }

/// <summary>
/// The livemode sandbox Stripe account ID. This field is only set if the user activates
/// their sandbox and chooses to install your platform's Stripe App in their live account.
/// </summary>
[JsonProperty("owner_account")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("owner_account")]
#endif
public string OwnerAccount { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif

public class ClaimableSandboxApiKeys : StripeEntity<ClaimableSandboxApiKeys>
public class ClaimableSandboxSandboxDetailsApiKeys : StripeEntity<ClaimableSandboxSandboxDetailsApiKeys>
{
/// <summary>
/// Used to communicate with <a href="https://docs.stripe.com/mcp">Stripe's MCP server</a>.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Occurs when a claimable sandbox is claimed.
/// </summary>
public class PushedV2CoreClaimableSandboxClaimedEvent : V2.PushedEvent
{
/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.EventRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.ClaimableSandbox> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.ClaimableSandbox>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.ClaimableSandbox FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.ClaimableSandbox>(this.RelatedObject);
}

public V2CoreClaimableSandboxClaimedEvent Pull()
{
return this.PullEvent<V2CoreClaimableSandboxClaimedEvent>();
}

public Task<V2CoreClaimableSandboxClaimedEvent> PullAsync()
{
return this.PullEventAsync<V2CoreClaimableSandboxClaimedEvent>();
}
}
}
Loading
Loading