Skip to content
Merged
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16e50491e9d896cb53da4a46080b4333741b76cb
2c60f902831f969f228cecd1f52a81ca240c433c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2217
v2229
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2026-04-01.preview";
public const string Current = "2026-04-08.preview";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,12 @@ public class ApplicationFeeFeeSource : StripeEntity<ApplicationFeeFeeSource>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }

/// <summary>
/// PaymentRecord ID that created this application fee.
/// </summary>
[JsonProperty("payment_record")]
[STJS.JsonPropertyName("payment_record")]
public string PaymentRecord { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public SharedPayment.IssuedToken SharedPaymentIssuedToken

/// <summary>
/// The status of the requested session.
/// One of: <c>completed</c>, <c>expired</c>, or <c>open</c>.
/// One of: <c>completed</c>, <c>expired</c>, <c>open</c>, or <c>requires_action</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
Expand Down
18 changes: 9 additions & 9 deletions src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ public class InvoicePaymentSettings : StripeEntity<InvoicePaymentSettings>
/// settings</a>.
/// One of: <c>ach_credit_transfer</c>, <c>ach_debit</c>, <c>acss_debit</c>, <c>affirm</c>,
/// <c>amazon_pay</c>, <c>au_becs_debit</c>, <c>bacs_debit</c>, <c>bancontact</c>,
/// <c>boleto</c>, <c>card</c>, <c>cashapp</c>, <c>check_scan</c>, <c>crypto</c>,
/// <c>custom</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>,
/// <c>grabpay</c>, <c>id_bank_transfer</c>, <c>ideal</c>, <c>jp_credit_transfer</c>,
/// <c>kakao_pay</c>, <c>klarna</c>, <c>konbini</c>, <c>kr_card</c>, <c>link</c>,
/// <c>multibanco</c>, <c>naver_pay</c>, <c>nz_bank_account</c>, <c>p24</c>,
/// <c>pay_by_bank</c>, <c>payco</c>, <c>paynow</c>, <c>paypal</c>, <c>payto</c>,
/// <c>pix</c>, <c>promptpay</c>, <c>revolut_pay</c>, <c>sepa_credit_transfer</c>,
/// <c>sepa_debit</c>, <c>sofort</c>, <c>stripe_balance</c>, <c>swish</c>, <c>upi</c>,
/// <c>us_bank_account</c>, or <c>wechat_pay</c>.
/// <c>bizum</c>, <c>boleto</c>, <c>card</c>, <c>cashapp</c>, <c>check_scan</c>,
/// <c>crypto</c>, <c>custom</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>id_bank_transfer</c>, <c>ideal</c>,
/// <c>jp_credit_transfer</c>, <c>kakao_pay</c>, <c>klarna</c>, <c>konbini</c>,
/// <c>kr_card</c>, <c>link</c>, <c>multibanco</c>, <c>naver_pay</c>,
/// <c>nz_bank_account</c>, <c>p24</c>, <c>pay_by_bank</c>, <c>payco</c>, <c>paynow</c>,
/// <c>paypal</c>, <c>payto</c>, <c>pix</c>, <c>promptpay</c>, <c>revolut_pay</c>,
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>stripe_balance</c>,
/// <c>swish</c>, <c>upi</c>, <c>us_bank_account</c>, or <c>wechat_pay</c>.
/// </summary>
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity<InvoicePa
[STJS.JsonPropertyName("us_bank_account")]
public InvoicePaymentSettingsPaymentMethodOptionsUsBankAccount UsBankAccount { get; set; }

/// <summary>
/// If paying by <c>bizum</c>, this sub-hash contains details about the Bizum payment method
/// options to pass to the invoice’s PaymentIntent.
/// </summary>
[JsonProperty("bizum")]
[STJS.JsonPropertyName("bizum")]
public InvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; }

/// <summary>
/// If paying by <c>check_scan</c>, this sub-hash contains details about the Check Scan
/// payment method options to pass to the invoice’s PaymentIntent.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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 InvoicePaymentSettingsPaymentMethodOptionsBizum : StripeEntity<InvoicePaymentSettingsPaymentMethodOptionsBizum>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity<PaymentIntentAmou
[STJS.JsonPropertyName("quantity")]
public long Quantity { get; set; }

/// <summary>
/// The number of decimal places implied in the quantity. For example, if quantity is 10000
/// and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not
/// provided.
/// </summary>
[JsonProperty("quantity_precision")]
[STJS.JsonPropertyName("quantity_precision")]
public long QuantityPrecision { get; set; }

/// <summary>
/// Contains information about the tax on the item.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCard : Stripe
[JsonProperty("commodity_code")]
[STJS.JsonPropertyName("commodity_code")]
public string CommodityCode { get; set; }

