Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generated/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.13.0/PHP';
protected $userAgent = 'OpenAPI-Generator/1.14.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.13.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.14.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
36 changes: 35 additions & 1 deletion generated/Model/LiveActivityStreamDeleteResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class LiveActivityStreamDeleteResponse implements ModelInterface, ArrayAccess, \
'ignored' => 'bool',
'message' => 'string',
'forcedCompletion' => 'bool',
'delivered' => 'bool',
'warning' => 'string',
'errors' => 'string[]'
];
Expand All @@ -90,6 +91,7 @@ class LiveActivityStreamDeleteResponse implements ModelInterface, ArrayAccess, \
'ignored' => null,
'message' => null,
'forcedCompletion' => null,
'delivered' => null,
'warning' => null,
'errors' => null
];
Expand All @@ -110,6 +112,7 @@ class LiveActivityStreamDeleteResponse implements ModelInterface, ArrayAccess, \
'ignored' => false,
'message' => false,
'forcedCompletion' => false,
'delivered' => false,
'warning' => false,
'errors' => false
];
Expand Down Expand Up @@ -210,6 +213,7 @@ public function isNullableSetToNull(string $property): bool
'ignored' => 'ignored',
'message' => 'message',
'forcedCompletion' => 'forced_completion',
'delivered' => 'delivered',
'warning' => 'warning',
'errors' => 'errors'
];
Expand All @@ -230,6 +234,7 @@ public function isNullableSetToNull(string $property): bool
'ignored' => 'setIgnored',
'message' => 'setMessage',
'forcedCompletion' => 'setForcedCompletion',
'delivered' => 'setDelivered',
'warning' => 'setWarning',
'errors' => 'setErrors'
];
Expand All @@ -250,6 +255,7 @@ public function isNullableSetToNull(string $property): bool
'ignored' => 'getIgnored',
'message' => 'getMessage',
'forcedCompletion' => 'getForcedCompletion',
'delivered' => 'getDelivered',
'warning' => 'getWarning',
'errors' => 'getErrors'
];
Expand Down Expand Up @@ -334,6 +340,7 @@ public function __construct(array $data = null)
$this->setIfExists('ignored', $data ?? [], null);
$this->setIfExists('message', $data ?? [], null);
$this->setIfExists('forcedCompletion', $data ?? [], null);
$this->setIfExists('delivered', $data ?? [], null);
$this->setIfExists('warning', $data ?? [], null);
$this->setIfExists('errors', $data ?? [], null);
}
Expand Down Expand Up @@ -688,6 +695,33 @@ public function setForcedCompletion($forcedCompletion)
return $this;
}

/**
* Gets delivered
*
* @return bool|null
*/
public function getDelivered()
{
return $this->container['delivered'];
}

/**
* Sets delivered
*
* @param bool|null $delivered Present when the stream had a current Live Activity. True when the end was sent to at least one device, or queued for a device that has not registered yet. False when no device received it, so the Live Activity may stay on the Lock Screen until iOS removes it or someone dismisses it.
*
* @return self
*/
public function setDelivered($delivered)
{
if (is_null($delivered)) {
throw new \InvalidArgumentException('non-nullable delivered cannot be null');
}
$this->container['delivered'] = $delivered;

return $this;
}

/**
* Gets warning
*
Expand All @@ -701,7 +735,7 @@ public function getWarning()
/**
* Sets warning
*
* @param string|null $warning warning
* @param string|null $warning Explains why the end may not have removed the Live Activity, for example because iOS had already ended a Live Activity that started more than 8 hours ago.
*
* @return self
*/
Expand Down
102 changes: 102 additions & 0 deletions generated/Model/NoRecipientsError.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class NoRecipientsError implements ModelInterface, ArrayAccess, \JsonSerializabl
*/
protected static $openAPITypes = [
'error' => 'string',
'code' => 'string',
'message' => 'string',
'appStoreUrl' => 'string',
'effectiveChannelSlugs' => 'string[]'
];

Expand All @@ -71,7 +73,9 @@ class NoRecipientsError implements ModelInterface, ArrayAccess, \JsonSerializabl
*/
protected static $openAPIFormats = [
'error' => null,
'code' => null,
'message' => null,
'appStoreUrl' => 'uri',
'effectiveChannelSlugs' => null
];

