Example #1
0
 protected Notification(INotificationSendingGateway notificationSendingGateway)
 {
     _notificationSendingGateway = notificationSendingGateway;
     MaxAttemptCount             = 10;
     Type     = GetType().Name;
     IsActive = true;
 }
        public OrderNotification(INotificationSendingGateway notificationSendingGateway) : base(notificationSendingGateway)
        {
            NotificationTemplate      = new NotificationTemplate();
            NotificationTemplate.Body = @"
{% for address in customer_order.addresses %}
 {{ address.first_name }} - {{ address.last_name }}
{% endfor %}";
        }
Example #3
0
        public AddressNotification(INotificationSendingGateway notificationSendingGateway) : base(notificationSendingGateway)
        {
            NotificationTemplate      = new NotificationTemplate();
            NotificationTemplate.Body = @"
<table style=""font-size:12px;"">
    <tr>
        <td style=""vertical-align: top; width: 200px;""><p>{{item.name}}</p><p style=""color: #999; font-size: 11px;""> SKU:{{item.sku}}</p></td>
        <td style=""text-align: center; vertical-align: top; width: 100px;""><p>${{item.placed_price | round: 2}}</p></td>
        <td style=""text-align: center; vertical-align: top; width: 100px;""><p>{{item.quantity}}</p></td>
        <td style=""text-align: center; vertical-align: top; width: 100px;""><p>${{item.extended_price | round: 2}}</p></td>
    </tr>
</table>
<br>
{{ address.first_name }} - {{ address.last_name }}";
        }
        public OrderInvoiceNotification(INotificationSendingGateway notificationSendingGateway) : base(notificationSendingGateway)
        {
            NotificationTemplate      = new NotificationTemplate();
            NotificationTemplate.Body = @"
<table style=""font-size:12px;"">
    {% for line_item in customer_order.items %}
            <tr>
                <td style=""text-align: center; vertical-align: top; width: 30px;""><p>{{forloop.index}}</p></td>
                <td style=""vertical-align: top; width: 200px;""><p>{{line_item.name}}</p><p style=""color: #999; font-size: 11px;""> SKU:{{line_item.sku}}</p></td>
                <td style=""text-align: center; vertical-align: top; width: 100px;""><p>${{line_item.placed_price | round: 2}}</p></td>
                <td style=""text-align: center; vertical-align: top; width: 100px;""><p>{{line_item.quantity}}</p></td>
                <td style=""text-align: center; vertical-align: top; width: 100px;""><p>${{line_item.extended_price | round: 2}}</p></td>
            </tr>
    {% endfor %}
</table>";
        }
		public Notification(INotificationSendingGateway notificationSendingGateway)
		{
			_notificationSendingGateway = notificationSendingGateway;
			MaxAttemptCount = 10;
			Type = GetType().Name;
		}
Example #6
0
 public Notification(INotificationSendingGateway notificationSendingGateway)
 {
     _notificationSendingGateway = notificationSendingGateway;
     Type = this.GetType().Name;
 }
Example #7
0
 public Notification(INotificationSendingGateway notificationSendingGateway)
 {
     _notificationSendingGateway = notificationSendingGateway;
     MaxAttemptCount             = 10;
     Type = GetType().Name;
 }