Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default {
...common,
key: "xola-new-order-created-instant",
name: "New Order Created (Instant)",
description: "Emit new event when a new order is created. [See the documentation](https://developers.xola.com/reference/webhook-introduction)",
version: "0.0.1",
description: "Emit new event when a new order is created. [See the documentation](https://developers.xola.com/reference/webhook-introduction). **This source has been deprecated. Please use the 'New Purchase Created (Instant)' source instead.**",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default {
...common,
key: "xola-order-deleted-instant",
name: "Order Deleted (Instant)",
description: "Emit new event when an order is deleted. [See the documentation](https://developers.xola.com/reference/webhook-introduction)",
version: "0.0.1",
description: "Emit new event when an order is deleted. [See the documentation](https://developers.xola.com/reference/webhook-introduction). **This source has been deprecated. Please use the 'Purchase Canceled (Instant)' source instead.**",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default {
...common,
key: "xola-order-updated-instant",
name: "Order Updated (Instant)",
description: "Emit new event when an order is updated. [See the documentation](https://developers.xola.com/reference/webhook-introduction)",
version: "0.0.1",
description: "Emit new event when an order is updated. [See the documentation](https://developers.xola.com/reference/webhook-introduction). **This source has been deprecated. Please use the 'Purchase Updated (Instant)' source instead.**",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import common from "../common/webhook.mjs";
import sampleEmit from "./test-event.mjs";

export default {
...common,
key: "xola-purchase-canceled-instant",
name: "Purchase Canceled (Instant)",
description: "Emit new event when a purchase is canceled.",
version: "0.0.1",
type: "source",
dedupe: "unique",
methods: {
...common.methods,
getEventName() {
return "purchase.cancel";
},
generateMeta(body) {
const { data } = body;
const ts = Date.now();
return {
id: `${data.id}-${ts}`,
summary: `Purchase Canceled ${data.id}`,
ts,
};
},
},
sampleEmit,
};
Loading