Skip to content

Commit 2668d6b

Browse files
authored
Merge pull request #1364 from stripe/karlr-unitlabel
Add unit_label and active fields for creating/updating Products
2 parents 6782114 + 7df801b commit 2668d6b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/Stripe.net/Services/Products/PlanProductCreateOptions.cs

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ namespace Stripe
55

66
public class PlanProductCreateOptions : INestedOptions
77
{
8+
[JsonProperty("active")]
9+
public bool? Active { get; set; }
10+
811
[JsonProperty("id")]
912
public string Id { get; set; }
1013

14+
[JsonProperty("metadata")]
15+
public Dictionary<string, string> Metadata { get; set; }
16+
1117
[JsonProperty("name")]
1218
public string Name { get; set; }
1319

1420
[JsonProperty("statement_descriptor")]
1521
public string StatementDescriptor { get; set; }
1622

17-
[JsonProperty("metadata")]
18-
public Dictionary<string, string> Metadata { get; set; }
23+
[JsonProperty("unit_label")]
24+
public string UnitLabel { get; set; }
1925
}
2026
}

src/Stripe.net/Services/Products/ProductSharedOptions.cs

+6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public abstract class ProductSharedOptions : BaseOptions
7171
[JsonProperty("statement_descriptor")]
7272
public string StatementDescriptor { get; set; }
7373

74+
/// <summary>
75+
/// A label that represents units of this product, such as seat(s), in Stripe and on customers’ receipts and invoices.
76+
/// </summary>
77+
[JsonProperty("unit_label")]
78+
public string UnitLabel { get; set; }
79+
7480
/// <summary>
7581
/// A URL of a publicly-accessible webpage for this product.
7682
/// </summary>

0 commit comments

Comments
 (0)