Sha256: 97bebd4a2dca040289b1f02be064adccd539c1bb23d35e1f60f114e2bf5af038

Contents?: true

Size: 1.57 KB

Versions: 7

Compression:

Stored size: 1.57 KB

Contents

# coding: utf-8

module Reapal
  module Api
    module Tender
      module TenderAuthQuery

        # 3.13  标的授权查询
        #
        # @param flow_id [ String ] 操作订单号
        # @param contract [ String ] 用户协议号
        #
        # @return [ Hash ] 结果集
        #   * :result [String] 业务结果:'S/F/P'
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :error_code [String] 错误代号
        #   * :error_msg [String] 错误信息
        #   * :data: 具体业务返回信息
        #     * :orderNo [String] 订单号
        #     * :contracts [String] 用户协议号
        #     * :servicesDetail [Array] 授权明细
        #        * :services [String] 授权服务。 02 自动投标 ,03 自动还款 05 自动担保还款
        #        * :authLimit [String] 授权期限日期 YYYYMMDD
        #        * :amount [Number] 金额
        #        * :usedTotalAmount [Number] 已使用授权金额
        #        * :totalAmount [Number] 累计金额
        #
        def tender_auth_query(flow_id, contract)
          service = 'reapal.trust.authQuery'
          post_path = '/user/restApi.htm'

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

          res = operate_post(:query, service, params, post_path, Http::ErrorCode.tender_auth_query, ['0000'])

          Reapal.logger.info res

          res
        end

      end # module TenderAuthQuery
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reapal-0.18.0 lib/reapal/api/tender/tender_auth_query.rb
reapal-0.17.0 lib/reapal/api/tender/tender_auth_query.rb
reapal-0.16.0 lib/reapal/api/tender/tender_auth_query.rb
reapal-0.15.0 lib/reapal/api/tender/tender_auth_query.rb
reapal-0.14.0 lib/reapal/api/tender/tender_auth_query.rb
reapal-0.13.0 lib/reapal/api/tender/tender_auth_query.rb
reapal-0.12.0 lib/reapal/api/tender/tender_auth_query.rb