1 | <?php |
||
26 | class Lookup extends AbstractOperation |
||
27 | { |
||
28 | const TYPE_ASIN = 'ASIN'; |
||
29 | const TYPE_SKU = 'SKU'; |
||
30 | const TYPE_UPC = 'UPC'; |
||
31 | const TYPE_EAN = 'EAN'; |
||
32 | const TYPE_ISBN = 'ISBN'; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | public function getName() |
|
41 | |||
42 | /** |
||
43 | * Pass up to 10 itemid's which should be looked up |
||
44 | * |
||
45 | * @param array $itemIds |
||
46 | * |
||
47 | * @return \ApaiIO\Operations\Lookup |
||
48 | */ |
||
49 | 2 | public function setItemIds(array $itemIds) |
|
60 | |||
61 | /** |
||
62 | * Returns the itemid |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getItemId() |
||
70 | 2 | ||
71 | /** |
||
72 | 2 | * Sets the itemid which should be looked up |
|
73 | * |
||
74 | * @param string $itemId |
||
75 | * |
||
76 | * @return \ApaiIO\Operations\Lookup |
||
77 | */ |
||
78 | public function setItemId($itemId) |
||
84 | |||
85 | 7 | /** |
|
86 | 7 | * Returns the idtype either ASIN (Default), SKU, UPC, EAN, and ISBN |
|
87 | 7 | * |
|
88 | 7 | * @return string |
|
89 | */ |
||
90 | 7 | public function getIdType() |
|
94 | 1 | ||
95 | 1 | /** |
|
96 | 1 | * Sets the idtype either ASIN (Default), SKU, UPC, EAN, and ISBN |
|
97 | 1 | * |
|
98 | * @param string $idType |
||
99 | * |
||
100 | 6 | * @return \ApaiIO\Operations\Lookup |
|
101 | */ |
||
102 | 6 | public function setIdType($idType) |
|
128 | |||
129 | /** |
||
130 | * Returns the searchindex |
||
131 | * |
||
132 | 1 | * @return mixed |
|
133 | */ |
||
134 | 1 | public function getSearchIndex() |
|
138 | |||
139 | /** |
||
140 | * Sets the searchindex which should be used when set IdType other than ASIN |
||
141 | * |
||
142 | * @param string $searchIndex |
||
143 | * |
||
144 | * @return \ApaiIO\Operations\Lookup |
||
145 | */ |
||
146 | public function setSearchIndex($searchIndex) |
||
152 | |||
153 | /** |
||
154 | * Returns the condition of the items to return. New | Used | Collectible | Refurbished | All |
||
155 | * |
||
156 | * @return string |
||
157 | */ |
||
158 | public function getCondition() |
||
162 | |||
163 | /** |
||
164 | * Sets the condition of the items to return: New | Used | Collectible | Refurbished | All |
||
165 | * |
||
166 | * Defaults to New. |
||
167 | * |
||
168 | * @param string $condition |
||
169 | * |
||
170 | * @return \ApaiIO\Operations\Search |
||
171 | */ |
||
172 | public function setCondition($condition) |
||
178 | } |
||
179 |