Module: Lanmao::Api::Money::Withdraw

Defined in:
lib/lanmao/api/money/auto_withdraw.rb

Instance Method Summary collapse

Instance Method Details

#auto_withdraw(user_no, flow_id, withdraw_type, amount, commission = nil) ⇒ Hash



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/lanmao/api/money/auto_withdraw.rb', line 16

def auto_withdraw(user_no, flow_id, withdraw_type,
             amount, commission=nil)

  service = 'AUTO_WITHDRAW'

  params = {
    platformUserNo: user_no,
    requestNo: flow_id,
    withdrawType: withdraw_type,
    amount: amount,
    commission: commission
  }

  res = operate_post(:operate, service, params, :service)

  res
end