Class: OnlinePayments::SDK::Domain::CardFraudResults
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::CardFraudResults
- Defined in:
- lib/onlinepayments/sdk/domain/card_fraud_results.rb
Instance Attribute Summary collapse
-
#avs_result ⇒ String
The current value of avs_result.
-
#cvv_result ⇒ String
The current value of cvv_result.
-
#fraud_service_result ⇒ String
The current value of fraud_service_result.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#avs_result ⇒ String
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/card_fraud_results.rb', line 12 def avs_result @avs_result end |
#cvv_result ⇒ String
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/card_fraud_results.rb', line 12 def cvv_result @cvv_result end |
#fraud_service_result ⇒ String
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/card_fraud_results.rb', line 12 def fraud_service_result @fraud_service_result end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/card_fraud_results.rb', line 29 def from_hash(hash) super if hash.has_key? 'avsResult' @avs_result = hash['avsResult'] end if hash.has_key? 'cvvResult' @cvv_result = hash['cvvResult'] end if hash.has_key? 'fraudServiceResult' @fraud_service_result = hash['fraudServiceResult'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/card_fraud_results.rb', line 21 def to_h hash = super hash['avsResult'] = @avs_result unless @avs_result.nil? hash['cvvResult'] = @cvv_result unless @cvv_result.nil? hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil? hash end |