Class: Ingenico::Connect::SDK::Domain::Hostedmandatemanagement::HostedMandateManagementSpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

new_from_hash

Instance Attribute Details

#localeString

Returns the current value of locale.

Returns:

  • (String)

    the current value of locale



15
16
17
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb', line 15

def locale
  @locale
end

#return_urlString

Returns the current value of return_url.

Returns:

  • (String)

    the current value of return_url



15
16
17
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb', line 15

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



15
16
17
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb', line 15

def show_result_page
  @show_result_page
end

#variantString

Returns the current value of variant.

Returns:

  • (String)

    the current value of variant



15
16
17
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb', line 15

def variant
  @variant
end

Instance Method Details

#from_hash(hash) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb', line 35

def from_hash(hash)
  super
  if hash.has_key? 'locale'
    @locale = hash['locale']
  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? 'variant'
    @variant = hash['variant']
  end
end

#to_hHash

Returns:

  • (Hash)


26
27
28
29
30
31
32
33
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb', line 26

def to_h
  hash = super
  hash['locale'] = @locale unless @locale.nil?
  hash['returnUrl'] = @return_url unless @return_url.nil?
  hash['showResultPage'] = @show_result_page unless @show_result_page.nil?
  hash['variant'] = @variant unless @variant.nil?
  hash
end