Class: Io::Flow::V0::Models::ApplepaySdkCreateResultActionDetails

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

Overview

Provides details from the Apple Pay create session initialization.

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 = {}) ⇒ ApplepaySdkCreateResultActionDetails

Returns a new instance of ApplepaySdkCreateResultActionDetails.



30584
30585
30586
30587
30588
30589
30590
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30584

def initialize(incoming={})
  super(:discriminator => AuthorizationResultActionDetails::Types::APPLEPAY_SDK_CREATE_RESULT_ACTION_DETAILS)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:merchant_identifier, :payment_data_request], 'ApplepaySdkCreateResultActionDetails')
  @merchant_identifier = HttpClient::Preconditions.assert_class('merchant_identifier', opts.delete(:merchant_identifier), String)
  @payment_data_request = HttpClient::Preconditions.assert_class('payment_data_request', HttpClient::Helper.to_object(opts.delete(:payment_data_request)), Hash)
end

Instance Attribute Details

#merchant_identifierObject (readonly)

Returns the value of attribute merchant_identifier.



30582
30583
30584
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30582

def merchant_identifier
  @merchant_identifier
end

#payment_data_requestObject (readonly)

Returns the value of attribute payment_data_request.



30582
30583
30584
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30582

def payment_data_request
  @payment_data_request
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



30596
30597
30598
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30596

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

#subtype_to_hashObject



30600
30601
30602
30603
30604
30605
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30600

def subtype_to_hash
  {
    :merchant_identifier => merchant_identifier,
    :payment_data_request => payment_data_request
  }
end

#to_jsonObject



30592
30593
30594
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30592

def to_json
  JSON.dump(to_hash)
end