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

2nd Halloween Game Night

2nd annual Halloween game night party šŸŽƒ was a vibe AS USUAL✨ I love being able to provide a safe space for my community. I’m a REAL product of Oakland so loving on my streets is mandatoryā¤ļøā€šŸ”„šŸ„°šŸ„¹ā¤ļøā€šŸ”„. Thanks to all my community, family & friends for showing up to support the vision. Swag has always been my 2nd priority,, the community work really has my heart. DJ @sunflowerbaybee I love you girl thanks so much! @mrskeys07 the balloons werešŸ’£ thanks again.




Ā 
Ā 
Ā 

Comments


bottom of page