Sha256: ac30f977ea60d7dc6e6b9acad75358781ccc9822c46fac25cb052b968561fb66

Contents?: true

Size: 1.23 KB

Versions: 8

Compression:

Stored size: 1.23 KB

Contents

# coding: utf-8
module Lanmao
  module Form
    module Money
      module WithdrawForm
        # 提现
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :serial_no [String] 交易流水号
        #       * :order_no [String] 订单号
        #       * :amount [Number] 金额
        #       * :balance [Number] 操作后账户余额
        #
        def withdraw_form(flow_id, platform_user_no, expired, redirect_url, amount, withdraw_type='NORMAL', withdraw_form='IMMEDIATE', commission=nil)

          service = "WITHDRAW"

          params = {
            requestNo: flow_id,
            platformUserNo: platform_user_no,
            expired: expired,
            redirectUrl: redirect_url,
            amount: amount,
            withdrawType: withdraw_type,
            withdrawForm: withdraw_form,
            commission: commission
          }

          res = get_form_data(service, params)

          res
        end

      end # module
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lanmao-0.16.0 lib/lanmao/form/money/withdraw_form.rb
lanmao-0.15.0 lib/lanmao/form/money/withdraw_form.rb
lanmao-0.14.0 lib/lanmao/form/money/withdraw_form.rb
lanmao-0.13.0 lib/lanmao/form/money/withdraw_form.rb
lanmao-0.12.0 lib/lanmao/form/money/withdraw_form.rb
lanmao-0.11.0 lib/lanmao/form/money/withdraw_form.rb
lanmao-0.10.0 lib/lanmao/form/money/withdraw_form.rb
lanmao-0.9.1 lib/lanmao/form/money/withdraw_form.rb