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 @@
2c60f902831f969f228cecd1f52a81ca240c433c
4cd98860940da75ae8dfe7384cea405859800e9c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2229
v2240
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[STJS.JsonPropertyName("balances")]
public AccountSessionComponentsBalances Balances { get; set; }

/// <summary>
/// Configuration for the <a
/// href="https://stripe.com/connect/supported-embedded-components/bills/">Bills</a>
/// embedded component.
/// </summary>
[JsonProperty("bills")]
[STJS.JsonPropertyName("bills")]
public AccountSessionComponentsBills Bills { get; set; }

[JsonProperty("capital_financing")]
[STJS.JsonPropertyName("capital_financing")]
public AccountSessionComponentsCapitalFinancing CapitalFinancing { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 AccountSessionComponentsBills : StripeEntity<AccountSessionComponentsBills>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsBillsFeatures Features { get; set; }
}
}
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 AccountSessionComponentsBillsFeatures : StripeEntity<AccountSessionComponentsBillsFeatures>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ public class ApplicationFeeFeeSource : StripeEntity<ApplicationFeeFeeSource>
[STJS.JsonPropertyName("charge")]
public string Charge { get; set; }

/// <summary>
/// PaymentRecord ID that created this application fee.
/// </summary>
[JsonProperty("payment_record")]
[STJS.JsonPropertyName("payment_record")]
public string PaymentRecord { get; set; }

/// <summary>
/// Payout ID that created this application fee.
/// </summary>
Expand All @@ -36,12 +43,5 @@ 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
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
Expand All @@ -19,13 +20,30 @@ public class BalanceSettingsPayments : StripeEntity<BalanceSettingsPayments>
[STJS.JsonPropertyName("debit_negative_balances")]
public bool? DebitNegativeBalances { get; set; }

/// <summary>
/// The default settlement currency for the account.
/// </summary>
[JsonProperty("default_settlement_currency")]
[STJS.JsonPropertyName("default_settlement_currency")]
public string DefaultSettlementCurrency { get; set; }

/// <summary>
/// Settings specific to the account's payouts.
/// </summary>
[JsonProperty("payouts")]
[STJS.JsonPropertyName("payouts")]
public BalanceSettingsPaymentsPayouts Payouts { get; set; }

/// <summary>
/// A hash of settlement currencies and their states. Each key is an ISO 4217 currency code,
/// and the value is one of <c>enabled</c>, <c>disabled</c>, or
/// <c>restricted_by_application</c>.
/// One of: <c>disabled</c>, <c>enabled</c>, or <c>restricted_by_application</c>.
/// </summary>
[JsonProperty("settlement_currencies")]
[STJS.JsonPropertyName("settlement_currencies")]
public Dictionary<string, string> SettlementCurrencies { get; set; }

