From 7a3fe970aece7010ded29af147919372cc9a521e Mon Sep 17 00:00:00 2001 From: websterlove Date: Wed, 11 Oct 2023 13:25:06 -0500 Subject: [PATCH 1/4] add refundTotal field --- components/datatypes/data/order.example.2.json | 9 ++++++++- components/datatypes/data/order.schema.json | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/components/datatypes/data/order.example.2.json b/components/datatypes/data/order.example.2.json index 637ef8d12e..3c88ec7a1d 100644 --- a/components/datatypes/data/order.example.2.json +++ b/components/datatypes/data/order.example.2.json @@ -8,6 +8,13 @@ "xdm:refundReason": "price_adjustment", "xdm:refundPaymentType": "credit_card", "xdm:currencyCode": "USD" + }, + { + "xdm:transactionID": "transactid-a112", + "xdm:refundAmmount": 0.01, + "xdm:refundPaymentType": "credit_card", + "xdm:currencyCode": "USD" } - ] + ], + "xdm:refundTotal": 900.00 } diff --git a/components/datatypes/data/order.schema.json b/components/datatypes/data/order.schema.json index c25c78c90b..86531b840c 100644 --- a/components/datatypes/data/order.schema.json +++ b/components/datatypes/data/order.schema.json @@ -113,6 +113,11 @@ "description": "The date/time when an order cancellation is initiated by the shopper.", "meta:titleId": "order##xdm:cancelDate##title##86156", "meta:descriptionId": "order##xdm:cancelDate##description##47786" + }, + "xdm:refundTotal": { + "title": "Total Amount Refunded", + "type": "number", + "description": "The total amount provided in this refund on the order, combining all refunded items and after any discounts etc. have been applied." } } } From 16ab45c489d5507efbff2b6a1d96094a3c7a4bc5 Mon Sep 17 00:00:00 2001 From: websterlove Date: Wed, 11 Oct 2023 14:42:54 -0500 Subject: [PATCH 2/4] change currency value to suit lint rules --- components/datatypes/data/order.example.2.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/datatypes/data/order.example.2.json b/components/datatypes/data/order.example.2.json index 3c88ec7a1d..65587b9bc8 100644 --- a/components/datatypes/data/order.example.2.json +++ b/components/datatypes/data/order.example.2.json @@ -11,10 +11,10 @@ }, { "xdm:transactionID": "transactid-a112", - "xdm:refundAmmount": 0.01, + "xdm:refundAmmount": 50.50, "xdm:refundPaymentType": "credit_card", "xdm:currencyCode": "USD" } ], - "xdm:refundTotal": 900.00 + "xdm:refundTotal": 949.49 } From b22e268f54e498f332464e725f995b80e716c2b0 Mon Sep 17 00:00:00 2001 From: websterlove Date: Thu, 12 Oct 2023 12:52:28 -0500 Subject: [PATCH 3/4] change currency values to suit lint rules --- components/datatypes/data/order.example.2.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/datatypes/data/order.example.2.json b/components/datatypes/data/order.example.2.json index 65587b9bc8..351e9006a7 100644 --- a/components/datatypes/data/order.example.2.json +++ b/components/datatypes/data/order.example.2.json @@ -11,10 +11,10 @@ }, { "xdm:transactionID": "transactid-a112", - "xdm:refundAmmount": 50.50, + "xdm:refundAmmount": 50.49 , "xdm:refundPaymentType": "credit_card", "xdm:currencyCode": "USD" } ], - "xdm:refundTotal": 949.49 + "xdm:refundTotal": 950.48 } From 2624139f9e7e594216bc54e1545677c02dc2885d Mon Sep 17 00:00:00 2001 From: websterlove Date: Thu, 12 Oct 2023 12:54:20 -0500 Subject: [PATCH 4/4] delete stray space --- components/datatypes/data/order.example.2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/datatypes/data/order.example.2.json b/components/datatypes/data/order.example.2.json index 351e9006a7..7f53c28311 100644 --- a/components/datatypes/data/order.example.2.json +++ b/components/datatypes/data/order.example.2.json @@ -11,7 +11,7 @@ }, { "xdm:transactionID": "transactid-a112", - "xdm:refundAmmount": 50.49 , + "xdm:refundAmmount": 50.49, "xdm:refundPaymentType": "credit_card", "xdm:currencyCode": "USD" }