Class: Io::Flow::V0::Models::SetupCompleted
- Inherits:
-
OnboardingState
- Object
- OnboardingState
- Io::Flow::V0::Models::SetupCompleted
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
The onboarding setup is completed and the organization is ready to process order.
Instance Attribute Summary collapse
-
#third_party_logistics_guid ⇒ Object
readonly
Returns the value of attribute third_party_logistics_guid.
Attributes inherited from OnboardingState
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SetupCompleted
constructor
A new instance of SetupCompleted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from OnboardingState
Constructor Details
#initialize(incoming = {}) ⇒ SetupCompleted
Returns a new instance of SetupCompleted.
65792 65793 65794 65795 65796 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65792 def initialize(incoming={}) super(:discriminator => OnboardingState::Types::SETUP_COMPLETED) opts = HttpClient::Helper.symbolize_keys(incoming) @third_party_logistics_guid = (x = opts.delete(:third_party_logistics_guid); x.nil? ? nil : HttpClient::Preconditions.assert_class('third_party_logistics_guid', x, String)) end |
Instance Attribute Details
#third_party_logistics_guid ⇒ Object (readonly)
Returns the value of attribute third_party_logistics_guid.
65790 65791 65792 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65790 def third_party_logistics_guid @third_party_logistics_guid end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
65802 65803 65804 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65802 def copy(incoming={}) SetupCompleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
65806 65807 65808 65809 65810 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65806 def subtype_to_hash { :third_party_logistics_guid => third_party_logistics_guid } end |
#to_json ⇒ Object
65798 65799 65800 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65798 def to_json JSON.dump(to_hash) end |