<?php

/**
 * 易宝支付请求对象
 *
 * @author Jeffrey
 * @version $Id: Refund.php 90 2010-02-25 15:10:21Z jeffrey $
 */
class Yeepay_Request_Refund extends Yeepay_Request
{
    /**
     * 签名字段和顺序
     *
     * @var Array
     */
    protected $hashMap = array( # static
        'p0_Cmd' => 'command',
        'p1_MerId' => 'merchantId',
        'pb_TrxId' => 'tradeId',
        'p3_Amt' => 'amount',
        'p4_Cur' => 'currency',
        'p7_Desc' => 'description',
    );

    /**
     * 请求结果对象名称
     *
     * @var string
     */
    protected $responseClass = 'Yeepay_Response_Query'; # static

    /**
     * 业务类型
     *
     * @var string(20)
     */
    protected $command = 'Buy';

    /**
     * 商户订单号
     *
     * @var string(50)
     */
    public $tradeId;

    /**
     * 退款金额
     *
     * @var decimal(18,2)
     */
    public $amount;

    /**
     * 交易币种
     *
     * @var string(10)
     */
    public $currency = 'CNY';

    /**
     * 退款说明
     *
     * @var string(1000)
     */
    public $description;
}