Order.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /*
  3. * This file is part of the overtrue/wechat.
  4. *
  5. * (c) overtrue <i@overtrue.me>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. /**
  11. * Order.
  12. *
  13. * @author overtrue <i@overtrue.me>
  14. * @copyright 2015 overtrue <i@overtrue.me>
  15. *
  16. * @see https://github.com/overtrue
  17. * @see http://overtrue.me
  18. */
  19. namespace EasyWeChat\Payment;
  20. use EasyWeChat\Support\Attribute;
  21. /**
  22. * Class Order.
  23. *
  24. * @property string $body
  25. * @property string $detail
  26. * @property string $attach
  27. * @property string $out_trade_no
  28. * @property string $fee_type
  29. * @property string $total_fee
  30. * @property string $spbill_create_ip
  31. * @property string $time_start
  32. * @property string $time_expire
  33. * @property string $goods_tag
  34. * @property string $notify_url
  35. * @property string $trade_type
  36. * @property string $product_id
  37. * @property string $limit_pay
  38. * @property string $openid
  39. * @property string $sub_openid
  40. * @property string $auth_code
  41. */
  42. class Order extends Attribute
  43. {
  44. const JSAPI = 'JSAPI';
  45. const NATIVE = 'NATIVE';
  46. const APP = 'APP';
  47. const MICROPAY = 'MICROPAY';
  48. protected $attributes = [
  49. 'body',
  50. 'detail',
  51. 'attach',
  52. 'out_trade_no',
  53. 'fee_type',
  54. 'total_fee',
  55. 'spbill_create_ip',
  56. 'time_start',
  57. 'time_expire',
  58. 'goods_tag',
  59. 'notify_url',
  60. 'trade_type',
  61. 'product_id',
  62. 'limit_pay',
  63. 'openid',
  64. 'sub_openid',
  65. 'auth_code',
  66. ];
  67. /**
  68. * Constructor.
  69. *
  70. * @param array $attributes
  71. */
  72. public function __construct(array $attributes)
  73. {
  74. parent::__construct($attributes);
  75. }
  76. }