GetCouponListMessage.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace App\Generated\V1\Messages\Payment;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class GetCouponListMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $type;
  10. protected $goodsScope;
  11. protected $perPage;
  12. protected $result;
  13. /**
  14. * @return string|null
  15. */
  16. public function getType()
  17. {
  18. return $this->type;
  19. }
  20. /**
  21. * @return string|null
  22. */
  23. public function getGoodsScope()
  24. {
  25. return $this->goodsScope;
  26. }
  27. /**
  28. * @return int|null
  29. */
  30. public function getPerPage()
  31. {
  32. return $this->perPage;
  33. }
  34. public function requestRules()
  35. {
  36. return [
  37. ['type', 'type', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  38. ['goodsScope', 'goods_scope', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  39. ['perPage', 'per_page', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
  40. ];
  41. }
  42. public function responseRules()
  43. {
  44. return [
  45. ['result', 'result', 'bail', null, null],
  46. ];
  47. }
  48. public function setResponse($result)
  49. {
  50. $this->result = $result;
  51. }
  52. }