Sha256: 4b6b8a7ac53903d451b470e890582e95a6f974b951d06fa83eff105516f6930f
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
=begin #Commerce Platform API #RESTful API for the creation of Commerce Cases with Checkouts and the execution of Payments. The version of the OpenAPI document: 1.8.0 Generated by: https://openapi-generator.tech Generator version: 7.7.0 =end require 'date' require 'time' module PCPServerSDK class PaymentType SALE = "SALE".freeze RESERVATION = "RESERVATION".freeze CAPTURE = "CAPTURE".freeze REFUND = "REFUND".freeze REVERSAL = "REVERSAL".freeze CHARGEBACK_REVERSAL = "CHARGEBACK_REVERSAL".freeze CREDIT_NOTE = "CREDIT_NOTE".freeze DEBIT_NOTE = "DEBIT_NOTE".freeze def self.all_vars @all_vars ||= [SALE, RESERVATION, CAPTURE, REFUND, REVERSAL, CHARGEBACK_REVERSAL, CREDIT_NOTE, DEBIT_NOTE].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 PaymentType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #PaymentType" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pcp-server-ruby-sdk-0.0.6 | lib/PCP-server-Ruby-SDK/models/payment_type.rb |
pcp-server-ruby-sdk-0.1.0 | lib/PCP-server-Ruby-SDK/models/payment_type.rb |