Sha256: 588035af24f4cfdb8237d11ae3a46961427f3f1f3f1c11477afb4334a1fce036

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

# coding: utf-8

module Reapal
  module Form
    module FindTradePassowrdForm

      # 1.9 重置交易密码
      #
      # @param contract [String] 用户协议号
      # @param return_url [String] 回调 url
      # @param notify_url [String] 通知 url
      # @param busway [String] 设备通道,默认手机端。00:PC端;01:手机端;02:Pad端;03:其它
      #
      # @return [ Hash ] 结果集
      #   * :form_method
      #     * :method
      #     * :url
      #   * :form_data
      #     * :merchant_id
      #     * :encryptkey
      #     * :data
      #
      def reset_trade_password_form(contract, return_url, notify_url, busway='01')
        service = 'reapal.trust.resetTradePassword'
        post_path = '/findTradePassword/resetTradePassword.htm'

        params = {
          contracts: contract,
          busway: busway,
          returnUrl: return_url,
          notifyUrl: notify_url,
          applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
        }

        get_form_data(service, params, post_path)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reapal-0.18.0 lib/reapal/form/reset_trade_password_form.rb
reapal-0.17.0 lib/reapal/form/reset_trade_password_form.rb
reapal-0.16.0 lib/reapal/form/reset_trade_password_form.rb
reapal-0.15.0 lib/reapal/form/reset_trade_password_form.rb
reapal-0.14.0 lib/reapal/form/reset_trade_password_form.rb