Module: Lanmao::Api::Trade::AuthorizationEntrustPay

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

Instance Method Summary collapse

Instance Method Details

#authorization_entrust_pay(flow_id, borrow_platform_user_no, project_no, entrusted_type, entrusted_platform_user_no, check_type = "LIMIT") ⇒ Hash

委托支付授权



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

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