class Io::Flow::V0::Models::KlarnaSdkAuthorizationResultActionDetails
Provides details for Klarna authorizations (e.g. client secret to be used in the Klarna SDK).
Attributes
client_token[R]
payment_method_categories[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::AuthorizationResultActionDetails::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 47793 def initialize(incoming={}) super(:discriminator => AuthorizationResultActionDetails::Types::KLARNA_SDK_AUTHORIZATION_RESULT_ACTION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:client_token, :payment_method_categories], 'KlarnaSdkAuthorizationResultActionDetails') @client_token = HttpClient::Preconditions.assert_class('client_token', opts.delete(:client_token), String) @payment_method_categories = HttpClient::Preconditions.assert_class('payment_method_categories', opts.delete(:payment_method_categories), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::KlarnaPaymentMethodCategory) ? x : ::Io::Flow::V0::Models::KlarnaPaymentMethodCategory.new(x)) } end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47805 def copy(incoming={}) KlarnaSdkAuthorizationResultActionDetails.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 47809 def subtype_to_hash { :client_token => client_token, :payment_method_categories => payment_method_categories.map { |o| o.to_hash } } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47801 def to_json JSON.dump(to_hash) end