Skip to content

Commit

Permalink
Merge pull request #1205 from stripe/remi-add-usage-record-action
Browse files Browse the repository at this point in the history
Add support for `action` on Usage Record creation
  • Loading branch information
ob-stripe authored Jun 13, 2018
2 parents b06b753 + 1f33304 commit ffc22df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Stripe.Tests.XUnit/usage_records/_fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public usage_record_fixture()
var subscription_item_id = subscription.Items.Data[0].Id;

UsageRecordCreateOptions = new StripeUsageRecordCreateOptions() {
Action = "increment",
SubscriptionItem = subscription_item_id,
Timestamp = DateTime.Now,
Quantity = 2000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ namespace Stripe
{
public class StripeUsageRecordCreateOptions : StripeBaseOptions
{
[JsonProperty("action")]
public string Action { get; set; }

[JsonIgnore]
public string SubscriptionItem { get; set; }

Expand Down

0 comments on commit ffc22df

Please sign in to comment.