Introduce Storefront API Order Serializer (#11590)
commit981b5dff92840e074c23de61cfeddcd8d49303a9
authorDamian Legawiec <damian@sparksolutions.co>
Mon, 3 Jan 2022 14:33:13 +0000 (3 15:33 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Jan 2022 14:33:13 +0000 (3 15:33 +0100)
tree281b52647d92a9642780e03160fba6797ace9bff
parente4718b5e56439eaab53dfece7f1e7acc77691bcc
Introduce Storefront API Order Serializer (#11590)

Previously we've re-used the Cart serializer for Account Orders, but using a seperate one gives us more flexibilty to include data for completed orders which aren't present for draft orders (carts).
api/app/serializers/spree/v2/storefront/order_serializer.rb [new file with mode: 0644]
api/lib/spree/api/dependencies.rb
api/spec/requests/spree/api/v2/storefront/account/orders_spec.rb