<?php

/**
 * @author Jeffrey
 * @version $Id: Query.php 32 2010-01-17 11:34:32Z jeffrey $
 */
class Yeepay_Response_Query extends Yeepay_Response
{
    /**
     * 签名字段和顺序
     *
     * @var Array
     */
    protected static $hashMap = array(
        'p0_Cmd' => 'command',
        'r1_Code' => 'code',
        'r2_TrxId' => 'tradeId',
        'r3_Amt' => 'amount',
        'r4_Cur' => 'currency',
        'r5_Pid' => 'productId',
        'r6_Order' => 'order',
        'r8_MP' => 'merchantPersist',
        'rb_PayStatus' => 'payStatus',
        'rc_RefundCount' => 'refundCount',
        'rd_RefundAmt' => 'refundAmount',
    );

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

    /**
     * 查询结果
     *
     * @var string(50)
     */
    public $code;

    /**
     * 易宝支付交易流水号
     *
     * @var string(50)
     */
    public $tradeId;

    /**
     * 支付金额
     *
     * @var string(20)
     */
    public $amount;

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

    /**
     * 商品名称
     *
     * @var string(20)
     */
    public $productId;

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

    /**
     * 商户扩展信息
     *
     * @var string(1000)
     */
    public $merchantPersist;

    /**
     * 支付状态
     *
     * @var string(20)
     */
    public $payStatus;

    /**
     * 已退款次数
     *
     * @var integer
     */
    public $refundCount;

    /**
     * 已退款金额
     *
     * @var integer
     */
    public $refundAmount;
}
