Class: Io::Flow::V0::Models::OrganizationOnboardingStateDeleted

Inherits:
Event
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#discriminator

Instance Method Summary collapse

Methods inherited from Event

from_json, #to_hash

Constructor Details

#initialize(incoming = {}) ⇒ OrganizationOnboardingStateDeleted

Returns a new instance of OrganizationOnboardingStateDeleted.



55078
55079
55080
55081
55082
55083
55084
55085
55086
55087
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55078

def initialize(incoming={})
  super(:discriminator => Event::Types::ORGANIZATION_ONBOARDING_STATE_DELETED)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :id, :organization_onboarding_state], 'OrganizationOnboardingStateDeleted')
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
  @organization_onboarding_state = (x = opts.delete(:organization_onboarding_state); x.is_a?(::Io::Flow::V0::Models::OrganizationOnboardingState) ? x : ::Io::Flow::V0::Models::OrganizationOnboardingState.new(x))
end

Instance Attribute Details

#event_idObject (readonly)

Returns the value of attribute event_id.



55076
55077
55078
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076

def event_id
  @event_id
end

#idObject (readonly)

Returns the value of attribute id.



55076
55077
55078
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076

def id
  @id
end

#organizationObject (readonly)

Returns the value of attribute organization.



55076
55077
55078
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076

def organization
  @organization
end

#organization_onboarding_stateObject (readonly)

Returns the value of attribute organization_onboarding_state.



55076
55077
55078
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076

def organization_onboarding_state
  @organization_onboarding_state
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



55076
55077
55078
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076

def timestamp
  @timestamp
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



55093
55094
55095
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55093

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

#subtype_to_hashObject



55097
55098
55099
55100
55101
55102
55103
55104
55105
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55097

def subtype_to_hash
  {
    :event_id => event_id,
    :timestamp => timestamp,
    :organization => organization,
    :id => id,
    :organization_onboarding_state => organization_onboarding_state.to_hash
  }
end

#to_jsonObject



55089
55090
55091
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55089

def to_json
  JSON.dump(to_hash)
end