Module: Lanmao::Api::Trade::DebentureSale

Defined in:
lib/lanmao/api/trade/debenture_sale.rb

Instance Method Summary collapse

Instance Method Details

#debenture_sale(request_no, user_no, project_no, sale_share) ⇒ Hash

单笔债权出让

Returns:

  • (Hash)

    结果集

    • :result [String] “S”/“F”/“P”

    • :request_params [Hash] 请求参数

    • :response [Object] 请求返回对象

    • :code [String] 结果代码

    • :msg [String] 结果信息

    • :data: 具体业务返回信息



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/lanmao/api/trade/debenture_sale.rb', line 15

def debenture_sale(request_no, user_no, project_no, sale_share)

  service = 'DEBENTURE_SALE'

  params = {
    requestNo: request_no,
    platformUserNo: user_no,
    projectNo: project_no,
    saleShare: sale_share,
  }

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

  res
end