|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Service |
|
17 * @subpackage Ebay |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: SellerInfo.php 22791 2010-08-04 16:11:47Z renanbr $ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * @see Zend_Service_Ebay_Finding_Abstract |
|
25 */ |
|
26 require_once 'Zend/Service/Ebay/Finding/Abstract.php'; |
|
27 |
|
28 /** |
|
29 * @category Zend |
|
30 * @package Zend_Service |
|
31 * @subpackage Ebay |
|
32 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
34 * @uses Zend_Service_Ebay_Finding_Abstract |
|
35 */ |
|
36 class Zend_Service_Ebay_Finding_SellerInfo extends Zend_Service_Ebay_Finding_Abstract |
|
37 { |
|
38 /** |
|
39 * Visual indicator of user's feedback score. |
|
40 * |
|
41 * Applicable values: |
|
42 * |
|
43 * None |
|
44 * No graphic displayed, feedback score 0-9. |
|
45 * |
|
46 * Yellow |
|
47 * Yellow Star, feedback score 10-49. |
|
48 * |
|
49 * Blue |
|
50 * Blue Star, feedback score 50-99. |
|
51 * |
|
52 * Turquoise |
|
53 * Turquoise Star, feedback score 100-499. |
|
54 * |
|
55 * Purple |
|
56 * Purple Star, feedback score 500-999. |
|
57 * |
|
58 * Red |
|
59 * Red Star, feedback score 1,000-4,999. |
|
60 * |
|
61 * Green |
|
62 * Green Star, feedback score 5,000-9,999. |
|
63 * |
|
64 * YellowShooting |
|
65 * Yellow Shooting Star, feedback score 10,000-24,999. |
|
66 * |
|
67 * TurquoiseShooting |
|
68 * Turquoise Shooting Star, feedback score 25,000-49,999. |
|
69 * |
|
70 * PurpleShooting |
|
71 * Purple Shooting Star, feedback score 50,000-99,999. |
|
72 * |
|
73 * RedShooting |
|
74 * Red Shooting Star, feedback score 100,000-499,000 and above. |
|
75 * |
|
76 * GreenShooting |
|
77 * Green Shooting Star, feedback score 500,000-999,000 and above. |
|
78 * |
|
79 * SilverShooting |
|
80 * Silver Shooting Star, feedback score 1,000,000 or more. |
|
81 * |
|
82 * @var string |
|
83 */ |
|
84 public $feedbackRatingStar; |
|
85 |
|
86 /** |
|
87 * The aggregate feedback score of the seller. |
|
88 * |
|
89 * A seller's feedback score is their net positive feedback minus their net |
|
90 * negative feedback. Feedback scores are a quantitative expression of the |
|
91 * desirability of dealing with a seller in a transaction. |
|
92 * |
|
93 * @var integer |
|
94 */ |
|
95 public $feedbackScore; |
|
96 |
|
97 /** |
|
98 * The percentage value of a user's positive feedback (their positive |
|
99 * feedbackScore divided by their total positive plus negative feedback). |
|
100 * |
|
101 * @var float |
|
102 */ |
|
103 public $positiveFeedbackPercent; |
|
104 |
|
105 /** |
|
106 * The seller's eBay user name; a unique value. |
|
107 * |
|
108 * @var string |
|
109 */ |
|
110 public $sellerUserName; |
|
111 |
|
112 /** |
|
113 * Indicates whether the seller of the item is top-rated. |
|
114 * |
|
115 * A top-rated seller: |
|
116 * - Consistently receives highest buyers' ratings |
|
117 * - Ships items quickly |
|
118 * - Has earned a track record of excellent service |
|
119 * |
|
120 * eBay regularly reviews the performance of these sellers to confirm they |
|
121 * continue to meet the program's requirements. |
|
122 * |
|
123 * This field is returned for the following sites only: US (EBAY-US), Motors |
|
124 * (EBAY-MOTOR), DE (EBAY-DE), AT (EBAY-AT), and CH (EBAY-CH). |
|
125 * |
|
126 * @var boolean |
|
127 */ |
|
128 public $topRatedSeller; |
|
129 |
|
130 /** |
|
131 * @return void |
|
132 */ |
|
133 protected function _init() |
|
134 { |
|
135 parent::_init(); |
|
136 $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING; |
|
137 |
|
138 $this->feedbackRatingStar = $this->_query(".//$ns:feedbackRatingStar[1]", 'string'); |
|
139 $this->feedbackScore = $this->_query(".//$ns:feedbackScore[1]", 'integer'); |
|
140 $this->positiveFeedbackPercent = $this->_query(".//$ns:positiveFeedbackPercent[1]", 'float'); |
|
141 $this->sellerUserName = $this->_query(".//$ns:sellerUserName[1]", 'string'); |
|
142 $this->topRatedSeller = $this->_query(".//$ns:topRatedSeller[1]", 'boolean'); |
|
143 } |
|
144 } |