Sha256: fd1e1cba4e2f9db7d68920281c6b3a1b8f7c48134ed627cb5e6efd61f81decdf
Contents?: true
Size: 980 Bytes
Versions: 1
Compression:
Stored size: 980 Bytes
Contents
require 'date' require 'time' module PCPServerSDK module Models class CartItemStatus ORDERED = "ORDERED".freeze DELIVERED = "DELIVERED".freeze CANCELLED = "CANCELLED".freeze RETURNED = "RETURNED".freeze WAITING_FOR_PAYMENT = "WAITING_FOR_PAYMENT".freeze def self.all_vars @all_vars ||= [ORDERED, DELIVERED, CANCELLED, RETURNED, WAITING_FOR_PAYMENT].freeze end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) return value if CartItemStatus.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #CartItemStatus" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pcp-server-ruby-sdk-1.0.0 | lib/PCP-server-Ruby-SDK/models/cart_item_status.rb |