Click or drag to resize

EcommerceOrderGatewayStatusChangedArgs Class

Provides information about the order which gateway status changed.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceOrderGatewayStatusChangedArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class GatewayStatusChangedArgs : NotificationArgs

The EcommerceOrderGatewayStatusChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceOrderGatewayStatusChangedArgs
Initializes a new instance of the EcommerceOrderGatewayStatusChangedArgs class.
Top
Properties
  NameDescription
Public propertyOrder
Gets the order.
Public propertyPreviousStatus
Gets the previous status.
Public propertyStatus
Gets the status.
Top
Remarks
The passed NotificationArgs is EcommerceOrderGatewayStatusChangedArgs
Examples
C#
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
        }
    }
}
See Also