class Ingenico::Connect::SDK::Domain::Payment::AbstractThreeDSecure
@attr [Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney] authentication_amount
@attr [String] authentication_flow
@attr [String] challenge_canvas_size
@attr [String] challenge_indicator
@attr [String] exemption_request
@attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData] prior_three_d_secure_data
@attr [Ingenico::Connect::SDK::Domain::Payment::SdkDataInput] sdk_data
@attr [true/false] skip_authentication
Attributes
authentication_amount[RW]
authentication_flow[RW]
challenge_canvas_size[RW]
challenge_indicator[RW]
exemption_request[RW]
prior_three_d_secure_data[RW]
sdk_data[RW]
skip_authentication[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/payment/abstract_three_d_secure.rb, line 54 def from_hash(hash) super if hash.has_key? 'authenticationAmount' raise TypeError, "value '%s' is not a Hash" % [hash['authenticationAmount']] unless hash['authenticationAmount'].is_a? Hash @authentication_amount = Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney.new_from_hash(hash['authenticationAmount']) end if hash.has_key? 'authenticationFlow' @authentication_flow = hash['authenticationFlow'] end 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? 'priorThreeDSecureData' raise TypeError, "value '%s' is not a Hash" % [hash['priorThreeDSecureData']] unless hash['priorThreeDSecureData'].is_a? Hash @prior_three_d_secure_data = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData.new_from_hash(hash['priorThreeDSecureData']) end if hash.has_key? 'sdkData' raise TypeError, "value '%s' is not a Hash" % [hash['sdkData']] unless hash['sdkData'].is_a? Hash @sdk_data = Ingenico::Connect::SDK::Domain::Payment::SdkDataInput.new_from_hash(hash['sdkData']) end if hash.has_key? 'skipAuthentication' @skip_authentication = hash['skipAuthentication'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/abstract_three_d_secure.rb, line 41 def to_h hash = super hash['authenticationAmount'] = @authentication_amount.to_h unless @authentication_amount.nil? hash['authenticationFlow'] = @authentication_flow unless @authentication_flow.nil? 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['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h unless @prior_three_d_secure_data.nil? hash['sdkData'] = @sdk_data.to_h unless @sdk_data.nil? hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil? hash end