1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class ShippingCost
9 *
10 * Shipping cost, as a percent or an amount.
11 *
12 * @package PayPal\Api
13 *
14 * @property \PayPal\Api\Currency amount
15 * @property \PayPal\Api\Tax tax
16 */
17 class ShippingCost extends PayPalModel
18 {
19 /**
20 * The shipping cost, as an amount. Valid range is from 0 to 999999.99.
21 *
22 * @param \PayPal\Api\Currency $amount
23 *
24 * @return $this
25 */
26 public function setAmount($amount)
27 {
28 $this->amount = $amount;
29 return $this;
30 }
31
32 /**
33 * The shipping cost, as an amount. Valid range is from 0 to 999999.99.
34 *
35 * @return \PayPal\Api\Currency
36 */
37 public function getAmount()
38 {
39 return $this->amount;
40 }
41
42 /**
43 * The tax percentage on the shipping amount.
44 *
45 * @param \PayPal\Api\Tax $tax
46 *
47 * @return $this
48 */
49 public function setTax($tax)
50 {
51 $this->tax = $tax;
52 return $this;
53 }
54
55 /**
56 * The tax percentage on the shipping amount.
57 *
58 * @return \PayPal\Api\Tax
59 */
60 public function getTax()
61 {
62 return $this->tax;
63 }
64
65 }
66