-
Notifications
You must be signed in to change notification settings - Fork 571
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
d3b42a4
commit 6fb7d71
Showing
22 changed files
with
550 additions
and
0 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
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
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 RefundNextAction : StripeEntity<RefundNextAction> | ||
{ | ||
/// <summary> | ||
/// Contains the refund details. | ||
/// </summary> | ||
[JsonProperty("display_details")] | ||
public RefundNextActionDisplayDetails DisplayDetails { get; set; } | ||
|
||
/// <summary> | ||
/// Type of the next action to perform. | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Stripe.net/Entities/Refunds/RefundNextActionDisplayDetails.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 System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
public class RefundNextActionDisplayDetails : StripeEntity<RefundNextActionDisplayDetails> | ||
{ | ||
[JsonProperty("email_sent")] | ||
public RefundNextActionDisplayDetailsEmailSent EmailSent { get; set; } | ||
|
||
/// <summary> | ||
/// The expiry timestamp. | ||
/// </summary> | ||
[JsonProperty("expires_at")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/Stripe.net/Entities/Refunds/RefundNextActionDisplayDetailsEmailSent.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,23 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
public class RefundNextActionDisplayDetailsEmailSent : StripeEntity<RefundNextActionDisplayDetailsEmailSent> | ||
{ | ||
/// <summary> | ||
/// The timestamp when the email was sent. | ||
/// </summary> | ||
[JsonProperty("email_sent_at")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime EmailSentAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
|
||
/// <summary> | ||
/// The recipient's email address. | ||
/// </summary> | ||
[JsonProperty("email_sent_to")] | ||
public string EmailSentTo { 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
70 changes: 70 additions & 0 deletions
70
src/Stripe.net/Entities/TestHelpers/TestClocks/TestClock.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,70 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.TestHelpers | ||
{ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
/// <summary> | ||
/// A test clock enables deterministic control over objects in testmode. With a test clock, | ||
/// you can create objects at a frozen time in the past or future, and advance to a specific | ||
/// future time to observe webhooks and state changes. After the clock advances, you can | ||
/// either validate the current state of your scenario (and test your assumptions), change | ||
/// the current state of your scenario (and test more complex scenarios), or keep advancing | ||
/// forward in time. | ||
/// </summary> | ||
public class TestClock : StripeEntity<TestClock>, IHasId, IHasObject | ||
{ | ||
/// <summary> | ||
/// Unique identifier for the object. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// String representing the object's type. Objects of the same type share the same value. | ||
/// </summary> | ||
[JsonProperty("object")] | ||
public string Object { get; set; } | ||
|
||
/// <summary> | ||
/// Time at which the object was created. Measured in seconds since the Unix epoch. | ||
/// </summary> | ||
[JsonProperty("created")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
|
||
/// <summary> | ||
/// Whether this object is deleted or not. | ||
/// </summary> | ||
[JsonProperty("deleted", NullValueHandling = NullValueHandling.Ignore)] | ||
public bool? Deleted { get; set; } | ||
|
||
/// <summary> | ||
/// Time at which all objects belonging to this clock are frozen. | ||
/// </summary> | ||
[JsonProperty("frozen_time")] | ||
[JsonConverter(typeof(UnixDateTimeConverter))] | ||
public DateTime FrozenTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; | ||
|
||
/// <summary> | ||
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if | ||
/// the object exists in test mode. | ||
/// </summary> | ||
[JsonProperty("livemode")] | ||
public bool Livemode { get; set; } | ||
|
||
/// <summary> | ||
/// The custom name supplied at creation. | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// The status of the Test Clock. | ||
/// One of: <c>advancing</c>, <c>internal_failure</c>, or <c>ready</c>. | ||
/// </summary> | ||
[JsonProperty("status")] | ||
public string Status { 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
Oops, something went wrong.