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

MACERA
SENİNLE BAŞLAR

KAMA_OFF_ROAD

Hizmetlerimiz

Hakkımızda

Kama Off Road, bir işletmeden çok daha fazlası; biz, doğaya, maceraya ve 4x4 araçların sunduğu sınırsız özgürlüğe adanmış bir tutkunun adıyız. Bu yolculuk, çamurlu yollara, dik yokuşlara ve keşfedilmemiş patikalara olan sevdamızla başladı. Bizler, bir aracın sadece bir yerden bir yere gitmek için değil, aynı zamanda sınırları zorlamak ve unutulmaz anılar biriktirmek için bir araç olabileceğine inanan bir ekibiz.

Ekipman Uyumlu Markalarımız

mercedes-logo
Volkswagen-logo
toyoa-logo
nissan-logo
dacia-logo
fiat-logo
mitsubishi-logo
ford-logo
isuzu-logo
renault-logo
kırık çamur

Bizimle İletişime Geçin

İletişimde kalın, en kısa sürede size dönüş sağlayacağımızdan emin olabilirsiniz

Teşekkürler!

Untitled-1.png

(+90) 507 266 06 27

Dikmen Caddesi 114/B

Çankaya / Ankara

© 2025, Kama Off-Road. Tüm Hakları Saklıdır.

  • Telegram
  • Facebook
  • Instagram
bottom of page
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; } }