/home/techb158/dev.balacoffee.com/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010
Edit: /home/techb158/dev.balacoffee.com/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/AccountOptions.php (5135B)
options['friendlyName'] = $friendlyName;
}
/**
* A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}`
*
* @param string $friendlyName A human readable description of the account
* @return $this Fluent Builder
*/
public function setFriendlyName(string $friendlyName): self {
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = \http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Api.V2010.CreateAccountOptions ' . $options . ']';
}
}
class ReadAccountOptions extends Options {
/**
* @param string $friendlyName FriendlyName to filter on
* @param string $status Status to filter on
*/
public function __construct(string $friendlyName = Values::NONE, string $status = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
$this->options['status'] = $status;
}
/**
* Only return the Account resources with friendly names that exactly match this name.
*
* @param string $friendlyName FriendlyName to filter on
* @return $this Fluent Builder
*/
public function setFriendlyName(string $friendlyName): self {
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* Only return Account resources with the given status. Can be `closed`, `suspended` or `active`.
*
* @param string $status Status to filter on
* @return $this Fluent Builder
*/
public function setStatus(string $status): self {
$this->options['status'] = $status;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = \http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Api.V2010.ReadAccountOptions ' . $options . ']';
}
}
class UpdateAccountOptions extends Options {
/**
* @param string $friendlyName FriendlyName to update
* @param string $status Status to update the Account with
*/
public function __construct(string $friendlyName = Values::NONE, string $status = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
$this->options['status'] = $status;
}
/**
* Update the human-readable description of this Account
*
* @param string $friendlyName FriendlyName to update
* @return $this Fluent Builder
*/
public function setFriendlyName(string $friendlyName): self {
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it.
*
* @param string $status Status to update the Account with
* @return $this Fluent Builder
*/
public function setStatus(string $status): self {
$this->options['status'] = $status;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = \http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Api.V2010.UpdateAccountOptions ' . $options . ']';
}
}