Class: Io::Flow::V0::Models::SetupInProgress

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

Overview

The merchant is approved for onboarding by the compliance team & onboarding config automation has begun

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 = {}) ⇒ SetupInProgress

Returns a new instance of SetupInProgress.



65820
65821
65822
65823
65824
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65820

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

Instance Attribute Details

#placeholderObject (readonly)

Returns the value of attribute placeholder.



65818
65819
65820
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65818

def placeholder
  @placeholder
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



65830
65831
65832
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65830

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

#subtype_to_hashObject



65834
65835
65836
65837
65838
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65834

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



65826
65827
65828
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65826

def to_json
  JSON.dump(to_hash)
end