From 7630ec762b4166738791876f0cb7ba6526803266 Mon Sep 17 00:00:00 2001 From: Stas Zhukovskiy Date: Tue, 5 Dec 2017 12:40:15 +0300 Subject: [PATCH] Added $currency to the content items. It's an arguable change because we have currency in the event metadata (`event_data.currency`) for *commerce* events, but no indication of currency in the *content* events. Currently, the content items only have a price with no indication of currency. For consistency of the content items across all events and since we have this field open in EO anyways, I suggest we add it to the docs. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 21bd1ae..f4dc9ee 100644 --- a/README.md +++ b/README.md @@ -497,6 +497,9 @@ OR *content_items[i].$price* : price for the product/content +*content_items[i].$currency* +: currency for the product representing the price in ISO 4217 currency code + *content_items[i].$quantity* : quantity of the item to be ordered (for PURCHASE, ADD_TO_CART, etc) @@ -642,6 +645,7 @@ curl -vvv -d '{ "$canonical_identifier": "nike/1234", "$publicly_indexable": false, "$price": 101.2, + "$currency": "USD", "$locally_indexable": true, "$quantity": 1, "$sku": "1101123445", @@ -678,6 +682,7 @@ curl -vvv -d '{ "$og_description": "Fine combed woolen sox for those who love your foot", "$publicly_indexable": false, "$price": 80.2, + "$currency": "USD", "$locally_indexable": true, "$quantity": 5, "$sku": "110112467", @@ -858,6 +863,9 @@ OR *content_items[i].$price* : price for the product/content +*content_items[i].$currency* +: currency for the product representing the price in ISO 4217 currency code + *content_items[i].$sku* : product sku or product id @@ -994,6 +1002,7 @@ curl -vvv -d '{ "$canonical_identifier": "nike/1234", "$publicly_indexable": false, "$price": 101.2, + "$currency": "USD", "$locally_indexable": true, "$sku": "1101123445", "$product_name": "Runner",