Class: Worldline::Connect::SDK::V1::Domain::MobilePaymentMethodSpecificOutput
- Inherits:
-
AbstractPaymentMethodSpecificOutput
- Object
- Domain::DataObject
- AbstractPaymentMethodSpecificOutput
- Worldline::Connect::SDK::V1::Domain::MobilePaymentMethodSpecificOutput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb
Instance Attribute Summary collapse
-
#authorisation_code ⇒ String
The current value of authorisation_code.
-
#fraud_results ⇒ Worldline::Connect::SDK::V1::Domain::CardFraudResults
The current value of fraud_results.
-
#initial_scheme_transaction_id ⇒ String
The current value of initial_scheme_transaction_id.
-
#network ⇒ String
The current value of network.
-
#payment_data ⇒ Worldline::Connect::SDK::V1::Domain::MobilePaymentData
The current value of payment_data.
-
#scheme_transaction_id ⇒ String
The current value of scheme_transaction_id.
-
#three_d_secure_results ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults
The current value of three_d_secure_results.
-
#token ⇒ String
The current value of token.
Attributes inherited from AbstractPaymentMethodSpecificOutput
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#authorisation_code ⇒ String
Returns the current value of authorisation_code.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def @authorisation_code end |
#fraud_results ⇒ Worldline::Connect::SDK::V1::Domain::CardFraudResults
Returns the current value of fraud_results.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def fraud_results @fraud_results end |
#initial_scheme_transaction_id ⇒ String
Returns the current value of initial_scheme_transaction_id.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#network ⇒ String
Returns the current value of network.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def network @network end |
#payment_data ⇒ Worldline::Connect::SDK::V1::Domain::MobilePaymentData
Returns the current value of payment_data.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def payment_data @payment_data end |
#scheme_transaction_id ⇒ String
Returns the current value of scheme_transaction_id.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def scheme_transaction_id @scheme_transaction_id end |
#three_d_secure_results ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults
Returns the current value of three_d_secure_results.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def three_d_secure_results @three_d_secure_results end |
#token ⇒ String
Returns the current value of token.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 23 def token @token end |
Instance Method Details
#from_hash(hash) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 55 def from_hash(hash) super if hash.has_key? 'authorisationCode' @authorisation_code = hash['authorisationCode'] end if hash.has_key? 'fraudResults' raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash @fraud_results = Worldline::Connect::SDK::V1::Domain::CardFraudResults.new_from_hash(hash['fraudResults']) end if hash.has_key? 'initialSchemeTransactionId' @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] end if hash.has_key? 'network' @network = hash['network'] end if hash.has_key? 'paymentData' raise TypeError, "value '%s' is not a Hash" % [hash['paymentData']] unless hash['paymentData'].is_a? Hash @payment_data = Worldline::Connect::SDK::V1::Domain::MobilePaymentData.new_from_hash(hash['paymentData']) end if hash.has_key? 'schemeTransactionId' @scheme_transaction_id = hash['schemeTransactionId'] end if hash.has_key? 'threeDSecureResults' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecureResults']] unless hash['threeDSecureResults'].is_a? Hash @three_d_secure_results = Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults.new_from_hash(hash['threeDSecureResults']) end if hash.has_key? 'token' @token = hash['token'] end end |
#to_h ⇒ Hash
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb', line 42 def to_h hash = super hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil? hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil? hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil? hash['network'] = @network unless @network.nil? hash['paymentData'] = @payment_data.to_h unless @payment_data.nil? hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil? hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil? hash['token'] = @token unless @token.nil? hash end |