TradeMicropayWechaGoodsDetail.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. /**
  3. * 微信goods_detail字段说明
  4. * TradeMicropayWechaGoodsDetail
  5. * PHP version 7.4
  6. *
  7. * @category Class
  8. * @package Lakala\OpenAPISDK\V3\Model
  9. * @author lucongyu
  10. * @link https://o.lakala.com
  11. */
  12. namespace SixShop\Lakala\OpenAPISDK\V3\Model;
  13. class TradeMicropayWechaGoodsDetail extends TradeGoodsDetail implements \JsonSerializable
  14. {
  15. protected $goodsId;
  16. protected $wxpayGoodsId;
  17. protected $goodsName;
  18. protected $quantity;
  19. protected $price;
  20. public function setGoodsId($goodsId)
  21. {
  22. $this->goodsId = $goodsId;
  23. return $this;
  24. }
  25. public function getGoodsId()
  26. {
  27. return $this->goodsId;
  28. }
  29. public function setWxpayGoodsId($wxpayGoodsId)
  30. {
  31. $this->wxpayGoodsId = $wxpayGoodsId;
  32. return $this;
  33. }
  34. public function getWxpayGoodsId()
  35. {
  36. return $this->wxpayGoodsId;
  37. }
  38. public function setGoodsName($goodsName)
  39. {
  40. $this->goodsName = $goodsName;
  41. return $this;
  42. }
  43. public function getGoodsName()
  44. {
  45. return $this->goodsName;
  46. }
  47. public function setQuantity($quantity)
  48. {
  49. $this->quantity = $quantity;
  50. return $this;
  51. }
  52. public function getQuantity()
  53. {
  54. return $this->quantity;
  55. }
  56. public function setPrice($price)
  57. {
  58. $this->price = $price;
  59. return $this;
  60. }
  61. public function getPrice()
  62. {
  63. return $this->price;
  64. }
  65. public function jsonSerialize()
  66. {
  67. return [
  68. 'goods_id' => $this->goodsId,
  69. 'wxpay_goods_id' => $this->wxpayGoodsId,
  70. 'goods_name' => $this->goodsName,
  71. 'quantity' => $this->quantity,
  72. 'price' => $this->price,
  73. ];
  74. }
  75. }