commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Variables
$
a
d
e
f
g
o
r
s
t
u
•
All
Classes
Namespaces
Functions
Variables
Pages
Loading...
Searching...
No Matches
lib
commercetools-api
src
Client
Resource
ResourceByProjectKeyCustomerGroups.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Client\Resource
;
10
11
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft
;
12
use
Commercetools\Client\ApiResource
;
13
use GuzzleHttp\ClientInterface;
14
use Psr\Http\Message\UploadedFileInterface;
15
19
class
ResourceByProjectKeyCustomerGroups
extends
ApiResource
20
{
24
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
25
{
26
parent::__construct(
'/{projectKey}/customer-groups'
, $args, $client);
27
}
24
public
function
__construct
(array $args = [], ClientInterface $client =
null
) {
…
}
28
31
public
function
withKey
(
string
$key =
null
):
ResourceByProjectKeyCustomerGroupsKeyByKey
32
{
33
$args = $this->
getArgs
();
34
if
(!is_null($key)) {
35
$args[
'key'
] = $key;
36
}
37
38
return
new
ResourceByProjectKeyCustomerGroupsKeyByKey
($args, $this->
getClient
());
39
}
31
public
function
withKey
(
string
$key =
null
):
ResourceByProjectKeyCustomerGroupsKeyByKey
{
…
}
42
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyCustomerGroupsByID
43
{
44
$args = $this->
getArgs
();
45
if
(!is_null($ID)) {
46
$args[
'ID'
] = $ID;
47
}
48
49
return
new
ResourceByProjectKeyCustomerGroupsByID
($args, $this->
getClient
());
50
}
42
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyCustomerGroupsByID
{
…
}
51
56
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyCustomerGroupsGet
57
{
58
$args = $this->
getArgs
();
59
60
return
new
ByProjectKeyCustomerGroupsGet
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
61
}
56
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyCustomerGroupsGet
{
…
}
66
public
function
head
($body =
null
, array $headers = []):
ByProjectKeyCustomerGroupsHead
67
{
68
$args = $this->
getArgs
();
69
70
return
new
ByProjectKeyCustomerGroupsHead
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
71
}
66
public
function
head
($body =
null
, array $headers = []):
ByProjectKeyCustomerGroupsHead
{
…
}
76
public
function
post
(?
CustomerGroupDraft
$body =
null
, array $headers = []):
ByProjectKeyCustomerGroupsPost
77
{
78
$args = $this->
getArgs
();
79
80
return
new
ByProjectKeyCustomerGroupsPost
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
81
}
76
public
function
post
(?
CustomerGroupDraft
$body =
null
, array $headers = []):
ByProjectKeyCustomerGroupsPost
{
…
}
82
}
19
class
ResourceByProjectKeyCustomerGroups
extends
ApiResource
{
…
};
Commercetools\Api\Client\Resource\ByProjectKeyCustomerGroupsGet
Definition
ByProjectKeyCustomerGroupsGet.php:41
Commercetools\Api\Client\Resource\ByProjectKeyCustomerGroupsHead
Definition
ByProjectKeyCustomerGroupsHead.php:35
Commercetools\Api\Client\Resource\ByProjectKeyCustomerGroupsPost
Definition
ByProjectKeyCustomerGroupsPost.php:38
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroupsByID
Definition
ResourceByProjectKeyCustomerGroupsByID.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroups
Definition
ResourceByProjectKeyCustomerGroups.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroups\withKey
withKey(string $key=null)
Definition
ResourceByProjectKeyCustomerGroups.php:31
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroups\post
post(?CustomerGroupDraft $body=null, array $headers=[])
Definition
ResourceByProjectKeyCustomerGroups.php:76
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroups\head
head($body=null, array $headers=[])
Definition
ResourceByProjectKeyCustomerGroups.php:66
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroups\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition
ResourceByProjectKeyCustomerGroups.php:24
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroups\withId
withId(string $ID=null)
Definition
ResourceByProjectKeyCustomerGroups.php:42
Commercetools\Api\Client\Resource\ResourceByProjectKeyCustomerGroupsKeyByKey
Definition
ResourceByProjectKeyCustomerGroupsKeyByKey.php:20
Commercetools\Client\ApiResource
Definition
ApiResource.php:15
Commercetools\Client\ApiResource\getClient
getClient()
Definition
ApiResource.php:61
Commercetools\Client\ApiResource\getArgs
getArgs()
Definition
ApiResource.php:56
Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft
Definition
CustomerGroupDraft.php:16
Commercetools\Api\Client\Resource
Definition
ByProjectKeyApiClientsByIDDelete.php:9
Generated by
1.9.8