Class: PCPServerSDK::Models::ApplePayPaymentMethodType

Inherits:
Object
  • Object
show all
Defined in:
lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_method_type.rb

Constant Summary collapse

DEBIT =
"debit"
CREDIT =
"credit"
PREPAID =
"prepaid"
STORE =
"store"

Class Method Summary collapse

Class Method Details

.all_typesObject



9
10
11
# File 'lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_method_type.rb', line 9

def self.all_types
  [DEBIT, CREDIT, PREPAID, STORE]
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_method_type.rb', line 13

def self.valid?(value)
  all_types.include?(value)
end