PATH:
home
/
lab2454c
/
.trash
/
core
/
vendor
/
twilio
/
sdk
/
src
/
Twilio
/
Rest
/
Api
/
V2010
/
Account
/
Usage
/
Record
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010\Account\Usage\Record; use Twilio\Deserialize; use Twilio\Exceptions\TwilioException; use Twilio\InstanceResource; use Twilio\Values; use Twilio\Version; /** * @property string $accountSid * @property string $apiVersion * @property string $asOf * @property string $category * @property string $count * @property string $countUnit * @property string $description * @property \DateTime $endDate * @property string $price * @property string $priceUnit * @property \DateTime $startDate * @property array $subresourceUris * @property string $uri * @property string $usage * @property string $usageUnit */ class LastMonthInstance extends InstanceResource { /** * Initialize the LastMonthInstance * * @param Version $version Version that contains the resource * @param mixed[] $payload The response payload * @param string $accountSid A 34 character string that uniquely identifies * this resource. */ public function __construct(Version $version, array $payload, string $accountSid) { parent::__construct($version); // Marshaled Properties $this->properties = [ 'accountSid' => Values::array_get($payload, 'account_sid'), 'apiVersion' => Values::array_get($payload, 'api_version'), 'asOf' => Values::array_get($payload, 'as_of'), 'category' => Values::array_get($payload, 'category'), 'count' => Values::array_get($payload, 'count'), 'countUnit' => Values::array_get($payload, 'count_unit'), 'description' => Values::array_get($payload, 'description'), 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')), 'price' => Values::array_get($payload, 'price'), 'priceUnit' => Values::array_get($payload, 'price_unit'), 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')), 'subresourceUris' => Values::array_get($payload, 'subresource_uris'), 'uri' => Values::array_get($payload, 'uri'), 'usage' => Values::array_get($payload, 'usage'), 'usageUnit' => Values::array_get($payload, 'usage_unit'), ]; $this->solution = ['accountSid' => $accountSid, ]; } /** * Magic getter to access properties * * @param string $name Property to access * @return mixed The requested property * @throws TwilioException For unknown properties */ public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { return '[Twilio.Api.V2010.LastMonthInstance]'; } }
[-] YesterdayList.php
[edit]
[-] ThisMonthList.php
[edit]
[-] DailyOptions.php
[edit]
[-] TodayList.php
[edit]
[-] YearlyPage.php
[edit]
[-] AllTimeList.php
[edit]
[-] LastMonthList.php
[edit]
[+]
..
[-] AllTimeInstance.php
[edit]
[-] ThisMonthPage.php
[edit]
[-] LastMonthOptions.php
[edit]
[-] MonthlyPage.php
[edit]
[-] DailyInstance.php
[edit]
[-] TodayInstance.php
[edit]
[-] YesterdayOptions.php
[edit]
[-] YearlyInstance.php
[edit]
[-] TodayOptions.php
[edit]
[-] YesterdayPage.php
[edit]
[-] LastMonthPage.php
[edit]
[-] TodayPage.php
[edit]
[-] YesterdayInstance.php
[edit]
[-] YearlyOptions.php
[edit]
[-] DailyPage.php
[edit]
[-] ThisMonthInstance.php
[edit]
[-] ThisMonthOptions.php
[edit]
[-] MonthlyInstance.php
[edit]
[-] LastMonthInstance.php
[edit]
[-] MonthlyList.php
[edit]
[-] YearlyList.php
[edit]
[-] AllTimeOptions.php
[edit]
[-] MonthlyOptions.php
[edit]
[-] AllTimePage.php
[edit]
[-] DailyList.php
[edit]