class Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentMethodSpecificInputHostedCheckout
@attr [String] authorization_mode
@attr [String] customer_reference
@attr [Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct302SpecificInputHostedCheckout] payment_product302_specific_input
@attr [Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct320SpecificInputHostedCheckout] payment_product320_specific_input
@attr [true/false] requires_approval
@attr [true/false] skip_fraud_service
Attributes
customer_reference[RW]
payment_product302_specific_input[RW]
payment_product320_specific_input[RW]
requires_approval[RW]
skip_fraud_service[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput#from_hash
# File lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb, line 45 def from_hash(hash) super if hash.has_key? 'authorizationMode' @authorization_mode = hash['authorizationMode'] end if hash.has_key? 'customerReference' @customer_reference = hash['customerReference'] end if hash.has_key? 'paymentProduct302SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct302SpecificInput']] unless hash['paymentProduct302SpecificInput'].is_a? Hash @payment_product302_specific_input = Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct302SpecificInputHostedCheckout.new_from_hash(hash['paymentProduct302SpecificInput']) end if hash.has_key? 'paymentProduct320SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']] unless hash['paymentProduct320SpecificInput'].is_a? Hash @payment_product320_specific_input = Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct320SpecificInputHostedCheckout.new_from_hash(hash['paymentProduct320SpecificInput']) end if hash.has_key? 'requiresApproval' @requires_approval = hash['requiresApproval'] end if hash.has_key? 'skipFraudService' @skip_fraud_service = hash['skipFraudService'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput#to_h
# File lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb, line 34 def to_h hash = super hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil? hash['customerReference'] = @customer_reference unless @customer_reference.nil? hash['paymentProduct302SpecificInput'] = @payment_product302_specific_input.to_h unless @payment_product302_specific_input.nil? hash['paymentProduct320SpecificInput'] = @payment_product320_specific_input.to_h unless @payment_product320_specific_input.nil? hash['requiresApproval'] = @requires_approval unless @requires_approval.nil? hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil? hash end