Module: Lanmao::Api::Trade::UserAutoPreTransaction

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

Instance Method Summary collapse

Instance Method Details

#user_auto_pre_transaction(flow_id, platform_user_id, biz_type, amount, project_no, original_recharge_no = nil, pre_marketing_amount = nil, share = nil, credit_sale_request_no = nil, remark = "") ⇒ Hash

授权预处理

Returns:

  • (Hash)

    结果集

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

    • :request_params [Hash] 请求参数

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

    • :code [String] 结果代码

    • :msg [String] 结果信息

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

      * :bizType
      * :status
      * :errorCode
      * :errorMessage
      * :requestNo
      


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/lanmao/api/trade/user_auto_pre_transaction.rb', line 21

def user_auto_pre_transaction(flow_id, platform_user_id,  biz_type, amount,  project_no, original_recharge_no=nil, pre_marketing_amount=nil, share=nil, credit_sale_request_no=nil, 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