commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Subscription
Subscription.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Subscription
;
10
11
use
Commercetools\Api\Models\Common\BaseResource
;
12
use
Commercetools\Api\Models\Common\CreatedBy
;
13
use
Commercetools\Api\Models\Common\LastModifiedBy
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use DateTimeImmutable;
17
18
interface
Subscription
extends
BaseResource
19
{
20
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
21
public
const
FIELD_CREATED_BY
=
'createdBy'
;
22
public
const
FIELD_CHANGES
=
'changes'
;
23
public
const
FIELD_DESTINATION
=
'destination'
;
24
public
const
FIELD_KEY
=
'key'
;
25
public
const
FIELD_MESSAGES
=
'messages'
;
26
public
const
FIELD_FORMAT
=
'format'
;
27
public
const
FIELD_STATUS
=
'status'
;
28
35
public
function
getId
();
36
43
public
function
getVersion
();
44
51
public
function
getCreatedAt
();
52
59
public
function
getLastModifiedAt
();
60
67
public
function
getLastModifiedBy
();
68
75
public
function
getCreatedBy
();
76
83
public
function
getChanges
();
84
91
public
function
getDestination
();
92
99
public
function
getKey
();
100
107
public
function
getMessages
();
108
115
public
function
getFormat
();
116
123
public
function
getStatus
();
124
128
public
function
setId
(?
string
$id): void;
129
133
public
function
setVersion
(?
int
$version): void;
134
138
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
139
143
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
144
148
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
149
153
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
154
158
public
function
setChanges
(?
ChangeSubscriptionCollection
$changes): void;
159
163
public
function
setDestination
(?
Destination
$destination): void;
164
168
public
function
setKey
(?
string
$key): void;
169
173
public
function
setMessages
(?
MessageSubscriptionCollection
$messages): void;
174
178
public
function
setFormat
(?
DeliveryFormat
$format): void;
179
183
public
function
setStatus
(?
string
$status): void;
184
}
Commercetools\Api\Models\Subscription\ChangeSubscriptionCollection
Definition:
ChangeSubscriptionCollection.php:22
Commercetools\Api\Models\Subscription\MessageSubscriptionCollection
Definition:
MessageSubscriptionCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Subscription\DeliveryFormat
Definition:
DeliveryFormat.php:15
Commercetools\Api\Models\Subscription\Destination
Definition:
Destination.php:15
Commercetools\Api\Models\Subscription\Subscription
Definition:
Subscription.php:19
Commercetools\Api\Models\Subscription\Subscription\setId
setId(?string $id)
Commercetools\Api\Models\Subscription\Subscription\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Subscription\Subscription\setMessages
setMessages(?MessageSubscriptionCollection $messages)
Commercetools\Api\Models\Subscription\Subscription\getFormat
getFormat()
Commercetools\Api\Models\Subscription\Subscription\setChanges
setChanges(?ChangeSubscriptionCollection $changes)
Commercetools\Api\Models\Subscription\Subscription\FIELD_CHANGES
const FIELD_CHANGES
Definition:
Subscription.php:22
Commercetools\Api\Models\Subscription\Subscription\getId
getId()
Commercetools\Api\Models\Subscription\Subscription\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Subscription\Subscription\setStatus
setStatus(?string $status)
Commercetools\Api\Models\Subscription\Subscription\setFormat
setFormat(?DeliveryFormat $format)
Commercetools\Api\Models\Subscription\Subscription\getKey
getKey()
Commercetools\Api\Models\Subscription\Subscription\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Subscription\Subscription\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Subscription\Subscription\FIELD_STATUS
const FIELD_STATUS
Definition:
Subscription.php:27
Commercetools\Api\Models\Subscription\Subscription\getMessages
getMessages()
Commercetools\Api\Models\Subscription\Subscription\getDestination
getDestination()
Commercetools\Api\Models\Subscription\Subscription\FIELD_KEY
const FIELD_KEY
Definition:
Subscription.php:24
Commercetools\Api\Models\Subscription\Subscription\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Subscription\Subscription\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Subscription\Subscription\FIELD_FORMAT
const FIELD_FORMAT
Definition:
Subscription.php:26
Commercetools\Api\Models\Subscription\Subscription\setDestination
setDestination(?Destination $destination)
Commercetools\Api\Models\Subscription\Subscription\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Subscription\Subscription\getChanges
getChanges()
Commercetools\Api\Models\Subscription\Subscription\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Subscription\Subscription\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Subscription.php:21
Commercetools\Api\Models\Subscription\Subscription\FIELD_MESSAGES
const FIELD_MESSAGES
Definition:
Subscription.php:25
Commercetools\Api\Models\Subscription\Subscription\getVersion
getVersion()
Commercetools\Api\Models\Subscription\Subscription\getStatus
getStatus()
Commercetools\Api\Models\Subscription\Subscription\FIELD_DESTINATION
const FIELD_DESTINATION
Definition:
Subscription.php:23
Commercetools\Api\Models\Subscription\Subscription\setKey
setKey(?string $key)
Commercetools\Api\Models\Subscription\Subscription\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Subscription\Subscription\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Subscription.php:20
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Subscription
Definition:
AzureEventGridDestination.php:9
Generated by
1.9.1