コード例 #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
ファイル: notify_events.py プロジェクト: masindeandrew/shuup
class RegistrationReceived(Event):
    identifier = "registration_received"
    name = _("Registration Received")

    customer_email = Variable(_("Customer Email"), type=Email)
コード例 #9
0
ファイル: notify_events.py プロジェクト: zarlant/shuup
class RegistrationReceived(Event):
    identifier = "registration_received"

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