Class: Worldline::Connect::SDK::V1::Domain::MobilePaymentMethodSpecificInputHostedCheckout
Instance Attribute Summary collapse
#authorization_mode, #customer_reference, #initial_scheme_transaction_id, #recurring, #requires_approval, #skip_fraud_service, #token, #tokenize, #unscheduled_card_on_file_requestor, #unscheduled_card_on_file_sequence_indicator
#payment_product_id
Instance Method Summary
collapse
new_from_hash
Instance Attribute Details
16
17
18
|
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input_hosted_checkout.rb', line 16
def payment_product302_specific_input
@payment_product302_specific_input
end
|
16
17
18
|
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input_hosted_checkout.rb', line 16
def payment_product320_specific_input
@payment_product320_specific_input
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input_hosted_checkout.rb', line 30
def from_hash(hash)
super
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
end
|
#to_h ⇒ Hash
23
24
25
26
27
28
|
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input_hosted_checkout.rb', line 23
def to_h
hash = super
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
end
|