class Twilio::REST::Supersim::V1::SimContext::BillingPeriodInstance
Public Class Methods
Initialize the BillingPeriodInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@param [String] sim_sid
The SID of the Super SIM the Billing Period belongs to. @return [BillingPeriodInstance] BillingPeriodInstance
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 151 def initialize(version, payload, sim_sid: nil) 152 super(version) 153 154 # Marshaled Properties 155 @properties = { 156 'sid' => payload['sid'], 157 'account_sid' => payload['account_sid'], 158 'sim_sid' => payload['sim_sid'], 159 'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']), 160 'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']), 161 'period_type' => payload['period_type'], 162 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 163 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 164 } 165 end
Public Instance Methods
@return [String] The SID of the Account the Super SIM belongs to
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 175 def account_sid 176 @properties['account_sid'] 177 end
@return [Time] The ISO 8601 date and time in GMT when the resource was created
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 205 def date_created 206 @properties['date_created'] 207 end
@return [Time] The ISO 8601 date and time in GMT when the resource was last updated
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 211 def date_updated 212 @properties['date_updated'] 213 end
@return [Time] The end time of the Billing Period
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 193 def end_time 194 @properties['end_time'] 195 end
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 223 def inspect 224 "<Twilio.Supersim.V1.BillingPeriodInstance>" 225 end
@return [billing_period.BpType] The type of the Billing Period
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 199 def period_type 200 @properties['period_type'] 201 end
@return [String] The SID of the Billing Period
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 169 def sid 170 @properties['sid'] 171 end
@return [String] The SID of the Super SIM the Billing Period belongs to
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 181 def sim_sid 182 @properties['sim_sid'] 183 end
@return [Time] The start time of the Billing Period
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 187 def start_time 188 @properties['start_time'] 189 end
Provide a user friendly representation
# File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb 217 def to_s 218 "<Twilio.Supersim.V1.BillingPeriodInstance>" 219 end