Class: Ingenico::Connect::SDK::Domain::Product::MobilePaymentProductSession302SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

new_from_hash

Instance Attribute Details

#display_nameString

Returns the current value of display_name.

Returns:

  • (String)

    the current value of display_name



14
15
16
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 14

def display_name
  @display_name
end

#domain_nameString

Returns the current value of domain_name.

Returns:

  • (String)

    the current value of domain_name



14
15
16
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 14

def domain_name
  @domain_name
end

#validation_urlString

Returns the current value of validation_url.

Returns:

  • (String)

    the current value of validation_url



14
15
16
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 14

def validation_url
  @validation_url
end

Instance Method Details

#from_hash(hash) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 31

def from_hash(hash)
  super
  if hash.has_key? 'displayName'
    @display_name = hash['displayName']
  end
  if hash.has_key? 'domainName'
    @domain_name = hash['domainName']
  end
  if hash.has_key? 'validationUrl'
    @validation_url = hash['validationUrl']
  end
end

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
29
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 23

def to_h
  hash = super
  hash['displayName'] = @display_name unless @display_name.nil?
  hash['domainName'] = @domain_name unless @domain_name.nil?
  hash['validationUrl'] = @validation_url unless @validation_url.nil?
  hash
end