File indexing completed on 2024-12-29 05:28:02
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Service 0017 * @subpackage Ebay 0018 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0019 * @license http://framework.zend.com/license/new-bsd New BSD License 0020 * @version $Id: SellerInfo.php 22791 2010-08-04 16:11:47Z renanbr $ 0021 */ 0022 0023 /** 0024 * @see Zend_Service_Ebay_Finding_Abstract 0025 */ 0026 // require_once 'Zend/Service/Ebay/Finding/Abstract.php'; 0027 0028 /** 0029 * @category Zend 0030 * @package Zend_Service 0031 * @subpackage Ebay 0032 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0033 * @license http://framework.zend.com/license/new-bsd New BSD License 0034 * @uses Zend_Service_Ebay_Finding_Abstract 0035 */ 0036 class Zend_Service_Ebay_Finding_SellerInfo extends Zend_Service_Ebay_Finding_Abstract 0037 { 0038 /** 0039 * Visual indicator of user's feedback score. 0040 * 0041 * Applicable values: 0042 * 0043 * None 0044 * No graphic displayed, feedback score 0-9. 0045 * 0046 * Yellow 0047 * Yellow Star, feedback score 10-49. 0048 * 0049 * Blue 0050 * Blue Star, feedback score 50-99. 0051 * 0052 * Turquoise 0053 * Turquoise Star, feedback score 100-499. 0054 * 0055 * Purple 0056 * Purple Star, feedback score 500-999. 0057 * 0058 * Red 0059 * Red Star, feedback score 1,000-4,999. 0060 * 0061 * Green 0062 * Green Star, feedback score 5,000-9,999. 0063 * 0064 * YellowShooting 0065 * Yellow Shooting Star, feedback score 10,000-24,999. 0066 * 0067 * TurquoiseShooting 0068 * Turquoise Shooting Star, feedback score 25,000-49,999. 0069 * 0070 * PurpleShooting 0071 * Purple Shooting Star, feedback score 50,000-99,999. 0072 * 0073 * RedShooting 0074 * Red Shooting Star, feedback score 100,000-499,000 and above. 0075 * 0076 * GreenShooting 0077 * Green Shooting Star, feedback score 500,000-999,000 and above. 0078 * 0079 * SilverShooting 0080 * Silver Shooting Star, feedback score 1,000,000 or more. 0081 * 0082 * @var string 0083 */ 0084 public $feedbackRatingStar; 0085 0086 /** 0087 * The aggregate feedback score of the seller. 0088 * 0089 * A seller's feedback score is their net positive feedback minus their net 0090 * negative feedback. Feedback scores are a quantitative expression of the 0091 * desirability of dealing with a seller in a transaction. 0092 * 0093 * @var integer 0094 */ 0095 public $feedbackScore; 0096 0097 /** 0098 * The percentage value of a user's positive feedback (their positive 0099 * feedbackScore divided by their total positive plus negative feedback). 0100 * 0101 * @var float 0102 */ 0103 public $positiveFeedbackPercent; 0104 0105 /** 0106 * The seller's eBay user name; a unique value. 0107 * 0108 * @var string 0109 */ 0110 public $sellerUserName; 0111 0112 /** 0113 * Indicates whether the seller of the item is top-rated. 0114 * 0115 * A top-rated seller: 0116 * - Consistently receives highest buyers' ratings 0117 * - Ships items quickly 0118 * - Has earned a track record of excellent service 0119 * 0120 * eBay regularly reviews the performance of these sellers to confirm they 0121 * continue to meet the program's requirements. 0122 * 0123 * This field is returned for the following sites only: US (EBAY-US), Motors 0124 * (EBAY-MOTOR), DE (EBAY-DE), AT (EBAY-AT), and CH (EBAY-CH). 0125 * 0126 * @var boolean 0127 */ 0128 public $topRatedSeller; 0129 0130 /** 0131 * @return void 0132 */ 0133 protected function _init() 0134 { 0135 parent::_init(); 0136 $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING; 0137 0138 $this->feedbackRatingStar = $this->_query(".//$ns:feedbackRatingStar[1]", 'string'); 0139 $this->feedbackScore = $this->_query(".//$ns:feedbackScore[1]", 'integer'); 0140 $this->positiveFeedbackPercent = $this->_query(".//$ns:positiveFeedbackPercent[1]", 'float'); 0141 $this->sellerUserName = $this->_query(".//$ns:sellerUserName[1]", 'string'); 0142 $this->topRatedSeller = $this->_query(".//$ns:topRatedSeller[1]", 'boolean'); 0143 } 0144 }