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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Dynamicweb.Ecommerce.Examples.Notifications.Order
{
/// <summary>
/// Order.GatewayStatusChanged
/// </summary>
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.GatewayStatusChanged)]
public class EcomOrderGatewayStatusChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.GatewayStatusChangedArgs))
return;
Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.GatewayStatusChangedArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.GatewayStatusChangedArgs)args;
//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.