Class: Io::Flow::V0::Models::ExperiencePaymentMethodTag
- Inherits:
-
PaymentMethodTag
- Object
- PaymentMethodTag
- Io::Flow::V0::Models::ExperiencePaymentMethodTag
- 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 ExperiencePaymentMethodTag for this value, creating a new instance for an unknown value.
-
.display ⇒ Object
A displayed payment method will be highlighted during the checkout process for an experience.
-
.from_string(value) ⇒ Object
Returns the instance of ExperiencePaymentMethodTag for this value, or nil if not found.
Instance Method Summary collapse
-
#initialize(value) ⇒ ExperiencePaymentMethodTag
constructor
A new instance of ExperiencePaymentMethodTag.
- #subtype_to_hash ⇒ Object
Methods inherited from PaymentMethodTag
Constructor Details
#initialize(value) ⇒ ExperiencePaymentMethodTag
Returns a new instance of ExperiencePaymentMethodTag.
20301 20302 20303 20304 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20301 def initialize(value) super(:name => PaymentMethodTag::Types::EXPERIENCE_PAYMENT_METHOD_TAG, :discriminator => 'experience_payment_method_tag') @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
20299 20300 20301 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20299 def value @value end |
Class Method Details
.ALL ⇒ Object
20322 20323 20324 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20322 def ExperiencePaymentMethodTag.ALL @@all ||= [ExperiencePaymentMethodTag.display] end |
.apply(value) ⇒ Object
Returns the instance of ExperiencePaymentMethodTag for this value, creating a new instance for an unknown value
20307 20308 20309 20310 20311 20312 20313 20314 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20307 def ExperiencePaymentMethodTag.apply(value) if value.instance_of?(ExperiencePaymentMethodTag) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ExperiencePaymentMethodTag.new(value)) end end |
.display ⇒ Object
A displayed payment method will be highlighted during the checkout process for an experience.
20328 20329 20330 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20328 def ExperiencePaymentMethodTag.display @@_display ||= ExperiencePaymentMethodTag.new('display') end |
.from_string(value) ⇒ Object
Returns the instance of ExperiencePaymentMethodTag for this value, or nil if not found
20317 20318 20319 20320 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20317 def ExperiencePaymentMethodTag.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ExperiencePaymentMethodTag.ALL.find { |v| v.value == value } end |
Instance Method Details
#subtype_to_hash ⇒ Object
20332 20333 20334 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20332 def subtype_to_hash value end |