Skip to content

Commit

Permalink
Update generated code for v694
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 4, 2023
1 parent d2df796 commit 4b96cc4
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v692
v694
13 changes: 13 additions & 0 deletions src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ public Application Application
[JsonProperty("customer_creation")]
public string CustomerCreation { get; set; }

/// <summary>
/// The custom message to be displayed to a customer when a payment link is no longer
/// active.
/// </summary>
[JsonProperty("inactive_message")]
public string InactiveMessage { get; set; }

/// <summary>
/// Configuration for creating invoice for payment mode payment links.
/// </summary>
Expand Down Expand Up @@ -226,6 +233,12 @@ public Account OnBehalfOf
[JsonProperty("phone_number_collection")]
public PaymentLinkPhoneNumberCollection PhoneNumberCollection { get; set; }

/// <summary>
/// Settings that restrict the usage of a payment link.
/// </summary>
[JsonProperty("restrictions")]
public PaymentLinkRestrictions Restrictions { get; set; }

/// <summary>
/// Configuration for collecting the customer's shipping address.
/// </summary>
Expand Down
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/PaymentLinks/PaymentLinkRestrictions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentLinkRestrictions : StripeEntity<PaymentLinkRestrictions>
{
[JsonProperty("completed_sessions")]
public PaymentLinkRestrictionsCompletedSessions CompletedSessions { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentLinkRestrictionsCompletedSessions : StripeEntity<PaymentLinkRestrictionsCompletedSessions>
{
/// <summary>
/// The current number of checkout sessions that have been completed on the payment link
/// which count towards the <c>completed_sessions</c> restriction to be met.
/// </summary>
[JsonProperty("count")]
public long Count { get; set; }

/// <summary>
/// The maximum number of checkout sessions that can be completed for the
/// <c>completed_sessions</c> restriction to be met.
/// </summary>
[JsonProperty("limit")]
public long Limit { get; set; }
}
}
13 changes: 13 additions & 0 deletions src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata
[JsonProperty("customer_creation")]
public string CustomerCreation { get; set; }

/// <summary>
/// The custom message to be displayed to a customer when a payment link is no longer
/// active.
/// </summary>
[JsonProperty("inactive_message")]
public string InactiveMessage { get; set; }

/// <summary>
/// Generate a post-purchase Invoice for one-time payments.
/// </summary>
Expand Down Expand Up @@ -162,6 +169,12 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata
[JsonProperty("phone_number_collection")]
public PaymentLinkPhoneNumberCollectionOptions PhoneNumberCollection { get; set; }

/// <summary>
/// Settings that restrict the usage of a payment link.
/// </summary>
[JsonProperty("restrictions")]
public PaymentLinkRestrictionsOptions Restrictions { get; set; }

/// <summary>
/// Configuration for collecting the customer's shipping address.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentLinkRestrictionsCompletedSessionsOptions : INestedOptions
{
/// <summary>
/// The maximum number of checkout sessions that can be completed for the
/// <c>completed_sessions</c> restriction to be met.
/// </summary>
[JsonProperty("limit")]
public long? Limit { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentLinkRestrictionsOptions : INestedOptions
{
/// <summary>
/// Configuration for the <c>completed_sessions</c> restriction type.
/// </summary>
[JsonProperty("completed_sessions")]
public PaymentLinkRestrictionsCompletedSessionsOptions CompletedSessions { get; set; }
}
}
13 changes: 13 additions & 0 deletions src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata
[JsonProperty("customer_creation")]
public string CustomerCreation { get; set; }

/// <summary>
/// The custom message to be displayed to a customer when a payment link is no longer
/// active.
/// </summary>
[JsonProperty("inactive_message")]
public string InactiveMessage { get; set; }

/// <summary>
/// Generate a post-purchase Invoice for one-time payments.
/// </summary>
Expand Down Expand Up @@ -123,6 +130,12 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata
[JsonProperty("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }

/// <summary>
/// Settings that restrict the usage of a payment link.
/// </summary>
[JsonProperty("restrictions")]
public PaymentLinkRestrictionsOptions Restrictions { get; set; }

/// <summary>
/// Configuration for collecting the customer's shipping address.
/// </summary>
Expand Down

0 comments on commit 4b96cc4

Please sign in to comment.