Class: Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentMethodSpecificInputHostedCheckout
- Inherits:
-
Definitions::AbstractPaymentMethodSpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentMethodSpecificInputHostedCheckout
- Defined in:
- lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb
Instance Attribute Summary collapse
-
#authorization_mode ⇒ String
The current value of authorization_mode.
-
#customer_reference ⇒ String
The current value of customer_reference.
-
#payment_product302_specific_input ⇒ Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct302SpecificInputHostedCheckout
The current value of payment_product302_specific_input.
-
#payment_product320_specific_input ⇒ Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct320SpecificInputHostedCheckout
The current value of payment_product320_specific_input.
-
#requires_approval ⇒ true/false
The current value of requires_approval.
-
#skip_fraud_service ⇒ true/false
The current value of skip_fraud_service.
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#authorization_mode ⇒ String
Returns the current value of authorization_mode.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb', line 19 def @authorization_mode end |
#customer_reference ⇒ String
Returns the current value of customer_reference.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb', line 19 def customer_reference @customer_reference end |
#payment_product302_specific_input ⇒ Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct302SpecificInputHostedCheckout
Returns the current value of payment_product302_specific_input.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb', line 19 def payment_product302_specific_input @payment_product302_specific_input end |
#payment_product320_specific_input ⇒ Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct320SpecificInputHostedCheckout
Returns the current value of payment_product320_specific_input.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb', line 19 def payment_product320_specific_input @payment_product320_specific_input end |
#requires_approval ⇒ true/false
Returns the current value of requires_approval.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb', line 19 def requires_approval @requires_approval end |
#skip_fraud_service ⇒ true/false
Returns the current value of skip_fraud_service.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb', line 19 def skip_fraud_service @skip_fraud_service end |
Instance Method Details
#from_hash(hash) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# 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 ⇒ Hash
34 35 36 37 38 39 40 41 42 43 |
# 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 |