Sha256: 6af1a0cf9c4b7d873985fca5a93dd57c128aa3d804886f6a71189d32528c1fd1
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
=begin #Payment Gateway API Specification. #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. The version of the OpenAPI document: 6.14.0.20201015.001 Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.1.1 =end require 'date' module OpenapiClient class CardFunction CREDIT = "CREDIT".freeze DEBIT = "DEBIT".freeze PREPAID = "PREPAID".freeze VOUCHER = "VOUCHER".freeze UNDEFINED = "UNDEFINED".freeze # 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) constantValues = CardFunction.constants.select { |c| CardFunction::const_get(c) == value } raise "Invalid ENUM value #{value} for class #CardFunction" if constantValues.empty? value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
first_data_gateway-1.9.0 | lib/openapi_client/models/card_function.rb |