Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #2421

Merged
merged 1 commit into from
Feb 9, 2022
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: 2 additions & 0 deletions src/Stripe.net/Entities/Refunds/Refund.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ public PaymentIntent PaymentIntent
/// Reason for the refund, either user-provided (<c>duplicate</c>, <c>fraudulent</c>, or
/// <c>requested_by_customer</c>) or generated by Stripe internally
/// (<c>expired_uncaptured_charge</c>).
/// One of: <c>duplicate</c>, <c>expired_uncaptured_charge</c>, <c>fraudulent</c>, or
/// <c>requested_by_customer</c>.
/// </summary>
[JsonProperty("reason")]
public string Reason { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata
/// <summary>
/// The amount of the application fee (if any) that will be requested to be applied to the
/// payment and transferred to the application owner's Stripe account. The amount of the
/// application fee collected will be capped at the total payment amount. To use an
/// application fee, the request must be made on behalf of another account, using the
/// <c>Stripe-Account</c> header or an OAuth key. For more information, see the
/// PaymentIntents <a href="https://stripe.com/docs/payments/connected-accounts">use case
/// for connected accounts</a>.
/// application fee collected will be capped at the total payment amount. For more
/// information, see the PaymentIntents <a
/// href="https://stripe.com/docs/payments/connected-accounts">use case for connected
/// accounts</a>.
/// </summary>
[JsonProperty("application_fee_amount")]
public long? ApplicationFeeAmount { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
// File generated from our OpenAPI spec
namespace Stripe.Issuing
{
using Newtonsoft.Json;

public class CardholderIndividualDobOptions : INestedOptions
{
/// <summary>
/// The day of birth, between 1 and 31.
/// </summary>
[JsonProperty("day")]
public long? Day { get; set; }

/// <summary>
/// The month of birth, between 1 and 12.
/// </summary>
[JsonProperty("month")]
public long? Month { get; set; }

/// <summary>
/// The four-digit year of birth.
/// </summary>
[JsonProperty("year")]
public long? Year { get; set; }
}
Expand Down
14 changes: 14 additions & 0 deletions src/Stripe.net/Services/Issuing/Cards/CardPinOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.Issuing
{
using Newtonsoft.Json;

public class CardPinOptions : INestedOptions
{
/// <summary>
/// The card's desired new PIN, encrypted under Stripe's public key.
/// </summary>
[JsonProperty("encrypted_number")]
public string EncryptedNumber { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/Stripe.net/Services/Issuing/Cards/CardUpdateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public class CardUpdateOptions : BaseOptions, IHasMetadata
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// The desired new PIN for this card.
/// </summary>
[JsonProperty("pin")]
public CardPinOptions Pin { get; set; }

/// <summary>
/// Rules that control spending for this card. Refer to our <a
/// href="https://stripe.com/docs/issuing/controls/spending-controls">documentation</a> for
Expand Down