1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class ChargeModel
9 *
10 * A resource representing a charge model for a payment definition.
11 *
12 * @package PayPal\Api
13 *
14 * @property string id
15 * @property string type
16 * @property \PayPal\Api\Currency amount
17 */
18 class ChargeModel extends PayPalModel
19 {
20 /**
21 * Identifier of the charge model. 128 characters max.
22 *
23 * @param string $id
24 *
25 * @return $this
26 */
27 public function setId($id)
28 {
29 $this->id = $id;
30 return $this;
31 }
32
33 /**
34 * Identifier of the charge model. 128 characters max.
35 *
36 * @return string
37 */
38 public function getId()
39 {
40 return $this->id;
41 }
42
43 /**
44 * Type of charge model. Allowed values: `SHIPPING`, `TAX`.
45 *
46 * @param string $type
47 *
48 * @return $this
49 */
50 public function setType($type)
51 {
52 $this->type = $type;
53 return $this;
54 }
55
56 /**
57 * Type of charge model. Allowed values: `SHIPPING`, `TAX`.
58 *
59 * @return string
60 */
61 public function getType()
62 {
63 return $this->type;
64 }
65
66 /**
67 * Specific amount for this charge model.
68 *
69 * @param \PayPal\Api\Currency $amount
70 *
71 * @return $this
72 */
73 public function setAmount($amount)
74 {
75 $this->amount = $amount;
76 return $this;
77 }
78
79 /**
80 * Specific amount for this charge model.
81 *
82 * @return \PayPal\Api\Currency
83 */
84 public function getAmount()
85 {
86 return $this->amount;
87 }
88
89 }
90