Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb
Instance Attribute Summary collapse
-
#birth_city ⇒ String
The current value of birth_city.
-
#birth_country ⇒ String
The current value of birth_country.
-
#birth_zip_code ⇒ String
The current value of birth_zip_code.
-
#channel ⇒ String
The current value of channel.
-
#loyalty_card_number ⇒ String
The current value of loyalty_card_number.
-
#second_installment_payment_date ⇒ String
The current value of second_installment_payment_date.
-
#session_duration ⇒ Integer
The current value of session_duration.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#birth_city ⇒ String
Returns 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_country ⇒ String
Returns 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_code ⇒ String
Returns 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 |
#channel ⇒ String
Returns 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_number ⇒ String
Returns 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_date ⇒ String
Returns 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_duration ⇒ Integer
Returns 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_h ⇒ 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 |