Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #2299

Merged
merged 1 commit into from
Mar 31, 2021
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
3 changes: 2 additions & 1 deletion src/Stripe.net/Entities/Reporting/ReportRuns/ReportRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public class ReportRun : StripeEntity<ReportRun>, IHasId, IHasObject
public string Error { get; set; }

/// <summary>
/// Always <c>true</c>: reports can only be run on live-mode data.
/// <c>true</c> if the report is run on live mode data and <c>false</c> if it is run on test
/// mode data.
/// </summary>
[JsonProperty("livemode")]
public bool Livemode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata

/// <summary>
/// A list of items the customer is purchasing. Use this parameter to pass one-time or
/// recurring <a href="https://stripe.com/docs/api/prices">Prices</a>. One-time Prices in
/// <c>subscription</c> mode will be on the initial invoice only.
/// recurring <a href="https://stripe.com/docs/api/prices">Prices</a>.
///
/// There is a maximum of 100 line items, however it is recommended to consolidate line
/// items if there are more than a few dozen.
/// For <c>payment</c> mode, there is a maximum of 100 line items, however it is recommended
/// to consolidate line items if there are more than a few dozen.
///
/// For <c>subscription</c> mode, there is a maximum of 20 line items with recurring Prices
/// and 20 line items with one-time Prices. Line items with one-time Prices in will be on
/// the initial invoice only.
/// </summary>
[JsonProperty("line_items")]
public List<SessionLineItemOptions> LineItems { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata
public string ReceiptEmail { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with the payment method collected by
/// this Checkout Session.
/// Indicates that you intend to <a
/// href="https://stripe.com/docs/payments/payment-intents#future-usage">make future
/// payments</a> with the payment method collected by this Checkout Session.
///
/// When setting this to <c>on_session</c>, Checkout will show a notice to the customer that
/// their payment details will be saved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// If specified, the funds from the subscription's invoices will be transferred to the
/// destination and the ID of the resulting transfers will be found on the resulting
/// charges.
/// </summary>
[JsonProperty("transfer_data")]
public SessionSubscriptionDataTransferDataOptions TransferData { get; set; }

/// <summary>
/// Unix timestamp representing the end of the trial period the customer will get before
/// being charged for the first time. Has to be at least 48 hours in the future.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionSubscriptionDataTransferDataOptions : INestedOptions
{
/// <summary>
/// A non-negative decimal between 0 and 100, with at most two decimal places. This
/// represents the percentage of the subscription invoice subtotal that will be transferred
/// to the destination account. By default, the entire amount is transferred to the
/// destination.
/// </summary>
[JsonProperty("amount_percent")]
public decimal? AmountPercent { get; set; }

/// <summary>
/// ID of an existing, connected Stripe account.
/// </summary>
[JsonProperty("destination")]
public string Destination { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions
{
/// <summary>
/// A list of prices and quantities that will generate invoice items appended to the next
/// invoice. You may pass up to 10 items.
/// invoice. You may pass up to 20 items.
/// </summary>
[JsonProperty("add_invoice_items")]
public List<SubscriptionSchedulePhaseAddInvoiceItemOptions> AddInvoiceItems { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata
{
/// <summary>
/// A list of prices and quantities that will generate invoice items appended to the first
/// invoice for this subscription. You may pass up to 10 items.
/// invoice for this subscription. You may pass up to 20 items.
/// </summary>
[JsonProperty("add_invoice_items")]
public List<SubscriptionAddInvoiceItemOptions> AddInvoiceItems { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata
{
/// <summary>
/// A list of prices and quantities that will generate invoice items appended to the first
/// invoice for this subscription. You may pass up to 10 items.
/// invoice for this subscription. You may pass up to 20 items.
/// </summary>
[JsonProperty("add_invoice_items")]
public List<SubscriptionAddInvoiceItemOptions> AddInvoiceItems { get; set; }
Expand Down