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 @@
6a1eb046657923602071d7707e99ce8a004a8216
94965f40994b0f91838ee258f0c0161f2e259567
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2261
v2274
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class InvoiceItemProrationDetails : StripeEntity<InvoiceItemProrationDetails>
{
[JsonProperty("credited_items")]
[STJS.JsonPropertyName("credited_items")]
public InvoiceItemProrationDetailsCreditedItems CreditedItems { get; set; }

/// <summary>
/// Discount amounts applied when the proration was created.
/// </summary>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public class Authorization : StripeEntity<Authorization>, IHasId, IHasMetadata,
[STJS.JsonPropertyName("authorization_method")]
public string AuthorizationMethod { get; set; }

[JsonProperty("balance_response")]
[STJS.JsonPropertyName("balance_response")]
public AuthorizationBalanceResponse BalanceResponse { get; set; }

/// <summary>
/// List of balance transactions associated with this authorization.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// File generated from our OpenAPI spec
namespace Stripe.Issuing
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AuthorizationBalanceResponse : StripeEntity<AuthorizationBalanceResponse>
{
/// <summary>
/// The cardholder account type affected by this authorization.
/// One of: <c>checking</c>, <c>credit</c>, <c>default</c>, <c>other</c>, <c>savings</c>, or
/// <c>universal</c>.
/// </summary>
[JsonProperty("account_type")]
[STJS.JsonPropertyName("account_type")]
public string AccountType { get; set; }

/// <summary>
/// The remaining balance in the cardholder's account after the authorization, in the
/// smallest currency unit.
/// </summary>
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
public long Amount { get; set; }

/// <summary>
/// The currency of the remaining balance in the cardholder's account after the
/// authorization.
/// </summary>
[JsonProperty("currency")]
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }
}
}
14 changes: 14 additions & 0 deletions src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public class PaymentIntent : StripeEntity<PaymentIntent>, IHasId, IHasMetadata,
[STJS.JsonPropertyName("object")]
public string Object { get; set; }

[JsonProperty("advanced_feature_details")]
[STJS.JsonPropertyName("advanced_feature_details")]
public PaymentIntentAdvancedFeatureDetails AdvancedFeatureDetails { get; set; }

/// <summary>
/// Details about the agent that initiated the creation of this PaymentIntent.
/// </summary>
Expand All @@ -52,6 +56,16 @@ public class PaymentIntent : StripeEntity<PaymentIntent>, IHasId, IHasMetadata,
[STJS.JsonPropertyName("allocated_funds")]
public PaymentIntentAllocatedFunds AllocatedFunds { get; set; }

/// <summary>
/// The list of payment method types allowed for use with this payment. Stripe automatically
/// returns compatible payment methods from this list in the <c>payment_method_types</c>
/// field of the response, based on the other PaymentIntent parameters, such as
/// <c>currency</c>, <c>amount</c>, and <c>customer</c>.
/// </summary>
[JsonProperty("allowed_payment_method_types")]
[STJS.JsonPropertyName("allowed_payment_method_types")]
public List<string> AllowedPaymentMethodTypes { get; set; }

/// <summary>
/// Amount intended to be collected by this PaymentIntent. A positive integer representing
/// how much to charge in the <a
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class PaymentIntentAdvancedFeatureDetails : StripeEntity<PaymentIntentAdvancedFeatureDetails>
{
/// <summary>
/// Timestamp at which the authorization will expire if not captured.
/// </summary>
[JsonProperty("capture_before")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("capture_before")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime CaptureBefore { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

[JsonProperty("decremental_authorization")]
[STJS.JsonPropertyName("decremental_authorization")]
public PaymentIntentAdvancedFeatureDetailsDecrementalAuthorization DecrementalAuthorization { get; set; }

[JsonProperty("incremental_authorization")]
[STJS.JsonPropertyName("incremental_authorization")]
public PaymentIntentAdvancedFeatureDetailsIncrementalAuthorization IncrementalAuthorization { get; set; }

[JsonProperty("multicapture")]
[STJS.JsonPropertyName("multicapture")]
public PaymentIntentAdvancedFeatureDetailsMulticapture Multicapture { get; set; }

[JsonProperty("overcapture")]
[STJS.JsonPropertyName("overcapture")]
public PaymentIntentAdvancedFeatureDetailsOvercapture Overcapture { get; set; }

[JsonProperty("reauthorization")]
[STJS.JsonPropertyName("reauthorization")]
public PaymentIntentAdvancedFeatureDetailsReauthorization Reauthorization { get; set; }

/// <summary>
/// Timestamp at which the reauthorization window closes.
/// </summary>
[JsonProperty("reauthorize_before")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("reauthorize_before")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? ReauthorizeBefore { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class PaymentIntentAdvancedFeatureDetailsDecrementalAuthorization : StripeEntity<PaymentIntentAdvancedFeatureDetailsDecrementalAuthorization>
{
/// <summary>
/// Indicates whether the feature is supported.
/// One of: <c>available</c>, or <c>unavailable</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class PaymentIntentAdvancedFeatureDetailsIncrementalAuthorization : StripeEntity<PaymentIntentAdvancedFeatureDetailsIncrementalAuthorization>
{
/// <summary>
/// Indicates whether the feature is supported.
/// One of: <c>available</c>, or <c>unavailable</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class PaymentIntentAdvancedFeatureDetailsMulticapture : StripeEntity<PaymentIntentAdvancedFeatureDetailsMulticapture>
{
/// <summary>
/// Indicates whether the feature is supported.
/// One of: <c>available</c>, or <c>unavailable</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { 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;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class PaymentIntentAdvancedFeatureDetailsOvercapture : StripeEntity<PaymentIntentAdvancedFeatureDetailsOvercapture>
{
/// <summary>
/// The maximum amount that can be captured.
/// </summary>
[JsonProperty("maximum_amount_capturable")]
[STJS.JsonPropertyName("maximum_amount_capturable")]
public long MaximumAmountCapturable { get; set; }

/// <summary>
/// Indicates whether overcapture is supported.
/// One of: <c>available</c>, or <c>unavailable</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class PaymentIntentAdvancedFeatureDetailsReauthorization : StripeEntity<PaymentIntentAdvancedFeatureDetailsReauthorization>
{
/// <summary>
/// Indicates whether the feature is supported.
/// One of: <c>available</c>, or <c>unavailable</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { get; set; }
}
}
Loading
Loading