Class: Io::Flow::V0::Models::FlowRole
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::FlowRole
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of FlowRole for this value, creating a new instance for an unknown value.
-
.flow_operations ⇒ Object
Can access Flow internal functions.
-
.from_string(value) ⇒ Object
Returns the instance of FlowRole for this value, or nil if not found.
-
.organization_admin ⇒ Object
Can fully administrate a merchant organization.
-
.organization_customer_service ⇒ Object
Can access customer service functions and retreive relevant data.
-
.organization_finance ⇒ Object
Can access billing and reconcilliation functions and retreive relevant data.
-
.organization_fulfillment ⇒ Object
Can access fulfillment functions and retreive relevant data.
-
.organization_marketing ⇒ Object
Can access marketing functions and retreive relevant data.
-
.organization_merchant ⇒ Object
Can access merchant functions such as analytics, billing, experiences.
Instance Method Summary collapse
-
#initialize(value) ⇒ FlowRole
constructor
A new instance of FlowRole.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ FlowRole
Returns a new instance of FlowRole.
16544 16545 16546 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16544 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
16542 16543 16544 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16542 def value @value end |
Class Method Details
.ALL ⇒ Object
16564 16565 16566 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16564 def FlowRole.ALL @@all ||= [FlowRole.organization_admin, FlowRole.organization_merchant, FlowRole.organization_customer_service, FlowRole.organization_fulfillment, FlowRole.organization_marketing, FlowRole.organization_finance, FlowRole.flow_operations] end |
.apply(value) ⇒ Object
Returns the instance of FlowRole for this value, creating a new instance for an unknown value
16549 16550 16551 16552 16553 16554 16555 16556 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16549 def FlowRole.apply(value) if value.instance_of?(FlowRole) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || FlowRole.new(value)) end end |
.flow_operations ⇒ Object
Can access Flow internal functions.
16599 16600 16601 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16599 def FlowRole.flow_operations @@_flow_operations ||= FlowRole.new('flow_operations') end |
.from_string(value) ⇒ Object
Returns the instance of FlowRole for this value, or nil if not found
16559 16560 16561 16562 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16559 def FlowRole.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) FlowRole.ALL.find { |v| v.value == value } end |
.organization_admin ⇒ Object
Can fully administrate a merchant organization.
16569 16570 16571 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16569 def FlowRole.organization_admin @@_organization_admin ||= FlowRole.new('organization_admin') end |
.organization_customer_service ⇒ Object
Can access customer service functions and retreive relevant data.
16579 16580 16581 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16579 def FlowRole.organization_customer_service @@_organization_customer_service ||= FlowRole.new('organization_customer_service') end |
.organization_finance ⇒ Object
Can access billing and reconcilliation functions and retreive relevant data.
16594 16595 16596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16594 def FlowRole.organization_finance @@_organization_finance ||= FlowRole.new('organization_finance') end |
.organization_fulfillment ⇒ Object
Can access fulfillment functions and retreive relevant data.
16584 16585 16586 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16584 def FlowRole.organization_fulfillment @@_organization_fulfillment ||= FlowRole.new('organization_fulfillment') end |
.organization_marketing ⇒ Object
Can access marketing functions and retreive relevant data.
16589 16590 16591 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16589 def FlowRole.organization_marketing @@_organization_marketing ||= FlowRole.new('organization_marketing') end |
.organization_merchant ⇒ Object
Can access merchant functions such as analytics, billing, experiences.
16574 16575 16576 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16574 def FlowRole.organization_merchant @@_organization_merchant ||= FlowRole.new('organization_merchant') end |
Instance Method Details
#to_hash ⇒ Object
16603 16604 16605 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16603 def to_hash value end |