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 @@
56689dcbcaa4c7ce6bf1b51a5add451972e0689c
a9b4d5059aeb24192ebc26c24160bb6e495bd6cb
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2106
v2110
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/Charges/Charge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ public class Charge : StripeEntity<Charge>, IHasId, IHasMetadata, IHasObject, IB
#endif
public string Object { get; set; }

/// <summary>
/// Funds that are in transit and destined for another balance or another connected account.
/// </summary>
[JsonProperty("allocated_funds")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("allocated_funds")]
#endif
public TransitBalance AllocatedFunds { get; set; }

/// <summary>
/// Amount intended to be collected by this payment. A positive integer representing how
/// much to charge in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public PaymentRecord PaymentRecord

/// <summary>
/// Type of payment object associated with this invoice payment.
/// One of: <c>charge</c>, or <c>payment_intent</c>.
/// One of: <c>charge</c>, <c>payment_intent</c>, or <c>payment_record</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
Expand Down
63 changes: 63 additions & 0 deletions src/Stripe.net/Entities/TransitBalances/TransitBalance.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Funds that are in transit and destined for another balance or another connected account.
/// </summary>
public class TransitBalance : StripeEntity<TransitBalance>, IHasObject
{
/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("object")]
#endif
public string Object { get; set; }

[JsonProperty("balance")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("balance")]
#endif
public TransitBalanceBalance Balance { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("created")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("created")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime Created { 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
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("currency")]
#endif
public string Currency { 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")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("livemode")]
#endif
public bool Livemode { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// 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 TransitBalanceBalance : StripeEntity<TransitBalanceBalance>
{
[JsonProperty("available")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("available")]
#endif
public long Available { get; set; }

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

/// <summary>
/// The <c>ReportRun</c> object represents an instance of a <c>Report</c> generated with
/// specific run parameters. Once the object is created, Stripe begins processing the
/// report. When the report has finished running, it will give you a reference to the
/// results.
/// </summary>
public class ReportRun : StripeEntity<ReportRun>, IHasId, IHasObject
{
/// <summary>
/// The unique identifier of the <c>ReportRun</c> object.
/// </summary>
[JsonProperty("id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("id")]
#endif
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value of
/// the object field.
/// </summary>
[JsonProperty("object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("object")]
#endif
public string Object { get; set; }

/// <summary>
/// Time at which the object was created.
/// </summary>
[JsonProperty("created")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("created")]
#endif
public DateTime Created { 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")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("livemode")]
#endif
public bool Livemode { get; set; }

/// <summary>
/// The unique identifier of the <c>Report</c> object which was run.
/// </summary>
[JsonProperty("report")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("report")]
#endif
public string Report { get; set; }

/// <summary>
/// The human-readable name of the <c>Report</c> which was run.
/// </summary>
[JsonProperty("report_name")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("report_name")]
#endif
public string ReportName { get; set; }

/// <summary>
/// The parameters used to customize the generation of the report.
/// </summary>
[JsonProperty("report_parameters")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("report_parameters")]
#endif
public Dictionary<string, object> ReportParameters { get; set; }

/// <summary>
/// Details how to retrieve the results of a successfully completed <c>ReportRun</c>.
/// </summary>
[JsonProperty("result")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("result")]
#endif
public ReportRunResult Result { get; set; }

/// <summary>
/// The options specified for customizing the output file of the <c>ReportRun</c>.
/// </summary>
[JsonProperty("result_options")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("result_options")]
#endif
public ReportRunResultOptions ResultOptions { get; set; }

/// <summary>
/// The current status of the <c>ReportRun</c>.
/// One of: <c>failed</c>, <c>running</c>, or <c>succeeded</c>.
/// </summary>
[JsonProperty("status")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("status")]
#endif
public string Status { get; set; }

/// <summary>
/// Additional details about the current state of the <c>ReportRun</c>. The field is
/// currently only populated when a <c>ReportRun</c> is in the <c>failed</c> state,
/// providing more information about why the report failed to generate successfully.
/// </summary>
[JsonProperty("status_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("status_details")]
#endif
public Dictionary<string, ReportRunStatusDetails> StatusDetails { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Reporting
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ReportRunResult : StripeEntity<ReportRunResult>
{
/// <summary>
/// Contains metadata about the file produced by the <c>ReportRun</c>, including its content
/// type, size, and a URL to download its contents.
/// </summary>
[JsonProperty("file")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("file")]
#endif
public ReportRunResultFile File { get; set; }

/// <summary>
/// The type of the <c>ReportRun</c> result.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("type")]
#endif
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Reporting
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ReportRunResultFile : StripeEntity<ReportRunResultFile>
{
/// <summary>
/// The content type of the file.
/// One of: <c>csv</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("content_type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("content_type")]
#endif
public string ContentType { get; set; }

/// <summary>
/// A pre-signed URL that allows secure, time-limited access to download the file.
/// </summary>
[JsonProperty("download_url")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("download_url")]
#endif
public ReportRunResultFileDownloadUrl DownloadUrl { get; set; }

/// <summary>
/// The total size of the file in bytes.
/// </summary>
[JsonProperty("size")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("size")]
#endif
public long Size { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Reporting
{
using System;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ReportRunResultFileDownloadUrl : StripeEntity<ReportRunResultFileDownloadUrl>
{
/// <summary>
/// The time that the URL expires.
/// </summary>
[JsonProperty("expires_at")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("expires_at")]
#endif
public DateTime? ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The URL that can be used for accessing the file.
/// </summary>
[JsonProperty("url")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("url")]
#endif
public string Url { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Reporting
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ReportRunResultOptions : StripeEntity<ReportRunResultOptions>
{
/// <summary>
/// If set, the generated report file will be compressed into a ZIP folder. This is useful
/// for reducing file size and download time for large reports.
/// </summary>
[JsonProperty("compress_file")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("compress_file")]
#endif
public bool? CompressFile { get; set; }
}
}
Loading
Loading