class OrderReceived(Event): identifier = "order_received" order = Variable("Order", type=Model("shuup.Order")) customer_email = Variable("Customer Email", type=Email) customer_phone = Variable("Customer Phone", type=Phone) language = Variable("Language", type=Language)
class RefundCreated(Event): identifier = "refund_created" name = _("Refund Created") order = Variable(_("Order"), type=Model("shuup.Order")) customer_email = Variable(_("Customer Email"), type=Email) customer_phone = Variable(_("Customer Phone"), type=Phone) language = Variable(_("Language"), type=Language) payment_status = Variable(_("Order Payment Status"), type=Enum(PaymentStatus))
class RefundCreated(Event): identifier = "refund_created" order = Variable("Order", type=Model("shuup.Order")) customer_email = Variable("Customer Email", type=Email) customer_phone = Variable("Customer Phone", type=Phone) language = Variable("Language", type=Language) payment_status = Variable( "Order Payment Status", type=Enum(PaymentStatus), help_text=_("Possible values: {0}").format(", ".join( ["{0}".format(choice) for choice in PaymentStatus])))
class ShipmentCreated(Event): identifier = "shipment_created" name = _("Shipment Created") order = Variable(_("Order"), type=Model("shuup.Order")) customer_email = Variable(_("Customer Email"), type=Email) customer_phone = Variable(_("Customer Phone"), type=Phone) language = Variable(_("Language"), type=Language) shipment = Variable(_("Shipment"), type=Model("shuup.Shipment")) shipping_status = Variable(_("Order Shipping Status"), type=Enum(ShippingStatus)) shipment_status = Variable(_("Shipment Status"), type=Enum(ShipmentStatus))
class ShipmentDeleted(Event): identifier = "shipment_deleted" order = Variable("Order", type=Model("shuup.Order")) customer_email = Variable("Customer Email", type=Email) customer_phone = Variable("Customer Phone", type=Phone) language = Variable("Language", type=Language) shipment = Variable("Shipment", type=Model("shuup.Shipment")) shipping_status = Variable( "Order Shipping Status", type=Enum(ShippingStatus), help_text=_("Possible values: {0}").format(", ".join( ["{0}".format(choice) for choice in ShippingStatus])))
class CompanyAccountCreated(Event): identifier = "company_account_created" contact = Variable("CompanyContact", type=Model("shuup.CompanyContact")) customer_email = Variable("Customer Email", type=Email)
class AlertLimitReached(Event): identifier = "alert_limit_reached" supplier = Variable("Supplier", type=Model("shuup.Supplier")) product = Variable("Product", type=Model("shuup.Product"))
class RegistrationReceived(Event): identifier = "registration_received" name = _("Registration Received") customer_email = Variable(_("Customer Email"), type=Email)
class RegistrationReceived(Event): identifier = "registration_received" customer_email = Variable("Customer Email", type=Email)