Skip to content

Commit

Permalink
PT-14571: Extend Capture with CloseTransaction property (#390)
Browse files Browse the repository at this point in the history
feat: Add optional Close Transaction property for Capture. Set to True to close a transaction, restricting future capture operations against this order; otherwise, set to False. By default, False. A payment provider can implement own support for it.
  • Loading branch information
OlegoO authored Dec 5, 2023
1 parent 8ccc0ca commit a273aa9
Show file tree
Hide file tree
Showing 19 changed files with 7,248 additions and 471 deletions.
2 changes: 2 additions & 0 deletions src/VirtoCommerce.OrdersModule.Core/Model/Capture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public class Capture : OrderOperation
public string PaymentId { get; set; }

public virtual ICollection<CaptureItem> Items { get; set; }

public bool CloseTransaction { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ namespace VirtoCommerce.OrdersModule.Core.Model
{
public class CaptureOrderPaymentRequest : OrderPaymentRequest
{
// Provides information about the charge that customers see on their statements. If Seller provides this information, a payment provider can implement it.
/// <summary>
/// Provides information about the charge that customers see on their statements. If Seller provides this information, a payment provider can implement it.
/// </summary>
public string CaptureDetails { get; set; }

/// <summary>
/// Set to True to close a transaction, restricting future capture operations against this order; otherwise, set to False. By default, False.
/// </summary>
public bool CloseTransaction { get; set; }
}
}
Loading

0 comments on commit a273aa9

Please sign in to comment.