Sha256: 2fb55dae6aaf56a63dc094eeea94573863e3650efb0a614ea3cbbf7a18c32194

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

# coding: utf-8
module Lanmao
  module Api
    module Query
      module QueryTransaction

        #  单笔交易查询
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :card_no [String] 借款人电子账号
        #       * :warrant_card_no [String] 担保人电子账号
        #       * :asset_no [Integer] 标的编号,40
        #       * :borrow_card_no [String] 名义借款人电子账号
        #       * :debtor_card_no [String] 收款人电子账号
        #       * :amount	[Decimal] 借款金额
        #       * :asset_no [String] 标的号
        #       * :status	受托支付签约状态 [Integer] 0:普通标的 1:签约 2:未签约
        #
        def query_transaction(flow_id, transaction_type, user_no)
          service = 'QUERY_TRANSACTION'

          params = {
            requestNo: flow_id,
            transactionType: transaction_type,
            platformUserNo: user_no,
          }

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

          res
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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