Module: Reapal::Api::Money::DepositSmsApi

Defined in:
lib/reapal/api/money/deposit_sms_api.rb

Instance Method Summary collapse

Instance Method Details

#deposit_sms_api(flow_id, contracts, terminal_info, member_ip, busway = '01', remark = "") ⇒ Hash

2.4 快捷充值重发短信(API)



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/reapal/api/money/deposit_sms_api.rb', line 28

def deposit_sms_api(flow_id, contracts, terminal_info, member_ip, busway = '01', remark = "")
  service = 'reapal.trust.depositSmsAPI'
  post_path = '/reagw/service/depwit.htm'

  params = {
    orderNo: flow_id,
    contracts: contracts,
    busway: busway,
    terminalInfo: terminal_info,
    memberIp: member_ip,
    remark: remark,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

  operate_post(:operate, service, params, post_path, Http::ErrorCode.deposit_sms_api, ['0000'])
end