1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class CustomAmount
9 *
10 * The custom amount applied on an invoice. If you include a label, the amount cannot be empty.
11 *
12 * @package PayPal\Api
13 *
14 * @property string label
15 * @property \PayPal\Api\Currency amount
16 */
17 class CustomAmount extends PayPalModel
18 {
19 /**
20 * The custom amount label. Maximum length is 25 characters.
21 *
22 * @param string $label
23 *
24 * @return $this
25 */
26 public function setLabel($label)
27 {
28 $this->label = $label;
29 return $this;
30 }
31
32 /**
33 * The custom amount label. Maximum length is 25 characters.
34 *
35 * @return string
36 */
37 public function getLabel()
38 {
39 return $this->label;
40 }
41
42 /**
43 * The custom amount value. Valid range is from -999999.99 to 999999.99.
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 * The custom amount value. Valid range is from -999999.99 to 999999.99.
57 *
58 * @return \PayPal\Api\Currency
59 */
60 public function getAmount()
61 {
62 return $this->amount;
63 }
64
65 }
66