commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Client
Resource
ResourceByProjectKeyShippingMethods.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Client\Resource
;
10
11
use
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft
;
12
use
Commercetools\Client\ApiResource
;
13
use GuzzleHttp\ClientInterface;
14
use Psr\Http\Message\UploadedFileInterface;
15
19
class
ResourceByProjectKeyShippingMethods
extends
ApiResource
20
{
24
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
25
{
26
parent::__construct(
'/{projectKey}/shipping-methods'
, $args, $client);
27
}
28
31
public
function
withKey
(
string
$key =
null
):
ResourceByProjectKeyShippingMethodsKeyByKey
32
{
33
$args = $this->
getArgs
();
34
if
(!is_null($key)) {
35
$args[
'key'
] = $key;
36
}
37
38
return
new
ResourceByProjectKeyShippingMethodsKeyByKey
($args, $this->
getClient
());
39
}
42
public
function
matchingCart
():
ResourceByProjectKeyShippingMethodsMatchingCart
43
{
44
$args = $this->
getArgs
();
45
46
return
new
ResourceByProjectKeyShippingMethodsMatchingCart
($args, $this->
getClient
());
47
}
50
public
function
matchingCartLocation
():
ResourceByProjectKeyShippingMethodsMatchingCartLocation
51
{
52
$args = $this->
getArgs
();
53
54
return
new
ResourceByProjectKeyShippingMethodsMatchingCartLocation
($args, $this->
getClient
());
55
}
58
public
function
matchingOrderedit
():
ResourceByProjectKeyShippingMethodsMatchingOrderedit
59
{
60
$args = $this->
getArgs
();
61
62
return
new
ResourceByProjectKeyShippingMethodsMatchingOrderedit
($args, $this->
getClient
());
63
}
66
public
function
matchingLocation
():
ResourceByProjectKeyShippingMethodsMatchingLocation
67
{
68
$args = $this->
getArgs
();
69
70
return
new
ResourceByProjectKeyShippingMethodsMatchingLocation
($args, $this->
getClient
());
71
}
74
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyShippingMethodsByID
75
{
76
$args = $this->
getArgs
();
77
if
(!is_null($ID)) {
78
$args[
'ID'
] = $ID;
79
}
80
81
return
new
ResourceByProjectKeyShippingMethodsByID
($args, $this->
getClient
());
82
}
83
88
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyShippingMethodsGet
89
{
90
$args = $this->
getArgs
();
91
92
return
new
ByProjectKeyShippingMethodsGet
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
93
}
98
public
function
head
($body =
null
, array $headers = []):
ByProjectKeyShippingMethodsHead
99
{
100
$args = $this->
getArgs
();
101
102
return
new
ByProjectKeyShippingMethodsHead
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
103
}
108
public
function
post
(?
ShippingMethodDraft
$body =
null
, array $headers = []):
ByProjectKeyShippingMethodsPost
109
{
110
$args = $this->
getArgs
();
111
112
return
new
ByProjectKeyShippingMethodsPost
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
113
}
114
}
Commercetools\Api\Client\Resource\ByProjectKeyShippingMethodsGet
Definition
ByProjectKeyShippingMethodsGet.php:41
Commercetools\Api\Client\Resource\ByProjectKeyShippingMethodsHead
Definition
ByProjectKeyShippingMethodsHead.php:35
Commercetools\Api\Client\Resource\ByProjectKeyShippingMethodsPost
Definition
ByProjectKeyShippingMethodsPost.php:38
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethodsByID
Definition
ResourceByProjectKeyShippingMethodsByID.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods
Definition
ResourceByProjectKeyShippingMethods.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\post
post(?ShippingMethodDraft $body=null, array $headers=[])
Definition
ResourceByProjectKeyShippingMethods.php:108
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition
ResourceByProjectKeyShippingMethods.php:24
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\matchingOrderedit
matchingOrderedit()
Definition
ResourceByProjectKeyShippingMethods.php:58
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\matchingCart
matchingCart()
Definition
ResourceByProjectKeyShippingMethods.php:42
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\withId
withId(string $ID=null)
Definition
ResourceByProjectKeyShippingMethods.php:74
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\matchingLocation
matchingLocation()
Definition
ResourceByProjectKeyShippingMethods.php:66
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\matchingCartLocation
matchingCartLocation()
Definition
ResourceByProjectKeyShippingMethods.php:50
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\withKey
withKey(string $key=null)
Definition
ResourceByProjectKeyShippingMethods.php:31
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethods\head
head($body=null, array $headers=[])
Definition
ResourceByProjectKeyShippingMethods.php:98
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethodsKeyByKey
Definition
ResourceByProjectKeyShippingMethodsKeyByKey.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethodsMatchingCart
Definition
ResourceByProjectKeyShippingMethodsMatchingCart.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethodsMatchingCartLocation
Definition
ResourceByProjectKeyShippingMethodsMatchingCartLocation.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethodsMatchingLocation
Definition
ResourceByProjectKeyShippingMethodsMatchingLocation.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyShippingMethodsMatchingOrderedit
Definition
ResourceByProjectKeyShippingMethodsMatchingOrderedit.php:19
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\ShippingMethod\ShippingMethodDraft
Definition
ShippingMethodDraft.php:18
Commercetools\Api\Client\Resource
Definition
ByProjectKeyApiClientsByIDDelete.php:9
Generated by
1.9.8