commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKey.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 use GuzzleHttp\ClientInterface;
14 use Psr\Http\Message\UploadedFileInterface;
15 
20 {
24  public function __construct(array $args = [], ClientInterface $client = null)
25  {
26  parent::__construct('/{projectKey}', $args, $client);
27  }
28 
32  {
33  $args = $this->getArgs();
34 
35  return new ResourceByProjectKeyAsAssociate($args, $this->getClient());
36  }
40  {
41  $args = $this->getArgs();
42 
43  return new ResourceByProjectKeyAssociateRoles($args, $this->getClient());
44  }
48  {
49  $args = $this->getArgs();
50 
51  return new ResourceByProjectKeyBusinessUnits($args, $this->getClient());
52  }
56  {
57  $args = $this->getArgs();
58 
59  return new ResourceByProjectKeyCategories($args, $this->getClient());
60  }
63  public function carts(): ResourceByProjectKeyCarts
64  {
65  $args = $this->getArgs();
66 
67  return new ResourceByProjectKeyCarts($args, $this->getClient());
68  }
72  {
73  $args = $this->getArgs();
74 
75  return new ResourceByProjectKeyCartDiscounts($args, $this->getClient());
76  }
80  {
81  $args = $this->getArgs();
82 
83  return new ResourceByProjectKeyChannels($args, $this->getClient());
84  }
88  {
89  $args = $this->getArgs();
90 
91  return new ResourceByProjectKeyCustomers($args, $this->getClient());
92  }
96  {
97  $args = $this->getArgs();
98 
99  return new ResourceByProjectKeyCustomerGroups($args, $this->getClient());
100  }
104  {
105  $args = $this->getArgs();
106 
107  return new ResourceByProjectKeyCustomObjects($args, $this->getClient());
108  }
112  {
113  $args = $this->getArgs();
114 
115  return new ResourceByProjectKeyDiscountCodes($args, $this->getClient());
116  }
120  {
121  $args = $this->getArgs();
122 
123  return new ResourceByProjectKeyGraphql($args, $this->getClient());
124  }
128  {
129  $args = $this->getArgs();
130 
131  return new ResourceByProjectKeyInventory($args, $this->getClient());
132  }
135  public function login(): ResourceByProjectKeyLogin
136  {
137  $args = $this->getArgs();
138 
139  return new ResourceByProjectKeyLogin($args, $this->getClient());
140  }
144  {
145  $args = $this->getArgs();
146 
147  return new ResourceByProjectKeyMessages($args, $this->getClient());
148  }
152  {
153  $args = $this->getArgs();
154 
155  return new ResourceByProjectKeyOrders($args, $this->getClient());
156  }
160  {
161  $args = $this->getArgs();
162 
163  return new ResourceByProjectKeyPayments($args, $this->getClient());
164  }
168  {
169  $args = $this->getArgs();
170 
171  return new ResourceByProjectKeyProducts($args, $this->getClient());
172  }
176  {
177  $args = $this->getArgs();
178 
179  return new ResourceByProjectKeyProductDiscounts($args, $this->getClient());
180  }
184  {
185  $args = $this->getArgs();
186 
187  return new ResourceByProjectKeyProductProjections($args, $this->getClient());
188  }
192  {
193  $args = $this->getArgs();
194 
195  return new ResourceByProjectKeyProductSelections($args, $this->getClient());
196  }
200  {
201  $args = $this->getArgs();
202 
203  return new ResourceByProjectKeyProductTailoring($args, $this->getClient());
204  }
208  {
209  $args = $this->getArgs();
210 
211  return new ResourceByProjectKeyProductTypes($args, $this->getClient());
212  }
216  {
217  $args = $this->getArgs();
218 
219  return new ResourceByProjectKeyQuotes($args, $this->getClient());
220  }
224  {
225  $args = $this->getArgs();
226 
227  return new ResourceByProjectKeyQuoteRequests($args, $this->getClient());
228  }
232  {
233  $args = $this->getArgs();
234 
235  return new ResourceByProjectKeyStagedQuotes($args, $this->getClient());
236  }
240  {
241  $args = $this->getArgs();
242 
243  return new ResourceByProjectKeyReviews($args, $this->getClient());
244  }
248  {
249  $args = $this->getArgs();
250 
251  return new ResourceByProjectKeyShippingMethods($args, $this->getClient());
252  }
256  {
257  $args = $this->getArgs();
258 
259  return new ResourceByProjectKeyShoppingLists($args, $this->getClient());
260  }
264  {
265  $args = $this->getArgs();
266 
267  return new ResourceByProjectKeyStates($args, $this->getClient());
268  }
272  {
273  $args = $this->getArgs();
274 
275  return new ResourceByProjectKeySubscriptions($args, $this->getClient());
276  }
280  {
281  $args = $this->getArgs();
282 
283  return new ResourceByProjectKeyTaxCategories($args, $this->getClient());
284  }
287  public function types(): ResourceByProjectKeyTypes
288  {
289  $args = $this->getArgs();
290 
291  return new ResourceByProjectKeyTypes($args, $this->getClient());
292  }
295  public function zones(): ResourceByProjectKeyZones
296  {
297  $args = $this->getArgs();
298 
299  return new ResourceByProjectKeyZones($args, $this->getClient());
300  }
303  public function me(): ResourceByProjectKeyMe
304  {
305  $args = $this->getArgs();
306 
307  return new ResourceByProjectKeyMe($args, $this->getClient());
308  }
312  {
313  $args = $this->getArgs();
314 
315  return new ResourceByProjectKeyExtensions($args, $this->getClient());
316  }
320  {
321  $args = $this->getArgs();
322 
323  return new ResourceByProjectKeyApiClients($args, $this->getClient());
324  }
328  {
329  $args = $this->getArgs();
330 
331  return new ResourceByProjectKeyStores($args, $this->getClient());
332  }
336  {
337  $args = $this->getArgs();
338  if (!is_null($storeKey)) {
339  $args['storeKey'] = $storeKey;
340  }
341 
342  return new ResourceByProjectKeyInStoreKeyByStoreKey($args, $this->getClient());
343  }
347  {
348  $args = $this->getArgs();
349 
350  return new ResourceByProjectKeyStandalonePrices($args, $this->getClient());
351  }
355  {
356  $args = $this->getArgs();
357  if (!is_null($businessUnitKey)) {
358  $args['businessUnitKey'] = $businessUnitKey;
359  }
360 
362  }
366  {
367  $args = $this->getArgs();
368 
369  return new ResourceByProjectKeyAttributeGroups($args, $this->getClient());
370  }
371 
376  public function get($body = null, array $headers = []): ByProjectKeyGet
377  {
378  $args = $this->getArgs();
379 
380  return new ByProjectKeyGet($args['projectKey'], $body, $headers, $this->getClient());
381  }
386  public function head($body = null, array $headers = []): ByProjectKeyHead
387  {
388  $args = $this->getArgs();
389 
390  return new ByProjectKeyHead($args['projectKey'], $body, $headers, $this->getClient());
391  }
396  public function post(?ProjectUpdate $body = null, array $headers = []): ByProjectKeyPost
397  {
398  $args = $this->getArgs();
399 
400  return new ByProjectKeyPost($args['projectKey'], $body, $headers, $this->getClient());
401  }
402 }
inBusinessUnitKeyWithBusinessUnitKeyValue(string $businessUnitKey=null)
post(?ProjectUpdate $body=null, array $headers=[])
__construct(array $args=[], ClientInterface $client=null)