Class Ecommerce.Order.GatewayStatusChangedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the order which gateway status changed.
public class Ecommerce.Order.GatewayStatusChangedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Order.GatewayStatusChangedArgs
- Inherited Members
Examples
using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Order;
namespace Dynamicweb.Ecommerce.Examples.Notifications.Order;
/// <summary>
/// Order.GatewayStatusChanged
/// </summary>
[Subscribe(GatewayStatusChanged)]
public class EcomOrderGatewayStatusChangedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not GatewayStatusChangedArgs item)
return;
//Todo: insert code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Order.GatewayStatusChangedArgs
Constructors
GatewayStatusChangedArgs(Order, string, string)
Initializes a new instance of the Ecommerce.Order.GatewayStatusChangedArgs class.
public GatewayStatusChangedArgs(Order order, string status, string previousStatus)
Parameters
Properties
Order
Gets the order.
public Order Order { get; }
Property Value
- Order
The order.
PreviousStatus
Gets the previous status.
public string PreviousStatus { get; }
Property Value
- string
The previous status.
Status
Gets the status.
public string Status { get; }
Property Value
- string
The status.