Class: Ingenico::Connect::SDK::Domain::Hostedcheckout::HostedCheckoutSpecificInput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Hostedcheckout::HostedCheckoutSpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb
Instance Attribute Summary collapse
-
#is_recurring ⇒ Object
true/false.
-
#locale ⇒ Object
String.
- #payment_product_filters ⇒ Object
-
#return_url ⇒ Object
String.
-
#show_result_page ⇒ Object
true/false.
-
#tokens ⇒ Object
String.
-
#variant ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#is_recurring ⇒ Object
true/false
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 15 def is_recurring @is_recurring end |
#locale ⇒ Object
String
18 19 20 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 18 def locale @locale end |
#payment_product_filters ⇒ Object
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21 def payment_product_filters @payment_product_filters end |
#return_url ⇒ Object
String
24 25 26 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 24 def return_url @return_url end |
#show_result_page ⇒ Object
true/false
27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 27 def show_result_page @show_result_page end |
#tokens ⇒ Object
String
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 30 def tokens @tokens end |
#variant ⇒ Object
String
33 34 35 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 33 def variant @variant end |
Instance Method Details
#from_hash(hash) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 47 def from_hash(hash) super if hash.has_key?('isRecurring') @is_recurring = hash['isRecurring'] end if hash.has_key?('locale') @locale = hash['locale'] end if hash.has_key?('paymentProductFilters') if !(hash['paymentProductFilters'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductFilters']] end @payment_product_filters = Ingenico::Connect::SDK::Domain::Hostedcheckout::PaymentProductFiltersHostedCheckout.new_from_hash(hash['paymentProductFilters']) end if hash.has_key?('returnUrl') @return_url = hash['returnUrl'] end if hash.has_key?('showResultPage') @show_result_page = hash['showResultPage'] end if hash.has_key?('tokens') @tokens = hash['tokens'] end if hash.has_key?('variant') @variant = hash['variant'] end end |
#to_h ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 35 def to_h hash = super add_to_hash(hash, 'isRecurring', @is_recurring) add_to_hash(hash, 'locale', @locale) add_to_hash(hash, 'paymentProductFilters', @payment_product_filters) add_to_hash(hash, 'returnUrl', @return_url) add_to_hash(hash, 'showResultPage', @show_result_page) add_to_hash(hash, 'tokens', @tokens) add_to_hash(hash, 'variant', @variant) hash end |