Skip to content
Close menu
New Arrivals
Gifts
Gift Cards
Shop
Home
STaNTON
Heartloom
Free People
Z Supply
FP Movement
Splendid
Eagles
Dresses
Rompers
Sets
Jumpsuits + Dresses
Tops
Jackets
Vests
Sweaters
Tees
Tanks
Sweatshirts
Shackets
Bottoms
Jeans
Skirts + Skorts
Pants
Shorts
Joggers
Denim Shorts
Underneath
Bralettes
Underwear
Accessories
Shoes
Handbags
De La Mur
Jewelry
Hats
Sunglasses
Candles + Scent Sticks
Headbands
Quay
Sale
Last For Less
Sale items
About
Contact
A bit about us
Log in
Instagram
Facebook
Instagram
Facebook
Search
Site navigation
Log in
Search
Cart
New Arrivals
Gifts
Gift Cards
Shop
Home
STaNTON
Heartloom
Free People
Z Supply
FP Movement
Splendid
Eagles
Dresses
Rompers
Sets
Jumpsuits + Dresses
Tops
Jackets
Vests
Sweaters
Tees
Tanks
Sweatshirts
Shackets
Bottoms
Jeans
Skirts + Skorts
Pants
Shorts
Joggers
Denim Shorts
Underneath
Bralettes
Underwear
Accessories
Shoes
Handbags
De La Mur
Jewelry
Hats
Sunglasses
Candles + Scent Sticks
Headbands
Quay
Sale
Last For Less
Sale items
About
Contact
A bit about us
Search
"Close (esc)"
Free Shipping
on orders over $50
Ahdorned
Filter
Close menu
Hats + Hair Accessories
Dresses
Pants
Tees
Sweaters
Denim
Sunglasses
Jewelry
Candles + Wax Warmers
Handbags
Bottles + Mugs
Socks + Slippers
Scarves + Wraps
Jackets
Hats + Hair Accessories
Dresses
Pants
Tees
Sweaters
Denim
Sunglasses
Jewelry
Candles + Wax Warmers
Handbags
Bottles + Mugs
Socks + Slippers
Scarves + Wraps
Jackets
Filter
0 products
Sort
Sort
Featured
Best selling
Alphabetically, A-Z
Alphabetically, Z-A
Price, low to high
Price, high to low
Date, old to new
Date, new to old
0 products
Sorry, there are no products in this collection.
Previous
Next
"Close (esc)"
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.*; @RestController public class CheckoutController { @GetMapping("/checkout") public Map
checkout( @RequestParam String products, @RequestParam(required = false) String coupon) { // Parse products Map
productQuantities = new HashMap<>(); for (String productEntry : products.split(",")) { String[] parts = productEntry.split(":"); productQuantities.put( parts[0], // Product ID Integer.parseInt(parts[1]) // Quantity ); } // Build result Map
result = new HashMap<>(); result.put("products", productQuantities); result.put("coupon", coupon != null ? coupon : "No coupon applied"); return result; } }