From f0e9037cf9349836fb9a1a25455687dad291974d Mon Sep 17 00:00:00 2001
From: Panagiotis Papantonakis
Date: Wed, 25 Oct 2023 13:55:23 +0300
Subject: [PATCH] Update webhook documentation for mpn of product and variation
---
.../localizable/smart_cart/_order_object.html.md.erb | 2 ++
source/localizable/smart_cart/webhook.html.md.erb | 12 +++++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/source/localizable/smart_cart/_order_object.html.md.erb b/source/localizable/smart_cart/_order_object.html.md.erb
index 20d3e367..3501e56d 100644
--- a/source/localizable/smart_cart/_order_object.html.md.erb
+++ b/source/localizable/smart_cart/_order_object.html.md.erb
@@ -117,6 +117,7 @@ Name | Type | Description
`line_items[_].commission_rate` | Double | Commission rate as percentage, e.g. `8.34`
`line_items[_].island_vat_discount_applied` | Boolean | VAT discount applied (could be `true` for [invoice](#invoice-details) orders, billed to customers in [5 specific Greek islands](http://elib.aade.gr/elib/view?d=/gr/ap/2021/A_1150/))
`line_items[_].ean` | String | EAN code of product (optional)
+`line_items[_].mpn` | String | MPN code of product (optional)
`line_items[_].extra_info` | String | Additional information for item, eg. color preference or prescription details for contact lenses (optional) [webhook example](../webhook/#example-9-with-extrainfo-in-lineitems)
`line_items[_].rejection_reason` | String | Rejection reason (possible values: `limited_stock`, `no_stock`, `discontinuation`, `wrong_price`)
`line_items[_].return_reason` | String | User return reason (possible values: `faulty`, `wrong_product`, `withdrawal`, `wrong_size`)
@@ -131,6 +132,7 @@ Name | Type | Value | Description
`line_items[_].size.shop_value` | String | |Item original size as provided by the shop
`line_items[_].size.shop_variation_uid` | String | | Variation ID in shop for an item
`line_items[_].size.ean` | String | | EAN code of variation
+`line_items[_].size.mpn` | String | | MPN code of variation
#### Accept options
diff --git a/source/localizable/smart_cart/webhook.html.md.erb b/source/localizable/smart_cart/webhook.html.md.erb
index 8486b6be..098a81e2 100644
--- a/source/localizable/smart_cart/webhook.html.md.erb
+++ b/source/localizable/smart_cart/webhook.html.md.erb
@@ -226,6 +226,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -356,7 +357,8 @@ Would send a Webhook request payload just like if the order was cancelled by the
"value": "14 χρονών",
"shop_value": "12-14",
"shop_variation_uid": "40575312-14",
- "ean": "1234567890321"
+ "ean": "1234567890321",
+ "mpn": "JA-1059"
},
"unit_price": 17.99,
"total_price": 35.98,
@@ -365,6 +367,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -496,6 +499,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -577,6 +581,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -718,6 +723,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -820,6 +826,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -973,6 +980,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -1118,6 +1126,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": true,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{
@@ -1498,6 +1507,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
+ "mpn": "JA-1059",
"serial_numbers": null
},
{