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; } }
top of page

Oakland Wins Hoodie

Original price

$80.00

Sale price

$40.00

Show your Oakland pride with the mid-weight 9.4 oz Oakland Wins Hoodie from Oakland Don't Play. This hoodie pays homage to the Warriors' Classic Thunder mascot, and with the NBA All-Star returning to the Bay Area, it could be a great souvenir for that Oakland or Bay Area Warriors fan. Blending heritage and comfort effortlessly, this hoodie features a pocket logo on the front and a bold "Oakland Wins" statement on the back. It's a tribute to local victory and style. Available in sizes Small to 4X, it's perfect for any fan who values community and quality. Embrace the spirit of the Real Oakland brand and make a statement with this essential piece.

Color

Size

Quantity

Printing

DTF  

Loading…

RELATED PRODUCTS

bottom of page