Class: Ingenico::Connect::SDK::Domain::Hostedcheckout::HostedCheckoutSpecificInput

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#is_recurringtrue/false

Returns the current value of is_recurring.

Returns:

  • (true/false)

    the current value of is_recurring



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def is_recurring
  @is_recurring
end

#localeString

Returns the current value of locale.

Returns:

  • (String)

    the current value of locale



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def locale
  @locale
end

#payment_product_filtersIngenico::Connect::SDK::Domain::Hostedcheckout::PaymentProductFiltersHostedCheckout

Returns the current value of payment_product_filters.

Returns:



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_cancel_statetrue/false

Returns the current value of return_cancel_state.

Returns:

  • (true/false)

    the current value of return_cancel_state



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def return_cancel_state
  @return_cancel_state
end

#return_urlString

Returns the current value of return_url.

Returns:

  • (String)

    the current value of return_url



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def return_url
  @return_url
end

#show_result_pagetrue/false

Returns the current value of show_result_page.

Returns:

  • (true/false)

    the current value of show_result_page



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def show_result_page
  @show_result_page
end

#tokensString

Returns the current value of tokens.

Returns:

  • (String)

    the current value of tokens



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def tokens
  @tokens
end

#validate_shopping_carttrue/false

Returns the current value of validate_shopping_cart.

Returns:

  • (true/false)

    the current value of validate_shopping_cart



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def validate_shopping_cart
  @validate_shopping_cart
end

#variantString

Returns the current value of variant.

Returns:

  • (String)

    the current value of variant



21
22
23
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 21

def variant
  @variant
end

Instance Method Details

#from_hash(hash) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 56

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'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductFilters']] unless hash['paymentProductFilters'].is_a? Hash
    @payment_product_filters = Ingenico::Connect::SDK::Domain::Hostedcheckout::PaymentProductFiltersHostedCheckout.new_from_hash(hash['paymentProductFilters'])
  end
  if hash.has_key? 'returnCancelState'
    @return_cancel_state = hash['returnCancelState']
  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? 'validateShoppingCart'
    @validate_shopping_cart = hash['validateShoppingCart']
  end
  if hash.has_key? 'variant'
    @variant = hash['variant']
  end
end

#to_hHash

Returns:

  • (Hash)


42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb', line 42

def to_h
  hash = super
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
  hash['locale'] = @locale unless @locale.nil?
  hash['paymentProductFilters'] = @payment_product_filters.to_h unless @payment_product_filters.nil?
  hash['returnCancelState'] = @return_cancel_state unless @return_cancel_state.nil?
  hash['returnUrl'] = @return_url unless @return_url.nil?
  hash['showResultPage'] = @show_result_page unless @show_result_page.nil?
  hash['tokens'] = @tokens unless @tokens.nil?
  hash['validateShoppingCart'] = @validate_shopping_cart unless @validate_shopping_cart.nil?
  hash['variant'] = @variant unless @variant.nil?
  hash
end