class Io::Flow::V0::Models::AdyenChallengeShopperData

Data required to assist in challenging a customer natively.

Attributes

challenge_token[R]

Public Class Methods

new(incoming={}) click to toggle source
# 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

Public Instance Methods

copy(incoming={}) click to toggle source
# 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() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29904
def subtype_to_hash
  {
    :challenge_token => challenge_token
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29896
def to_json
  JSON.dump(to_hash)
end