Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix the order endpoint tax line items format #11796

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/StoreApi/Schemas/V1/OrderSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ),
];
},
Expand Down
Loading