Class: UnivapayClientSdk::ThreeDsIssuerTokenCallMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/univapay_client_sdk/models/three_ds_issuer_token_call_method.rb

Overview

Execution method. Currently, only 'http_post' is supported.

Constant Summary collapse

THREE_DS_ISSUER_TOKEN_CALL_METHOD =
[
  # TODO: Write general description for HTTP_POST
  HTTP_POST = 'http_post'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = HTTP_POST) ⇒ Object



20
21
22
23
24
# File 'lib/univapay_client_sdk/models/three_ds_issuer_token_call_method.rb', line 20

def self.from_value(value, default_value = HTTP_POST)
  return default_value if value.nil?

  default_value
end

.validate(value) ⇒ Object



14
15
16
17
18
# File 'lib/univapay_client_sdk/models/three_ds_issuer_token_call_method.rb', line 14

def self.validate(value)
  return false if value.nil?

  THREE_DS_ISSUER_TOKEN_CALL_METHOD.include?(value)
end