-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c14c703
commit 0156d24
Showing
46 changed files
with
862 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v223 | ||
v226 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/Stripe.net/Entities/Checkout/Sessions/SessionCustomField.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Checkout | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class SessionCustomField : StripeEntity<SessionCustomField> | ||
{ | ||
/// <summary> | ||
/// Configuration for <c>type=dropdown</c> fields. | ||
/// </summary> | ||
[JsonProperty("dropdown")] | ||
public SessionCustomFieldDropdown Dropdown { get; set; } | ||
|
||
/// <summary> | ||
/// String of your choice that your integration can use to reconcile this field. Must be | ||
/// unique to this field, alphanumeric, and up to 200 characters. | ||
/// </summary> | ||
[JsonProperty("key")] | ||
public string Key { get; set; } | ||
|
||
[JsonProperty("label")] | ||
public SessionCustomFieldLabel Label { get; set; } | ||
|
||
/// <summary> | ||
/// Configuration for <c>type=numeric</c> fields. | ||
/// </summary> | ||
[JsonProperty("numeric")] | ||
public SessionCustomFieldNumeric Numeric { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the customer is required to complete the field before completing the Checkout | ||
/// Session. Defaults to <c>false</c>. | ||
/// </summary> | ||
[JsonProperty("optional")] | ||
public bool Optional { get; set; } | ||
|
||
/// <summary> | ||
/// Configuration for <c>type=text</c> fields. | ||
/// </summary> | ||
[JsonProperty("text")] | ||
public SessionCustomFieldText Text { get; set; } | ||
|
||
/// <summary> | ||
/// The type of the field. | ||
/// One of: <c>dropdown</c>, <c>numeric</c>, or <c>text</c>. | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Checkout | ||
{ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
public class SessionCustomFieldDropdown : StripeEntity<SessionCustomFieldDropdown> | ||
{ | ||
/// <summary> | ||
/// The options available for the customer to select. Up to 200 options allowed. | ||
/// </summary> | ||
[JsonProperty("options")] | ||
public List<SessionCustomFieldDropdownOption> Options { get; set; } | ||
|
||
/// <summary> | ||
/// The option selected by the customer. This will be the <c>value</c> for the option. | ||
/// </summary> | ||
[JsonProperty("value")] | ||
public string Value { get; set; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdownOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Checkout | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class SessionCustomFieldDropdownOption : StripeEntity<SessionCustomFieldDropdownOption> | ||
{ | ||
/// <summary> | ||
/// The label for the option, displayed to the customer. Up to 100 characters. | ||
/// </summary> | ||
[JsonProperty("label")] | ||
public string Label { get; set; } | ||
|
||
/// <summary> | ||
/// The value for this option, not displayed to the customer, used by your integration to | ||
/// reconcile the option selected by the customer. Must be unique to this option, | ||
/// alphanumeric, and up to 100 characters. | ||
/// </summary> | ||
[JsonProperty("value")] | ||
public string Value { get; set; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldLabel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Checkout | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class SessionCustomFieldLabel : StripeEntity<SessionCustomFieldLabel> | ||
{ | ||
/// <summary> | ||
/// Custom text for the label, displayed to the customer. Up to 50 characters. | ||
/// </summary> | ||
[JsonProperty("custom")] | ||
public string Custom { get; set; } | ||
|
||
/// <summary> | ||
/// The type of the label. | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Checkout | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class SessionCustomFieldNumeric : StripeEntity<SessionCustomFieldNumeric> | ||
{ | ||
/// <summary> | ||
/// The value entered by the customer, containing only digits. | ||
/// </summary> | ||
[JsonProperty("value")] | ||
public string Value { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Checkout | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class SessionCustomFieldText : StripeEntity<SessionCustomFieldText> | ||
{ | ||
/// <summary> | ||
/// The value entered by the customer. | ||
/// </summary> | ||
[JsonProperty("value")] | ||
public string Value { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomField.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class PaymentLinkCustomField : StripeEntity<PaymentLinkCustomField> | ||
{ | ||
/// <summary> | ||
/// Configuration for <c>type=dropdown</c> fields. | ||
/// </summary> | ||
[JsonProperty("dropdown")] | ||
public PaymentLinkCustomFieldDropdown Dropdown { get; set; } | ||
|
||
/// <summary> | ||
/// String of your choice that your integration can use to reconcile this field. Must be | ||
/// unique to this field, alphanumeric, and up to 200 characters. | ||
/// </summary> | ||
[JsonProperty("key")] | ||
public string Key { get; set; } | ||
|
||
[JsonProperty("label")] | ||
public PaymentLinkCustomFieldLabel Label { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the customer is required to complete the field before completing the Checkout | ||
/// Session. Defaults to <c>false</c>. | ||
/// </summary> | ||
[JsonProperty("optional")] | ||
public bool Optional { get; set; } | ||
|
||
/// <summary> | ||
/// The type of the field. | ||
/// One of: <c>dropdown</c>, <c>numeric</c>, or <c>text</c>. | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
public class PaymentLinkCustomFieldDropdown : StripeEntity<PaymentLinkCustomFieldDropdown> | ||
{ | ||
/// <summary> | ||
/// The options available for the customer to select. Up to 200 options allowed. | ||
/// </summary> | ||
[JsonProperty("options")] | ||
public List<PaymentLinkCustomFieldDropdownOption> Options { get; set; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdownOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 PaymentLinkCustomFieldDropdownOption : StripeEntity<PaymentLinkCustomFieldDropdownOption> | ||
{ | ||
/// <summary> | ||
/// The label for the option, displayed to the customer. Up to 100 characters. | ||
/// </summary> | ||
[JsonProperty("label")] | ||
public string Label { get; set; } | ||
|
||
/// <summary> | ||
/// The value for this option, not displayed to the customer, used by your integration to | ||
/// reconcile the option selected by the customer. Must be unique to this option, | ||
/// alphanumeric, and up to 100 characters. | ||
/// </summary> | ||
[JsonProperty("value")] | ||
public string Value { get; set; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldLabel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class PaymentLinkCustomFieldLabel : StripeEntity<PaymentLinkCustomFieldLabel> | ||
{ | ||
/// <summary> | ||
/// Custom text for the label, displayed to the customer. Up to 50 characters. | ||
/// </summary> | ||
[JsonProperty("custom")] | ||
public string Custom { get; set; } | ||
|
||
/// <summary> | ||
/// The type of the label. | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.