Module: Lanmao::Form::Trade::UserPreTransactionForm

Defined in:
lib/lanmao/form/trade/user_pre_transaction_form.rb

Instance Method Summary collapse

Instance Method Details

#user_pre_transaction_form(request_no, user_no, biz_type, amount, expired, redirect_url, project_no, share, creditsale_request_no, pre_marketing_amount) ⇒ Hash

Returns 结果集

  • :form_method

    • :method

    • :url

  • :form_data

    • :data.

Returns:

  • (Hash)

    结果集

    • :form_method

      • :method

      • :url

    • :form_data

      • :data



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/lanmao/form/trade/user_pre_transaction_form.rb', line 15

def user_pre_transaction_form(request_no, user_no, biz_type,
                         amount, expired, redirect_url,
                         project_no, share, creditsale_request_no,
                         pre_marketing_amount)
  service = 'USER_PRE_TRANSACTION'

  params = {
    platformUserNo: user_no,
    requestNo: request_no,
    bizType: biz_type,
    amount: amount,
    expired: expired,
    redirectUrl: redirect_url,
    projectNo: project_no,
    share: share,
    creditsaleRequestNo: creditsale_request_no,
    preMarketingAmount: pre_marketing_amount,
  }

  res = get_form_data(service, params)

  res
end