Class: PostFinanceCheckout::PaymentLinkAddressHandlingMode
- Inherits:
-
Object
- Object
- PostFinanceCheckout::PaymentLinkAddressHandlingMode
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |