Class: Io::Flow::V0::Models::AdyenIdentifyShopperData
- Inherits:
-
AdyenNativeData
- Object
- AdyenNativeData
- Io::Flow::V0::Models::AdyenIdentifyShopperData
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Data required to assist in identifying a customer natively.
Instance Attribute Summary collapse
-
#fingerprint_token ⇒ Object
readonly
Returns the value of attribute fingerprint_token.
Attributes inherited from AdyenNativeData
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AdyenIdentifyShopperData
constructor
A new instance of AdyenIdentifyShopperData.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AdyenNativeData
Constructor Details
#initialize(incoming = {}) ⇒ AdyenIdentifyShopperData
Returns a new instance of AdyenIdentifyShopperData.
26136 26137 26138 26139 26140 26141 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26136 def initialize(incoming={}) super(:discriminator => AdyenNativeData::Types::ADYEN_IDENTIFY_SHOPPER_DATA) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:fingerprint_token], 'AdyenIdentifyShopperData') @fingerprint_token = HttpClient::Preconditions.assert_class('fingerprint_token', opts.delete(:fingerprint_token), String) end |
Instance Attribute Details
#fingerprint_token ⇒ Object (readonly)
Returns the value of attribute fingerprint_token.
26134 26135 26136 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26134 def fingerprint_token @fingerprint_token end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
26147 26148 26149 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26147 def copy(incoming={}) AdyenIdentifyShopperData.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
26151 26152 26153 26154 26155 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26151 def subtype_to_hash { :fingerprint_token => fingerprint_token } end |
#to_json ⇒ Object
26143 26144 26145 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26143 def to_json JSON.dump(to_hash) end |