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 #2277

Merged
merged 1 commit into from
Jan 22, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public Dispute Dispute

/// <summary>
/// The nature of the transaction.
/// One of: <c>capture</c>, <c>dispute</c>, or <c>refund</c>.
/// One of: <c>capture</c>, or <c>refund</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
19 changes: 2 additions & 17 deletions src/Stripe.net/Entities/LineItems/LineItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class LineItem : StripeEntity<LineItem>, IHasId, IHasObject
public string Object { get; set; }

/// <summary>
/// Total before any discounts or taxes is applied.
/// Total before any discounts or taxes are applied.
/// </summary>
[JsonProperty("amount_subtotal")]
public long? AmountSubtotal { get; set; }
Expand Down Expand Up @@ -58,22 +58,7 @@ public class LineItem : StripeEntity<LineItem>, IHasId, IHasObject
public List<LineItemDiscount> Discounts { get; set; }

/// <summary>
/// Prices define the unit cost, currency, and (optional) billing cycle for both recurring
/// and one-time purchases of products. <a
/// href="https://stripe.com/docs/api#products">Products</a> help you track inventory or
/// provisioning, and prices help you track payment terms. Different physical goods or
/// levels of service should be represented by products, and pricing options should be
/// represented by prices. This approach lets you change prices without having to change
/// your provisioning scheme.
///
/// For example, you might have a single "gold" product that has prices for $10/month,
/// $100/year, and €9 once.
///
/// Related guides: <a
/// href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up a
/// subscription</a>, <a href="https://stripe.com/docs/billing/invoices/create">create an
/// invoice</a>, and more about <a
/// href="https://stripe.com/docs/billing/prices-guide">products and prices</a>.
/// The price used to generate the line item.
/// </summary>
[JsonProperty("price")]
public Price Price { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public class SessionLineItemOptions : INestedOptions
public SessionLineItemPriceDataOptions PriceData { get; set; }

/// <summary>
/// The quantity of the line item being purchased.
/// The quantity of the line item being purchased. Quantity should not be defined when
/// <c>recurring.usage_type=metered</c>.
/// </summary>
[JsonProperty("quantity")]
public long? Quantity { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public class SessionSubscriptionDataItemOptions : INestedOptions
public string Plan { get; set; }

/// <summary>
/// Quantity for this item.
/// The quantity of the subscription item being purchased. Quantity should not be defined
/// when <c>recurring.usage_type=metered</c>.
/// </summary>
[JsonProperty("quantity")]
public long? Quantity { get; set; }
Expand Down