1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class InputFields
9 *
10 * Parameters for input fields customization.
11 *
12 * @package PayPal\Api
13 *
14 * @property bool allow_note
15 * @property int no_shipping
16 * @property int address_override
17 */
18 class InputFields extends PayPalModel
19 {
20 /**
21 * Indicates whether the buyer can enter a note to the merchant on the PayPal page during checkout.
22 *
23 * @param bool $allow_note
24 *
25 * @return $this
26 */
27 public function setAllowNote($allow_note)
28 {
29 $this->allow_note = $allow_note;
30 return $this;
31 }
32
33 /**
34 * Indicates whether the buyer can enter a note to the merchant on the PayPal page during checkout.
35 *
36 * @return bool
37 */
38 public function getAllowNote()
39 {
40 return $this->allow_note;
41 }
42
43 /**
44 * Indicates whether PayPal displays shipping address fields on the experience pages. Valid value is `0`, `1`, or `2`. Set to `0` to display the shipping address on the PayPal pages. Set to `1` to redact shipping address fields from the PayPal pages. Set to `2` to not pass the shipping address but instead get it from the buyer's account profile. For digital goods, this field is required and value must be `1`.
45 *
46 * @param int $no_shipping
47 *
48 * @return $this
49 */
50 public function setNoShipping($no_shipping)
51 {
52 $this->no_shipping = $no_shipping;
53 return $this;
54 }
55
56 /**
57 * Indicates whether PayPal displays shipping address fields on the experience pages. Valid value is `0`, `1`, or `2`. Set to `0` to display the shipping address on the PayPal pages. Set to `1` to redact shipping address fields from the PayPal pages. Set to `2` to not pass the shipping address but instead get it from the buyer's account profile. For digital goods, this field is required and value must be `1`.
58 *
59 * @return int
60 */
61 public function getNoShipping()
62 {
63 return $this->no_shipping;
64 }
65
66 /**
67 * Indicates whether to display the shipping address that is passed to this call rather than the one on file with PayPal for this buyer on the PayPal experience pages. Valid value is `0` or `1`. Set to `0` to display the shipping address on file. Set to `1` to display the shipping address supplied to this call; the buyer cannot edit this shipping address.
68 *
69 * @param int $address_override
70 *
71 * @return $this
72 */
73 public function setAddressOverride($address_override)
74 {
75 $this->address_override = $address_override;
76 return $this;
77 }
78
79 /**
80 * Indicates whether to display the shipping address that is passed to this call rather than the one on file with PayPal for this buyer on the PayPal experience pages. Valid value is `0` or `1`. Set to `0` to display the shipping address on file. Set to `1` to display the shipping address supplied to this call; the buyer cannot edit this shipping address.
81 *
82 * @return int
83 */
84 public function getAddressOverride()
85 {
86 return $this->address_override;
87 }
88
89 }
90