class Io::Flow::V0::Models::SetupBlocked

The onboarding process is blocked by an issue that requires escalation

Attributes

reasons[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 65763
def initialize(incoming={})
  super(:discriminator => OnboardingState::Types::SETUP_BLOCKED)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:reasons], 'SetupBlocked')
  @reasons = HttpClient::Preconditions.assert_class('reasons', opts.delete(:reasons), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::OnboardingBlockedReason) ? x : ::Io::Flow::V0::Models::OnboardingBlockedReason.apply(x)) }
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 65774
def copy(incoming={})
  SetupBlocked.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
subtype_to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 65778
def subtype_to_hash
  {
    :reasons => reasons.map { |o| o.value }
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 65770
def to_json
  JSON.dump(to_hash)
end