Class: Worldline::Connect::SDK::V1::Domain::GPayThreeDSecure
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::GPayThreeDSecure
- Defined in:
- lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb
Instance Attribute Summary collapse
-
#challenge_canvas_size ⇒ String
The current value of challenge_canvas_size.
-
#challenge_indicator ⇒ String
The current value of challenge_indicator.
-
#exemption_request ⇒ String
The current value of exemption_request.
-
#redirection_data ⇒ Worldline::Connect::SDK::V1::Domain::RedirectionData
The current value of redirection_data.
-
#skip_authentication ⇒ true/false
The current value of skip_authentication.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#challenge_canvas_size ⇒ String
Returns the current value of challenge_canvas_size.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb', line 18 def challenge_canvas_size @challenge_canvas_size end |
#challenge_indicator ⇒ String
Returns the current value of challenge_indicator.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb', line 18 def challenge_indicator @challenge_indicator end |
#exemption_request ⇒ String
Returns the current value of exemption_request.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb', line 18 def exemption_request @exemption_request end |
#redirection_data ⇒ Worldline::Connect::SDK::V1::Domain::RedirectionData
Returns the current value of redirection_data.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb', line 18 def redirection_data @redirection_data end |
#skip_authentication ⇒ true/false
Returns the current value of skip_authentication.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb', line 18 def skip_authentication @skip_authentication end |
Instance Method Details
#from_hash(hash) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb', line 41 def from_hash(hash) super if hash.has_key? 'challengeCanvasSize' @challenge_canvas_size = hash['challengeCanvasSize'] end if hash.has_key? 'challengeIndicator' @challenge_indicator = hash['challengeIndicator'] end if hash.has_key? 'exemptionRequest' @exemption_request = hash['exemptionRequest'] end if hash.has_key? 'redirectionData' raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']] unless hash['redirectionData'].is_a? Hash @redirection_data = Worldline::Connect::SDK::V1::Domain::RedirectionData.new_from_hash(hash['redirectionData']) end if hash.has_key? 'skipAuthentication' @skip_authentication = hash['skipAuthentication'] end end |
#to_h ⇒ Hash
31 32 33 34 35 36 37 38 39 |
# File 'lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb', line 31 def to_h hash = super hash['challengeCanvasSize'] = @challenge_canvas_size unless @challenge_canvas_size.nil? hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil? hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil? hash['redirectionData'] = @redirection_data.to_h unless @redirection_data.nil? hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil? hash end |