Class: Io::Flow::V0::Models::SetupInProgress
- Inherits:
-
OnboardingState
- Object
- OnboardingState
- Io::Flow::V0::Models::SetupInProgress
- 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
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Attributes inherited from OnboardingState
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SetupInProgress
constructor
A new instance of SetupInProgress.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from OnboardingState
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
#placeholder ⇒ Object (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_hash ⇒ Object
65834 65835 65836 65837 65838 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65834 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
65826 65827 65828 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65826 def to_json JSON.dump(to_hash) end |