commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
TransactionDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
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 }
setTimestamp(?DateTimeImmutable $timestamp)