Class: Io::Flow::V0::Models::InstallmentPlanPaymentErrorCode
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::InstallmentPlanPaymentErrorCode
- 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 InstallmentPlanPaymentErrorCode for this value, creating a new instance for an unknown value.
-
.from_string(value) ⇒ Object
Returns the instance of InstallmentPlanPaymentErrorCode for this value, or nil if not found.
-
.invalid_authorization ⇒ Object
Indicates the specified authorization key does not exist.
-
.invalid_authorization_amount ⇒ Object
Indicates the specified authorization amount does not match the first installment in the plan.
-
.invalid_installment_plan ⇒ Object
Indicates the specified installment plan does not exist.
Instance Method Summary collapse
-
#initialize(value) ⇒ InstallmentPlanPaymentErrorCode
constructor
A new instance of InstallmentPlanPaymentErrorCode.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ InstallmentPlanPaymentErrorCode
Returns a new instance of InstallmentPlanPaymentErrorCode.
12209 12210 12211 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12209 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
12207 12208 12209 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12207 def value @value end |
Class Method Details
.ALL ⇒ Object
12229 12230 12231 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12229 def InstallmentPlanPaymentErrorCode.ALL @@all ||= [InstallmentPlanPaymentErrorCode., InstallmentPlanPaymentErrorCode., InstallmentPlanPaymentErrorCode.invalid_installment_plan] end |
.apply(value) ⇒ Object
Returns the instance of InstallmentPlanPaymentErrorCode for this value, creating a new instance for an unknown value
12214 12215 12216 12217 12218 12219 12220 12221 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12214 def InstallmentPlanPaymentErrorCode.apply(value) if value.instance_of?(InstallmentPlanPaymentErrorCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || InstallmentPlanPaymentErrorCode.new(value)) end end |
.from_string(value) ⇒ Object
Returns the instance of InstallmentPlanPaymentErrorCode for this value, or nil if not found
12224 12225 12226 12227 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12224 def InstallmentPlanPaymentErrorCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) InstallmentPlanPaymentErrorCode.ALL.find { |v| v.value == value } end |
.invalid_authorization ⇒ Object
Indicates the specified authorization key does not exist
12234 12235 12236 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12234 def InstallmentPlanPaymentErrorCode. ||= InstallmentPlanPaymentErrorCode.new('invalid_authorization') end |
.invalid_authorization_amount ⇒ Object
Indicates the specified authorization amount does not match the first installment in the plan
12240 12241 12242 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12240 def InstallmentPlanPaymentErrorCode. ||= InstallmentPlanPaymentErrorCode.new('invalid_authorization_amount') end |
.invalid_installment_plan ⇒ Object
Indicates the specified installment plan does not exist
12245 12246 12247 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12245 def InstallmentPlanPaymentErrorCode.invalid_installment_plan @@_invalid_installment_plan ||= InstallmentPlanPaymentErrorCode.new('invalid_installment_plan') end |
Instance Method Details
#to_hash ⇒ Object
12249 12250 12251 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12249 def to_hash value end |