private WebhookEvent GetTestWebHook(string storeId, string webhookId, WebhookEventType webhookEventType, Data.WebhookDeliveryData delivery) { var webhookEvent = GetWebhookEvent(webhookEventType); webhookEvent.InvoiceId = "__test__" + Guid.NewGuid().ToString() + "__test__"; webhookEvent.StoreId = storeId; webhookEvent.DeliveryId = delivery.Id; webhookEvent.WebhookId = webhookId; webhookEvent.OriginalDeliveryId = "__test__" + Guid.NewGuid().ToString() + "__test__"; webhookEvent.IsRedelivery = false; webhookEvent.Timestamp = delivery.Timestamp; return(webhookEvent); }
public WebhookDeliveryRequest(string webhookId, WebhookEvent webhookEvent, Data.WebhookDeliveryData delivery, WebhookBlob webhookBlob) { WebhookId = webhookId; WebhookEvent = webhookEvent; Delivery = delivery; WebhookBlob = webhookBlob; }