TradePreorderAlipayGoodsDetail.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /**
  3. * goods_detail 支付宝goods_detail字段
  4. * TradePreorderAlipayGoodsDetail
  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 TradePreorderAlipayGoodsDetail extends TradeGoodsDetail implements \JsonSerializable
  14. {
  15. protected $goodsId;
  16. protected $alipayGoodsId;
  17. protected $goodsName;
  18. protected $quantity;
  19. protected $price;
  20. protected $goodsCategory;
  21. protected $categoriesTree;
  22. protected $body;
  23. protected $showUrl;
  24. public function setGoodsId($goodsId)
  25. {
  26. $this->goodsId = $goodsId;
  27. return $this;
  28. }
  29. public function getGoodsId()
  30. {
  31. return $this->goodsId;
  32. }
  33. public function setAlipayGoodsId($alipayGoodsId)
  34. {
  35. $this->alipayGoodsId = $alipayGoodsId;
  36. return $this;
  37. }
  38. public function getAlipayGoodsId()
  39. {
  40. return $this->alipayGoodsId;
  41. }
  42. public function setGoodsName($goodsName)
  43. {
  44. $this->goodsName = $goodsName;
  45. return $this;
  46. }
  47. public function getGoodsName()
  48. {
  49. return $this->goodsName;
  50. }
  51. public function setQuantity($quantity)
  52. {
  53. $this->quantity = $quantity;
  54. return $this;
  55. }
  56. public function getQuantity()
  57. {
  58. return $this->quantity;
  59. }
  60. public function setPrice($price)
  61. {
  62. $this->price = $price;
  63. return $this;
  64. }
  65. public function getPrice()
  66. {
  67. return $this->price;
  68. }
  69. public function setGoodsCategory($goodsCategory)
  70. {
  71. $this->goodsCategory = $goodsCategory;
  72. return $this;
  73. }
  74. public function getGoodsCategory()
  75. {
  76. return $this->goodsCategory;
  77. }
  78. public function setCategoriesTree($categoriesTree)
  79. {
  80. $this->categoriesTree = $categoriesTree;
  81. return $this;
  82. }
  83. public function getCategoriesTree()
  84. {
  85. return $this->categoriesTree;
  86. }
  87. public function setBody($body)
  88. {
  89. $this->body = $body;
  90. return $this;
  91. }
  92. public function getBody()
  93. {
  94. return $this->body;
  95. }
  96. public function setShowUrl($showUrl)
  97. {
  98. $this->showUrl = $showUrl;
  99. return $this;
  100. }
  101. public function getShowUrl()
  102. {
  103. return $this->showUrl;
  104. }
  105. public function jsonSerialize()
  106. {
  107. return [
  108. 'goods_id' => $this->goodsId,
  109. 'alipay_goods_id' => $this->alipayGoodsId,
  110. 'goods_name' => $this->goodsName,
  111. 'quantity' => $this->quantity,
  112. 'price' => $this->price,
  113. 'goods_category' => $this->goodsCategory,
  114. 'categories_tree' => $this->categoriesTree,
  115. 'body' => $this->body,
  116. 'show_url' => $this->showUrl,
  117. ];
  118. }
  119. }