Search Results for

    Show / Hide Table of Contents

    Class FinalizeOrderEvent

    ID: "FinalizeOrderEvent" This event occurs when an order has completed the processing phase regardless of its source. You can view finalized orders of different order statuses in Corporate Admin.

    This event can fire multiple times a given order under certain circumstances.

    Any time a customer attempts an order's payment, that order runs through the finalization process.

    A few of the scenarios where this is likely to occur include:

    When an order's initial payment is pending or declined, another payment attempt must be made to pay for the order entirely.

    • When an order has no initial payment, and a payment attempt must be made to pay for the order entirely. This happens when "No Payment" is selected as the initial payment method within Corporate Admin.
    • When the Fraud Prevention module is enabled and an order's payment is "Under Review". Once a fraud decision is made, the payment will be processed to complete the order.
    • When the Fraud Prevention module is enabled, and an order's payment is "Declined" for fraud. If the decline is erroneous, the payment will be processed in an attempt to complete the order.

    If payment was successful, and the order is paid in full, the finalization process may trigger other processes, which include:

    • Reserving item/inventory stock
    • Submitting order shipping information to configured Third-Party Logistics Providers
    • Recalculating the order's Associate's commissions
    • Subscription setup/renewal

    Finalization events only happen once for Imported Orders and occur immediately after their creation event. Event Sample>>:

    {
       "OrderNumber":1,
       "CustomerId":2,
       "OrderDateUtc":"2021-10-12T18:07:26.497Z",
       "OrderStatus":"Paid",
       "OrderType":"Standard",
       "EventDateUtc":"2021-10-12T18:07:27.8181496Z",
       "EventCategory":"OrderEvents",
       "EventType":"FinalizeOrderEvent",
    }
    Inheritance
    System.Object
    EventBase
    OrderEventBase
    FinalizeOrderEvent
    Inherited Members
    OrderEventBase.OrderNumber
    OrderEventBase.CustomerId
    OrderEventBase.OrderDateUtc
    OrderEventBase.OrderStatus
    OrderEventBase.OrderType
    EventBase.EventType
    EventBase.EventDateUtc
    Namespace: DirectScale.Disco.Extension.EventModels
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public class FinalizeOrderEvent : OrderEventBase

    Constructors

    FinalizeOrderEvent()

    Declaration
    public FinalizeOrderEvent()
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX