-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v897 * Update generated code for v898 * Update generated code for v899 * Update generated code for v900 * Update generated code for v900 * Update generated code for v901 * Update generated code for v902 * Update generated code for v903 * Update generated code for v904 * Update generated code for v905 * Update generated code for v908 * Update generated code for v908 * Update generated code for v909 * Update generated code for v910 * Update generated code for v911 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
- Loading branch information
1 parent
65dc7b2
commit 9b7c00d
Showing
66 changed files
with
1,129 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v896 | ||
v911 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/Stripe.net/Entities/Billing/MeterEventAdjustments/MeterEventAdjustment.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// A billing meter event adjustment represents the status of a meter event adjustment. | ||
/// </summary> | ||
public class MeterEventAdjustment : StripeEntity<MeterEventAdjustment>, IHasObject | ||
{ | ||
/// <summary> | ||
/// String representing the object's type. Objects of the same type share the same value. | ||
/// </summary> | ||
[JsonProperty("object")] | ||
public string Object { 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. | ||
/// </summary> | ||
[JsonProperty("livemode")] | ||
public bool Livemode { get; set; } | ||
|
||
/// <summary> | ||
/// The meter event adjustment's status. | ||
/// One of: <c>complete</c>, or <c>pending</c>. | ||
/// </summary> | ||
[JsonProperty("status")] | ||
public string Status { get; set; } | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
src/Stripe.net/Entities/Billing/MeterEventSummaries/MeterEventSummary.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
/// <summary> | ||
/// A billing meter event summary represents an aggregated view of a customer's billing | ||
/// meter events within a specified timeframe. It indicates how much usage was accrued by a | ||
/// customer for that period. | ||
/// </summary> | ||
public class MeterEventSummary : StripeEntity<MeterEventSummary>, IHasId, IHasObject | ||
{ | ||
/// <summary> | ||
/// Unique identifier for the object. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// String representing the object's type. Objects of the same type share the same value. | ||
/// </summary> | ||
[JsonProperty("object")] | ||
public string Object { get; set; } | ||
|
||
/// <summary> | ||
/// Aggregated value of all the events within start_time (inclusive) and end_time | ||
/// (inclusive). The aggregation strategy is defined on meter via `default_aggregation``. | ||
/// </summary> | ||
[JsonProperty("aggregated_value")] | ||
public decimal AggregatedValue { get; set; } | ||
|
||
/// <summary> | ||
/// End timestamp for this usage summary (inclusive). | ||
/// </summary> | ||
[JsonProperty("end_time")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime EndTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
|
||
/// <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. | ||
/// </summary> | ||
[JsonProperty("livemode")] | ||
public bool Livemode { get; set; } | ||
|
||
/// <summary> | ||
/// The meter associated with this usage summary. | ||
/// </summary> | ||
[JsonProperty("meter")] | ||
public string Meter { get; set; } | ||
|
||
/// <summary> | ||
/// Start timestamp for this usage summary (inclusive). | ||
/// </summary> | ||
[JsonProperty("start_time")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime StartTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
/// <summary> | ||
/// A billing meter event represents a customer's usage of a product. Meter events are used | ||
/// to bill a customer based on their usage. Meter events are associated with billing | ||
/// meters, which define the shape of the event's payload and how those events are | ||
/// aggregated for billing. | ||
/// </summary> | ||
public class MeterEvent : StripeEntity<MeterEvent>, IHasObject | ||
{ | ||
/// <summary> | ||
/// String representing the object's type. Objects of the same type share the same value. | ||
/// </summary> | ||
[JsonProperty("object")] | ||
public string Object { get; set; } | ||
|
||
/// <summary> | ||
/// Time at which the object was created. Measured in seconds since the Unix epoch. | ||
/// </summary> | ||
[JsonProperty("created")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
|
||
/// <summary> | ||
/// The name of the meter event. Corresponds with the <c>event_name</c> field on a meter. | ||
/// </summary> | ||
[JsonProperty("event_name")] | ||
public string EventName { get; set; } | ||
|
||
/// <summary> | ||
/// A unique identifier for the event. | ||
/// </summary> | ||
[JsonProperty("identifier")] | ||
public string Identifier { 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. | ||
/// </summary> | ||
[JsonProperty("livemode")] | ||
public bool Livemode { get; set; } | ||
|
||
/// <summary> | ||
/// The payload of the event. | ||
/// </summary> | ||
[JsonProperty("payload")] | ||
public Dictionary<string, string> Payload { get; set; } | ||
|
||
/// <summary> | ||
/// The timestamp passed in when creating the event. Measured in seconds since the Unix | ||
/// epoch. | ||
/// </summary> | ||
[JsonProperty("timestamp")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
/// <summary> | ||
/// A billing meter is a resource that allows you to track usage of a particular event. For | ||
/// example, you might create a billing meter to track the number of API calls made by a | ||
/// particular user. You can then use the billing meter to charge the user for the number of | ||
/// API calls they make. | ||
/// </summary> | ||
public class Meter : StripeEntity<Meter>, IHasId, IHasObject | ||
{ | ||
/// <summary> | ||
/// Unique identifier for the object. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// String representing the object's type. Objects of the same type share the same value. | ||
/// </summary> | ||
[JsonProperty("object")] | ||
public string Object { get; set; } | ||
|
||
/// <summary> | ||
/// Time at which the object was created. Measured in seconds since the Unix epoch. | ||
/// </summary> | ||
[JsonProperty("created")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
|
||
[JsonProperty("customer_mapping")] | ||
public MeterCustomerMapping CustomerMapping { get; set; } | ||
|
||
[JsonProperty("default_aggregation")] | ||
public MeterDefaultAggregation DefaultAggregation { get; set; } | ||
|
||
/// <summary> | ||
/// The meter's name. | ||
/// </summary> | ||
[JsonProperty("display_name")] | ||
public string DisplayName { get; set; } | ||
|
||
/// <summary> | ||
/// The name of the usage event to record usage for. Corresponds with the <c>event_name</c> | ||
/// field on usage events. | ||
/// </summary> | ||
[JsonProperty("event_name")] | ||
public string EventName { get; set; } | ||
|
||
/// <summary> | ||
/// The time window to pre-aggregate usage events for, if any. | ||
/// One of: <c>day</c>, or <c>hour</c>. | ||
/// </summary> | ||
[JsonProperty("event_time_window")] | ||
public string EventTimeWindow { 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. | ||
/// </summary> | ||
[JsonProperty("livemode")] | ||
public bool Livemode { get; set; } | ||
|
||
/// <summary> | ||
/// The meter's status. | ||
/// One of: <c>active</c>, or <c>inactive</c>. | ||
/// </summary> | ||
[JsonProperty("status")] | ||
public string Status { get; set; } | ||
|
||
[JsonProperty("status_transitions")] | ||
public MeterStatusTransitions StatusTransitions { get; set; } | ||
|
||
/// <summary> | ||
/// Time at which the object was last updated. Measured in seconds since the Unix epoch. | ||
/// </summary> | ||
[JsonProperty("updated")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime Updated { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
|
||
[JsonProperty("value_settings")] | ||
public MeterValueSettings ValueSettings { get; set; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Stripe.net/Entities/Billing/Meters/MeterCustomerMapping.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class MeterCustomerMapping : StripeEntity<MeterCustomerMapping> | ||
{ | ||
/// <summary> | ||
/// The key in the usage event payload to use for mapping the event to a customer. | ||
/// </summary> | ||
[JsonProperty("event_payload_key")] | ||
public string EventPayloadKey { get; set; } | ||
|
||
/// <summary> | ||
/// The method for mapping a meter event to a customer. | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Stripe.net/Entities/Billing/Meters/MeterDefaultAggregation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class MeterDefaultAggregation : StripeEntity<MeterDefaultAggregation> | ||
{ | ||
/// <summary> | ||
/// Specifies how events are aggregated. | ||
/// One of: <c>count</c>, or <c>sum</c>. | ||
/// </summary> | ||
[JsonProperty("formula")] | ||
public string Formula { get; set; } | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Stripe.net/Entities/Billing/Meters/MeterStatusTransitions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
public class MeterStatusTransitions : StripeEntity<MeterStatusTransitions> | ||
{ | ||
/// <summary> | ||
/// The time the meter was deactivated, if any. Measured in seconds since Unix epoch. | ||
/// </summary> | ||
[JsonProperty("deactivated_at")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime? DeactivatedAt { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Stripe.net/Entities/Billing/Meters/MeterValueSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Billing | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class MeterValueSettings : StripeEntity<MeterValueSettings> | ||
{ | ||
/// <summary> | ||
/// The key in the usage event payload to use as the value for this meter. | ||
/// </summary> | ||
[JsonProperty("event_payload_key")] | ||
public string EventPayloadKey { get; set; } | ||
} | ||
} |
Oops, something went wrong.