Class: Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct869SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#issuer_idString

Returns the current value of issuer_id.

Returns:

  • (String)

    the current value of issuer_id



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

def issuer_id
  @issuer_id
end

#resident_id_nameString

Returns the current value of resident_id_name.

Returns:

  • (String)

    the current value of resident_id_name



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

def resident_id_name
  @resident_id_name
end

#resident_id_numberString

Returns the current value of resident_id_number.

Returns:

  • (String)

    the current value of resident_id_number



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

def resident_id_number
  @resident_id_number
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/redirect_payment_product869_specific_input.rb', line 32

def from_hash(hash)
  super
  if hash.has_key? 'issuerId'
    @issuer_id = hash['issuerId']
  end
  if hash.has_key? 'residentIdName'
    @resident_id_name = hash['residentIdName']
  end
  if hash.has_key? 'residentIdNumber'
    @resident_id_number = hash['residentIdNumber']
  end
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['issuerId'] = @issuer_id unless @issuer_id.nil?
  hash['residentIdName'] = @resident_id_name unless @resident_id_name.nil?
  hash['residentIdNumber'] = @resident_id_number unless @resident_id_number.nil?
  hash
end