add constants
This commit is contained in:
@ -48,6 +48,24 @@ class SubscriptionProcess extends Model
|
||||
return new SubscriptionEntity($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws BaseException
|
||||
*/
|
||||
public function update(string $listId, ?string $name): bool
|
||||
{
|
||||
return (bool) current(
|
||||
$this->connection->requestAndParse(
|
||||
'PUT',
|
||||
'list/'.urlencode(trim($listId)).'.json',
|
||||
[
|
||||
RequestOptions::FORM_PARAMS => array_filter([
|
||||
'name' => trim($name ?? ''),
|
||||
]),
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws BaseException
|
||||
*/
|
||||
|
Reference in New Issue
Block a user