Class: Io::Flow::V0::Models::OnlineAuthorizationDetailsUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from OnlineAuthorizationDetails

#discriminator

Instance Method Summary collapse

Methods inherited from OnlineAuthorizationDetails

from_json

Constructor Details

#initialize(incoming = {}) ⇒ OnlineAuthorizationDetailsUndefinedType

Returns a new instance of OnlineAuthorizationDetailsUndefinedType.



13028
13029
13030
13031
13032
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13028

def initialize(incoming={})
  super(:discriminator => 'undefined_type')
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
end

Instance Attribute Details

#name ⇒ Object (readonly)

Returns the value of attribute name.



13026
13027
13028
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13026

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



13038
13039
13040
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13038

def copy(incoming={})
  raise 'Operation not supported for undefined type'
end

#subtype_to_hash ⇒ Object



13034
13035
13036
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13034

def subtype_to_hash
  raise 'Unable to serialize undefined type to json'
end

#to_hash ⇒ Object



13042
13043
13044
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13042

def to_hash
  raise 'Operation not supported for undefined type'
end