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 @@
49b1e23eef1a5004ed00987c41d5ec8447a19e27
2feaeea9e3c2b01dd5b7e4092d8364af4bf1e740
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2189
v2190
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public class BalanceTransaction : StripeEntity<BalanceTransaction>, IHasId, IHas

/// <summary>
/// The balance that this transaction impacts.
/// One of: <c>issuing</c>, <c>payments</c>, <c>refund_and_dispute_prefunding</c>,
/// <c>risk_reserved</c>, or <c>transit</c>.
/// One of: <c>fee_credits</c>, <c>issuing</c>, <c>payments</c>,
/// <c>refund_and_dispute_prefunding</c>, <c>risk_reserved</c>, or <c>transit</c>.
/// </summary>
[JsonProperty("balance_type")]
#if NET6_0_OR_GREATER
Expand Down
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/Disputes/Dispute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ public class Dispute : StripeEntity<Dispute>, IHasId, IHasMetadata, IHasObject,
#endif
public long Amount { get; set; }

/// <summary>
/// The amount you want to contest, in the dispute's currency. Setting this to less than the
/// full dispute amount means accepting the loss on the remaining amount. If not specified,
/// the entire disputed amount is contested.
/// </summary>
[JsonProperty("amount_to_counter")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount_to_counter")]
#endif
public long AmountToCounter { get; set; }

/// <summary>
/// List of zero, one, or two balance transactions that show funds withdrawn and reinstated
/// to your Stripe account as a result of this dispute.
Expand Down
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ public List<Discount> Discounts
internal List<ExpandableField<Discount>> InternalDiscounts { get; set; }
#endregion

/// <summary>
/// Array of field names that can't be modified. Attempting to update a frozen field returns
/// an error.
/// One of: <c>pricing</c>, or <c>quantity</c>.
/// </summary>
[JsonProperty("frozen_fields")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("frozen_fields")]
#endif
public List<string> FrozenFields { get; set; }

#region Expandable Invoice

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Authorization Evaluations represent fraud risk assessments for Issuing card
/// authorizations. They include fraud risk signals and contextual details about the
/// authorization.
/// </summary>
public class IssuingAuthorizationEvaluation : StripeEntity<IssuingAuthorizationEvaluation>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("id")]
#endif
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("object")]
#endif
public string Object { get; set; }

