This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/Core/Model/Subscription Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1010/**
1111 * @package Commercetools\Core\Model\Subscription
1212 *
13+ * @deprecated
1314 * @method string getType()
1415 * @method IronMQDestination setType(string $type = null)
1516 * @method string getUri()
Original file line number Diff line number Diff line change 3232 * @method Subscription setMessages(MessageSubscriptionCollection $messages = null)
3333 * @method ChangeSubscriptionCollection getChanges()
3434 * @method Subscription setChanges(ChangeSubscriptionCollection $changes = null)
35+ * @method string getStatus()
36+ * @method Subscription setStatus(string $status = null)
3537 * @method SubscriptionReference getReference()
3638 */
3739class Subscription extends Resource
3840{
41+ const STATUS_HEALTHY = 'Healthy ' ;
42+ const STATUS_CONFIGURATION_ERROR = 'ConfigurationError ' ;
43+ const STATUS_CONFIGURATION_ERROR_DELIVERY_STOPPED = 'ConfigurationErrorDeliveryStopped ' ;
44+ const STATUS_TEMPORARY_ERROR = 'TemporaryError ' ;
45+
3946 public function fieldDefinitions ()
4047 {
4148 return [
@@ -53,6 +60,7 @@ public function fieldDefinitions()
5360 'destination ' => [static ::TYPE => Destination::class],
5461 'messages ' => [static ::TYPE => MessageSubscriptionCollection::class],
5562 'changes ' => [static ::TYPE => ChangeSubscriptionCollection::class],
63+ 'status ' => [static ::TYPE => 'string ' ]
5664 ];
5765 }
5866}
You can’t perform that action at this time.
0 commit comments