Class: Worldline::Connect::SDK::V1::Domain::HostedMandateManagementSpecificInput

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#localeString

Returns the current value of locale.

Returns:

  • (String)

    the current value of locale



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb', line 16

def locale
  @locale
end

#return_urlString

Returns the current value of return_url.

Returns:

  • (String)

    the current value of return_url



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb', line 16

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



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb', line 16

def show_result_page
  @show_result_page
end

#variantString

Returns the current value of variant.

Returns:

  • (String)

    the current value of variant



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb', line 16

def variant
  @variant
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

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)


27
28
29
30
31
32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb', line 27

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