优惠券订单及其他脚本

TbkCouponGetRequest.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.coupon.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.07.25
  7. */
  8. class TbkCouponGetRequest
  9. {
  10. /**
  11. * 券ID
  12. **/
  13. private $activityId;
  14. /**
  15. * 商品ID
  16. **/
  17. private $itemId;
  18. /**
  19. * 带券ID与商品ID的加密串
  20. **/
  21. private $me;
  22. private $apiParas = array();
  23. public function setActivityId($activityId)
  24. {
  25. $this->activityId = $activityId;
  26. $this->apiParas["activity_id"] = $activityId;
  27. }
  28. public function getActivityId()
  29. {
  30. return $this->activityId;
  31. }
  32. public function setItemId($itemId)
  33. {
  34. $this->itemId = $itemId;
  35. $this->apiParas["item_id"] = $itemId;
  36. }
  37. public function getItemId()
  38. {
  39. return $this->itemId;
  40. }
  41. public function setMe($me)
  42. {
  43. $this->me = $me;
  44. $this->apiParas["me"] = $me;
  45. }
  46. public function getMe()
  47. {
  48. return $this->me;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "taobao.tbk.coupon.get";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. }
  61. public function putOtherTextParam($key, $value) {
  62. $this->apiParas[$key] = $value;
  63. $this->$key = $value;
  64. }
  65. }