Class: OnlinePayments::SDK::Domain::PaymentProduct130SpecificThreeDSecure
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProduct130SpecificThreeDSecure
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb
Instance Attribute Summary collapse
-
#acquirer_exemption ⇒ true/false
The current value of acquirer_exemption.
-
#merchant_score ⇒ String
The current value of merchant_score.
-
#number_of_items ⇒ Integer
The current value of number_of_items.
-
#usecase ⇒ String
The current value of usecase.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#acquirer_exemption ⇒ true/false
Returns the current value of acquirer_exemption.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13 def acquirer_exemption @acquirer_exemption end |
#merchant_score ⇒ String
Returns the current value of merchant_score.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13 def merchant_score @merchant_score end |
#number_of_items ⇒ Integer
Returns the current value of number_of_items.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13 def number_of_items @number_of_items end |
#usecase ⇒ String
Returns the current value of usecase.
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13 def usecase @usecase end |
Instance Method Details
#from_hash(hash) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 33 def from_hash(hash) super if hash.has_key? 'acquirerExemption' @acquirer_exemption = hash['acquirerExemption'] end if hash.has_key? 'merchantScore' @merchant_score = hash['merchantScore'] end if hash.has_key? 'numberOfItems' @number_of_items = hash['numberOfItems'] end if hash.has_key? 'usecase' @usecase = hash['usecase'] end end |
#to_h ⇒ Hash
24 25 26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 24 def to_h hash = super hash['acquirerExemption'] = @acquirer_exemption unless @acquirer_exemption.nil? hash['merchantScore'] = @merchant_score unless @merchant_score.nil? hash['numberOfItems'] = @number_of_items unless @number_of_items.nil? hash['usecase'] = @usecase unless @usecase.nil? hash end |