commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Subscription
CloudEventsPayload.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Subscription
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Subscription\CloudEventsPayload
Definition:
CloudEventsPayload.php:16
Commercetools\Api\Models\Subscription\CloudEventsPayload\setDataref
setDataref(?string $dataref)
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_ID
const FIELD_ID
Definition:
CloudEventsPayload.php:18
Commercetools\Api\Models\Subscription\CloudEventsPayload\setId
setId(?string $id)
Commercetools\Api\Models\Subscription\CloudEventsPayload\getData
getData()
Commercetools\Api\Models\Subscription\CloudEventsPayload\setSpecversion
setSpecversion(?string $specversion)
Commercetools\Api\Models\Subscription\CloudEventsPayload\getTime
getTime()
Commercetools\Api\Models\Subscription\CloudEventsPayload\getId
getId()
Commercetools\Api\Models\Subscription\CloudEventsPayload\getSpecversion
getSpecversion()
Commercetools\Api\Models\Subscription\CloudEventsPayload\setTime
setTime(?DateTimeImmutable $time)
Commercetools\Api\Models\Subscription\CloudEventsPayload\setSequence
setSequence(?string $sequence)
Commercetools\Api\Models\Subscription\CloudEventsPayload\setSource
setSource(?string $source)
Commercetools\Api\Models\Subscription\CloudEventsPayload\getSubject
getSubject()
Commercetools\Api\Models\Subscription\CloudEventsPayload\setSequencetype
setSequencetype(?string $sequencetype)
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_SUBJECT
const FIELD_SUBJECT
Definition:
CloudEventsPayload.php:21
Commercetools\Api\Models\Subscription\CloudEventsPayload\getSequence
getSequence()
Commercetools\Api\Models\Subscription\CloudEventsPayload\getDataref
getDataref()
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_TIME
const FIELD_TIME
Definition:
CloudEventsPayload.php:22
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_SPECVERSION
const FIELD_SPECVERSION
Definition:
CloudEventsPayload.php:17
Commercetools\Api\Models\Subscription\CloudEventsPayload\setData
setData(?DeliveryPayload $data)
Commercetools\Api\Models\Subscription\CloudEventsPayload\getType
getType()
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_SEQUENCETYPE
const FIELD_SEQUENCETYPE
Definition:
CloudEventsPayload.php:24
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_DATA
const FIELD_DATA
Definition:
CloudEventsPayload.php:26
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_DATAREF
const FIELD_DATAREF
Definition:
CloudEventsPayload.php:25
Commercetools\Api\Models\Subscription\CloudEventsPayload\getSequencetype
getSequencetype()
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_SOURCE
const FIELD_SOURCE
Definition:
CloudEventsPayload.php:20
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_TYPE
const FIELD_TYPE
Definition:
CloudEventsPayload.php:19
Commercetools\Api\Models\Subscription\CloudEventsPayload\setSubject
setSubject(?string $subject)
Commercetools\Api\Models\Subscription\CloudEventsPayload\FIELD_SEQUENCE
const FIELD_SEQUENCE
Definition:
CloudEventsPayload.php:23
Commercetools\Api\Models\Subscription\CloudEventsPayload\getSource
getSource()
Commercetools\Api\Models\Subscription\CloudEventsPayload\setType
setType(?string $type)
Commercetools\Api\Models\Subscription\DeliveryPayload
Definition:
DeliveryPayload.php:17
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Subscription
Definition:
AzureEventGridDestination.php:9
Generated by
1.9.1