Sha256: 50a81723e1cf3d225ae60e04061f952fe0b4cf4fa59810399ff6f5a855723677

Contents?: true

Size: 1014 Bytes

Versions: 6

Compression:

Stored size: 1014 Bytes

Contents

# coding: utf-8

module Reapal
  module Api
    module Money
      module DepositQuery

        # 2.6 充值查询(API)
        #
        # @param deposit_flow_id [ String ] 充值订单号
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :error_msg [String] 错误提示
        #   * :data [Hash] 成功数据
        #       * :orderNo [String]  充值订单号
        #       * :amount [BigDecimal] 交易金额
        #       * :charge [BigDecimal] 手续费
        #       * :resultCode [String] 结果代码
        #
        def deposit_query(deposit_flow_id)
          service = 'reapal.trust.depositQuery'
          post_path = '/reagw/service/depwit.htm'

          params = {
            orderNo: deposit_flow_id,
            queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
          }

          operate_post(:query, service, params, post_path, Http::ErrorCode.deposit_query, ['0000'])
        end

      end # module
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
reapal-0.9.5 lib/reapal/api/money/deposit_query.rb
reapal-0.9.3 lib/reapal/api/money/deposit_query.rb
reapal-0.9.2 lib/reapal/api/money/deposit_query.rb
reapal-0.9.1 lib/reapal/api/money/deposit_query.rb
reapal-0.9.0 lib/reapal/api/money/deposit_query.rb
reapal-0.3.0 lib/reapal/api/money/deposit_query.rb