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
ResourceByProjectKeyMePayments.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Client\Resource
;
10
11
use
Commercetools\Api\Models\Me\MyPaymentDraft
;
12
use
Commercetools\Client\ApiResource
;
13
use GuzzleHttp\ClientInterface;
14
use Psr\Http\Message\UploadedFileInterface;
15
19
class
ResourceByProjectKeyMePayments
extends
ApiResource
20
{
24
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
25
{
26
parent::__construct(
'/{projectKey}/me/payments'
, $args, $client);
27
}
28
31
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyMePaymentsByID
32
{
33
$args = $this->
getArgs
();
34
if
(!is_null($ID)) {
35
$args[
'ID'
] = $ID;
36
}
37
38
return
new
ResourceByProjectKeyMePaymentsByID
($args, $this->
getClient
());
39
}
40
45
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyMePaymentsGet
46
{
47
$args = $this->
getArgs
();
48
49
return
new
ByProjectKeyMePaymentsGet
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
50
}
55
public
function
head
($body =
null
, array $headers = []):
ByProjectKeyMePaymentsHead
56
{
57
$args = $this->
getArgs
();
58
59
return
new
ByProjectKeyMePaymentsHead
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
60
}
65
public
function
post
(?
MyPaymentDraft
$body =
null
, array $headers = []):
ByProjectKeyMePaymentsPost
66
{
67
$args = $this->
getArgs
();
68
69
return
new
ByProjectKeyMePaymentsPost
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
70
}
71
}
Commercetools\Api\Client\Resource\ByProjectKeyMePaymentsGet
Definition
ByProjectKeyMePaymentsGet.php:41
Commercetools\Api\Client\Resource\ByProjectKeyMePaymentsHead
Definition
ByProjectKeyMePaymentsHead.php:35
Commercetools\Api\Client\Resource\ByProjectKeyMePaymentsPost
Definition
ByProjectKeyMePaymentsPost.php:38
Commercetools\Api\Client\Resource\ResourceByProjectKeyMePaymentsByID
Definition
ResourceByProjectKeyMePaymentsByID.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyMePayments
Definition
ResourceByProjectKeyMePayments.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyMePayments\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition
ResourceByProjectKeyMePayments.php:24
Commercetools\Api\Client\Resource\ResourceByProjectKeyMePayments\post
post(?MyPaymentDraft $body=null, array $headers=[])
Definition
ResourceByProjectKeyMePayments.php:65
Commercetools\Api\Client\Resource\ResourceByProjectKeyMePayments\withId
withId(string $ID=null)
Definition
ResourceByProjectKeyMePayments.php:31
Commercetools\Api\Client\Resource\ResourceByProjectKeyMePayments\head
head($body=null, array $headers=[])
Definition
ResourceByProjectKeyMePayments.php:55
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\Me\MyPaymentDraft
Definition
MyPaymentDraft.php:18
Commercetools\Api\Client\Resource
Definition
ByProjectKeyApiClientsByIDDelete.php:9
Generated by
1.9.8