commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ResourceByProjectKeyMe.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}/me', $args, $client);
27  }
28 
32  {
33  $args = $this->getArgs();
34 
35  return new ResourceByProjectKeyMeEmailConfirm($args, $this->getClient());
36  }
40  {
41  $args = $this->getArgs();
42 
43  return new ResourceByProjectKeyMePassword($args, $this->getClient());
44  }
48  {
49  $args = $this->getArgs();
50 
51  return new ResourceByProjectKeyMeSignup($args, $this->getClient());
52  }
56  {
57  $args = $this->getArgs();
58 
59  return new ResourceByProjectKeyMeLogin($args, $this->getClient());
60  }
64  {
65  $args = $this->getArgs();
66 
67  return new ResourceByProjectKeyMeActiveCart($args, $this->getClient());
68  }
72  {
73  $args = $this->getArgs();
74 
75  return new ResourceByProjectKeyMeBusinessUnits($args, $this->getClient());
76  }
80  {
81  $args = $this->getArgs();
82 
83  return new ResourceByProjectKeyMeCarts($args, $this->getClient());
84  }
88  {
89  $args = $this->getArgs();
90 
91  return new ResourceByProjectKeyMeOrders($args, $this->getClient());
92  }
96  {
97  $args = $this->getArgs();
98 
99  return new ResourceByProjectKeyMePayments($args, $this->getClient());
100  }
104  {
105  $args = $this->getArgs();
106 
107  return new ResourceByProjectKeyMeQuoteRequests($args, $this->getClient());
108  }
112  {
113  $args = $this->getArgs();
114 
115  return new ResourceByProjectKeyMeQuotes($args, $this->getClient());
116  }
120  {
121  $args = $this->getArgs();
122 
123  return new ResourceByProjectKeyMeShoppingLists($args, $this->getClient());
124  }
125 
130  public function get($body = null, array $headers = []): ByProjectKeyMeGet
131  {
132  $args = $this->getArgs();
133 
134  return new ByProjectKeyMeGet($args['projectKey'], $body, $headers, $this->getClient());
135  }
140  public function post(?MyCustomerUpdate $body = null, array $headers = []): ByProjectKeyMePost
141  {
142  $args = $this->getArgs();
143 
144  return new ByProjectKeyMePost($args['projectKey'], $body, $headers, $this->getClient());
145  }
150  public function delete($body = null, array $headers = []): ByProjectKeyMeDelete
151  {
152  $args = $this->getArgs();
153 
154  return new ByProjectKeyMeDelete($args['projectKey'], $body, $headers, $this->getClient());
155  }
156 }
post(?MyCustomerUpdate $body=null, array $headers=[])
__construct(array $args=[], ClientInterface $client=null)