From f7dbcfe09e56516a3014cbb875067e8e55205a9a Mon Sep 17 00:00:00 2001 From: Dimitris Fousteris Date: Wed, 10 Apr 2024 17:25:30 +0300 Subject: [PATCH] Add new tags for line items in Smart Cart API --- .../skroutz/merchants_ecommerce_orders_demo_invoice.yml | 9 ++++++--- .../merchants_ecommerce_orders_demo_invoice39a.yml | 9 ++++++--- .../skroutz/merchants_ecommerce_orders_demo_open.yml | 9 ++++++--- .../skroutz/merchants_ecommerce_orders_demo_rejected.yml | 9 ++++++--- .../merchants_ecommerce_orders_demo_store_pickup.yml | 3 ++- source/localizable/smart_cart/_order_object.html.md.erb | 2 +- source/localizable/smart_cart/webhook.html.md.erb | 2 +- 7 files changed, 28 insertions(+), 15 deletions(-) diff --git a/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice.yml b/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice.yml index 459f73f4..e433120c 100644 --- a/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice.yml +++ b/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice.yml @@ -81,7 +81,8 @@ "total_price": 35.98, "price_includes_vat": true, "ean": "1234567890123", - "serial_numbers": null + "serial_numbers": null, + "tags": ["plus_deal", "price_optimizer"] }, { "id": "3XlV8ebjxm", @@ -91,7 +92,8 @@ "unit_price": 100, "total_price": 200, "price_includes_vat": true, - "serial_numbers": null + "serial_numbers": null, + "tags": ["coupon_deal"] }, { "id": "ZvEKMxbxr1", @@ -102,7 +104,8 @@ "total_price": 51, "price_includes_vat": true, "extra_info": "Χρώμα: Πράσινο\\nΒαθμοί SPH: -6.50", - "serial_numbers": null + "serial_numbers": null, + "tags": ["two_plus_deal"] } ], "created_at": "2021-06-24T13:12:12+03:00", diff --git a/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice39a.yml b/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice39a.yml index 2b146613..a5c97b89 100644 --- a/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice39a.yml +++ b/resources/responses/skroutz/merchants_ecommerce_orders_demo_invoice39a.yml @@ -87,7 +87,8 @@ "price_includes_vat": true, "island_vat_discount_applied": false, "ean": "1234567890123", - "serial_numbers": null + "serial_numbers": null, + "tags": ["plus_deal", "price_optimizer"] }, { "id": "3XlV8ebjxm", @@ -98,7 +99,8 @@ "total_price": 200, "price_includes_vat": false, "island_vat_discount_applied": false, - "serial_numbers": null + "serial_numbers": null, + "tags": ["coupon_deal"] }, { "id": "ZvEKMxbxr1", @@ -110,7 +112,8 @@ "price_includes_vat": true, "island_vat_discount_applied": false, "extra_info": "Χρώμα: Πράσινο\\nΒαθμοί SPH: -6.50", - "serial_numbers": null + "serial_numbers": null, + "tags": ["two_plus_deal"] } ], "created_at": "2021-06-24T13:12:29+03:00", diff --git a/resources/responses/skroutz/merchants_ecommerce_orders_demo_open.yml b/resources/responses/skroutz/merchants_ecommerce_orders_demo_open.yml index 5a57ee6c..d299d6f0 100644 --- a/resources/responses/skroutz/merchants_ecommerce_orders_demo_open.yml +++ b/resources/responses/skroutz/merchants_ecommerce_orders_demo_open.yml @@ -65,7 +65,8 @@ "total_price": 35.98, "price_includes_vat": true, "ean": "1234567890123", - "serial_numbers": null + "serial_numbers": null, + "tags": ["plus_deal", "price_optimizer"] }, { "id": "3XlV8ebjxm", @@ -75,7 +76,8 @@ "unit_price": 100, "total_price": 200, "price_includes_vat": true, - "serial_numbers": null + "serial_numbers": null, + "tags": ["coupon_deal"] }, { "id": "ZvEKMxbxr1", @@ -86,7 +88,8 @@ "total_price": 51, "price_includes_vat": true, "extra_info": "Χρώμα: Πράσινο\\nΒαθμοί SPH: -6.50", - "serial_numbers": null + "serial_numbers": null, + "tags": ["two_plus_deal"] } ], "created_at": "2021-06-24T13:08:30+03:00", diff --git a/resources/responses/skroutz/merchants_ecommerce_orders_demo_rejected.yml b/resources/responses/skroutz/merchants_ecommerce_orders_demo_rejected.yml index d36b505f..6b6d5450 100644 --- a/resources/responses/skroutz/merchants_ecommerce_orders_demo_rejected.yml +++ b/resources/responses/skroutz/merchants_ecommerce_orders_demo_rejected.yml @@ -65,7 +65,8 @@ "total_price": 35.98, "price_includes_vat": true, "ean": "1234567890123", - "serial_numbers": null + "serial_numbers": null, + "tags": ["plus_deal", "price_optimizer"] }, { "id": "3XlV8ebjxm", @@ -75,7 +76,8 @@ "unit_price": 100, "total_price": 200, "price_includes_vat": true, - "serial_numbers": null + "serial_numbers": null, + "tags": ["coupon_deal"] }, { "id": "ZvEKMxbxr1", @@ -86,7 +88,8 @@ "total_price": 51, "price_includes_vat": true, "extra_info": "Χρώμα: Πράσινο\\nΒαθμοί SPH: -6.50", - "serial_numbers": null + "serial_numbers": null, + "tags": ["two_plus_deal"] } ], "created_at": "2021-06-24T13:11:58+03:00", diff --git a/resources/responses/skroutz/merchants_ecommerce_orders_demo_store_pickup.yml b/resources/responses/skroutz/merchants_ecommerce_orders_demo_store_pickup.yml index 0ae42c3a..91110c93 100644 --- a/resources/responses/skroutz/merchants_ecommerce_orders_demo_store_pickup.yml +++ b/resources/responses/skroutz/merchants_ecommerce_orders_demo_store_pickup.yml @@ -65,7 +65,8 @@ "total_price": 35.98, "price_includes_vat": true, "ean": "1234567890123", - "serial_numbers": null + "serial_numbers": null, + "tags": ["plus_deal", "price_optimizer"] } ], "created_at": "2021-06-24T13:08:30+03:00", diff --git a/source/localizable/smart_cart/_order_object.html.md.erb b/source/localizable/smart_cart/_order_object.html.md.erb index b98afcb5..339e6217 100644 --- a/source/localizable/smart_cart/_order_object.html.md.erb +++ b/source/localizable/smart_cart/_order_object.html.md.erb @@ -122,7 +122,7 @@ Name | Type | Description `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`) `line_items[_].serial_numbers` | String | Serial numbers for item, concatenated by ',', e.g. `SN12345,SN56789` -`line_items[_].tags` | Array | A list of tags that characterize the line item (optional). Supported tags: `["plus_deal", "coupon_deal"]` +`line_items[_].tags` | Array | A list of tags that characterize the line item (optional). Supported tags: `["plus_deal", "coupon_deal", "two_plus_deal", "price_optimizer"]` #### Line item size diff --git a/source/localizable/smart_cart/webhook.html.md.erb b/source/localizable/smart_cart/webhook.html.md.erb index 94025c1b..0b9eb435 100644 --- a/source/localizable/smart_cart/webhook.html.md.erb +++ b/source/localizable/smart_cart/webhook.html.md.erb @@ -229,7 +229,7 @@ Would send a Webhook request payload just like if the order was cancelled by the "ean": "1234567890123", "mpn": "JA-1059", "serial_numbers": null, - "tags": ["plus_deal", "coupon_deal"] + "tags": ["plus_deal", "coupon_deal", "two_plus_deal", "price_optimizer"] }, { "id": "l39vKqxqh2",