Class: Io::Flow::V0::Models::SetupCompleted

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

Overview

The onboarding setup is completed and the organization is ready to process order.

Instance Attribute Summary collapse

Attributes inherited from OnboardingState

#discriminator

Instance Method Summary collapse

Methods inherited from OnboardingState

from_json, #to_hash

Constructor Details

#initialize(incoming = {}) ⇒ SetupCompleted

Returns a new instance of SetupCompleted.



65792
65793
65794
65795
65796
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65792

def initialize(incoming={})
  super(:discriminator => OnboardingState::Types::SETUP_COMPLETED)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @third_party_logistics_guid = (x = opts.delete(:third_party_logistics_guid); x.nil? ? nil : HttpClient::Preconditions.assert_class('third_party_logistics_guid', x, String))
end

Instance Attribute Details

#third_party_logistics_guidObject (readonly)

Returns the value of attribute third_party_logistics_guid.



65790
65791
65792
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65790

def third_party_logistics_guid
  @third_party_logistics_guid
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



65802
65803
65804
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65802

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

#subtype_to_hashObject



65806
65807
65808
65809
65810
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65806

def subtype_to_hash
  {
    :third_party_logistics_guid => third_party_logistics_guid
  }
end

#to_jsonObject



65798
65799
65800
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65798

def to_json
  JSON.dump(to_hash)
end