lib/plivo/resources/verify_session.rb in plivo-4.61.1 vs lib/plivo/resources/verify_session.rb in plivo-4.61.2
- old
+ new
@@ -40,21 +40,22 @@
# @param [String] session_uuid
def get(session_uuid)
perform_get(session_uuid)
end
- def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil, brand_name=nil, app_hash=nil, code_length=nil, dtmf=nil)
+ def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil, brand_name=nil, app_hash=nil, code_length=nil, dtmf=nil, fraud_check=nil)
valid_param?(:app_uuid, app_uuid, [String, Symbol], false)
valid_param?(:recipient, recipient, [Integer, String, Symbol], true)
valid_param?(:channel, channel, [String, Symbol], false)
valid_param?(:url, url, [String], false)
valid_param?(:method, method, String, false, %w[POST GET])
valid_param?(:locale, locale, [String, Symbol], false)
valid_param?(:brand_name, brand_name, [String, Symbol], false)
valid_param?(:app_hash, app_hash, [String, Symbol], false)
valid_param?(:code_length, code_length,[Integer,Symbol], false)
valid_param?(:dtmf, dtmf,[Integer,Symbol], false)
+ valid_param?(:fraud_check, fraud_check, [String, Symbol], false)
params = {
app_uuid: app_uuid,
recipient: recipient,
channel: channel,
@@ -62,10 +63,11 @@
method: method,
locale: locale,
brand_name: brand_name,
app_hash: app_hash,
code_length: code_length,
- dtmf:dtmf
+ dtmf:dtmf,
+ fraud_check:fraud_check
}
perform_create(params)
end
def list(options = nil)
\ No newline at end of file