示例#1
0
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)
示例#2
0
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))
示例#3
0
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])))
示例#4
0
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))
示例#5
0
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])))
示例#6
0
class CompanyAccountCreated(Event):
    identifier = "company_account_created"

    contact = Variable("CompanyContact", type=Model("shuup.CompanyContact"))
    customer_email = Variable("Customer Email", type=Email)
示例#7
0
class AlertLimitReached(Event):
    identifier = "alert_limit_reached"

    supplier = Variable("Supplier", type=Model("shuup.Supplier"))
    product = Variable("Product", type=Model("shuup.Product"))
示例#8
0
class RegistrationReceived(Event):
    identifier = "registration_received"
    name = _("Registration Received")

    customer_email = Variable(_("Customer Email"), type=Email)
示例#9
0
class RegistrationReceived(Event):
    identifier = "registration_received"

    customer_email = Variable("Customer Email", type=Email)