Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#birth_cityString

Returns the current value of birth_city.

Returns:

  • (String)

    the current value of birth_city



16
17
18
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 16

def birth_city
  @birth_city
end

#birth_countryString

Returns the current value of birth_country.

Returns:

  • (String)

    the current value of birth_country



16
17
18
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 16

def birth_country
  @birth_country
end

#birth_zip_codeString

Returns the current value of birth_zip_code.

Returns:

  • (String)

    the current value of birth_zip_code



16
17
18
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 16

def birth_zip_code
  @birth_zip_code
end

#channelString

Returns the current value of channel.

Returns:

  • (String)

    the current value of channel



16
17
18
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 16

def channel
  @channel
end

#loyalty_card_numberString

Returns the current value of loyalty_card_number.

Returns:

  • (String)

    the current value of loyalty_card_number



16
17
18
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 16

def loyalty_card_number
  @loyalty_card_number
end

#second_installment_payment_dateString

Returns the current value of second_installment_payment_date.

Returns:

  • (String)

    the current value of second_installment_payment_date



16
17
18
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 16

def second_installment_payment_date
  @second_installment_payment_date
end

#session_durationInteger

Returns the current value of session_duration.

Returns:

  • (Integer)

    the current value of session_duration



16
17
18
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 16

def session_duration
  @session_duration
end

Instance Method Details

#from_hash(hash) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 45

def from_hash(hash)
  super
  if hash.has_key? 'birthCity'
    @birth_city = hash['birthCity']
  end
  if hash.has_key? 'birthCountry'
    @birth_country = hash['birthCountry']
  end
  if hash.has_key? 'birthZipCode'
    @birth_zip_code = hash['birthZipCode']
  end
  if hash.has_key? 'channel'
    @channel = hash['channel']
  end
  if hash.has_key? 'loyaltyCardNumber'
    @loyalty_card_number = hash['loyaltyCardNumber']
  end
  if hash.has_key? 'secondInstallmentPaymentDate'
    @second_installment_payment_date = hash['secondInstallmentPaymentDate']
  end
  if hash.has_key? 'sessionDuration'
    @session_duration = hash['sessionDuration']
  end
end

#to_hHash

Returns:

  • (Hash)


33
34
35
36
37
38
39
40
41
42
43
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb', line 33

def to_h
  hash = super
  hash['birthCity'] = @birth_city unless @birth_city.nil?
  hash['birthCountry'] = @birth_country unless @birth_country.nil?
  hash['birthZipCode'] = @birth_zip_code unless @birth_zip_code.nil?
  hash['channel'] = @channel unless @channel.nil?
  hash['loyaltyCardNumber'] = @loyalty_card_number unless @loyalty_card_number.nil?
  hash['secondInstallmentPaymentDate'] = @second_installment_payment_date unless @second_installment_payment_date.nil?
  hash['sessionDuration'] = @session_duration unless @session_duration.nil?
  hash
end