Sha256: a35384c599de3f5e0787027f409dd6d5676b0d21457c0f3028bbac68a861f762

Contents?: true

Size: 1.74 KB

Versions: 12

Compression:

Stored size: 1.74 KB

Contents

# coding: utf-8

module Reapal
  module Api
    module Money
      module DepositSmsApi

        # 2.4 快捷充值重发短信(API)
        #
        # @param flow_id [ String ] 订单号(非自动生成,与充值签约订单号保持一致)
        # @param contracts [ String ] 用户协议号
        # @param busway [ String ] 设备通道 00:PC端;01:手机端;02:Pad端;03:其它
        # @param terminal_info [ String ] 终端信息(手机IMEI地址、MAC地址、UUID)
        # @param member_ip [ String ] 用户IP
        # @param remark [ String ] 业务备注信息
        #
        # @return [ Hash ] 结果集
        #   * :result [String] 业务结果:'S/F/P'
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :error_code [String] 错误代号
        #   * :error_msg [String] 错误信息
        #   * :data: 具体业务返回信息
        #       * :orderNo [String]  订单号
        #       * :resultCode [String] 结果代码 0000:发送成功
        #       * :resultMsg [String] 结果描述
        #
        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

      end # module
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reapal-0.9.12 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.11 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.10 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.9 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.7 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.6 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.5 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.3 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.2 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.1 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.9.0 lib/reapal/api/money/deposit_sms_api.rb
reapal-0.3.0 lib/reapal/api/money/deposit_sms_api.rb