Class: OnlinePayments::SDK::Domain::PaymentProductSession302SpecificInput

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/payment_product_session302_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#display_nameString

Returns the current value of display_name.

Returns:

  • (String)

    the current value of display_name



11
12
13
# File 'lib/onlinepayments/sdk/domain/payment_product_session302_specific_input.rb', line 11

def display_name
  @display_name
end

#domain_nameString

Returns the current value of domain_name.

Returns:

  • (String)

    the current value of domain_name



11
12
13
# File 'lib/onlinepayments/sdk/domain/payment_product_session302_specific_input.rb', line 11

def domain_name
  @domain_name
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/onlinepayments/sdk/domain/payment_product_session302_specific_input.rb', line 25

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
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
# File 'lib/onlinepayments/sdk/domain/payment_product_session302_specific_input.rb', line 18

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