commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Payment
TransactionDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Payment
;
10
11
use
Commercetools\Api\Models\Common\Money
;
12
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use DateTimeImmutable;
16
17
interface
TransactionDraft
extends
JsonObject
18
{
19
public
const
FIELD_TIMESTAMP
=
'timestamp'
;
20
public
const
FIELD_TYPE
=
'type'
;
21
public
const
FIELD_AMOUNT
=
'amount'
;
22
public
const
FIELD_INTERACTION_ID
=
'interactionId'
;
23
public
const
FIELD_STATE
=
'state'
;
24
public
const
FIELD_CUSTOM
=
'custom'
;
25
32
public
function
getTimestamp
();
33
40
public
function
getType
();
41
48
public
function
getAmount
();
49
57
public
function
getInteractionId
();
58
65
public
function
getState
();
66
73
public
function
getCustom
();
74
78
public
function
setTimestamp
(?DateTimeImmutable $timestamp): void;
79
83
public
function
setType
(?
string
$type): void;
84
88
public
function
setAmount
(?
Money
$amount): void;
89
93
public
function
setInteractionId
(?
string
$interactionId): void;
94
98
public
function
setState
(?
string
$state): void;
99
103
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
104
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\Money
Definition:
Money.php:15
Commercetools\Api\Models\Payment\TransactionDraft
Definition:
TransactionDraft.php:18
Commercetools\Api\Models\Payment\TransactionDraft\FIELD_STATE
const FIELD_STATE
Definition:
TransactionDraft.php:23
Commercetools\Api\Models\Payment\TransactionDraft\FIELD_AMOUNT
const FIELD_AMOUNT
Definition:
TransactionDraft.php:21
Commercetools\Api\Models\Payment\TransactionDraft\setTimestamp
setTimestamp(?DateTimeImmutable $timestamp)
Commercetools\Api\Models\Payment\TransactionDraft\FIELD_TYPE
const FIELD_TYPE
Definition:
TransactionDraft.php:20
Commercetools\Api\Models\Payment\TransactionDraft\setType
setType(?string $type)
Commercetools\Api\Models\Payment\TransactionDraft\FIELD_INTERACTION_ID
const FIELD_INTERACTION_ID
Definition:
TransactionDraft.php:22
Commercetools\Api\Models\Payment\TransactionDraft\getState
getState()
Commercetools\Api\Models\Payment\TransactionDraft\setAmount
setAmount(?Money $amount)
Commercetools\Api\Models\Payment\TransactionDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
TransactionDraft.php:24
Commercetools\Api\Models\Payment\TransactionDraft\setState
setState(?string $state)
Commercetools\Api\Models\Payment\TransactionDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Payment\TransactionDraft\getAmount
getAmount()
Commercetools\Api\Models\Payment\TransactionDraft\getType
getType()
Commercetools\Api\Models\Payment\TransactionDraft\FIELD_TIMESTAMP
const FIELD_TIMESTAMP
Definition:
TransactionDraft.php:19
Commercetools\Api\Models\Payment\TransactionDraft\getTimestamp
getTimestamp()
Commercetools\Api\Models\Payment\TransactionDraft\getInteractionId
getInteractionId()
Commercetools\Api\Models\Payment\TransactionDraft\getCustom
getCustom()
Commercetools\Api\Models\Payment\TransactionDraft\setInteractionId
setInteractionId(?string $interactionId)
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Payment
Definition:
Payment.php:9
Generated by
1.9.1