Class: PCPServerSDK::Models::ExtendedCheckoutStatus
- Inherits:
-
Object
- Object
- PCPServerSDK::Models::ExtendedCheckoutStatus
- Defined in:
- lib/PCP-server-Ruby-SDK/models/extended_checkout_status.rb
Constant Summary collapse
- OPEN =
"OPEN".freeze
- DELETED =
"DELETED".freeze
- PENDING_COMPLETION =
"PENDING_COMPLETION".freeze
- COMPLETED =
"COMPLETED".freeze
- PARTIALLY_BILLED =
"PARTIALLY_BILLED".freeze
- BILLED =
"BILLED".freeze
- CHARGEBACKED =
"CHARGEBACKED".freeze
- PARTIALLY_REFUNDED =
"PARTIALLY_REFUNDED".freeze
- REFUNDED =
"REFUNDED".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
18 19 20 |
# File 'lib/PCP-server-Ruby-SDK/models/extended_checkout_status.rb', line 18 def self.all_vars @all_vars ||= [OPEN, DELETED, PENDING_COMPLETION, COMPLETED, PARTIALLY_BILLED, BILLED, CHARGEBACKED, PARTIALLY_REFUNDED, REFUNDED].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
25 26 27 |
# File 'lib/PCP-server-Ruby-SDK/models/extended_checkout_status.rb', line 25 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 35 |
# File 'lib/PCP-server-Ruby-SDK/models/extended_checkout_status.rb', line 32 def build_from_hash(value) return value if ExtendedCheckoutStatus.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ExtendedCheckoutStatus" end |