Sha256: 3fff5f0c11ab70b594d30e3d259f47297e18c897cf1b99bb23e850f3fd272010

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

# coding: utf-8
module Lanmao
  module Api
    module Trade
      module UserAutoPreTransaction
        # 授权预处理
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :bizType
        #       * :status
        #       * :errorCode
        #       * :errorMessage
        #       * :requestNo
        #
        def user_auto_pre_transaction(flow_id, platform_user_id,  biz_type, amount,  project_no, original_recharge_no="", pre_marketing_amount="", share="", credit_sale_request_no="", remark="" )

          service = "USER_AUTO_PRE_TRANSACTION"
          params = {
            requestNo: flow_id,
            platformUserNo: platform_user_id,
            originalRechargeNo: original_recharge_no,
            bizType: biz_type,
            amount: amount,
            preMarketingAmount: pre_marketing_amount,
            remark: remark,
            projectNo: project_no,
            share: share,
            creditsaleRequestNo: credit_sale_request_no,
          }

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

          res
        end

      end # module
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lanmao-0.5.0 lib/lanmao/api/trade/user_auto_pre_transaction.rb
lanmao-0.4.0 lib/lanmao/api/trade/user_auto_pre_transaction.rb
lanmao-0.2.0 lib/lanmao/api/trade/user_auto_pre_transaction.rb