1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class OverrideChargeModel
9 *
10 * A resource representing an override_charge_model to be used during creation of the agreement.
11 *
12 * @package PayPal\Api
13 *
14 * @property string charge_id
15 * @property \PayPal\Api\Currency amount
16 */
17 class OverrideChargeModel extends PayPalModel
18 {
19 /**
20 * ID of charge model.
21 *
22 * @param string $charge_id
23 *
24 * @return $this
25 */
26 public function setChargeId($charge_id)
27 {
28 $this->charge_id = $charge_id;
29 return $this;
30 }
31
32 /**
33 * ID of charge model.
34 *
35 * @return string
36 */
37 public function getChargeId()
38 {
39 return $this->charge_id;
40 }
41
42 /**
43 * Updated Amount to be associated with this charge model.
44 *
45 * @param \PayPal\Api\Currency $amount
46 *
47 * @return $this
48 */
49 public function setAmount($amount)
50 {
51 $this->amount = $amount;
52 return $this;
53 }
54
55 /**
56 * Updated Amount to be associated with this charge model.
57 *
58 * @return \PayPal\Api\Currency
59 */
60 public function getAmount()
61 {
62 return $this->amount;
63 }
64
65 }
66