コード例 #1
0
 private Long populatePromoId(final PaymentOption paymentOption) {
   final PromotionPaymentOption promotion =
       paymentOption.getPromotion(PaymentPreferences.PaymentMethod.ITUNES);
   if (promotion != null) {
     return promotion.getPromoId();
   }
   return null;
 }