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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d6534f3d076849c4f6df1414d4c477334e431ffd
b7e21c0de7853df2dc73504a0ae4967897fd5c30
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2103
v2104
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,21 @@ public class ApplicationFeeFeeSource : StripeEntity<ApplicationFeeFeeSource>

/// <summary>
/// Type of object that created the application fee.
/// One of: <c>charge</c>, or <c>payout</c>.
/// One of: <c>charge</c>, <c>payout</c>, or <c>transfer</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("type")]
#endif
public string Type { get; set; }

/// <summary>
/// Transfer ID that created this application fee.
/// </summary>
[JsonProperty("transfer")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("transfer")]
#endif
public string Transfer { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public class BalanceTransaction : StripeEntity<BalanceTransaction>, IHasId, IHas

/// <summary>
/// The balance that this transaction impacts.
/// One of: <c>issuing</c>, <c>payments</c>, or <c>refund_and_dispute_prefunding</c>.
/// One of: <c>issuing</c>, <c>payments</c>, <c>refund_and_dispute_prefunding</c>, or
/// <c>transit</c>.
/// </summary>
[JsonProperty("balance_type")]
#if NET6_0_OR_GREATER
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Balances/Balance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,11 @@ public class Balance : StripeEntity<Balance>, IHasObject
[STJS.JsonPropertyName("refund_and_dispute_prefunding")]
#endif
public BalanceRefundAndDisputePrefunding RefundAndDisputePrefunding { get; set; }

[JsonProperty("transit_balances_total")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("transit_balances_total")]
#endif
public BalanceTransitBalancesTotal TransitBalancesTotal { get; set; }
}
}
30 changes: 30 additions & 0 deletions src/Stripe.net/Entities/Balances/BalanceTransitBalancesTotal.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceTransitBalancesTotal : StripeEntity<BalanceTransitBalancesTotal>
{
/// <summary>
/// Funds that are available for use.
/// </summary>
[JsonProperty("available")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("available")]
#endif
public List<BalanceTransitBalancesTotalAvailable> Available { get; set; }

/// <summary>
/// Funds that are pending.
/// </summary>
[JsonProperty("pending")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("pending")]
#endif
public List<BalanceTransitBalancesTotalPending> Pending { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceTransitBalancesTotalAvailable : StripeEntity<BalanceTransitBalancesTotalAvailable>
{
/// <summary>
/// Balance amount.
/// </summary>
[JsonProperty("amount")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount")]
#endif
public long Amount { get; set; }

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("currency")]
#endif
public string Currency { get; set; }

[JsonProperty("source_types")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("source_types")]
#endif
public BalanceTransitBalancesTotalAvailableSourceTypes SourceTypes { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceTransitBalancesTotalAvailableSourceTypes : StripeEntity<BalanceTransitBalancesTotalAvailableSourceTypes>
{
/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bank_account")]
#endif
public long BankAccount { get; set; }

/// <summary>
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("card")]
#endif
public long Card { get; set; }

/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("fpx")]
#endif
public long Fpx { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceTransitBalancesTotalPending : StripeEntity<BalanceTransitBalancesTotalPending>
{
/// <summary>
/// Balance amount.
/// </summary>
[JsonProperty("amount")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount")]
#endif
public long Amount { get; set; }

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("currency")]
#endif
public string Currency { get; set; }

[JsonProperty("source_types")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("source_types")]
#endif
public BalanceTransitBalancesTotalPendingSourceTypes SourceTypes { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceTransitBalancesTotalPendingSourceTypes : StripeEntity<BalanceTransitBalancesTotalPendingSourceTypes>
{
/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bank_account")]
#endif
public long BankAccount { get; set; }

/// <summary>
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("card")]
#endif
public long Card { get; set; }

/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("fpx")]
#endif
public long Fpx { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ public class MeterUsageRow : StripeEntity<MeterUsageRow>, IHasId, IHasObject
#endif
public DateTime StartsAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// A set of key-value pairs representing the tenants of the meter usage.
/// </summary>
[JsonProperty("tenants")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("tenants")]
#endif
public Dictionary<string, string> Tenants { get; set; }

/// <summary>
/// The aggregated meter usage value for the specified bucket.
/// </summary>
Expand Down
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ public class PaymentIntent : StripeEntity<PaymentIntent>, IHasId, IHasMetadata,
#endif
public string Object { get; set; }

/// <summary>
/// Allocated Funds configuration for this PaymentIntent.
/// </summary>
[JsonProperty("allocated_funds")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("allocated_funds")]
#endif
public PaymentIntentAllocatedFunds AllocatedFunds { get; set; }

/// <summary>
/// Amount intended to be collected by this PaymentIntent. A positive integer representing
/// how much to charge in the <a
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;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class PaymentIntentAllocatedFunds : StripeEntity<PaymentIntentAllocatedFunds>
{
/// <summary>
/// Allocated Funds configuration for this PaymentIntent.
/// </summary>
[JsonProperty("enabled")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("enabled")]
#endif
public bool? Enabled { get; set; }
}
}
37 changes: 37 additions & 0 deletions src/Stripe.net/Entities/Transfers/Transfer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,43 @@ public class Transfer : StripeEntity<Transfer>, IHasId, IHasMetadata, IHasObject
#endif
public long AmountReversed { get; set; }

#region Expandable ApplicationFee

[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public string ApplicationFeeId
{
get => this.InternalApplicationFee?.Id;
set => this.InternalApplicationFee = SetExpandableFieldId(value, this.InternalApplicationFee);
}

[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public ApplicationFee ApplicationFee
{
get => this.InternalApplicationFee?.ExpandedObject;
set => this.InternalApplicationFee = SetExpandableFieldObject(value, this.InternalApplicationFee);
}

[JsonProperty("application_fee")]
[JsonConverter(typeof(ExpandableFieldConverter<ApplicationFee>))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("application_fee")]
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<ApplicationFee>))]
#endif
internal ExpandableField<ApplicationFee> InternalApplicationFee { get; set; }
#endregion

[JsonProperty("application_fee_amount")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("application_fee_amount")]
#endif
public long? ApplicationFeeAmount { get; set; }

#region Expandable BalanceTransaction

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,15 @@ public class MeterUsageMeterOptions : INestedOptions
[STJS.JsonPropertyName("tenant_filters")]
#endif
public Dictionary<string, string> TenantFilters { get; set; }

/// <summary>
/// List of high cardinality tenant dimension keys to group by. If specified, usage events
/// will be grouped by the given tenant dimension key's values.
/// </summary>
[JsonProperty("tenant_group_by_keys")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("tenant_group_by_keys")]
#endif
public List<string> TenantGroupByKeys { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ public class RequestedSessionConfirmOptions : BaseOptions
[STJS.JsonPropertyName("payment_method")]
#endif
public string PaymentMethod { get; set; }

/// <summary>
/// Risk details/signals associated with the requested session.
/// </summary>
[JsonProperty("risk_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("risk_details")]
#endif
public RequestedSessionRiskDetailsOptions RiskDetails { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,6 @@ public class RequestedSessionCreateOptions : BaseOptions, IHasMetadata
#endif
public RequestedSessionPaymentMethodDataOptions PaymentMethodData { get; set; }

/// <summary>
/// The risk details for this requested session.
/// </summary>
[JsonProperty("risk_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("risk_details")]
#endif
public RequestedSessionRiskDetailsOptions RiskDetails { get; set; }

/// <summary>
/// The details of the seller.
/// </summary>
Expand Down
Loading
Loading