123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?php
- namespace Proto\Api;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- class EntOrder extends \Google\Protobuf\Internal\Message
- {
-
- protected $order_sn = '';
-
- protected $order_id = 0;
-
- protected $user_info = null;
-
- protected $shop_info = null;
-
- protected $order_time = null;
-
- protected $pay_method = 0;
-
- protected $order_source = 0;
-
- protected $pay_status = 0;
-
- public function __construct($data = NULL) {
- \GPBMetadata\Api\EntOrder::initOnce();
- parent::__construct($data);
- }
-
- public function getOrderSn()
- {
- return $this->order_sn;
- }
-
- public function setOrderSn($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_sn = $var;
- return $this;
- }
-
- public function getOrderId()
- {
- return $this->order_id;
- }
-
- public function setOrderId($var)
- {
- GPBUtil::checkInt32($var);
- $this->order_id = $var;
- return $this;
- }
-
- public function getUserInfo()
- {
- return $this->user_info;
- }
- public function hasUserInfo()
- {
- return isset($this->user_info);
- }
- public function clearUserInfo()
- {
- unset($this->user_info);
- }
-
- public function setUserInfo($var)
- {
- GPBUtil::checkMessage($var, \Proto\Api\EntUser::class);
- $this->user_info = $var;
- return $this;
- }
-
- public function getShopInfo()
- {
- return $this->shop_info;
- }
- public function hasShopInfo()
- {
- return isset($this->shop_info);
- }
- public function clearShopInfo()
- {
- unset($this->shop_info);
- }
-
- public function setShopInfo($var)
- {
- GPBUtil::checkMessage($var, \Proto\Api\EntAdmin::class);
- $this->shop_info = $var;
- return $this;
- }
-
- public function getOrderTime()
- {
- return $this->order_time;
- }
- public function hasOrderTime()
- {
- return isset($this->order_time);
- }
- public function clearOrderTime()
- {
- unset($this->order_time);
- }
-
- public function setOrderTime($var)
- {
- GPBUtil::checkMessage($var, \Proto\Api\OrderTime::class);
- $this->order_time = $var;
- return $this;
- }
-
- public function getPayMethod()
- {
- return $this->pay_method;
- }
-
- public function setPayMethod($var)
- {
- GPBUtil::checkEnum($var, \Proto\Api\PAY_METHOD::class);
- $this->pay_method = $var;
- return $this;
- }
-
- public function getOrderSource()
- {
- return $this->order_source;
- }
-
- public function setOrderSource($var)
- {
- GPBUtil::checkEnum($var, \Proto\Api\REQUEST_SOURCE::class);
- $this->order_source = $var;
- return $this;
- }
-
- public function getPayStatus()
- {
- return $this->pay_status;
- }
-
- public function setPayStatus($var)
- {
- GPBUtil::checkInt32($var);
- $this->pay_status = $var;
- return $this;
- }
- }
|