Class: Io::Flow::V0::Models::MerchantActivated

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

Overview

The merchant is activated by partner

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

Returns a new instance of MerchantActivated.



49886
49887
49888
49889
49890
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49886

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



49884
49885
49886
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49884

def placeholder
  @placeholder
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



49896
49897
49898
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49896

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

#subtype_to_hashObject



49900
49901
49902
49903
49904
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49900

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



49892
49893
49894
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49892

def to_json
  JSON.dump(to_hash)
end