Demo: a static copy of one review, without the review service. Reviewed marks apply in this tab until it reloads, and view settings stay in this browser. Comments, decisions, and publication need an installed mcp-review. About mcp-review · Get early access

Move the storefront API to typed handlers

Coverage

Presentation
All 1051 selected changes are placed. 1050 in groups · 0 unbucketed · 1 generated · 0 without a text diff
Explanations
8 of 8 groups have an explanation.
Agent analysis
Reading the analysis status…
Human review
0 of 1051 hunks are marked reviewed.

Order and payment handlers

The handlers of carts, orders, payments, refunds, shipments, invoices, coupons and returns move to the typed form, with the same three behaviour changes as the catalog.

src/tax/rates.ts holds the tax rate of each region and category for each financial year. Checkout read it from the finance service for every order; now the table ships with the API and finance updates it once a year. Its rows are data: check the shape and taxRate, not each rate.

src/handlers/carts/create.ts
+15 -29

The changes load when the file comes near.

src/handlers/carts/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/carts/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/carts/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/carts/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/carts/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/carts/update.ts
+17 -25

The changes load when the file comes near.

src/handlers/coupons/create.ts
+18 -29

The changes load when the file comes near.

src/handlers/coupons/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/coupons/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/coupons/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/coupons/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/coupons/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/coupons/update.ts
+17 -25

The changes load when the file comes near.

src/handlers/giftCards/create.ts
+18 -29

The changes load when the file comes near.

src/handlers/giftCards/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/giftCards/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/giftCards/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/giftCards/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/giftCards/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/giftCards/update.ts
+17 -25

The changes load when the file comes near.

src/handlers/invoices/create.ts
+18 -29

The changes load when the file comes near.

src/handlers/invoices/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/invoices/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/invoices/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/invoices/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/invoices/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/invoices/update.ts
+17 -26

The changes load when the file comes near.

src/handlers/orders/create.ts
+18 -29

The changes load when the file comes near.

src/handlers/orders/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/orders/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/orders/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/orders/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/orders/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/orders/update.ts
+17 -26

The changes load when the file comes near.

src/handlers/payments/create.ts
+15 -29

The changes load when the file comes near.

src/handlers/payments/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/payments/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/payments/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/payments/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/payments/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/payments/update.ts
+17 -26

The changes load when the file comes near.

src/handlers/quotes/create.ts
+18 -29

The changes load when the file comes near.

src/handlers/quotes/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/quotes/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/quotes/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/quotes/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/quotes/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/quotes/update.ts
+17 -25

The changes load when the file comes near.

src/handlers/refunds/create.ts
+15 -29

The changes load when the file comes near.

src/handlers/refunds/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/refunds/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/refunds/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/refunds/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/refunds/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/refunds/update.ts
+17 -25

The changes load when the file comes near.

src/handlers/returns/create.ts
+15 -29

The changes load when the file comes near.

src/handlers/returns/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/returns/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/returns/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/returns/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/returns/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/returns/update.ts
+17 -25

The changes load when the file comes near.

src/handlers/shipments/create.ts
+18 -29

The changes load when the file comes near.

src/handlers/shipments/delete.ts
+16 -18

The changes load when the file comes near.

src/handlers/shipments/export.ts
+20 -16

The changes load when the file comes near.

src/handlers/shipments/get.ts
+15 -17

The changes load when the file comes near.

src/handlers/shipments/list.ts
+16 -14

The changes load when the file comes near.

src/handlers/shipments/search.ts
+13 -18

The changes load when the file comes near.

src/handlers/shipments/update.ts
+17 -26

The changes load when the file comes near.

src/tax/rates.ts
+1407 -0

The changes load when the file comes near.

+14,668 -11,128 left