Class: Io::Flow::V0::Models::MerchantActivated
- Inherits:
-
OnboardingState
- Object
- OnboardingState
- Io::Flow::V0::Models::MerchantActivated
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
The merchant is activated by partner
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 = {}) ⇒ MerchantActivated
constructor
A new instance of MerchantActivated.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from OnboardingState
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
#placeholder ⇒ Object (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_hash ⇒ Object
49900 49901 49902 49903 49904 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49900 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
49892 49893 49894 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49892 def to_json JSON.dump(to_hash) end |