Sha256: 511e06d89b7e700e205a11461a03b3428863112495d0a67de557aa8a3b4393fb

Contents?: true

Size: 1.45 KB

Versions: 14

Compression:

Stored size: 1.45 KB

Contents

# coding: utf-8
module Lanmao
  module Api
    module Trade
      module AuthorizationEntrustPay
        # 委托支付授权
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :code [Enum] 调用状态(0为调用成功、1为失败,返回1时请看【调用失败错误码】及错误码描述)
        #       * :status [Enum] 业务处理状态(处理失败INIT;处理成功SUCCESS)
        #       * :errorCode [String]
        #       * :errorMessage [String]
        #       * :authorizeStatus [String] 委托支付授权审核状态
        #
        def authorization_entrust_pay(flow_id, borrow_platform_user_no, project_no, entrusted_type, entrusted_platform_user_no, check_type="LIMIT")

          service = "AUTHORIZATION_ENTRUST_PAY"

          params = {
            borrowPlatformUserNo: borrow_platform_user_no,
            requestNo: flow_id,
            projectNo: project_no,
            checkType: check_type,
            entrustedType: entrusted_type,
            entrustedPlatformUserNo: entrusted_platform_user_no
          }

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

          res
        end

      end # module
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lanmao-0.16.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.15.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.14.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.13.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.12.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.11.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.10.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.9.1 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.8.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.7.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.6.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.5.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.4.0 lib/lanmao/api/trade/authorization_entrust_pay.rb
lanmao-0.2.0 lib/lanmao/api/trade/authorization_entrust_pay.rb