[JsonProperty("fleet_data")]
[STJS.JsonPropertyName("fleet_data")]
public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData FleetData { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// 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 PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData : StripeEntity<PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData>
{
/// <summary>
/// The type of product being purchased at this line item.
/// </summary>
[JsonProperty("product_type")]
[STJS.JsonPropertyName("product_type")]
public string ProductType { get; set; }

/// <summary>
/// The type of service received at the acceptor location.
/// </summary>
[JsonProperty("service_type")]
[STJS.JsonPropertyName("service_type")]
public string ServiceType { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,12 @@ public class PaymentIntentPaymentDetails : StripeEntity<PaymentIntentPaymentDeta
[JsonProperty("subscription")]
[STJS.JsonPropertyName("subscription")]
public PaymentIntentPaymentDetailsSubscription Subscription { get; set; }

/// <summary>
/// Fleet data for this PaymentIntent.
/// </summary>
[JsonProperty("fleet_data")]
[STJS.JsonPropertyName("fleet_data")]
public List<PaymentIntentPaymentDetailsFleetDatum> FleetData { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// 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 PaymentIntentPaymentDetailsFleetDatum : StripeEntity<PaymentIntentPaymentDetailsFleetDatum>
{
[JsonProperty("primary_fuel_fields")]
[STJS.JsonPropertyName("primary_fuel_fields")]
public PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields PrimaryFuelFields { get; set; }

[JsonProperty("station")]
[STJS.JsonPropertyName("station")]
public PaymentIntentPaymentDetailsFleetDatumStation Station { get; set; }

[JsonProperty("vat")]
[STJS.JsonPropertyName("vat")]
public PaymentIntentPaymentDetailsFleetDatumVat Vat { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// 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 PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields : StripeEntity<PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields>
{
/// <summary>
/// The fuel brand.
/// </summary>
[JsonProperty("brand")]
[STJS.JsonPropertyName("brand")]
public string Brand { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// 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 PaymentIntentPaymentDetailsFleetDatumStation : StripeEntity<PaymentIntentPaymentDetailsFleetDatumStation>
{
/// <summary>
/// Additional contact information for the station.
/// </summary>
[JsonProperty("additional_contact_info")]
[STJS.JsonPropertyName("additional_contact_info")]
public string AdditionalContactInfo { get; set; }

/// <summary>
/// The customer service phone number of the station.
/// </summary>
[JsonProperty("customer_service_phone_number")]
[STJS.JsonPropertyName("customer_service_phone_number")]
public string CustomerServicePhoneNumber { get; set; }

/// <summary>
/// The partner ID code of the station.
/// </summary>
[JsonProperty("partner_id_code")]
[STJS.JsonPropertyName("partner_id_code")]
public string PartnerIdCode { get; set; }

/// <summary>
/// The phone number of the station.
/// </summary>
[JsonProperty("phone_number")]
[STJS.JsonPropertyName("phone_number")]
public string PhoneNumber { get; set; }

[JsonProperty("service_location")]
[STJS.JsonPropertyName("service_location")]
public Address ServiceLocation { get; set; }

/// <summary>
/// The URL of the station.
/// </summary>
[JsonProperty("url")]
[STJS.JsonPropertyName("url")]
public string Url { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// 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 PaymentIntentPaymentDetailsFleetDatumVat : StripeEntity<PaymentIntentPaymentDetailsFleetDatumVat>
{
/// <summary>
/// Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing.
/// </summary>
[JsonProperty("iob_indicator")]
[STJS.JsonPropertyName("iob_indicator")]
public string IobIndicator { get; set; }
}
}
7 changes: 7 additions & 0 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ public Customer Customer
[STJS.JsonPropertyName("sepa_debit")]
public PaymentMethodSepaDebit SepaDebit { get; set; }

/// <summary>
/// ID of the shared payment granted token used in the creation of this PaymentMethod.
/// </summary>
[JsonProperty("shared_payment_granted_token")]
[STJS.JsonPropertyName("shared_payment_granted_token")]
public string SharedPaymentGrantedToken { get; set; }

[JsonProperty("shopeepay")]
[STJS.JsonPropertyName("shopeepay")]
public PaymentMethodShopeepay Shopeepay { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntity<QuotePreviewInvoi
/// settings</a>.
/// One of: <c>ach_credit_transfer</c>, <c>ach_debit</c>, <c>acss_debit</c>, <c>affirm</c>,
/// <c>amazon_pay</c>, <c>au_becs_debit</c>, <c>bacs_debit</c>, <c>bancontact</c>,
/// <c>boleto</c>, <c>card</c>, <c>cashapp</c>, <c>check_scan</c>, <c>crypto</c>,
/// <c>custom</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>,
/// <c>grabpay</c>, <c>id_bank_transfer</c>, <c>ideal</c>, <c>jp_credit_transfer</c>,
/// <c>kakao_pay</c>, <c>klarna</c>, <c>konbini</c>, <c>kr_card</c>, <c>link</c>,
/// <c>multibanco</c>, <c>naver_pay</c>, <c>nz_bank_account</c>, <c>p24</c>,
/// <c>pay_by_bank</c>, <c>payco</c>, <c>paynow</c>, <c>paypal</c>, <c>payto</c>,
/// <c>pix</c>, <c>promptpay</c>, <c>revolut_pay</c>, <c>sepa_credit_transfer</c>,
/// <c>sepa_debit</c>, <c>sofort</c>, <c>stripe_balance</c>, <c>swish</c>, <c>upi</c>,
/// <c>us_bank_account</c>, or <c>wechat_pay</c>.
/// <c>bizum</c>, <c>boleto</c>, <c>card</c>, <c>cashapp</c>, <c>check_scan</c>,
/// <c>crypto</c>, <c>custom</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>id_bank_transfer</c>, <c>ideal</c>,
/// <c>jp_credit_transfer</c>, <c>kakao_pay</c>, <c>klarna</c>, <c>konbini</c>,
/// <c>kr_card</c>, <c>link</c>, <c>multibanco</c>, <c>naver_pay</c>,
/// <c>nz_bank_account</c>, <c>p24</c>, <c>pay_by_bank</c>, <c>payco</c>, <c>paynow</c>,
/// <c>paypal</c>, <c>payto</c>, <c>pix</c>, <c>promptpay</c>, <c>revolut_pay</c>,
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>stripe_balance</c>,
/// <c>swish</c>, <c>upi</c>, <c>us_bank_account</c>, or <c>wechat_pay</c>.
/// </summary>
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptions : StripeEnti
[STJS.JsonPropertyName("us_bank_account")]
public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount UsBankAccount { get; set; }

/// <summary>
/// If paying by <c>bizum</c>, this sub-hash contains details about the Bizum payment method
/// options to pass to the invoice’s PaymentIntent.
/// </summary>
[JsonProperty("bizum")]
[STJS.JsonPropertyName("bizum")]
public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; }

/// <summary>
/// If paying by <c>check_scan</c>, this sub-hash contains details about the Check Scan
/// payment method options to pass to the invoice’s PaymentIntent.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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 QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum : StripeEntity<QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ public class CustomerEvaluation : StripeEntity<CustomerEvaluation>, IHasId, IHas
public DateTime CreatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The ID of the Stripe customer the customer evaluation is associated with.
/// The ID of the Customer to associate with this CustomerEvaluation.
/// </summary>
[JsonProperty("customer")]
[STJS.JsonPropertyName("customer")]
public string Customer { get; set; }

/// <summary>
/// The type of evaluation event.
/// One of: <c>login</c>, or <c>registration</c>.
/// </summary>
[JsonProperty("event_type")]
[STJS.JsonPropertyName("event_type")]
Expand All @@ -66,7 +67,7 @@ public class CustomerEvaluation : StripeEntity<CustomerEvaluation>, IHasId, IHas
public bool Livemode { get; set; }

/// <summary>
/// A hash of signal objects providing Radar's evaluation for the lifecycle event.
/// A hash of signal objects providing Radar's evaluation of the customer.
/// </summary>
[JsonProperty("signals")]
[STJS.JsonPropertyName("signals")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ public class CustomerEvaluationSignalsAccountSharing : StripeEntity<CustomerEval

/// <summary>
/// The risk level for this signal.
/// One of: <c>elevated</c>, <c>highest</c>, <c>low</c>, <c>normal</c>, <c>not_assessed</c>,
/// or <c>unknown</c>.
/// </summary>
[JsonProperty("risk_level")]
[STJS.JsonPropertyName("risk_level")]
public string RiskLevel { get; set; }

/// <summary>
/// Score for this signal (float between 0.0-100.0).
/// Score for this signal (between 0.0 and 100.0).
/// </summary>
[JsonProperty("score")]
[STJS.JsonPropertyName("score")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ public class CustomerEvaluationSignalsMultiAccounting : StripeEntity<CustomerEva

/// <summary>
/// The risk level for this signal.
/// One of: <c>elevated</c>, <c>highest</c>, <c>low</c>, <c>normal</c>, <c>not_assessed</c>,
/// or <c>unknown</c>.
/// </summary>
[JsonProperty("risk_level")]
[STJS.JsonPropertyName("risk_level")]
public string RiskLevel { get; set; }

/// <summary>
/// Score for this signal (float between 0.0-100.0).
/// Score for this signal (between 0.0 and 100.0).
/// </summary>
[JsonProperty("score")]
[STJS.JsonPropertyName("score")]
Expand Down
Loading
Loading