module RockFintech::Api::Money::CouponWithdraw

Public Instance Methods

coupon_withdraw(amount, serial_no, devise='000001', remark='') click to toggle source

营销账户提现

@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] 操作后账户余额
# File lib/rock_fintech/api/money/coupon_withdraw.rb, line 20
def coupon_withdraw(amount, serial_no, devise='000001', remark='')
  service = 'coupon_withdraw'

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

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

  RockFintech.logger.info res

  res
end