1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class Presentation
9 *
10 * Parameters for style and presentation.
11 *
12 * @package PayPal\Api
13 *
14 * @property string brand_name
15 * @property string logo_image
16 * @property string locale_code
17 * @property string return_url_label
18 * @property string note_to_seller_label
19 */
20 class Presentation extends PayPalModel
21 {
22 /**
23 * A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
24 *
25 * @param string $brand_name
26 *
27 * @return $this
28 */
29 public function setBrandName($brand_name)
30 {
31 $this->brand_name = $brand_name;
32 return $this;
33 }
34
35 /**
36 * A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
37 *
38 * @return string
39 */
40 public function getBrandName()
41 {
42 return $this->brand_name;
43 }
44
45 /**
46 * A URL to the logo image. A valid media type is `.gif`, `.jpg`, or `.png`. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
47 *
48 * @param string $logo_image
49 *
50 * @return $this
51 */
52 public function setLogoImage($logo_image)
53 {
54 $this->logo_image = $logo_image;
55 return $this;
56 }
57
58 /**
59 * A URL to the logo image. A valid media type is `.gif`, `.jpg`, or `.png`. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
60 *
61 * @return string
62 */
63 public function getLogoImage()
64 {
65 return $this->logo_image;
66 }
67
68 /**
69 * The locale of pages displayed by PayPal payment experience. A valid value is `AU`, `AT`, `BE`, `BR`, `CA`, `CH`, `CN`, `DE`, `ES`, `GB`, `FR`, `IT`, `NL`, `PL`, `PT`, `RU`, or `US`. A 5-character code is also valid for languages in specific countries: `da_DK`, `he_IL`, `id_ID`, `ja_JP`, `no_NO`, `pt_BR`, `ru_RU`, `sv_SE`, `th_TH`, `zh_CN`, `zh_HK`, or `zh_TW`.
70 *
71 * @param string $locale_code
72 *
73 * @return $this
74 */
75 public function setLocaleCode($locale_code)
76 {
77 $this->locale_code = $locale_code;
78 return $this;
79 }
80
81 /**
82 * The locale of pages displayed by PayPal payment experience. A valid value is `AU`, `AT`, `BE`, `BR`, `CA`, `CH`, `CN`, `DE`, `ES`, `GB`, `FR`, `IT`, `NL`, `PL`, `PT`, `RU`, or `US`. A 5-character code is also valid for languages in specific countries: `da_DK`, `he_IL`, `id_ID`, `ja_JP`, `no_NO`, `pt_BR`, `ru_RU`, `sv_SE`, `th_TH`, `zh_CN`, `zh_HK`, or `zh_TW`.
83 *
84 * @return string
85 */
86 public function getLocaleCode()
87 {
88 return $this->locale_code;
89 }
90
91 /**
92 * A label to use as hypertext for the return to merchant link.
93 *
94 * @param string $return_url_label
95 *
96 * @return $this
97 */
98 public function setReturnUrlLabel($return_url_label)
99 {
100 $this->return_url_label = $return_url_label;
101 return $this;
102 }
103
104 /**
105 * A label to use as hypertext for the return to merchant link.
106 *
107 * @return string
108 */
109 public function getReturnUrlLabel()
110 {
111 return $this->return_url_label;
112 }
113
114 /**
115 * A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
116 *
117 * @param string $note_to_seller_label
118 *
119 * @return $this
120 */
121 public function setNoteToSellerLabel($note_to_seller_label)
122 {
123 $this->note_to_seller_label = $note_to_seller_label;
124 return $this;
125 }
126
127 /**
128 * A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
129 *
130 * @return string
131 */
132 public function getNoteToSellerLabel()
133 {
134 return $this->note_to_seller_label;
135 }
136
137 }
138