Class: Worldline::Connect::SDK::V1::Domain::CardPaymentMethodSpecificOutput
- Inherits:
-
AbstractPaymentMethodSpecificOutput
- Object
- Domain::DataObject
- AbstractPaymentMethodSpecificOutput
- Worldline::Connect::SDK::V1::Domain::CardPaymentMethodSpecificOutput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb
Instance Attribute Summary collapse
-
#authorisation_code ⇒ String
The current value of authorisation_code.
-
#card ⇒ Worldline::Connect::SDK::V1::Domain::CardEssentials
The current value of card.
-
#click_to_pay_used ⇒ true/false
The current value of click_to_pay_used.
-
#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_token_data ⇒ Worldline::Connect::SDK::V1::Domain::NetworkTokenData
The current value of network_token_data.
-
#network_token_used ⇒ true/false
The current value of network_token_used.
-
#original_transaction_link_id ⇒ String
The current value of original_transaction_link_id.
-
#payment_account_reference ⇒ String
The current value of payment_account_reference.
-
#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.
-
#transaction_link_id ⇒ String
The current value of transaction_link_id.
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.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def @authorisation_code end |
#card ⇒ Worldline::Connect::SDK::V1::Domain::CardEssentials
Returns the current value of card.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def card @card end |
#click_to_pay_used ⇒ true/false
Returns the current value of click_to_pay_used.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def click_to_pay_used @click_to_pay_used end |
#fraud_results ⇒ Worldline::Connect::SDK::V1::Domain::CardFraudResults
Returns the current value of fraud_results.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def fraud_results @fraud_results end |
#initial_scheme_transaction_id ⇒ String
Returns the current value of initial_scheme_transaction_id.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#network_token_data ⇒ Worldline::Connect::SDK::V1::Domain::NetworkTokenData
Returns the current value of network_token_data.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def network_token_data @network_token_data end |
#network_token_used ⇒ true/false
Returns the current value of network_token_used.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def network_token_used @network_token_used end |
#original_transaction_link_id ⇒ String
Returns the current value of original_transaction_link_id.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def original_transaction_link_id @original_transaction_link_id end |
#payment_account_reference ⇒ String
Returns the current value of payment_account_reference.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def payment_account_reference @payment_account_reference end |
#scheme_transaction_id ⇒ String
Returns the current value of scheme_transaction_id.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 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.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def three_d_secure_results @three_d_secure_results end |
#token ⇒ String
Returns the current value of token.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def token @token end |
#transaction_link_id ⇒ String
Returns the current value of transaction_link_id.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 29 def transaction_link_id @transaction_link_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 76 def from_hash(hash) super if hash.has_key? 'authorisationCode' @authorisation_code = hash['authorisationCode'] end if hash.has_key? 'card' raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash @card = Worldline::Connect::SDK::V1::Domain::CardEssentials.new_from_hash(hash['card']) end if hash.has_key? 'clickToPayUsed' @click_to_pay_used = hash['clickToPayUsed'] 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? 'networkTokenData' raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash @network_token_data = Worldline::Connect::SDK::V1::Domain::NetworkTokenData.new_from_hash(hash['networkTokenData']) end if hash.has_key? 'networkTokenUsed' @network_token_used = hash['networkTokenUsed'] end if hash.has_key? 'originalTransactionLinkId' @original_transaction_link_id = hash['originalTransactionLinkId'] end if hash.has_key? 'paymentAccountReference' @payment_account_reference = hash['paymentAccountReference'] 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 if hash.has_key? 'transactionLinkId' @transaction_link_id = hash['transactionLinkId'] end end |
#to_h ⇒ Hash
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb', line 58 def to_h hash = super hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil? hash['card'] = @card.to_h unless @card.nil? hash['clickToPayUsed'] = @click_to_pay_used unless @click_to_pay_used.nil? hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil? hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil? hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil? hash['networkTokenUsed'] = @network_token_used unless @network_token_used.nil? hash['originalTransactionLinkId'] = @original_transaction_link_id unless @original_transaction_link_id.nil? hash['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.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['transactionLinkId'] = @transaction_link_id unless @transaction_link_id.nil? hash end |