Skip to content

Commit

Permalink
Merge pull request #1938 from stripe/remi-add-sequence
Browse files Browse the repository at this point in the history
Add support for `NextInvoiceSequence` on `Customer`
  • Loading branch information
remi-stripe authored Mar 3, 2020
2 parents 3fff04f + 7960e37 commit 22433fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Customers/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ public IPaymentSource DefaultSource
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// The suffix of the customer’s next invoice number.
/// </summary>
[JsonProperty("next_invoice_sequence")]
public long NextInvoiceSequence { get; set; }

/// <summary>
/// The customer’s phone number.
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Services/Customers/CustomerCreateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public class CustomerCreateOptions : BaseOptions, IHasMetadata
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// The suffix of the customer’s next invoice number.
/// </summary>
[JsonProperty("next_invoice_sequence")]
public long? NextInvoiceSequence { get; set; }

[JsonProperty("payment_method")]
public string PaymentMethod { get; set; }

Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Services/Customers/CustomerUpdateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public class CustomerUpdateOptions : BaseOptions, IHasMetadata
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// The suffix of the customer’s next invoice number.
/// </summary>
[JsonProperty("next_invoice_sequence")]
public long? NextInvoiceSequence { get; set; }

/// <summary>
/// The customer’s phone number.
/// </summary>
Expand Down

0 comments on commit 22433fd

Please sign in to comment.