Class: Worldline::Connect::SDK::V1::Domain::MobilePaymentProductSession302SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#display_nameString

Returns the current value of display_name.

Returns:

  • (String)

    the current value of display_name



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

def display_name
  @display_name
end

#domain_nameString

Returns the current value of domain_name.

Returns:

  • (String)

    the current value of domain_name



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

def domain_name
  @domain_name
end

#validation_urlString

Returns the current value of validation_url.

Returns:

  • (String)

    the current value of validation_url



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

def validation_url
  @validation_url
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

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)


24
25
26
27
28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_input.rb', line 24

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