add getDiscountPromotion function
update code
move public function to class top
format code
format code