Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/CheckoutSdk/Payments/Downtime.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Checkout.Payments
{
public class Downtime
{
/// <summary>
/// Indicates if Checkout.com retries the payment when it's declined due to issuer or acquirer downtime
/// (Required)
/// </summary>
public bool Enabled { get; set; }
}
}
16 changes: 16 additions & 0 deletions src/CheckoutSdk/Payments/Dunning.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace Checkout.Payments
{
public class Dunning
{
/// <summary>
/// Indicates if Checkout.com retries the payment when it's declined with a supported decline code (Required)
/// </summary>
public bool Enabled { get; set; }

/// <summary> (Optional, [ 1 .. 15 ], default: 6) </summary>
public int? MaxAttempts { get; set; } = 6;

/// <summary> (Optional, [ 1 .. 60 ] default: 30) </summary>
public int? EndAfterDays { get; set; } = 30;
}
}
4 changes: 2 additions & 2 deletions src/CheckoutSdk/Payments/Request/PaymentRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public class PaymentRequest

public IList<Product> Items { get; set; }

public PaymentRetryRequest Retry { get; set; }
public RetryRequest Retry { get; set; }

public IDictionary<string, object> Metadata { get; set; } = new Dictionary<string, object>();

public PaymentInstruction Instruction { get; set; }
}
}
}
11 changes: 11 additions & 0 deletions src/CheckoutSdk/Payments/RetryRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Checkout.Payments
{
public class RetryRequest
{
/// <summary> Configuration of asynchronous Dunning retries (Optional) </summary>
public Dunning Dunning { get; set; }

/// <summary> Configuration of asynchronous Downtime retries (Optional) </summary>
public Downtime Downtime { get; set; }
}
}
Loading