PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13.1
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13.1
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / vendor / square / square / src / Legacy / Models / Builders / OrderLineItemModifierBuilder.php

OrderLineItemModifierBuilder.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13.1, at vendor/square/square/src/Legacy/Models/Builders/OrderLineItemModifierBuilder.php

186 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Square\Legacy\Models\Builders;
6
7 use Core\Utils\CoreHelper;
8 use Square\Legacy\Models\Money;
9 use Square\Legacy\Models\OrderLineItemModifier;
10
11 /**
12 * Builder for model OrderLineItemModifier
13 *
14 * @see OrderLineItemModifier
15 */
16 class OrderLineItemModifierBuilder
17 {
18 /**
19 * @var OrderLineItemModifier
20 */
21 private $instance;
22
23 private function __construct(OrderLineItemModifier $instance)
24 {
25 $this->instance = $instance;
26 }
27
28 /**
29 * Initializes a new Order Line Item Modifier Builder object.
30 */
31 public static function init(): self
32 {
33 return new self(new OrderLineItemModifier());
34 }
35
36 /**
37 * Sets uid field.
38 *
39 * @param string|null $value
40 */
41 public function uid(?string $value): self
42 {
43 $this->instance->setUid($value);
44 return $this;
45 }
46
47 /**
48 * Unsets uid field.
49 */
50 public function unsetUid(): self
51 {
52 $this->instance->unsetUid();
53 return $this;
54 }
55
56 /**
57 * Sets catalog object id field.
58 *
59 * @param string|null $value
60 */
61 public function catalogObjectId(?string $value): self
62 {
63 $this->instance->setCatalogObjectId($value);
64 return $this;
65 }
66
67 /**
68 * Unsets catalog object id field.
69 */
70 public function unsetCatalogObjectId(): self
71 {
72 $this->instance->unsetCatalogObjectId();
73 return $this;
74 }
75
76 /**
77 * Sets catalog version field.
78 *
79 * @param int|null $value
80 */
81 public function catalogVersion(?int $value): self
82 {
83 $this->instance->setCatalogVersion($value);
84 return $this;
85 }
86
87 /**
88 * Unsets catalog version field.
89 */
90 public function unsetCatalogVersion(): self
91 {
92 $this->instance->unsetCatalogVersion();
93 return $this;
94 }
95
96 /**
97 * Sets name field.
98 *
99 * @param string|null $value
100 */
101 public function name(?string $value): self
102 {
103 $this->instance->setName($value);
104 return $this;
105 }
106
107 /**
108 * Unsets name field.
109 */
110 public function unsetName(): self
111 {
112 $this->instance->unsetName();
113 return $this;
114 }
115
116 /**
117 * Sets quantity field.
118 *
119 * @param string|null $value
120 */
121 public function quantity(?string $value): self
122 {
123 $this->instance->setQuantity($value);
124 return $this;
125 }
126
127 /**
128 * Unsets quantity field.
129 */
130 public function unsetQuantity(): self
131 {
132 $this->instance->unsetQuantity();
133 return $this;
134 }
135
136 /**
137 * Sets base price money field.
138 *
139 * @param Money|null $value
140 */
141 public function basePriceMoney(?Money $value): self
142 {
143 $this->instance->setBasePriceMoney($value);
144 return $this;
145 }
146
147 /**
148 * Sets total price money field.
149 *
150 * @param Money|null $value
151 */
152 public function totalPriceMoney(?Money $value): self
153 {
154 $this->instance->setTotalPriceMoney($value);
155 return $this;
156 }
157
158 /**
159 * Sets metadata field.
160 *
161 * @param array<string,string>|null $value
162 */
163 public function metadata(?array $value): self
164 {
165 $this->instance->setMetadata($value);
166 return $this;
167 }
168
169 /**
170 * Unsets metadata field.
171 */
172 public function unsetMetadata(): self
173 {
174 $this->instance->unsetMetadata();
175 return $this;
176 }
177
178 /**
179 * Initializes a new Order Line Item Modifier object.
180 */
181 public function build(): OrderLineItemModifier
182 {
183 return CoreHelper::clone($this->instance);
184 }
185 }
186