Sha256: af014aa19945ef0f8c1e229f7397280ca5cb856d2e54a5da103d58eacade89ae

Contents?: true

Size: 885 Bytes

Versions: 9

Compression:

Stored size: 885 Bytes

Contents

# coding: utf-8
module Lanmao
  module Api
    module Money
      module Withdraw

        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #
        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

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lanmao-0.10.0 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.9.1 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.8.0 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.7.0 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.6.0 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.5.0 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.4.0 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.2.0 lib/lanmao/api/money/auto_withdraw.rb
lanmao-0.1.0 lib/lanmao/api/money/auto_withdraw.rb