ApproachOrderCall.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. namespace common\models;
  3. use common\components\MongoActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for collection "ar_approach_order_call".
  7. *
  8. * @property \MongoDB\BSON\ObjectID|string $_id
  9. * @property mixed $id
  10. * @property mixed $domain
  11. * @property mixed $status
  12. * @property mixed $reference
  13. * @property mixed $amount
  14. * @property mixed $created_at
  15. * @property mixed $paid_at
  16. * @property mixed $channel
  17. * @property mixed $currency
  18. * @property mixed $ip_address
  19. * @property mixed $metadata
  20. * @property mixed $return_result
  21. * @property mixed $customer
  22. * @property mixed $email
  23. */
  24. class ApproachOrderCall extends MongoActiveRecord
  25. {
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public static function collectionName()
  30. {
  31. return 'ar_approach_order_call';
  32. }
  33. /**
  34. * @return \yii\mongodb\Connection the MongoDB connection used by this AR class.
  35. */
  36. public static function getDb()
  37. {
  38. return Yii::$app->get('dbLog');
  39. }
  40. /**
  41. * 获取id
  42. * @return string
  43. */
  44. public function getId() {
  45. return (string) $this->_id;
  46. }
  47. /**
  48. * {@inheritdoc}
  49. */
  50. public function attributes()
  51. {
  52. return [
  53. 'id',
  54. 'domain',
  55. 'status',
  56. 'reference',
  57. 'amount',
  58. 'created_at',
  59. 'paid_at',
  60. 'channel',
  61. 'currency',
  62. 'ip_address',
  63. 'metadata',
  64. 'return_result',
  65. 'customer',
  66. 'email',
  67. ];
  68. }
  69. /**
  70. * {@inheritdoc}
  71. */
  72. public function attributeLabels()
  73. {
  74. return [
  75. 'id' => 'PayID',
  76. 'domain' => 'domain',
  77. 'status' => 'status',
  78. 'reference' => 'reference',
  79. 'amount' => 'amount(kobo)',
  80. 'created_at' => 'created_at',
  81. 'paid_at' => 'paid_at',
  82. 'channel' => 'channel',
  83. 'currency' => 'currency',
  84. 'ip_address' => 'ip_address',
  85. 'metadata' => 'metadata',
  86. 'return_result' => 'return_result',
  87. 'customer' => 'customer',
  88. 'email' => 'email',
  89. ];
  90. }
  91. }