Sha256: 69c4f0964997db237fe20403ca91158385b93581f9c5c600b9b7d537ee80fac7

Contents?: true

Size: 1.59 KB

Versions: 8

Compression:

Stored size: 1.59 KB

Contents

# coding: utf-8
module Lanmao
  module Api
    module Money
      module ConfirmWithdraw
        # 提现确认
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :requestNo [String] 交易流水号
        #       * :code [String] 调用状态(0为调用成功、1为失败,返回1时请看【调用失败错误码】及错误码描述)
        #       * :status [Enum] 业务处理状态(处理失败INIT;处理成功SUCCESS)
        #       * :errorCode [String]
        #       * :errorMessage [String]
        #       * :withdrawStatus [String] 提现交易状态
        #       * :withdrawWay [String] 提现方式
        #       * :remitType [String] 款类型;NORMAL:T1出款;NORMAL_URGENT:普通T0出款;URGENT:实时T0出款;
        #       * :floatAmount [amount] 垫资金额
        #       * :createTime [Time] 交易发起时间
        #       * :transactionTime [Time] 交易完成时间
        #
        def confirm_withdraw(flow_id, pre_transaction_no, withdraw_way)

          service = "CONFIRM_WITHDRAW"

          params = {
            requestNo: flow_id,
            preTransactionNo: pre_transaction_no,
            withdrawWay: withdraw_way
          }

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

          res
        end

      end # module
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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