Class: Io::Flow::V0::Models::InComplianceReview

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

Overview

The merchant is under review

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

Returns a new instance of InComplianceReview.



45732
45733
45734
45735
45736
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 45732

def initialize(incoming={})
  super(:discriminator => OnboardingState::Types::IN_COMPLIANCE_REVIEW)
  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.



45730
45731
45732
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 45730

def placeholder
  @placeholder
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



45742
45743
45744
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 45742

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

#subtype_to_hashObject



45746
45747
45748
45749
45750
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 45746

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



45738
45739
45740
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 45738

def to_json
  JSON.dump(to_hash)
end