Class: Io::Flow::V0::Models::OrganizationPaymentMethodTag
- Inherits:
-
PaymentMethodTag
- Object
- PaymentMethodTag
- Io::Flow::V0::Models::OrganizationPaymentMethodTag
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from PaymentMethodTag
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of OrganizationPaymentMethodTag for this value, creating a new instance for an unknown value.
-
.deny ⇒ Object
A denied payment method cannot be used for an organization in any experience.
-
.from_string(value) ⇒ Object
Returns the instance of OrganizationPaymentMethodTag for this value, or nil if not found.
Instance Method Summary collapse
-
#initialize(value) ⇒ OrganizationPaymentMethodTag
constructor
A new instance of OrganizationPaymentMethodTag.
- #subtype_to_hash ⇒ Object
Methods inherited from PaymentMethodTag
Constructor Details
#initialize(value) ⇒ OrganizationPaymentMethodTag
Returns a new instance of OrganizationPaymentMethodTag.
9430 9431 9432 9433 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9430 def initialize(value) super(:name => PaymentMethodTag::Types::ORGANIZATION_PAYMENT_METHOD_TAG) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
9428 9429 9430 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9428 def value @value end |
Class Method Details
.ALL ⇒ Object
9451 9452 9453 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9451 def OrganizationPaymentMethodTag.ALL @@all ||= [OrganizationPaymentMethodTag.deny] end |
.apply(value) ⇒ Object
Returns the instance of OrganizationPaymentMethodTag for this value, creating a new instance for an unknown value
9436 9437 9438 9439 9440 9441 9442 9443 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9436 def OrganizationPaymentMethodTag.apply(value) if value.instance_of?(OrganizationPaymentMethodTag) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrganizationPaymentMethodTag.new(value)) end end |
.deny ⇒ Object
A denied payment method cannot be used for an organization in any experience.
9456 9457 9458 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9456 def OrganizationPaymentMethodTag.deny @@_deny ||= OrganizationPaymentMethodTag.new('deny') end |
.from_string(value) ⇒ Object
Returns the instance of OrganizationPaymentMethodTag for this value, or nil if not found
9446 9447 9448 9449 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9446 def OrganizationPaymentMethodTag.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrganizationPaymentMethodTag.ALL.find { |v| v.value == value } end |
Instance Method Details
#subtype_to_hash ⇒ Object
9460 9461 9462 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9460 def subtype_to_hash value end |