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