From c1f34ea861977934a0155870f34c194c8431d9f0 Mon Sep 17 00:00:00 2001 From: hsingyuc Date: Wed, 15 Nov 2023 19:06:12 -0500 Subject: [PATCH] Fix the order endpoint tax line items format --- src/StoreApi/Schemas/V1/OrderSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StoreApi/Schemas/V1/OrderSchema.php b/src/StoreApi/Schemas/V1/OrderSchema.php index f017488c77c..32f090b01d7 100644 --- a/src/StoreApi/Schemas/V1/OrderSchema.php +++ b/src/StoreApi/Schemas/V1/OrderSchema.php @@ -380,7 +380,7 @@ function( $item ) { function( $item ) { return [ 'name' => $item->get_name(), - 'price' => $item->get_tax_total(), + 'price' => $this->prepare_money_response( $item->get_tax_total() ), 'rate' => strval( $item->get_rate_percent() ), ]; },