Class: Reach::REST::Api::Authentix::AuthenticationTrialItemInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Reach::REST::Api::Authentix::AuthenticationTrialItemInstance
- Defined in:
- lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb
Instance Method Summary collapse
-
#apiVersion ⇒ String
The API version.
-
#appletId ⇒ String
The identifier of the applet.
-
#authenticationId ⇒ String
The identifier of the authentication.
-
#channel ⇒ String
The channel used.
-
#channelInfo ⇒ Hash<String, Object>
Channel specific information related to a trial.
-
#configurationId ⇒ String
The identifier of the configuration.
-
#context ⇒ AuthenticationTrialItemContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#dateCreated ⇒ Time
The date and time in GMT that the authentication trial was created.
-
#dateUpdated ⇒ Time
The date and time in GMT that the authentication trial was last updated.
-
#fetch ⇒ AuthenticationTrialItemInstance
Fetch the AuthenticationTrialItemInstance.
-
#initialize(version, payload, trial_id: nil) ⇒ AuthenticationTrialItemInstance
constructor
Initialize the AuthenticationTrialItemInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #paymentInfo ⇒ PaymentInfo
-
#price ⇒ Float
The cost billed for the authentication trial, in the currency specified by ‘priceUnit`.
-
#priceUnit ⇒ String
The currency, in ISO 4127 format, in which price is measured.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trialId ⇒ String
The identifier of the authentication trial.
-
#trialStatus ⇒ String
The status of the authentication.
Constructor Details
#initialize(version, payload, trial_id: nil) ⇒ AuthenticationTrialItemInstance
Initialize the AuthenticationTrialItemInstance
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 278 def initialize(version, payload , trial_id: nil) super(version) # Marshaled Properties @properties = { 'appletId' => payload['appletId'], 'apiVersion' => payload['apiVersion'], 'configurationId' => payload['configurationId'], 'authenticationId' => payload['authenticationId'], 'trialId' => payload['trialId'], 'trialStatus' => payload['trialStatus'], 'channel' => payload['channel'], 'paymentInfo' => payload['paymentInfo'], 'dateCreated' => Reach.deserialize_iso8601_datetime(payload['dateCreated']), 'dateUpdated' => Reach.deserialize_iso8601_datetime(payload['dateUpdated']), 'price' => payload['price'], 'priceUnit' => payload['priceUnit'], 'channelInfo' => payload['channelInfo'], } # Context @instance_context = nil @params = { 'trial_id' => trial_id || @properties['trialId'] , } end |
Instance Method Details
#apiVersion ⇒ String
Returns The API version.
322 323 324 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 322 def apiVersion @properties['apiVersion'] end |
#appletId ⇒ String
Returns The identifier of the applet.
316 317 318 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 316 def appletId @properties['appletId'] end |
#authenticationId ⇒ String
Returns The identifier of the authentication.
334 335 336 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 334 def authenticationId @properties['authenticationId'] end |
#channel ⇒ String
Returns The channel used.
352 353 354 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 352 def channel @properties['channel'] end |
#channelInfo ⇒ Hash<String, Object>
Returns channel specific information related to a trial.
388 389 390 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 388 def channelInfo @properties['channelInfo'] end |
#configurationId ⇒ String
Returns The identifier of the configuration.
328 329 330 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 328 def configurationId @properties['configurationId'] end |
#context ⇒ AuthenticationTrialItemContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
307 308 309 310 311 312 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 307 def context unless @instance_context @instance_context = AuthenticationTrialItemContext.new(@version , @params['trial_id']) end @instance_context end |
#dateCreated ⇒ Time
Returns The date and time in GMT that the authentication trial was created.
364 365 366 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 364 def dateCreated @properties['dateCreated'] end |
#dateUpdated ⇒ Time
Returns The date and time in GMT that the authentication trial was last updated.
370 371 372 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 370 def dateUpdated @properties['dateUpdated'] end |
#fetch ⇒ AuthenticationTrialItemInstance
Fetch the AuthenticationTrialItemInstance
395 396 397 398 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 395 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
409 410 411 412 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 409 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Reach.Api.Authentix.AuthenticationTrialItemInstance #{values}>" end |
#paymentInfo ⇒ PaymentInfo
358 359 360 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 358 def paymentInfo @properties['paymentInfo'] end |
#price ⇒ Float
Returns The cost billed for the authentication trial, in the currency specified by ‘priceUnit`. This cost does not include the cost for checking the correctness of the code.
376 377 378 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 376 def price @properties['price'] end |
#priceUnit ⇒ String
Returns The currency, in ISO 4127 format, in which price is measured. for example, usd, xaf, eur, cad.
382 383 384 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 382 def priceUnit @properties['priceUnit'] end |
#to_s ⇒ Object
Provide a user friendly representation
402 403 404 405 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 402 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Reach.Api.Authentix.AuthenticationTrialItemInstance #{values}>" end |
#trialId ⇒ String
Returns The identifier of the authentication trial.
340 341 342 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 340 def trialId @properties['trialId'] end |
#trialStatus ⇒ String
Returns The status of the authentication.
346 347 348 |
# File 'lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb', line 346 def trialStatus @properties['trialStatus'] end |