Class: Io::Flow::V0::Models::PaymentMethodDataAuthorizeKlarnaResultFailure

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

Instance Attribute Summary collapse

Attributes inherited from PaymentMethodDataAuthorizeKlarnaResult

#type

Instance Method Summary collapse

Methods inherited from PaymentMethodDataAuthorizeKlarnaResult

from_json, #to_hash

Constructor Details

#initialize(incoming = {}) ⇒ PaymentMethodDataAuthorizeKlarnaResultFailure

Returns a new instance of PaymentMethodDataAuthorizeKlarnaResultFailure.



57286
57287
57288
57289
57290
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57286

def initialize(incoming={})
  super(:type => PaymentMethodDataAuthorizeKlarnaResult::Types::PAYMENT_METHOD_DATA_AUTHORIZE_KLARNA_RESULT_FAILURE)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String))
end

Instance Attribute Details

#placeholderObject (readonly)

Returns the value of attribute placeholder.



57284
57285
57286
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57284

def placeholder
  @placeholder
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



57296
57297
57298
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57296

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

#subtype_to_hashObject



57300
57301
57302
57303
57304
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57300

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



57292
57293
57294
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57292

def to_json
  JSON.dump(to_hash)
end