Sha256: 014085ceabb34d842f84d29d87abf0443460fcc40904e6d653e904837ba73d39

Contents?: true

Size: 1.31 KB

Versions: 14

Compression:

Stored size: 1.31 KB

Contents

# coding: utf-8
module Lanmao
  module Api
    module Trade
      module AsyncTransaction
        # 批量交易
        #
        # @param biz_details [ Array ] 交易明细
        #          * :request_no 交易明细订单号
        #          * :trade_type 交易类型
        #          * :project_no 标的编号
        #          * :sale_request_no 债权出让请求流水号
        #          * :details [Array] 业务明细
        #            * :biz_type 业务类型
        #            * :freeze_request_no 预处理请求流水号
        #            * :source_platform_user_no 出款方用户编号
        #            * :target_platform_user_no 收款方用户编号
        #            * :amount 交易金额
        #            * :income 利息
        #            * :share 债权份额 (债权认购且需校验债权关系的必传)
        #            * :custom_define 平台商户自定义参数,平台交易时传入的自定义参数
        #            * :remark 备注
        #
        def async_transaction(batch_no, biz_details)

          service = 'ASYNC_TRANSACTION'

          params = {
            batchNo: batch_no,
            bizDetails: biz_details,
          }

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

          res
        end

      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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