Sha256: e1d5249d864d43df5624ae092976eb58a1523e67b4c03ba91b1a3fcc783c83e7

Contents?: true

Size: 1.1 KB

Versions: 20

Compression:

Stored size: 1.1 KB

Contents

# coding: utf-8
module RockFintech
  module Api
    module Money
      module CouponRecharge
        # 营销账户充值
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :serial_no [String] 交易流水号
        #       * :order_no [String] 订单号
        #       * :amount [Number] 金额
        #       * :balance [Number] 操作后账户余额
        #
        def coupon_recharge(amount, serial_no, devise='000001', remark='')
          service = 'coupon_recharge'

          params = {
            amount: amount,
            serial_no: serial_no,
            client: devise,
            custom: remark,
          }

          res = operate_post(:operate, service, params, Http::ErrorCode.coupon_recharge, ['RD000000'])

          RockFintech.logger.info res

          res
        end

      end # module
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rock_fintech-0.19.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.18.4 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.18.1 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.17.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.16.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.15.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.14.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.13.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.12.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.11.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.10.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.9.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.8.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.7.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.6.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.5.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.4.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.3.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.2.0 lib/rock_fintech/api/money/coupon_recharge.rb
rock_fintech-0.1.0 lib/rock_fintech/api/money/coupon_recharge.rb