Expand All @@ -82,7 +86,9 @@ class NoRecipientsError implements ModelInterface, ArrayAccess, \JsonSerializabl
*/
protected static array $openAPINullables = [
'error' => false,
'code' => false,
'message' => false,
'appStoreUrl' => false,
'effectiveChannelSlugs' => false
];

Expand Down Expand Up @@ -173,7 +179,9 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'error' => 'error',
'code' => 'code',
'message' => 'message',
'appStoreUrl' => 'app_store_url',
'effectiveChannelSlugs' => 'effective_channel_slugs'
];

Expand All @@ -184,7 +192,9 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'error' => 'setError',
'code' => 'setCode',
'message' => 'setMessage',
'appStoreUrl' => 'setAppStoreUrl',
'effectiveChannelSlugs' => 'setEffectiveChannelSlugs'
];

Expand All @@ -195,7 +205,9 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'error' => 'getError',
'code' => 'getCode',
'message' => 'getMessage',
'appStoreUrl' => 'getAppStoreUrl',
'effectiveChannelSlugs' => 'getEffectiveChannelSlugs'
];

Expand Down Expand Up @@ -240,6 +252,21 @@ public function getModelName()
return self::$openAPIModelName;
}

public const CODE_PAIRED_DEVICES = 'no_paired_devices';
public const CODE_RECIPIENTS_FOUND = 'no_recipients_found';

/**
* Gets allowable values of the enum
*
* @return string[]
*/
public function getCodeAllowableValues()
{
return [
self::CODE_PAIRED_DEVICES,
self::CODE_RECIPIENTS_FOUND,
];
}

/**
* Associative array for storing property values
Expand All @@ -257,7 +284,9 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->setIfExists('error', $data ?? [], null);
$this->setIfExists('code', $data ?? [], null);
$this->setIfExists('message', $data ?? [], null);
$this->setIfExists('appStoreUrl', $data ?? [], null);
$this->setIfExists('effectiveChannelSlugs', $data ?? [], null);
}

Expand Down Expand Up @@ -291,6 +320,15 @@ public function listInvalidProperties()
if ($this->container['error'] === null) {
$invalidProperties[] = "'error' can't be null";
}
$allowedValues = $this->getCodeAllowableValues();
if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value '%s' for 'code', must be one of '%s'",
$this->container['code'],
implode("', '", $allowedValues)
);
}

if ($this->container['message'] === null) {
$invalidProperties[] = "'message' can't be null";
}
Expand Down Expand Up @@ -336,6 +374,43 @@ public function setError($error)
return $this;
}

/**
* Gets code
*
* @return string|null
*/
public function getCode()
{
return $this->container['code'];
}

/**
* Sets code
*
* @param string|null $code no_paired_devices: the account has no active paired iOS devices; pair an iPhone with the ActivitySmith app. no_recipients_found: devices are paired, but none matched the targeted channels.
*
* @return self
*/
public function setCode($code)
{
if (is_null($code)) {
throw new \InvalidArgumentException('non-nullable code cannot be null');
}
$allowedValues = $this->getCodeAllowableValues();
if (!in_array($code, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value '%s' for 'code', must be one of '%s'",
$code,
implode("', '", $allowedValues)
)
);
}
$this->container['code'] = $code;

return $this;
}

/**
* Gets message
*
Expand Down Expand Up @@ -363,6 +438,33 @@ public function setMessage($message)
return $this;
}

/**
* Gets appStoreUrl
*
* @return string|null
*/
public function getAppStoreUrl()
{
return $this->container['appStoreUrl'];
}

/**
* Sets appStoreUrl
*
* @param string|null $appStoreUrl ActivitySmith App Store link. Present when code is no_paired_devices.
*
* @return self
*/
public function setAppStoreUrl($appStoreUrl)
{
if (is_null($appStoreUrl)) {
throw new \InvalidArgumentException('non-nullable appStoreUrl cannot be null');
}
$this->container['appStoreUrl'] = $appStoreUrl;

return $this;
}

/**
* Gets effectiveChannelSlugs
*
Expand Down
Loading
Loading