Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added WooCommerce and HubSpot payloads #5

Merged
merged 3 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
831 changes: 831 additions & 0 deletions providers/HubSpot/current/COMPANY.json

Large diffs are not rendered by default.

826 changes: 826 additions & 0 deletions providers/HubSpot/current/CONTACT.json

Large diffs are not rendered by default.

684 changes: 684 additions & 0 deletions providers/HubSpot/current/DEAL.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions providers/HubSpot/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "HubSpot",
"configs": {
"latest_version": "current",
"topic_identifier": ""
}
}
60 changes: 60 additions & 0 deletions providers/woocommerce/current/coupon.created.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"headers": {
"user-agent": "WooCommerce/7.4.0 Hookshot (WordPress/6.1.1)",
"content-length": "872",
"accept": "application/json, text/plain, */*",
"content-type": "application/json",
"referer": "https://hkdk.events/B7jsIu4LcRD6/woocommerce/current",
"x-wc-webhook-delivery-id": "1e39b411c16382875440af2d87b25755",
"x-wc-webhook-event": "created",
"x-wc-webhook-id": "4",
"x-wc-webhook-resource": "coupon",
"x-wc-webhook-signature": "uhgzEbVggX2lIuZd/VyHwqezZxPLLT8S7rbVs4C2bps=",
"x-wc-webhook-source": "http://localhost/wordpress/",
"x-wc-webhook-topic": "coupon.created",
"accept-encoding": "gzip"
},
"body": {
"id": 17,
"code": "",
"amount": "10.00",
"status": "publish",
"date_created": "2023-03-25T16:22:37",
"date_created_gmt": "2023-03-25T16:22:37",
"date_modified": "2023-03-25T16:22:37",
"date_modified_gmt": "2023-03-25T16:22:37",
"discount_type": "percent",
"description": "",
"date_expires": "2023-03-31T00:00:00",
"date_expires_gmt": "2023-03-31T00:00:00",
"usage_count": 0,
"individual_use": false,
"product_ids": [],
"excluded_product_ids": [],
"usage_limit": null,
"usage_limit_per_user": null,
"limit_usage_to_x_items": null,
"free_shipping": false,
"product_categories": [],
"excluded_product_categories": [],
"exclude_sale_items": false,
"minimum_amount": "0.00",
"maximum_amount": "0.00",
"email_restrictions": [],
"used_by": [],
"meta_data": [],
"_links": {
"self": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/coupons/17"
}
],
"collection": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/coupons"
}
]
}
},
"topic": "coupon.created"
}
21 changes: 21 additions & 0 deletions providers/woocommerce/current/coupon.deleted.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"headers": {
"user-agent": "WooCommerce/7.4.0 Hookshot (WordPress/6.1.1)",
"content-length": "9",
"accept": "application/json, text/plain, */*",
"content-type": "application/json",
"referer": "https://hkdk.events/B7jsIu4LcRD6/woocommerce/current",
"x-wc-webhook-delivery-id": "263d29b68d77a67d6122c54b6c48cbc4",
"x-wc-webhook-event": "deleted",
"x-wc-webhook-id": "7",
"x-wc-webhook-resource": "coupon",
"x-wc-webhook-signature": "NPFkuIcJOoL4o/sClXPFfdL3Dwljg6+IEXRfVZGKxf4=",
"x-wc-webhook-source": "http://localhost/wordpress/",
"x-wc-webhook-topic": "coupon.deleted",
"accept-encoding": "gzip"
},
"body": {
"id": 16
},
"topic": "coupon.deleted"
}
66 changes: 66 additions & 0 deletions providers/woocommerce/current/coupon.restored.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"headers": {
"user-agent": "WooCommerce/7.4.0 Hookshot (WordPress/6.1.1)",
"content-length": "929",
"accept": "application/json, text/plain, */*",
"content-type": "application/json",
"referer": "https://hkdk.events/B7jsIu4LcRD6/woocommerce/current",
"x-wc-webhook-delivery-id": "7f1c9d58076161d00014646398814dec",
"x-wc-webhook-event": "restored",
"x-wc-webhook-id": "8",
"x-wc-webhook-resource": "coupon",
"x-wc-webhook-signature": "PiviN1YvC6+VCRnNr/FqK997X6/51aRG4BCKcHKtDd4=",
"x-wc-webhook-source": "http://localhost/wordpress/",
"x-wc-webhook-topic": "coupon.restored",
"accept-encoding": "gzip"
},
"body": {
"id": 16,
"code": "hook",
"amount": "5.00",
"status": "publish",
"date_created": "2023-03-25T16:04:36",
"date_created_gmt": "2023-03-25T16:04:36",
"date_modified": "2023-03-26T09:42:59",
"date_modified_gmt": "2023-03-26T09:42:59",
"discount_type": "percent",
"description": "",
"date_expires": "2023-03-31T00:00:00",
"date_expires_gmt": "2023-03-31T00:00:00",
"usage_count": 0,
"individual_use": false,
"product_ids": [],
"excluded_product_ids": [],
"usage_limit": null,
"usage_limit_per_user": null,
"limit_usage_to_x_items": null,
"free_shipping": false,
"product_categories": [],
"excluded_product_categories": [],
"exclude_sale_items": false,
"minimum_amount": "0.00",
"maximum_amount": "0.00",
"email_restrictions": [],
"used_by": [],
"meta_data": [
{
"id": 77,
"key": "_wp_old_slug",
"value": "hook__trashed"
}
],
"_links": {
"self": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/coupons/16"
}
],
"collection": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/coupons"
}
]
}
},
"topic": "coupon.restored"
}
112 changes: 112 additions & 0 deletions providers/woocommerce/current/product.created.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"headers": {
"user-agent": "WooCommerce/7.4.0 Hookshot (WordPress/6.1.1)",
"content-length": "2023",
"accept": "application/json, text/plain, */*",
"content-type": "application/json",
"referer": "https://hkdk.events/B7jsIu4LcRD6/woocommerce/current",
"x-wc-webhook-delivery-id": "21b86abacb3d422d88704501bd14f142",
"x-wc-webhook-event": "created",
"x-wc-webhook-id": "9",
"x-wc-webhook-resource": "product",
"x-wc-webhook-signature": "or/r6cp85XZzO7s4iZeqXJEqQuHgKLJAUPnv3eaSe2I=",
"x-wc-webhook-source": "http://localhost/wordpress/",
"x-wc-webhook-topic": "product.created",
"accept-encoding": "gzip"
},
"body": {
"id": 18,
"name": "Perpemint",
"slug": "perpemint",
"permalink": "http://localhost/wordpress/product/perpemint/",
"date_created": "2023-03-26T09:29:39",
"date_created_gmt": "2023-03-26T09:29:39",
"date_modified": "2023-03-26T09:29:39",
"date_modified_gmt": "2023-03-26T09:29:39",
"type": "simple",
"status": "publish",
"featured": false,
"catalog_visibility": "visible",
"description": "<p>Very Usefull</p>\n",
"short_description": "",
"sku": "",
"price": "150",
"regular_price": "200",
"sale_price": "150",
"date_on_sale_from": null,
"date_on_sale_from_gmt": null,
"date_on_sale_to": null,
"date_on_sale_to_gmt": null,
"on_sale": true,
"purchasable": true,
"total_sales": 0,
"virtual": false,
"downloadable": false,
"downloads": [],
"download_limit": -1,
"download_expiry": -1,
"external_url": "",
"button_text": "",
"tax_status": "taxable",
"tax_class": "",
"manage_stock": false,
"stock_quantity": null,
"backorders": "no",
"backorders_allowed": false,
"backordered": false,
"low_stock_amount": null,
"sold_individually": false,
"weight": "",
"dimensions": {
"length": "",
"width": "",
"height": ""
},
"shipping_required": true,
"shipping_taxable": true,
"shipping_class": "",
"shipping_class_id": 0,
"reviews_allowed": true,
"average_rating": "0.00",
"rating_count": 0,
"upsell_ids": [],
"cross_sell_ids": [],
"parent_id": 0,
"purchase_note": "",
"categories": [
{
"id": 15,
"name": "Uncategorized",
"slug": "uncategorized"
}
],
"tags": [],
"images": [],
"attributes": [],
"default_attributes": [],
"variations": [],
"grouped_products": [],
"menu_order": 0,
"price_html": "<del aria-hidden=\"true\"><span class=\"woocommerce-Price-amount amount\"><bdi>200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">CFA</span></bdi></span></del> <ins><span class=\"woocommerce-Price-amount amount\"><bdi>150&nbsp;<span class=\"woocommerce-Price-currencySymbol\">CFA</span></bdi></span></ins>",
"related_ids": [
13,
12
],
"meta_data": [],
"stock_status": "instock",
"has_options": false,
"_links": {
"self": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/products/18"
}
],
"collection": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/products"
}
]
}
},
"topic": "product.created"
}
112 changes: 112 additions & 0 deletions providers/woocommerce/current/product.updated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"headers": {
"user-agent": "WooCommerce/7.4.0 Hookshot (WordPress/6.1.1)",
"content-length": "2023",
"accept": "application/json, text/plain, */*",
"content-type": "application/json",
"referer": "https://hkdk.events/B7jsIu4LcRD6/woocommerce/current",
"x-wc-webhook-delivery-id": "f69179d95306fa97eecd2e78722a4c66",
"x-wc-webhook-event": "updated",
"x-wc-webhook-id": "10",
"x-wc-webhook-resource": "product",
"x-wc-webhook-signature": "iHN22iBIES8SpsDzI0pIZ++9dv+KrLqlmD6Q6P+yf1A=",
"x-wc-webhook-source": "http://localhost/wordpress/",
"x-wc-webhook-topic": "product.updated",
"accept-encoding": "gzip"
},
"body": {
"id": 18,
"name": "Perpemint",
"slug": "perpemint",
"permalink": "http://localhost/wordpress/product/perpemint/",
"date_created": "2023-03-26T09:29:39",
"date_created_gmt": "2023-03-26T09:29:39",
"date_modified": "2023-03-26T09:29:39",
"date_modified_gmt": "2023-03-26T09:29:39",
"type": "simple",
"status": "publish",
"featured": false,
"catalog_visibility": "visible",
"description": "<p>Very Usefull</p>\n",
"short_description": "",
"sku": "",
"price": "150",
"regular_price": "200",
"sale_price": "150",
"date_on_sale_from": null,
"date_on_sale_from_gmt": null,
"date_on_sale_to": null,
"date_on_sale_to_gmt": null,
"on_sale": true,
"purchasable": true,
"total_sales": 0,
"virtual": false,
"downloadable": false,
"downloads": [],
"download_limit": -1,
"download_expiry": -1,
"external_url": "",
"button_text": "",
"tax_status": "taxable",
"tax_class": "",
"manage_stock": false,
"stock_quantity": null,
"backorders": "no",
"backorders_allowed": false,
"backordered": false,
"low_stock_amount": null,
"sold_individually": false,
"weight": "",
"dimensions": {
"length": "",
"width": "",
"height": ""
},
"shipping_required": true,
"shipping_taxable": true,
"shipping_class": "",
"shipping_class_id": 0,
"reviews_allowed": true,
"average_rating": "0.00",
"rating_count": 0,
"upsell_ids": [],
"cross_sell_ids": [],
"parent_id": 0,
"purchase_note": "",
"categories": [
{
"id": 15,
"name": "Uncategorized",
"slug": "uncategorized"
}
],
"tags": [],
"images": [],
"attributes": [],
"default_attributes": [],
"variations": [],
"grouped_products": [],
"menu_order": 0,
"price_html": "<del aria-hidden=\"true\"><span class=\"woocommerce-Price-amount amount\"><bdi>200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">CFA</span></bdi></span></del> <ins><span class=\"woocommerce-Price-amount amount\"><bdi>150&nbsp;<span class=\"woocommerce-Price-currencySymbol\">CFA</span></bdi></span></ins>",
"related_ids": [
12,
13
],
"meta_data": [],
"stock_status": "instock",
"has_options": false,
"_links": {
"self": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/products/18"
}
],
"collection": [
{
"href": "http://localhost/wordpress/wp-json/wc/v3/products"
}
]
}
},
"topic": "product.updated"
}
7 changes: 7 additions & 0 deletions providers/woocommerce/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "WooCommerce",
"configs": {
"latest_version": "current",
"topic_identifier": "x-wc-webhook-topic"
}
}