1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class TemplateSettings
9 *
10 * Settings per template
11 *
12 * @package PayPal\Api
13 *
14 * @property string field_name
15 * @property \PayPal\Api\TemplateSettingsMetadata display_preference
16 */
17 class TemplateSettings extends PayPalModel
18 {
19 /**
20 * The field name (for any field in template_data) for which the corresponding display preferences will be mapped to.
21 *
22 * @param string $field_name
23 *
24 * @return $this
25 */
26 public function setFieldName($field_name)
27 {
28 $this->field_name = $field_name;
29 return $this;
30 }
31
32 /**
33 * The field name (for any field in template_data) for which the corresponding display preferences will be mapped to.
34 *
35 * @return string
36 */
37 public function getFieldName()
38 {
39 return $this->field_name;
40 }
41
42 /**
43 * Settings metadata for each field.
44 *
45 * @param \PayPal\Api\TemplateSettingsMetadata $display_preference
46 *
47 * @return $this
48 */
49 public function setDisplayPreference($display_preference)
50 {
51 $this->display_preference = $display_preference;
52 return $this;
53 }
54
55 /**
56 * Settings metadata for each field.
57 *
58 * @return \PayPal\Api\TemplateSettingsMetadata
59 */
60 public function getDisplayPreference()
61 {
62 return $this->display_preference;
63 }
64
65 }
66