chengkun
2025-06-05 4080b5997b38ca84b3b203c7101dcadb97b76925
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
 
// This file is auto-generated, don't edit it. Thanks.
namespace Alipay\EasySDK\Payment\Common\Models;
 
use AlibabaCloud\Tea\Model;
 
class RefundRoyaltyResult extends Model {
    protected $_name = [
        'refundAmount' => 'refund_amount',
        'royaltyType' => 'royalty_type',
        'resultCode' => 'result_code',
        'transOut' => 'trans_out',
        'transOutEmail' => 'trans_out_email',
        'transIn' => 'trans_in',
        'transInEmail' => 'trans_in_email',
    ];
    public function validate() {
        Model::validateRequired('refundAmount', $this->refundAmount, true);
        Model::validateRequired('royaltyType', $this->royaltyType, true);
        Model::validateRequired('resultCode', $this->resultCode, true);
        Model::validateRequired('transOut', $this->transOut, true);
        Model::validateRequired('transOutEmail', $this->transOutEmail, true);
        Model::validateRequired('transIn', $this->transIn, true);
        Model::validateRequired('transInEmail', $this->transInEmail, true);
    }
    public function toMap() {
        $res = [];
        if (null !== $this->refundAmount) {
            $res['refund_amount'] = $this->refundAmount;
        }
        if (null !== $this->royaltyType) {
            $res['royalty_type'] = $this->royaltyType;
        }
        if (null !== $this->resultCode) {
            $res['result_code'] = $this->resultCode;
        }
        if (null !== $this->transOut) {
            $res['trans_out'] = $this->transOut;
        }
        if (null !== $this->transOutEmail) {
            $res['trans_out_email'] = $this->transOutEmail;
        }
        if (null !== $this->transIn) {
            $res['trans_in'] = $this->transIn;
        }
        if (null !== $this->transInEmail) {
            $res['trans_in_email'] = $this->transInEmail;
        }
        return $res;
    }
    /**
     * @param array $map
     * @return RefundRoyaltyResult
     */
    public static function fromMap($map = []) {
        $model = new self();
        if(isset($map['refund_amount'])){
            $model->refundAmount = $map['refund_amount'];
        }
        if(isset($map['royalty_type'])){
            $model->royaltyType = $map['royalty_type'];
        }
        if(isset($map['result_code'])){
            $model->resultCode = $map['result_code'];
        }
        if(isset($map['trans_out'])){
            $model->transOut = $map['trans_out'];
        }
        if(isset($map['trans_out_email'])){
            $model->transOutEmail = $map['trans_out_email'];
        }
        if(isset($map['trans_in'])){
            $model->transIn = $map['trans_in'];
        }
        if(isset($map['trans_in_email'])){
            $model->transInEmail = $map['trans_in_email'];
        }
        return $model;
    }
    /**
     * @var string
     */
    public $refundAmount;
 
    /**
     * @var string
     */
    public $royaltyType;
 
    /**
     * @var string
     */
    public $resultCode;
 
    /**
     * @var string
     */
    public $transOut;
 
    /**
     * @var string
     */
    public $transOutEmail;
 
    /**
     * @var string
     */
    public $transIn;
 
    /**
     * @var string
     */
    public $transInEmail;
 
}