[JsonProperty("settlement_timing")]
[STJS.JsonPropertyName("settlement_timing")]
public BalanceSettingsPaymentsSettlementTiming SettlementTiming { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDetailsCard>
{
[JsonProperty("account_funding")]
[STJS.JsonPropertyName("account_funding")]
public ChargePaymentMethodDetailsCardAccountFunding AccountFunding { get; set; }

/// <summary>
/// The authorized amount.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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 ChargePaymentMethodDetailsCardAccountFunding : StripeEntity<ChargePaymentMethodDetailsCardAccountFunding>
{
/// <summary>
/// The transaction type of the card transaction. One of <c>account_funding</c> or
/// <c>purchase</c>.
/// One of: <c>account_funding</c>, or <c>purchase</c>.
/// </summary>
[JsonProperty("processed_transaction_type")]
[STJS.JsonPropertyName("processed_transaction_type")]
public string ProcessedTransactionType { get; set; }
}
}
8 changes: 8 additions & 0 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ public class Session : StripeEntity<Session>, IHasId, IHasMetadata, IHasObject
[STJS.JsonPropertyName("approval_method")]
public string ApprovalMethod { get; set; }

[JsonProperty("automatic_surcharge")]
[STJS.JsonPropertyName("automatic_surcharge")]
public SessionAutomaticSurcharge AutomaticSurcharge { get; set; }

[JsonProperty("automatic_tax")]
[STJS.JsonPropertyName("automatic_tax")]
public SessionAutomaticTax AutomaticTax { get; set; }
Expand Down Expand Up @@ -740,6 +744,10 @@ public Subscription Subscription
[STJS.JsonPropertyName("success_url")]
public string SuccessUrl { get; set; }

[JsonProperty("surcharge_cost")]
[STJS.JsonPropertyName("surcharge_cost")]
public SessionSurchargeCost SurchargeCost { get; set; }

[JsonProperty("tax_id_collection")]
[STJS.JsonPropertyName("tax_id_collection")]
public SessionTaxIdCollection TaxIdCollection { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class SessionAutomaticSurcharge : StripeEntity<SessionAutomaticSurcharge>
{
/// <summary>
/// Determines which amount serves as the basis for calculating the surcharge.
/// One of: <c>total_after_tax</c>, or <c>total_before_tax</c>.
/// </summary>
[JsonProperty("calculation_basis")]
[STJS.JsonPropertyName("calculation_basis")]
public string CalculationBasis { get; set; }

/// <summary>
/// Indicates whether automatic surcharge is enabled for the session.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

/// <summary>
/// The surcharge provider used for this session.
/// One of: <c>interpayments</c>, or <c>yeeld</c>.
/// </summary>
[JsonProperty("provider")]
[STJS.JsonPropertyName("provider")]
public string Provider { get; set; }

/// <summary>
/// The status of the most recent surcharge calculation for this session.
/// One of: <c>complete</c>, <c>failed</c>, or <c>requires_input</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { get; set; }

/// <summary>
/// Specifies whether the surcharge is considered inclusive or exclusive of taxes.
/// One of: <c>exclusive</c>, <c>inclusive</c>, or <c>unspecified</c>.
/// </summary>
[JsonProperty("tax_behavior")]
[STJS.JsonPropertyName("tax_behavior")]
public string TaxBehavior { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
[STJS.JsonPropertyName("billie")]
public SessionPaymentMethodOptionsBillie Billie { get; set; }

[JsonProperty("bizum")]
[STJS.JsonPropertyName("bizum")]
public SessionPaymentMethodOptionsBizum Bizum { get; set; }

[JsonProperty("boleto")]
[STJS.JsonPropertyName("boleto")]
public SessionPaymentMethodOptionsBoleto Boleto { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class SessionPaymentMethodOptionsBizum : StripeEntity<SessionPaymentMethodOptionsBizum>
{
[JsonProperty("mandate_options")]
[STJS.JsonPropertyName("mandate_options")]
public SessionPaymentMethodOptionsBizumMandateOptions MandateOptions { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class SessionPaymentMethodOptionsBizumMandateOptions : StripeEntity<SessionPaymentMethodOptionsBizumMandateOptions>
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class SessionSurchargeCost : StripeEntity<SessionSurchargeCost>
{
/// <summary>
/// Total surcharge cost before taxes are applied.
/// </summary>
[JsonProperty("amount_subtotal")]
[STJS.JsonPropertyName("amount_subtotal")]
public long AmountSubtotal { get; set; }

/// <summary>
/// Total tax amount applied due to surcharging. If no tax was applied, defaults to 0.
/// </summary>
[JsonProperty("amount_tax")]
[STJS.JsonPropertyName("amount_tax")]
public long AmountTax { get; set; }

/// <summary>
/// Total surcharge cost after taxes are applied.
/// </summary>
[JsonProperty("amount_total")]
[STJS.JsonPropertyName("amount_total")]
public long AmountTotal { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ public class SessionTotalDetails : StripeEntity<SessionTotalDetails>
[STJS.JsonPropertyName("amount_shipping")]
public long? AmountShipping { get; set; }

/// <summary>
/// The surcharge amount that was applied to the Checkout Session.
/// </summary>
[JsonProperty("amount_surcharge")]
[STJS.JsonPropertyName("amount_surcharge")]
public long AmountSurcharge { get; set; }

/// <summary>
/// This is the sum of all the tax amounts.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ namespace Stripe.DelegatedCheckout
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class RequestedSessionSellerDetails : StripeEntity<RequestedSessionSellerDetails>
{
/// <summary>
/// The card brands supported by the seller.
/// One of: <c>american_express</c>, <c>mastercard</c>, or <c>visa</c>.
/// </summary>
[JsonProperty("card_brands")]
[STJS.JsonPropertyName("card_brands")]
public List<string> CardBrands { get; set; }

/// <summary>
/// The marketplace seller details.
/// </summary>
Expand Down Expand Up @@ -51,6 +59,14 @@ public Profile NetworkProfile
internal ExpandableField<Profile> InternalNetworkProfile { get; set; }
#endregion

/// <summary>
/// The payment method types supported by the seller.
/// One of: <c>affirm</c>, <c>card</c>, or <c>klarna</c>.
/// </summary>
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }

/// <summary>
/// The URL to the seller's privacy notice.
/// </summary>
Expand Down Expand Up @@ -78,21 +94,5 @@ public Profile NetworkProfile
[JsonProperty("terms_of_service_url")]
[STJS.JsonPropertyName("terms_of_service_url")]
public string TermsOfServiceUrl { get; set; }

/// <summary>
/// The card brands supported by the seller.
/// One of: <c>american_express</c>, <c>mastercard</c>, or <c>visa</c>.
/// </summary>
[JsonProperty("card_brands")]
[STJS.JsonPropertyName("card_brands")]
public List<string> CardBrands { get; set; }

/// <summary>
/// The payment method types supported by the seller.
/// One of: <c>affirm</c>, <c>card</c>, or <c>klarna</c>.
/// </summary>
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public class VerificationReport : StripeEntity<VerificationReport>, IHasId, IHas

/// <summary>
/// Type of report.
/// One of: <c>document</c>, <c>id_number</c>, or <c>verification_flow</c>.
/// One of: <c>document</c>, <c>email</c>, <c>id_number</c>, or <c>verification_flow</c>.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ namespace Stripe.Identity
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class VerificationReportEmail : StripeEntity<VerificationReportEmail>
{
/// <summary>
/// Additional email verification details.
/// </summary>
[JsonProperty("details")]
[STJS.JsonPropertyName("details")]
public VerificationReportEmailDetails Details { get; set; }

/// <summary>
/// Email to be verified.
/// </summary>
Expand Down
Loading
Loading