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.
10955 10956 10957 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10955 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
10953 10954 10955 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10953 def value @value end |
Class Method Details
.ALL ⇒ Object
10975 10976 10977 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10975 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
10960 10961 10962 10963 10964 10965 10966 10967 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10960 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
10970 10971 10972 10973 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10970 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
10980 10981 10982 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10980 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
10986 10987 10988 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10986 def InstallmentPlanPaymentErrorCode. ||= InstallmentPlanPaymentErrorCode.new('invalid_authorization_amount') end |
.invalid_installment_plan ⇒ Object
Indicates the specified installment plan does not exist
10991 10992 10993 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10991 def InstallmentPlanPaymentErrorCode.invalid_installment_plan @@_invalid_installment_plan ||= InstallmentPlanPaymentErrorCode.new('invalid_installment_plan') end |
Instance Method Details
#to_hash ⇒ Object
10995 10996 10997 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 10995 def to_hash value end |