commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CloudEventsPayload.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 use DateTimeImmutable;
14 
15 interface CloudEventsPayload extends JsonObject
16 {
17  public const FIELD_SPECVERSION = 'specversion';
18  public const FIELD_ID = 'id';
19  public const FIELD_TYPE = 'type';
20  public const FIELD_SOURCE = 'source';
21  public const FIELD_SUBJECT = 'subject';
22  public const FIELD_TIME = 'time';
23  public const FIELD_SEQUENCE = 'sequence';
24  public const FIELD_SEQUENCETYPE = 'sequencetype';
25  public const FIELD_DATAREF = 'dataref';
26  public const FIELD_DATA = 'data';
27 
34  public function getSpecversion();
35 
42  public function getId();
43 
51  public function getType();
52 
59  public function getSource();
60 
67  public function getSubject();
68 
75  public function getTime();
76 
83  public function getSequence();
84 
91  public function getSequencetype();
92 
99  public function getDataref();
100 
107  public function getData();
108 
112  public function setSpecversion(?string $specversion): void;
113 
117  public function setId(?string $id): void;
118 
122  public function setType(?string $type): void;
123 
127  public function setSource(?string $source): void;
128 
132  public function setSubject(?string $subject): void;
133 
137  public function setTime(?DateTimeImmutable $time): void;
138 
142  public function setSequence(?string $sequence): void;
143 
147  public function setSequencetype(?string $sequencetype): void;
148 
152  public function setDataref(?string $dataref): void;
153 
157  public function setData(?DeliveryPayload $data): void;
158 }