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 @@
23fb5589c3b9c027a742408f7ac2cff1be45a926
0b70149ad16c8d226d0b0d5ef7ac045c8a86ea31
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2080
v2100
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Stripe.Billing
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
Expand Down Expand Up @@ -47,6 +48,15 @@ public class MeterEventSummary : StripeEntity<MeterEventSummary>, IHasId, IHasOb
#endif
public decimal AggregatedValue { get; set; }

/// <summary>
/// Key-value pairs of dimension values for event summaries with grouping on dimensions.
/// </summary>
[JsonProperty("dimensions")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("dimensions")]
#endif
public Dictionary<string, string> Dimensions { get; set; }

/// <summary>
/// End timestamp for this event summary (exclusive). Must be aligned with minute
/// boundaries.
Expand Down
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Billing/Meters/Meter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Stripe.Billing
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
Expand Down Expand Up @@ -59,6 +60,15 @@ public class Meter : StripeEntity<Meter>, IHasId, IHasObject
#endif
public MeterDefaultAggregation DefaultAggregation { get; set; }

/// <summary>
/// Set of keys that will be used to group meter events by.
/// </summary>
[JsonProperty("dimension_payload_keys")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("dimension_payload_keys")]
#endif
public List<string> DimensionPayloadKeys { get; set; }

/// <summary>
/// The meter's name.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// A requested session is a session that has been requested by a customer.
/// </summary>
public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObject
public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
Expand All @@ -29,6 +32,35 @@ public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObje
#endif
public string Object { get; set; }

/// <summary>
/// The subtotal amount of the requested session.
/// </summary>
[JsonProperty("amount_subtotal")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount_subtotal")]
#endif
public long AmountSubtotal { get; set; }

/// <summary>
/// The total amount of the requested session.
/// </summary>
[JsonProperty("amount_total")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount_total")]
#endif
public long AmountTotal { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </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>
/// 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
Expand All @@ -49,12 +81,35 @@ public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObje
#endif
public string Customer { get; set; }

/// <summary>
/// Time at which the requested session expires. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("expires_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("expires_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The details of the fulfillment.
/// </summary>
[JsonProperty("fulfillment_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("fulfillment_details")]
#endif
public RequestedSessionFulfillmentDetails FulfillmentDetails { get; set; }

/// <summary>
/// The line items to be purchased.
/// </summary>
[JsonProperty("line_item_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("line_item_details")]
#endif
public List<RequestedSessionLineItemDetail> LineItemDetails { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
Expand All @@ -64,5 +119,94 @@ public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObje
[STJS.JsonPropertyName("livemode")]
#endif
public bool Livemode { get; set; }

/// <summary>
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> 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>
/// The details of the order.
/// </summary>
[JsonProperty("order_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("order_details")]
#endif
public RequestedSessionOrderDetails OrderDetails { get; set; }

/// <summary>
/// The payment method used for the requested session.
/// </summary>
[JsonProperty("payment_method")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payment_method")]
#endif
public string PaymentMethod { get; set; }

[JsonProperty("seller_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("seller_details")]
#endif
public RequestedSessionSellerDetails SellerDetails { get; set; }

/// <summary>
/// Whether or not the payment method should be saved for future use.
/// </summary>
[JsonProperty("setup_future_usage")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("setup_future_usage")]
#endif
public string SetupFutureUsage { get; set; }

/// <summary>
/// The metadata shared with the seller.
/// </summary>
[JsonProperty("shared_metadata")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("shared_metadata")]
#endif
public Dictionary<string, string> SharedMetadata { get; set; }

/// <summary>
/// The SPT used for payment.
/// </summary>
[JsonProperty("shared_payment_issued_token")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("shared_payment_issued_token")]
#endif
public string SharedPaymentIssuedToken { get; set; }

/// <summary>
/// The status of the requested session.
/// One of: <c>completed</c>, <c>expired</c>, or <c>open</c>.
/// </summary>
[JsonProperty("status")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("status")]
#endif
public string Status { get; set; }

[JsonProperty("total_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("total_details")]
#endif
public RequestedSessionTotalDetails TotalDetails { get; set; }

/// <summary>
/// Time at which the object was last updated. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("updated_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("updated_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime UpdatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,66 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class RequestedSessionFulfillmentDetails : StripeEntity<RequestedSessionFulfillmentDetails>
{
/// <summary>
/// The fulfillment address.
/// </summary>
[JsonProperty("address")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("address")]
#endif
public RequestedSessionFulfillmentDetailsAddress Address { get; set; }

/// <summary>
/// The email address for the fulfillment details.
/// </summary>
[JsonProperty("email")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("email")]
#endif
public string Email { get; set; }

/// <summary>
/// The fulfillment options.
/// </summary>
[JsonProperty("fulfillment_options")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("fulfillment_options")]
#endif
public List<RequestedSessionFulfillmentDetailsFulfillmentOption> FulfillmentOptions { get; set; }

/// <summary>
/// The name for the fulfillment details.
/// </summary>
[JsonProperty("name")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("name")]
#endif
public string Name { get; set; }

/// <summary>
/// The phone number for the fulfillment details.
/// </summary>
[JsonProperty("phone")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("phone")]
#endif
public string Phone { get; set; }

/// <summary>
/// The fulfillment option.
/// </summary>
[JsonProperty("selected_fulfillment_option")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("selected_fulfillment_option")]
#endif
public RequestedSessionFulfillmentDetailsSelectedFulfillmentOption SelectedFulfillmentOption { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class RequestedSessionFulfillmentDetailsAddress : StripeEntity<RequestedSessionFulfillmentDetailsAddress>
{
/// <summary>
/// City, district, suburb, town, or village.
/// </summary>
[JsonProperty("city")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("city")]
#endif
public string City { get; set; }

/// <summary>
/// Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
/// 3166-1 alpha-2</a>).
/// </summary>
[JsonProperty("country")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("country")]
#endif
public string Country { get; set; }

/// <summary>
/// Address line 1, such as the street, PO Box, or company name.
/// </summary>
[JsonProperty("line1")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("line1")]
#endif
public string Line1 { get; set; }

/// <summary>
/// Address line 2, such as the apartment, suite, unit, or building.
/// </summary>
[JsonProperty("line2")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("line2")]
#endif
public string Line2 { get; set; }

/// <summary>
/// ZIP or postal code.
/// </summary>
[JsonProperty("postal_code")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("postal_code")]
#endif
public string PostalCode { get; set; }

/// <summary>
/// State, county, province, or region.
/// </summary>
[JsonProperty("state")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("state")]
#endif
public string State { get; set; }
}
}
Loading
Loading