Class: Io::Flow::V0::Models::ApplepaySdkValidateResultActionDetails

Inherits:
AuthorizationResultActionDetails show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Overview

Provides details from the Apple Pay validation completion.

Instance Attribute Summary collapse

Attributes inherited from AuthorizationResultActionDetails

#discriminator

Instance Method Summary collapse

Methods inherited from AuthorizationResultActionDetails

from_json, #to_hash

Constructor Details

#initialize(incoming = {}) ⇒ ApplepaySdkValidateResultActionDetails

Returns a new instance of ApplepaySdkValidateResultActionDetails.



30614
30615
30616
30617
30618
30619
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30614

def initialize(incoming={})
  super(:discriminator => AuthorizationResultActionDetails::Types::APPLEPAY_SDK_VALIDATE_RESULT_ACTION_DETAILS)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:payment_session], 'ApplepaySdkValidateResultActionDetails')
  @payment_session = HttpClient::Preconditions.assert_class('payment_session', HttpClient::Helper.to_object(opts.delete(:payment_session)), Hash)
end

Instance Attribute Details

#payment_sessionObject (readonly)

Returns the value of attribute payment_session.



30612
30613
30614
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30612

def payment_session
  @payment_session
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



30625
30626
30627
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30625

def copy(incoming={})
  ApplepaySdkValidateResultActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#subtype_to_hashObject



30629
30630
30631
30632
30633
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30629

def subtype_to_hash
  {
    :payment_session => payment_session
  }
end

#to_jsonObject



30621
30622
30623
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30621

def to_json
  JSON.dump(to_hash)
end