Class: Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentMethodSpecificInputBase
Instance Attribute Summary collapse
#expiration_period, #recurring_payment_sequence_indicator, #requires_approval, #token, #tokenize
#payment_product_id
Instance Method Summary
collapse
new_from_hash
Instance Attribute Details
13
14
15
|
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb', line 13
def payment_product840_specific_input
@payment_product840_specific_input
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb', line 24
def from_hash(hash)
super
if hash.has_key? 'paymentProduct840SpecificInput'
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash
@payment_product840_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInputBase.new_from_hash(hash['paymentProduct840SpecificInput'])
end
end
|
#to_h ⇒ Hash
18
19
20
21
22
|
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb', line 18
def to_h
hash = super
hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
hash
end
|