Sha256: afb472d53a0dea5692142994ce39a67df484feab0adf90c0fdcc50657d38facb
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
require 'date' require 'time' module PCPServerSDK module Models class PaymentChannel ECOMMERCE = "ECOMMERCE".freeze POS = "POS".freeze def self.all_vars @all_vars ||= [ECOMMERCE, POS].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 PaymentChannel.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #PaymentChannel" 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/payment_channel.rb |