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.
23892 23893 23894 23895 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23892 def initialize(value) super(:name => PaymentMethodTag::Types::ORGANIZATION_PAYMENT_METHOD_TAG, :discriminator => '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.
23890 23891 23892 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23890 def value @value end |
Class Method Details
.ALL ⇒ Object
23913 23914 23915 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23913 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
23898 23899 23900 23901 23902 23903 23904 23905 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23898 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.
23918 23919 23920 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23918 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
23908 23909 23910 23911 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23908 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
23922 23923 23924 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23922 def subtype_to_hash value end |