Class: OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput
- Defined in:
- lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb
Instance Attribute Summary collapse
-
#acceptance ⇒ OnlinePayments::SDK::Domain::Acceptance?
The current value of acceptance.
-
#acquirer_information ⇒ OnlinePayments::SDK::Domain::AcquirerInformation?
The current value of acquirer_information.
-
#authenticated_amount ⇒ Integer?
The current value of authenticated_amount.
-
#authorisation_code ⇒ String?
The current value of authorisation_code.
-
#card ⇒ OnlinePayments::SDK::Domain::CardEssentials?
The current value of card.
-
#click_to_pay ⇒ OnlinePayments::SDK::Domain::ClickToPay?
The current value of click_to_pay.
-
#cobrand_selection_indicator ⇒ String?
The current value of cobrand_selection_indicator.
-
#crm_token ⇒ OnlinePayments::SDK::Domain::CrmToken?
The current value of crm_token.
-
#currency_conversion ⇒ OnlinePayments::SDK::Domain::CurrencyConversion?
The current value of currency_conversion.
-
#external_token_linked ⇒ OnlinePayments::SDK::Domain::ExternalTokenLinked?
The current value of external_token_linked.
-
#fraud_results ⇒ OnlinePayments::SDK::Domain::CardFraudResults?
The current value of fraud_results.
-
#initial_scheme_transaction_id ⇒ String?
The current value of initial_scheme_transaction_id.
-
#network_token_data ⇒ OnlinePayments::SDK::Domain::NetworkTokenEssentials?
The current value of network_token_data.
-
#payment_account_reference ⇒ String?
The current value of payment_account_reference.
-
#payment_option ⇒ String?
The current value of payment_option.
-
#payment_product3208_specific_output ⇒ OnlinePayments::SDK::Domain::PaymentProduct3208SpecificOutput?
The current value of payment_product3208_specific_output.
-
#payment_product3209_specific_output ⇒ OnlinePayments::SDK::Domain::PaymentProduct3209SpecificOutput?
The current value of payment_product3209_specific_output.
-
#payment_product_id ⇒ Integer?
The current value of payment_product_id.
-
#reattempt_instructions ⇒ OnlinePayments::SDK::Domain::ReattemptInstructions?
The current value of reattempt_instructions.
-
#scheme_reference_data ⇒ String?
The current value of scheme_reference_data.
-
#scheme_transaction_id ⇒ String?
The current value of scheme_transaction_id.
-
#three_d_secure_results ⇒ OnlinePayments::SDK::Domain::ThreeDSecureResults?
The current value of three_d_secure_results.
-
#token ⇒ String?
The current value of token.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#acceptance ⇒ OnlinePayments::SDK::Domain::Acceptance?
Returns the current value of acceptance.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def acceptance @acceptance end |
#acquirer_information ⇒ OnlinePayments::SDK::Domain::AcquirerInformation?
Returns the current value of acquirer_information.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def acquirer_information @acquirer_information end |
#authenticated_amount ⇒ Integer?
Returns the current value of authenticated_amount.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def authenticated_amount @authenticated_amount end |
#authorisation_code ⇒ String?
Returns the current value of authorisation_code.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def @authorisation_code end |
#card ⇒ OnlinePayments::SDK::Domain::CardEssentials?
Returns the current value of card.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def card @card end |
#click_to_pay ⇒ OnlinePayments::SDK::Domain::ClickToPay?
Returns the current value of click_to_pay.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def click_to_pay @click_to_pay end |
#cobrand_selection_indicator ⇒ String?
Returns the current value of cobrand_selection_indicator.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def cobrand_selection_indicator @cobrand_selection_indicator end |
#crm_token ⇒ OnlinePayments::SDK::Domain::CrmToken?
Returns the current value of crm_token.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def crm_token @crm_token end |
#currency_conversion ⇒ OnlinePayments::SDK::Domain::CurrencyConversion?
Returns the current value of currency_conversion.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def currency_conversion @currency_conversion end |
#external_token_linked ⇒ OnlinePayments::SDK::Domain::ExternalTokenLinked?
Returns the current value of external_token_linked.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def external_token_linked @external_token_linked end |
#fraud_results ⇒ OnlinePayments::SDK::Domain::CardFraudResults?
Returns the current value of fraud_results.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def fraud_results @fraud_results end |
#initial_scheme_transaction_id ⇒ String?
Returns the current value of initial_scheme_transaction_id.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#network_token_data ⇒ OnlinePayments::SDK::Domain::NetworkTokenEssentials?
Returns the current value of network_token_data.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def network_token_data @network_token_data end |
#payment_account_reference ⇒ String?
Returns the current value of payment_account_reference.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def payment_account_reference @payment_account_reference end |
#payment_option ⇒ String?
Returns the current value of payment_option.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def payment_option @payment_option end |
#payment_product3208_specific_output ⇒ OnlinePayments::SDK::Domain::PaymentProduct3208SpecificOutput?
Returns the current value of payment_product3208_specific_output.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def payment_product3208_specific_output @payment_product3208_specific_output end |
#payment_product3209_specific_output ⇒ OnlinePayments::SDK::Domain::PaymentProduct3209SpecificOutput?
Returns the current value of payment_product3209_specific_output.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def payment_product3209_specific_output @payment_product3209_specific_output end |
#payment_product_id ⇒ Integer?
Returns the current value of payment_product_id.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def payment_product_id @payment_product_id end |
#reattempt_instructions ⇒ OnlinePayments::SDK::Domain::ReattemptInstructions?
Returns the current value of reattempt_instructions.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def reattempt_instructions @reattempt_instructions end |
#scheme_reference_data ⇒ String?
Returns the current value of scheme_reference_data.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def scheme_reference_data @scheme_reference_data end |
#scheme_transaction_id ⇒ String?
Returns the current value of scheme_transaction_id.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def scheme_transaction_id @scheme_transaction_id end |
#three_d_secure_results ⇒ OnlinePayments::SDK::Domain::ThreeDSecureResults?
Returns the current value of three_d_secure_results.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def three_d_secure_results @three_d_secure_results end |
#token ⇒ String?
Returns the current value of token.
45 46 47 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 45 def token @token end |
Instance Method Details
#from_hash(hash) ⇒ Object
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 122 def from_hash(hash) super if hash.has_key? 'acceptance' raise TypeError, "value '%s' is not a Hash" % [hash['acceptance']] unless hash['acceptance'].is_a? Hash @acceptance = OnlinePayments::SDK::Domain::Acceptance.new_from_hash(hash['acceptance']) end if hash.has_key? 'acquirerInformation' raise TypeError, "value '%s' is not a Hash" % [hash['acquirerInformation']] unless hash['acquirerInformation'].is_a? Hash @acquirer_information = OnlinePayments::SDK::Domain::AcquirerInformation.new_from_hash(hash['acquirerInformation']) end if hash.has_key? 'authenticatedAmount' @authenticated_amount = hash['authenticatedAmount'] end 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 = OnlinePayments::SDK::Domain::CardEssentials.new_from_hash(hash['card']) end if hash.has_key? 'clickToPay' raise TypeError, "value '%s' is not a Hash" % [hash['clickToPay']] unless hash['clickToPay'].is_a? Hash @click_to_pay = OnlinePayments::SDK::Domain::ClickToPay.new_from_hash(hash['clickToPay']) end if hash.has_key? 'cobrandSelectionIndicator' @cobrand_selection_indicator = hash['cobrandSelectionIndicator'] end if hash.has_key? 'crmToken' raise TypeError, "value '%s' is not a Hash" % [hash['crmToken']] unless hash['crmToken'].is_a? Hash @crm_token = OnlinePayments::SDK::Domain::CrmToken.new_from_hash(hash['crmToken']) end if hash.has_key? 'currencyConversion' raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversion']] unless hash['currencyConversion'].is_a? Hash @currency_conversion = OnlinePayments::SDK::Domain::CurrencyConversion.new_from_hash(hash['currencyConversion']) end if hash.has_key? 'externalTokenLinked' raise TypeError, "value '%s' is not a Hash" % [hash['externalTokenLinked']] unless hash['externalTokenLinked'].is_a? Hash @external_token_linked = OnlinePayments::SDK::Domain::ExternalTokenLinked.new_from_hash(hash['externalTokenLinked']) end if hash.has_key? 'fraudResults' raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash @fraud_results = OnlinePayments::SDK::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 = OnlinePayments::SDK::Domain::NetworkTokenEssentials.new_from_hash(hash['networkTokenData']) end if hash.has_key? 'paymentAccountReference' @payment_account_reference = hash['paymentAccountReference'] end if hash.has_key? 'paymentOption' @payment_option = hash['paymentOption'] end if hash.has_key? 'paymentProduct3208SpecificOutput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificOutput']] unless hash['paymentProduct3208SpecificOutput'].is_a? Hash @payment_product3208_specific_output = OnlinePayments::SDK::Domain::PaymentProduct3208SpecificOutput.new_from_hash(hash['paymentProduct3208SpecificOutput']) end if hash.has_key? 'paymentProduct3209SpecificOutput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3209SpecificOutput']] unless hash['paymentProduct3209SpecificOutput'].is_a? Hash @payment_product3209_specific_output = OnlinePayments::SDK::Domain::PaymentProduct3209SpecificOutput.new_from_hash(hash['paymentProduct3209SpecificOutput']) end if hash.has_key? 'paymentProductId' @payment_product_id = hash['paymentProductId'] end if hash.has_key? 'reattemptInstructions' raise TypeError, "value '%s' is not a Hash" % [hash['reattemptInstructions']] unless hash['reattemptInstructions'].is_a? Hash @reattempt_instructions = OnlinePayments::SDK::Domain::ReattemptInstructions.new_from_hash(hash['reattemptInstructions']) end if hash.has_key? 'schemeReferenceData' @scheme_reference_data = hash['schemeReferenceData'] 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 = OnlinePayments::SDK::Domain::ThreeDSecureResults.new_from_hash(hash['threeDSecureResults']) end if hash.has_key? 'token' @token = hash['token'] end end |
#to_h ⇒ Hash
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 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb', line 94 def to_h hash = super hash['acceptance'] = @acceptance.to_h unless @acceptance.nil? hash['acquirerInformation'] = @acquirer_information.to_h unless @acquirer_information.nil? hash['authenticatedAmount'] = @authenticated_amount unless @authenticated_amount.nil? hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil? hash['card'] = @card.to_h unless @card.nil? hash['clickToPay'] = @click_to_pay.to_h unless @click_to_pay.nil? hash['cobrandSelectionIndicator'] = @cobrand_selection_indicator unless @cobrand_selection_indicator.nil? hash['crmToken'] = @crm_token.to_h unless @crm_token.nil? hash['currencyConversion'] = @currency_conversion.to_h unless @currency_conversion.nil? hash['externalTokenLinked'] = @external_token_linked.to_h unless @external_token_linked.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['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.nil? hash['paymentOption'] = @payment_option unless @payment_option.nil? hash['paymentProduct3208SpecificOutput'] = @payment_product3208_specific_output.to_h unless @payment_product3208_specific_output.nil? hash['paymentProduct3209SpecificOutput'] = @payment_product3209_specific_output.to_h unless @payment_product3209_specific_output.nil? hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil? hash['reattemptInstructions'] = @reattempt_instructions.to_h unless @reattempt_instructions.nil? hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_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 |