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; } }

SEARCH

AND MORE

PICK UP

HOT

スタッフ募集

マリリニュージーランドでは、
ニュージーランド産マヌカハニーを
主とした宝物 (マオリ語で
Taonga=タオンガと言います) を
日本のお客様にお届けする
メンバーを募集しております!

私たちと一緒に、
日本の皆様の健康と心を元気にする為に、
ニュージーランドの「マリリ=優しさ」を
伝えるお仕事を一緒にしませんか?

 \スタッフ募集中/ 


現在
【アシスタント (庶務) 】
募集中!


興味のある方は、
職務経歴書と履歴書を添付の上
以下のメールアドレスまでご連絡ください。
recruit@mariri-nz.co.jp

メールを頂いた方に、
募集内容の詳細をお送りさせて頂きます。

welcome!ご応募お待ちしております
現在登録されている商品はありません。