commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Payment
PaymentChangeTransactionTimestampActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Payment
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use DateTimeImmutable;
17
use stdClass;
18
22
final
class
PaymentChangeTransactionTimestampActionBuilder
implements
Builder
23
{
28
private
$transactionId;
29
34
private
$timestamp;
35
42
public
function
getTransactionId
()
43
{
44
return
$this->transactionId;
45
}
46
53
public
function
getTimestamp
()
54
{
55
return
$this->timestamp;
56
}
57
62
public
function
withTransactionId
(?
string
$transactionId)
63
{
64
$this->transactionId = $transactionId;
65
66
return
$this;
67
}
68
73
public
function
withTimestamp
(?DateTimeImmutable $timestamp)
74
{
75
$this->timestamp = $timestamp;
76
77
return
$this;
78
}
79
80
81
public
function
build
():
PaymentChangeTransactionTimestampAction
82
{
83
return
new
PaymentChangeTransactionTimestampActionModel
(
84
$this->transactionId,
85
$this->timestamp
86
);
87
}
88
89
public
static
function
of
():
PaymentChangeTransactionTimestampActionBuilder
90
{
91
return
new
self
();
92
}
93
}
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionBuilder
Definition:
PaymentChangeTransactionTimestampActionBuilder.php:23
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionBuilder\withTransactionId
withTransactionId(?string $transactionId)
Definition:
PaymentChangeTransactionTimestampActionBuilder.php:62
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionBuilder\withTimestamp
withTimestamp(?DateTimeImmutable $timestamp)
Definition:
PaymentChangeTransactionTimestampActionBuilder.php:73
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionBuilder\of
static of()
Definition:
PaymentChangeTransactionTimestampActionBuilder.php:89
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionBuilder\getTimestamp
getTimestamp()
Definition:
PaymentChangeTransactionTimestampActionBuilder.php:53
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionBuilder\build
build()
Definition:
PaymentChangeTransactionTimestampActionBuilder.php:81
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionBuilder\getTransactionId
getTransactionId()
Definition:
PaymentChangeTransactionTimestampActionBuilder.php:42
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampActionModel
Definition:
PaymentChangeTransactionTimestampActionModel.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Payment\PaymentChangeTransactionTimestampAction
Definition:
PaymentChangeTransactionTimestampAction.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Payment
Definition:
Payment.php:9
Generated by
1.9.1