commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
src
Client
ApiRequestBuilder.php
1
<?php
2
3
namespace
Commercetools\Client
;
4
5
use
Commercetools\Api\Client\ApiRequestBuilder
as Builder;
6
use
Commercetools\Api\Client\Resource
;
7
use
Commercetools\Api\Client\Resource\ResourceByProjectKey
;
8
use
Commercetools\Api\Models\Project\ProjectUpdate
;
9
use GuzzleHttp\ClientInterface;
10
11
class
ApiRequestBuilder
extends
Builder
12
{
16
private
$projectKey;
17
21
public
function
__construct
(
string
$projectKey, ClientInterface $client, array $args = [])
22
{
23
parent::__construct($client, $args);
24
$this->projectKey = $projectKey;
25
}
26
27
public
function
with
():
ResourceByProjectKey
28
{
29
return
$this->
withProjectKey
($this->projectKey);
30
}
31
36
public
function
get
($body =
null
, array $headers = []): Resource\
ByProjectKeyGet
37
{
38
return
$this->
with
()->get($body, $headers);
39
}
40
45
public
function
post
(?
ProjectUpdate
$body =
null
, array $headers = []): Resource\
ByProjectKeyPost
46
{
47
return
$this->
with
()->post($body, $headers);
48
}
49
50
public
function
cartDiscounts
(): Resource\
ResourceByProjectKeyCartDiscounts
51
{
52
return
$this->
with
()->cartDiscounts();
53
}
54
55
public
function
carts
(): Resource\
ResourceByProjectKeyCarts
56
{
57
return
$this->
with
()->carts();
58
}
59
60
public
function
categories
(): Resource\
ResourceByProjectKeyCategories
61
{
62
return
$this->
with
()->categories();
63
}
64
65
public
function
channels
(): Resource\
ResourceByProjectKeyChannels
66
{
67
return
$this->
with
()->channels();
68
}
69
70
public
function
customerGroups
(): Resource\
ResourceByProjectKeyCustomerGroups
71
{
72
return
$this->
with
()->customerGroups();
73
}
74
75
public
function
customObjects
(): Resource\
ResourceByProjectKeyCustomObjects
76
{
77
return
$this->
with
()->customObjects();
78
}
79
80
public
function
customers
(): Resource\
ResourceByProjectKeyCustomers
81
{
82
return
$this->
with
()->customers();
83
}
84
85
public
function
discountCodes
(): Resource\
ResourceByProjectKeyDiscountCodes
86
{
87
return
$this->
with
()->discountCodes();
88
}
89
90
public
function
graphql
(): Resource\
ResourceByProjectKeyGraphql
91
{
92
return
$this->
with
()->graphql();
93
}
94
95
public
function
inventory
(): Resource\
ResourceByProjectKeyInventory
96
{
97
return
$this->
with
()->inventory();
98
}
99
100
public
function
login
(): Resource\
ResourceByProjectKeyLogin
101
{
102
return
$this->
with
()->login();
103
}
104
105
public
function
messages
(): Resource\
ResourceByProjectKeyMessages
106
{
107
return
$this->
with
()->messages();
108
}
109
110
public
function
orders
(): Resource\
ResourceByProjectKeyOrders
111
{
112
return
$this->
with
()->orders();
113
}
114
115
public
function
payments
(): Resource\
ResourceByProjectKeyPayments
116
{
117
return
$this->
with
()->payments();
118
}
119
120
public
function
products
(): Resource\
ResourceByProjectKeyProducts
121
{
122
return
$this->
with
()->products();
123
}
124
125
public
function
productDiscounts
(): Resource\
ResourceByProjectKeyProductDiscounts
126
{
127
return
$this->
with
()->productDiscounts();
128
}
129
130
public
function
productProjections
(): Resource\
ResourceByProjectKeyProductProjections
131
{
132
return
$this->
with
()->productProjections();
133
}
134
135
public
function
productTypes
(): Resource\
ResourceByProjectKeyProductTypes
136
{
137
return
$this->
with
()->productTypes();
138
}
139
140
public
function
reviews
(): Resource\
ResourceByProjectKeyReviews
141
{
142
return
$this->
with
()->reviews();
143
}
144
145
public
function
shippingMethods
(): Resource\
ResourceByProjectKeyShippingMethods
146
{
147
return
$this->
with
()->shippingMethods();
148
}
149
150
public
function
shoppingLists
(): Resource\
ResourceByProjectKeyShoppingLists
151
{
152
return
$this->
with
()->shoppingLists();
153
}
154
155
public
function
states
(): Resource\
ResourceByProjectKeyStates
156
{
157
return
$this->
with
()->states();
158
}
159
160
public
function
subscriptions
(): Resource\
ResourceByProjectKeySubscriptions
161
{
162
return
$this->
with
()->subscriptions();
163
}
164
165
public
function
taxCategories
(): Resource\
ResourceByProjectKeyTaxCategories
166
{
167
return
$this->
with
()->taxCategories();
168
}
169
170
public
function
types
(): Resource\
ResourceByProjectKeyTypes
171
{
172
return
$this->
with
()->types();
173
}
174
175
public
function
zones
(): Resource\
ResourceByProjectKeyZones
176
{
177
return
$this->
with
()->zones();
178
}
179
180
public
function
me
(): Resource\
ResourceByProjectKeyMe
181
{
182
return
$this->
with
()->me();
183
}
184
185
public
function
extensions
(): Resource\
ResourceByProjectKeyExtensions
186
{
187
return
$this->
with
()->extensions();
188
}
189
190
public
function
apiClients
(): Resource\
ResourceByProjectKeyApiClients
191
{
192
return
$this->
with
()->apiClients();
193
}
194
195
public
function
stores
(): Resource\
ResourceByProjectKeyStores
196
{
197
return
$this->
with
()->stores();
198
}
199
200
public
function
inStore
(
string
$storeKey): Resource\
ResourceByProjectKeyInStoreKeyByStoreKey
201
{
202
return
$this->
with
()->inStoreKeyWithStoreKeyValue($storeKey);
203
}
204
}
Commercetools\Api\Client\ApiRequestBuilder
Definition
ApiRequestBuilder.php:20
Commercetools\Api\Client\ApiRequestBuilder\withProjectKey
withProjectKey(string $projectKey=null)
Definition
ApiRequestBuilder.php:31
Commercetools\Api\Client\Resource\ByProjectKeyGet
Definition
ByProjectKeyGet.php:37
Commercetools\Api\Client\Resource\ByProjectKeyPost
Definition
ByProjectKeyPost.php:36
Commercetools\Api\Client\Resource\ResourceByProjectKeyApiClients
Definition
ResourceByProjectKeyApiClients.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyCartDiscounts
Definition
ResourceByProjectKeyCartDiscounts.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyCarts
Definition
ResourceByProjectKeyCarts.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyChannels
Definition
ResourceByProjectKeyChannels.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomObjects
Definition
ResourceByProjectKeyCustomObjects.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroups
Definition
ResourceByProjectKeyCustomerGroups.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyExtensions
Definition
ResourceByProjectKeyExtensions.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyGraphql
Definition
ResourceByProjectKeyGraphql.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKey
Definition
ResourceByProjectKey.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKey
Definition
ResourceByProjectKeyInStoreKeyByStoreKey.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyInventory
Definition
ResourceByProjectKeyInventory.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyLogin
Definition
ResourceByProjectKeyLogin.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyMe
Definition
ResourceByProjectKeyMe.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyMessages
Definition
ResourceByProjectKeyMessages.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyPayments
Definition
ResourceByProjectKeyPayments.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyProductDiscounts
Definition
ResourceByProjectKeyProductDiscounts.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyProductProjections
Definition
ResourceByProjectKeyProductProjections.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyReviews
Definition
ResourceByProjectKeyReviews.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods
Definition
ResourceByProjectKeyShippingMethods.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyShoppingLists
Definition
ResourceByProjectKeyShoppingLists.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyStates
Definition
ResourceByProjectKeyStates.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyStores
Definition
ResourceByProjectKeyStores.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeySubscriptions
Definition
ResourceByProjectKeySubscriptions.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyTaxCategories
Definition
ResourceByProjectKeyTaxCategories.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyZones
Definition
ResourceByProjectKeyZones.php:20
Commercetools\Client\ApiRequestBuilder
Definition
ApiRequestBuilder.php:12
Commercetools\Client\ApiRequestBuilder\discountCodes
discountCodes()
Definition
ApiRequestBuilder.php:85
Commercetools\Client\ApiRequestBuilder\inventory
inventory()
Definition
ApiRequestBuilder.php:95
Commercetools\Client\ApiRequestBuilder\me
me()
Definition
ApiRequestBuilder.php:180
Commercetools\Client\ApiRequestBuilder\customers
customers()
Definition
ApiRequestBuilder.php:80
Commercetools\Client\ApiRequestBuilder\extensions
extensions()
Definition
ApiRequestBuilder.php:185
Commercetools\Client\ApiRequestBuilder\customerGroups
customerGroups()
Definition
ApiRequestBuilder.php:70
Commercetools\Client\ApiRequestBuilder\cartDiscounts
cartDiscounts()
Definition
ApiRequestBuilder.php:50
Commercetools\Client\ApiRequestBuilder\inStore
inStore(string $storeKey)
Definition
ApiRequestBuilder.php:200
Commercetools\Client\ApiRequestBuilder\taxCategories
taxCategories()
Definition
ApiRequestBuilder.php:165
Commercetools\Client\ApiRequestBuilder\login
login()
Definition
ApiRequestBuilder.php:100
Commercetools\Client\ApiRequestBuilder\states
states()
Definition
ApiRequestBuilder.php:155
Commercetools\Client\ApiRequestBuilder\productTypes
productTypes()
Definition
ApiRequestBuilder.php:135
Commercetools\Client\ApiRequestBuilder\stores
stores()
Definition
ApiRequestBuilder.php:195
Commercetools\Client\ApiRequestBuilder\categories
categories()
Definition
ApiRequestBuilder.php:60
Commercetools\Client\ApiRequestBuilder\shoppingLists
shoppingLists()
Definition
ApiRequestBuilder.php:150
Commercetools\Client\ApiRequestBuilder\shippingMethods
shippingMethods()
Definition
ApiRequestBuilder.php:145
Commercetools\Client\ApiRequestBuilder\messages
messages()
Definition
ApiRequestBuilder.php:105
Commercetools\Client\ApiRequestBuilder\productProjections
productProjections()
Definition
ApiRequestBuilder.php:130
Commercetools\Client\ApiRequestBuilder\productDiscounts
productDiscounts()
Definition
ApiRequestBuilder.php:125
Commercetools\Client\ApiRequestBuilder\orders
orders()
Definition
ApiRequestBuilder.php:110
Commercetools\Client\ApiRequestBuilder\post
post(?ProjectUpdate $body=null, array $headers=[])
Definition
ApiRequestBuilder.php:45
Commercetools\Client\ApiRequestBuilder\customObjects
customObjects()
Definition
ApiRequestBuilder.php:75
Commercetools\Client\ApiRequestBuilder\reviews
reviews()
Definition
ApiRequestBuilder.php:140
Commercetools\Client\ApiRequestBuilder\products
products()
Definition
ApiRequestBuilder.php:120
Commercetools\Client\ApiRequestBuilder\subscriptions
subscriptions()
Definition
ApiRequestBuilder.php:160
Commercetools\Client\ApiRequestBuilder\payments
payments()
Definition
ApiRequestBuilder.php:115
Commercetools\Client\ApiRequestBuilder\zones
zones()
Definition
ApiRequestBuilder.php:175
Commercetools\Client\ApiRequestBuilder\channels
channels()
Definition
ApiRequestBuilder.php:65
Commercetools\Client\ApiRequestBuilder\carts
carts()
Definition
ApiRequestBuilder.php:55
Commercetools\Client\ApiRequestBuilder\__construct
__construct(string $projectKey, ClientInterface $client, array $args=[])
Definition
ApiRequestBuilder.php:21
Commercetools\Client\ApiRequestBuilder\with
with()
Definition
ApiRequestBuilder.php:27
Commercetools\Client\ApiRequestBuilder\types
types()
Definition
ApiRequestBuilder.php:170
Commercetools\Client\ApiRequestBuilder\apiClients
apiClients()
Definition
ApiRequestBuilder.php:190
Commercetools\Client\ApiRequestBuilder\graphql
graphql()
Definition
ApiRequestBuilder.php:90
Commercetools\Import\Client\Resource\ResourceByProjectKeyCategories
Definition
ResourceByProjectKeyCategories.php:19
Commercetools\Import\Client\Resource\ResourceByProjectKeyCustomers
Definition
ResourceByProjectKeyCustomers.php:19
Commercetools\Import\Client\Resource\ResourceByProjectKeyDiscountCodes
Definition
ResourceByProjectKeyDiscountCodes.php:19
Commercetools\Import\Client\Resource\ResourceByProjectKey
Definition
ResourceByProjectKey.php:19
Commercetools\Import\Client\Resource\ResourceByProjectKeyOrders
Definition
ResourceByProjectKeyOrders.php:19
Commercetools\Import\Client\Resource\ResourceByProjectKeyProductTypes
Definition
ResourceByProjectKeyProductTypes.php:19
Commercetools\Import\Client\Resource\ResourceByProjectKeyProducts
Definition
ResourceByProjectKeyProducts.php:19
Commercetools\Import\Client\Resource\ResourceByProjectKeyTypes
Definition
ResourceByProjectKeyTypes.php:19
Commercetools\Api\Models\Project\ProjectUpdate
Definition
ProjectUpdate.php:15
Commercetools\Api\Client\Resource
Definition
ByProjectKeyApiClientsByIDDelete.php:9
Commercetools\Client
Definition
AnonymousFlowTokenProvider.php:5
Generated by
1.9.8