Class: Io::Flow::V0::Models::OnboardingBlockedReason

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ OnboardingBlockedReason

Returns a new instance of OnboardingBlockedReason.



22650
22651
22652
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22650

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



22648
22649
22650
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22648

def value
  @value
end

Class Method Details

.apply(value) ⇒ Object

Returns the instance of OnboardingBlockedReason for this value, creating a new instance for an unknown value



22655
22656
22657
22658
22659
22660
22661
22662
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22655

def OnboardingBlockedReason.apply(value)
  if value.instance_of?(OnboardingBlockedReason)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || OnboardingBlockedReason.new(value))
  end
end

.business_street_address_is_blankObject



22682
22683
22684
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22682

def OnboardingBlockedReason.business_street_address_is_blank
  @@_business_street_address_is_blank ||= OnboardingBlockedReason.new('business_street_address_is_blank')
end

.business_street_address_is_po_boxObject



22686
22687
22688
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22686

def OnboardingBlockedReason.business_street_address_is_po_box
  @@_business_street_address_is_po_box ||= OnboardingBlockedReason.new('business_street_address_is_po_box')
end

.from_string(value) ⇒ Object

Returns the instance of OnboardingBlockedReason for this value, or nil if not found



22665
22666
22667
22668
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22665

def OnboardingBlockedReason.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  OnboardingBlockedReason.ALL.find { |v| v.value == value }
end

.street_address_is_blank_3plObject



22674
22675
22676
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22674

def OnboardingBlockedReason.street_address_is_blank_3pl
  @@_street_address_is_blank_3pl ||= OnboardingBlockedReason.new('street_address_is_blank_3pl')
end

.street_address_is_po_box_3plObject



22678
22679
22680
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22678

def OnboardingBlockedReason.street_address_is_po_box_3pl
  @@_street_address_is_po_box_3pl ||= OnboardingBlockedReason.new('street_address_is_po_box_3pl')
end

Instance Method Details

#to_hashObject



22690
22691
22692
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22690

def to_hash
  value
end