Skip to content

Commit

Permalink
Update generated code (#2877)
Browse files Browse the repository at this point in the history
* 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
stripe-openapi[bot] and ramya-stripe authored Mar 28, 2024
1 parent 65dc7b2 commit 9b7c00d
Show file tree
Hide file tree
Showing 66 changed files with 1,129 additions and 22 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v896
v911
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity<Accou
[JsonProperty("capture_payments")]
public bool CapturePayments { get; set; }

/// <summary>
/// Whether to allow connected accounts to manage destination charges that are created on
/// behalf of them. This is <c>false</c> by default.
/// </summary>
[JsonProperty("destination_on_behalf_of_charge_management")]
public bool DestinationOnBehalfOfChargeManagement { get; set; }

/// <summary>
/// Whether to allow responding to disputes, including submitting evidence and accepting
/// disputes. This is <c>true</c> by default.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity<AccountSess
[JsonProperty("capture_payments")]
public bool CapturePayments { get; set; }

/// <summary>
/// Whether to allow connected accounts to manage destination charges that are created on
/// behalf of them. This is <c>false</c> by default.
/// </summary>
[JsonProperty("destination_on_behalf_of_charge_management")]
public bool DestinationOnBehalfOfChargeManagement { get; set; }

/// <summary>
/// Whether to allow responding to disputes, including submitting evidence and accepting
/// disputes. This is <c>true</c> by default.
Expand Down
8 changes: 8 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("afterpay_clearpay_payments")]
public string AfterpayClearpayPayments { get; set; }

/// <summary>
/// The status of the AmazonPay capability of the account, or whether the account can
/// directly process AmazonPay payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("amazon_pay_payments")]
public string AmazonPayPayments { get; set; }

/// <summary>
/// The status of the BECS Direct Debit (AU) payments capability of the account, or whether
/// the account can directly process BECS Direct Debit (AU) charges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
Expand Down
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; }
}
}
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;
}
}
63 changes: 63 additions & 0 deletions src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs
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;
}
}
88 changes: 88 additions & 0 deletions src/Stripe.net/Entities/Billing/Meters/Meter.cs
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 src/Stripe.net/Entities/Billing/Meters/MeterCustomerMapping.cs
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 src/Stripe.net/Entities/Billing/Meters/MeterDefaultAggregation.cs
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 src/Stripe.net/Entities/Billing/Meters/MeterStatusTransitions.cs
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 src/Stripe.net/Entities/Billing/Meters/MeterValueSettings.cs
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; }
}
}
Loading

0 comments on commit 9b7c00d

Please sign in to comment.