Class: AdaptivePayments::PayRequest

Inherits:
AbstractRequest show all
Includes:
ReceiverListAliases
Defined in:
lib/pp-adaptive/pay_request.rb

Instance Method Summary collapse

Methods included from ReceiverListAliases

included

Methods inherited from AbstractRequest

build_response, for_operation, operation

Methods included from Aliases

#alias_param, #alias_params

Methods included from JsonModel::Parsing

#from_json, #to_attributes

Methods included from JsonModel::Writing

#to_hash, #to_json

Instance Method Details

#allowed_funding_typesObject



54
55
56
# File 'lib/pp-adaptive/pay_request.rb', line 54

def allowed_funding_types
  allowed_funding_type_info.collect { |info| info[:funding_type] }
end

#allowed_funding_types=(list_of_types) ⇒ Object



58
59
60
# File 'lib/pp-adaptive/pay_request.rb', line 58

def allowed_funding_types=(list_of_types)
  self.allowed_funding_type_info = list_of_types.map { |t| { :funding_type => t } }
end