Table of Contents

Class Ecommerce.Order.AfterOrderCapturedArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about order just when the Order is captured.

public class Ecommerce.Order.AfterOrderCapturedArgs : NotificationArgs
Inheritance
Ecommerce.Order.AfterOrderCapturedArgs
Inherited Members

Examples

using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Order;

namespace Dynamicweb.Examples.CSharp.Notifications.eCommerce.Order;

/// <summary>
/// Observer for order after capture notification used for commiting avalara taxes.
/// </summary>
[Subscribe(AfterOrderCaptured)]
public class EcomOrderTaxCommitAfterCaptureObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        //Getting arguments with captured order
        if (args is not AfterOrderCapturedArgs afterCaptureArgs)        
            return;        
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Order.AfterOrderCapturedArgs

Constructors

AfterOrderCapturedArgs(Order)

public AfterOrderCapturedArgs(Order order)

Parameters

order Order

Properties

Order

Gets or sets the order.

public Order Order { get; set; }

Property Value

Order

Order. Setting this from a notification subscriber will have no effect.

To top