Skip to content

Commit

Permalink
Update generated code for v1400
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 10, 2024
1 parent bd96d05 commit 35621d6
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1398
v1400
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
[JsonProperty("amount_authorized")]
public long? AmountAuthorized { get; set; }

/// <summary>
/// The latest amount intended to be authorized by this charge.
/// </summary>
[JsonProperty("amount_requested")]
public long? AmountRequested { get; set; }

/// <summary>
/// Authorization code on the charge.
/// </summary>
Expand Down Expand Up @@ -158,6 +164,9 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
[JsonProperty("overcapture")]
public ChargePaymentMethodDetailsCardOvercapture Overcapture { get; set; }

[JsonProperty("partial_authorization")]
public ChargePaymentMethodDetailsCardPartialAuthorization PartialAuthorization { get; set; }

/// <summary>
/// Status of a card based on the card issuer.
/// One of: <c>regulated</c>, or <c>unregulated</c>.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsCardPartialAuthorization : StripeEntity<ChargePaymentMethodDetailsCardPartialAuthorization>
{
/// <summary>
/// Indicates whether the transaction requested for partial authorization feature and the
/// authorization outcome.
/// One of: <c>declined</c>, <c>fully_authorized</c>, <c>not_requested</c>, or
/// <c>partially_authorized</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity<PaymentIntentP
[JsonProperty("request_overcapture")]
public string RequestOvercapture { get; set; }

/// <summary>
/// Request partial authorization on this PaymentIntent.
/// One of: <c>if_available</c>, or <c>never</c>.
/// </summary>
[JsonProperty("request_partial_authorization")]
public string RequestPartialAuthorization { get; set; }

/// <summary>
/// We strongly recommend that you rely on our SCA Engine to automatically prompt your
/// customers for authentication based on risk level and <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public class PaymentIntentIncrementAuthorizationOptions : BaseOptions, IHasMetad
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// Payment method-specific configuration for this PaymentIntent.
/// </summary>
[JsonProperty("payment_method_options")]
public PaymentIntentPaymentMethodOptionsOptions PaymentMethodOptions { get; set; }

/// <summary>
/// Text that appears on the customer's statement as the statement descriptor for a non-card
/// or card charge. This value overrides the account's default statement descriptor. For
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions
[JsonProperty("request_overcapture")]
public string RequestOvercapture { get; set; }

/// <summary>
/// Request partial authorization on this PaymentIntent.
/// One of: <c>if_available</c>, or <c>never</c>.
/// </summary>
[JsonProperty("request_partial_authorization")]
public string RequestPartialAuthorization { get; set; }

/// <summary>
/// We strongly recommend that you rely on our SCA Engine to automatically prompt your
/// customers for authentication based on risk level and <a
Expand Down

0 comments on commit 35621d6

Please sign in to comment.