|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace Keepa\objects; |
| 4 | + |
| 5 | +/** |
| 6 | + * About: |
| 7 | + * A best sellers ASIN list of a specific category. |
| 8 | + * <p> |
| 9 | + * Returned by: |
| 10 | + * Request Best Sellers |
| 11 | + */ |
| 12 | +class LightningDeal |
| 13 | +{ |
| 14 | + |
| 15 | + /** |
| 16 | + * The domainId of the products Amazon locale <br> |
| 17 | + * {@link AmazonLocale} |
| 18 | + * @var int |
| 19 | + */ |
| 20 | + public $domainId; |
| 21 | + |
| 22 | + /** |
| 23 | + * The ASIN of the product |
| 24 | + * @var int |
| 25 | + */ |
| 26 | + public $lastUpdate; |
| 27 | + |
| 28 | + /** |
| 29 | + * The ASIN of the product |
| 30 | + * @var string |
| 31 | + */ |
| 32 | + public $asin; |
| 33 | + |
| 34 | + /** |
| 35 | + * Title of the product. Caution: may contain HTML markup in rare cases. |
| 36 | + * @var string |
| 37 | + */ |
| 38 | + public $title; |
| 39 | + |
| 40 | + /** |
| 41 | + * The name of seller offering this deal. |
| 42 | + * @var string|null |
| 43 | + */ |
| 44 | + public $sellerName; |
| 45 | + |
| 46 | + /** |
| 47 | + * The seller id of the merchant offering this deal. |
| 48 | + * @var string|null |
| 49 | + */ |
| 50 | + public $sellerId; |
| 51 | + |
| 52 | + /** |
| 53 | + * A unique ID for this deal. |
| 54 | + * @var string |
| 55 | + */ |
| 56 | + public $dealId; |
| 57 | + |
| 58 | + /** |
| 59 | + * The discounted price of this deal. Available once the deal has started. -1 if the deal’s state is upcoming. The price is an integer of the respective Amazon locale’s smallest currency unit (e.g. euro cents or yen). |
| 60 | + * @var int |
| 61 | + */ |
| 62 | + public $dealPrice; |
| 63 | + |
| 64 | + /** |
| 65 | + * The regular price of this product. Available once the deal has started. -1 if the deal’s state is upcoming. The price is an integer of the respective Amazon locale’s smallest currency unit (e.g. euro cents or yen). |
| 66 | + * @var int |
| 67 | + */ |
| 68 | + public $currentPrice; |
| 69 | + |
| 70 | + |
| 71 | + /** |
| 72 | + * The name of the primary image of the product. null if not available. |
| 73 | + * @var string|null |
| 74 | + */ |
| 75 | + public $image; |
| 76 | + |
| 77 | + /** |
| 78 | + * Whether or not the deal is Prime eligible. |
| 79 | + * @var boolean |
| 80 | + */ |
| 81 | + public $isPrimeEligible; |
| 82 | + |
| 83 | + /** |
| 84 | + * Whether or not the deal is fulfilled by Amazon. |
| 85 | + * @var boolean |
| 86 | + */ |
| 87 | + public $isFulfilledByAmazon; |
| 88 | + |
| 89 | + /** |
| 90 | + * Whether or not the price is restricted by MAP (Minimum Advertised Price). |
| 91 | + * @var boolean |
| 92 | + */ |
| 93 | + public $isMAP; |
| 94 | + |
| 95 | + /** |
| 96 | + * The rating of the product. A rating is an integer from 0 to 50 (e.g. 45 = 4.5 stars). |
| 97 | + * @var int |
| 98 | + */ |
| 99 | + public $rating; |
| 100 | + |
| 101 | + /** |
| 102 | + * The product’s review count. |
| 103 | + * @var int |
| 104 | + */ |
| 105 | + public $totalReviews; |
| 106 | + |
| 107 | + /** |
| 108 | + * The state of the deal. |
| 109 | + * @var string |
| 110 | + */ |
| 111 | + public $dealState; |
| 112 | + |
| 113 | + /** |
| 114 | + * The start time of this lighting deal, in Keepa Time minutes. Note that due to the delay in our data collection the deal price might not be available immediately once the deal has started on Amazon.<br> |
| 115 | + * Use {@link KeepaTime#keepaMinuteToUnixInMillis(int)} (long)} to get an uncompressed timestamp (Unix epoch time). |
| 116 | + * @var int |
| 117 | + */ |
| 118 | + public $startTime; |
| 119 | + |
| 120 | + /** |
| 121 | + * The end time of this lighting deal, in Keepa Time minutes.<br> |
| 122 | + * Use {@link KeepaTime#keepaMinuteToUnixInMillis(int)} (long)} to get an uncompressed timestamp (Unix epoch time). |
| 123 | + * @var int |
| 124 | + */ |
| 125 | + public $endTime; |
| 126 | + |
| 127 | + /** |
| 128 | + * The percentage claimed of the lighting deal. Since lightning deals have limited stock, this number may change fast on Amazon, but due to the delay of our data collection the provided value may be outdated. |
| 129 | + * @var int |
| 130 | + */ |
| 131 | + public $percentClaimed; |
| 132 | + |
| 133 | + /** |
| 134 | + * The provided discount of this deal, according to Amazon. May be in reference to the list price, not the current price. |
| 135 | + * @var int |
| 136 | + */ |
| 137 | + public $percentOff; |
| 138 | + |
| 139 | + /** |
| 140 | + * The provided discount of this deal, according to Amazon. May be in reference to the list price, not the current price. |
| 141 | + * @var \Keepa\helper\VariationAttributeObject[]|null |
| 142 | + */ |
| 143 | + public $variation; |
| 144 | + |
| 145 | + |
| 146 | +} |
0 commit comments