/// <summary>
/// Details about the authorization transaction.
/// </summary>
[JsonProperty("authorization_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("authorization_details")]
#endif
public IssuingAuthorizationEvaluationAuthorizationDetails AuthorizationDetails { get; set; }

/// <summary>
/// Details about the card used in the authorization.
/// </summary>
[JsonProperty("card_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("card_details")]
#endif
public IssuingAuthorizationEvaluationCardDetails CardDetails { get; set; }

/// <summary>
/// Details about the cardholder.
/// </summary>
[JsonProperty("cardholder_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("cardholder_details")]
#endif
public IssuingAuthorizationEvaluationCardholderDetails CardholderDetails { get; set; }

/// <summary>
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("livemode")]
#endif
public bool Livemode { get; set; }

/// <summary>
/// Details about the merchant where the authorization occurred.
/// </summary>
[JsonProperty("merchant_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("merchant_details")]
#endif
public IssuingAuthorizationEvaluationMerchantDetails MerchantDetails { get; set; }

/// <summary>
/// Set of key-value pairs that you can attach to an object. This can be useful for storing
/// additional information about the object in a structured format.
/// </summary>
[JsonProperty("metadata")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("metadata")]
#endif
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// Details about the card network processing.
/// </summary>
[JsonProperty("network_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("network_details")]
#endif
public IssuingAuthorizationEvaluationNetworkDetails NetworkDetails { get; set; }

/// <summary>
/// Collection of fraud risk signals for this authorization evaluation.
/// </summary>
[JsonProperty("signals")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("signals")]
#endif
public IssuingAuthorizationEvaluationSignals Signals { get; set; }

/// <summary>
/// Details about the token, if a tokenized payment method was used.
/// </summary>
[JsonProperty("token_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("token_details")]
#endif
public IssuingAuthorizationEvaluationTokenDetails TokenDetails { get; set; }

/// <summary>
/// Details about verification checks performed.
/// </summary>
[JsonProperty("verification_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("verification_details")]
#endif
public IssuingAuthorizationEvaluationVerificationDetails VerificationDetails { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity<IssuingAuthorizationEvaluationAuthorizationDetails>
{
/// <summary>
/// The authorization amount in the smallest currency unit.
/// </summary>
[JsonProperty("amount")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount")]
#endif
public long Amount { get; set; }

/// <summary>
/// The method used for authorization.
/// One of: <c>chip</c>, <c>contactless</c>, <c>keyed_in</c>, <c>online</c>, or
/// <c>swipe</c>.
/// </summary>
[JsonProperty("authorization_method")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("authorization_method")]
#endif
public string AuthorizationMethod { get; set; }

/// <summary>
/// Three-letter ISO currency code in lowercase.
/// </summary>
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("currency")]
#endif
public string Currency { get; set; }

/// <summary>
/// The card entry mode.
/// One of: <c>contactless</c>, <c>contactless_magstripe</c>, <c>credential_on_file</c>,
/// <c>integrated_circuit_card</c>, <c>magstripe</c>, <c>magstripe_no_cvv</c>,
/// <c>manual</c>, <c>other</c>, or <c>unknown</c>.
/// </summary>
[JsonProperty("entry_mode")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("entry_mode")]
#endif
public string EntryMode { get; set; }

/// <summary>
/// The raw code for the card entry mode.
/// </summary>
[JsonProperty("entry_mode_raw_code")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("entry_mode_raw_code")]
#endif
public string EntryModeRawCode { get; set; }

/// <summary>
/// The time when the authorization was initiated.
/// </summary>
[JsonProperty("initiated_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("initiated_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime InitiatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The point of sale condition.
/// One of: <c>account_verification</c>, <c>card_not_present</c>, <c>card_present</c>,
/// <c>e_commerce</c>, <c>key_entered_pos</c>, <c>missing</c>, <c>moto</c>, <c>other</c>,
/// <c>pin_entered</c>, or <c>recurring</c>.
/// </summary>
[JsonProperty("point_of_sale_condition")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("point_of_sale_condition")]
#endif
public string PointOfSaleCondition { get; set; }

/// <summary>
/// The raw code for the point of sale condition.
/// </summary>
[JsonProperty("point_of_sale_condition_raw_code")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("point_of_sale_condition_raw_code")]
#endif
public string PointOfSaleConditionRawCode { get; set; }

/// <summary>
/// External reference for the authorization.
/// </summary>
[JsonProperty("reference")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reference")]
#endif
public string Reference { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class IssuingAuthorizationEvaluationCardDetails : StripeEntity<IssuingAuthorizationEvaluationCardDetails>
{
/// <summary>
/// The Bank Identification Number (BIN) of the card.
/// </summary>
[JsonProperty("bin")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bin")]
#endif
public string Bin { get; set; }

/// <summary>
/// The country code associated with the card BIN.
/// </summary>
[JsonProperty("bin_country")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bin_country")]
#endif
public string BinCountry { get; set; }

/// <summary>
/// The type of card (physical or virtual).
/// One of: <c>physical</c>, or <c>virtual</c>.
/// </summary>
[JsonProperty("card_type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("card_type")]
#endif
public string CardType { get; set; }

/// <summary>
/// The time when the card was created.
/// </summary>
[JsonProperty("created_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("created_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime CreatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The last 4 digits of the card number.
/// </summary>
[JsonProperty("last4")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("last4")]
#endif
public string Last4 { get; set; }

/// <summary>
/// External reference for the card.
/// </summary>
[JsonProperty("reference")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reference")]
#endif
public string Reference { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class IssuingAuthorizationEvaluationCardholderDetails : StripeEntity<IssuingAuthorizationEvaluationCardholderDetails>
{
/// <summary>
/// The time when the cardholder was created.
/// </summary>
[JsonProperty("created_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("created_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime? CreatedAt { get; set; }

/// <summary>
/// External reference for the cardholder.
/// </summary>
[JsonProperty("reference")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reference")]
#endif
public string Reference { get; set; }
}
}
Loading
Loading