class

Twilio::UsageUsageRecord

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

Constants

MAX_LENGTH_FOR_ACCOUNT_SID = 34
MIN_LENGTH_FOR_ACCOUNT_SID = 34
PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account_sid : String | Nil = nil, api_version : String | Nil = nil, as_of : String | Nil = nil, category : Twilio::UsageRecordEnumCategory | Nil = nil, count : String | Nil = nil, count_unit : String | Nil = nil, description : String | Nil = nil, end_date : Time | Nil = nil, price : String | Nil = nil, price_unit : String | Nil = nil, start_date : Time | Nil = nil, subresource_uris : Hash(String, String) | Nil = nil, uri : String | Nil = nil, usage : String | Nil = nil, usage_unit : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

account_sid

The SID of the Account accrued the usage

Source
account_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_sid Object to be assigned

Source
account_sid_present=(account_sid_present : Bool)
Source
account_sid_present?
Source
api_version

The API version used to create the resource

Source
api_version=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] api_version Object to be assigned

Source
api_version_present=(api_version_present : Bool)
Source
api_version_present?
Source
as_of

Usage records up to date as of this timestamp

Source
as_of=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] as_of Object to be assigned

Source
as_of_present=(as_of_present : Bool)
Source
as_of_present?
Source
category
Source
category=(new_value : Twilio::UsageRecordEnumCategory | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] category Object to be assigned

Source
count

The number of usage events

Source
count=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] count Object to be assigned

Source
count_present=(count_present : Bool)
Source
count_present?
Source
count_unit

The units in which count is measured

Source
count_unit=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] count_unit Object to be assigned

Source
count_unit_present=(count_unit_present : Bool)
Source
count_unit_present?
Source
description

A plain-language description of the usage category

Source
description=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned

Source
description_present=(description_present : Bool)
Source
description_present?
Source
end_date

The last date for which usage is included in the UsageRecord

Source
end_date=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] end_date Object to be assigned

Source
end_date_present=(end_date_present : Bool)
Source
end_date_present?
Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
price

The total price of the usage

Source
price=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] price Object to be assigned

Source
price_present=(price_present : Bool)
Source
price_present?
Source
price_unit

The currency in which price is measured

Source
price_unit=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] price_unit Object to be assigned

Source
price_unit_present=(price_unit_present : Bool)
Source
price_unit_present?
Source
start_date

The first date for which usage is included in this UsageRecord

Source
start_date=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] start_date Object to be assigned

Source
start_date_present=(start_date_present : Bool)
Source
start_date_present?
Source
subresource_uris
Source
subresource_uris=(new_value : Hash(String, String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subresource_uris Object to be assigned

Source
subresource_uris_present=(subresource_uris_present : Bool)
Source
subresource_uris_present?
Source
uri

The URI of the resource, relative to https://api.twilio.com

Source
uri=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] uri Object to be assigned

Source
uri_present=(uri_present : Bool)
Source
uri_present?
Source
usage

The amount of usage

Source
usage=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] usage Object to be assigned

Source
usage_present=(usage_present : Bool)
Source
usage_present?
Source
usage_unit

The units in which usage is measured

Source
usage_unit=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] usage_unit Object to be assigned

Source
usage_unit_present=(usage_unit_present : Bool)
Source
usage_unit_present?
Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source