Class: PostFinanceCheckout::PaymentLinkAddressHandlingMode

Inherits:
Object
  • Object
show all
Defined in:
lib/postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode.rb

Constant Summary collapse

NOT_REQUIRED =
'NOT_REQUIRED'.freeze
REQUIRED_IN_URL =
'REQUIRED_IN_URL'.freeze
REQUIRED_ON_PAYMENT_PAGE =
'REQUIRED_ON_PAYMENT_PAGE'.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



30
31
32
33
34
# File 'lib/postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode.rb', line 30

def build_from_hash(value)
  constantValues = PaymentLinkAddressHandlingMode.constants.select { |c| PaymentLinkAddressHandlingMode::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #PaymentLinkAddressHandlingMode" if constantValues.empty?
  value
end