Class: Io::Flow::V0::Models::AdyenChallengeShopperData
- Inherits:
-
AdyenNativeData
- Object
- AdyenNativeData
- Io::Flow::V0::Models::AdyenChallengeShopperData
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Data required to assist in challenging a customer natively.
Instance Attribute Summary collapse
-
#challenge_token ⇒ Object
readonly
Returns the value of attribute challenge_token.
Attributes inherited from AdyenNativeData
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AdyenChallengeShopperData
constructor
A new instance of AdyenChallengeShopperData.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AdyenNativeData
Constructor Details
#initialize(incoming = {}) ⇒ AdyenChallengeShopperData
Returns a new instance of AdyenChallengeShopperData.
29889 29890 29891 29892 29893 29894 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29889 def initialize(incoming={}) super(:discriminator => AdyenNativeData::Types::ADYEN_CHALLENGE_SHOPPER_DATA) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:challenge_token], 'AdyenChallengeShopperData') @challenge_token = HttpClient::Preconditions.assert_class('challenge_token', opts.delete(:challenge_token), String) end |
Instance Attribute Details
#challenge_token ⇒ Object (readonly)
Returns the value of attribute challenge_token.
29887 29888 29889 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29887 def challenge_token @challenge_token end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
29900 29901 29902 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29900 def copy(incoming={}) AdyenChallengeShopperData.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
29904 29905 29906 29907 29908 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29904 def subtype_to_hash { :challenge_token => challenge_token } end |
#to_json ⇒ Object
29896 29897 29898 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29896 def to_json JSON.dump(to_hash) end |