3declare(strict_types=1);
99 if (is_null($this->type)) {
101 $data = $this->
raw(self::FIELD_TYPE);
102 if (is_null($data)) {
105 $this->type = (string) $data;
119 if (is_null($this->lineItemId)) {
121 $data = $this->
raw(self::FIELD_LINE_ITEM_ID);
122 if (is_null($data)) {
125 $this->lineItemId = (string) $data;
139 if (is_null($this->lineItemKey)) {
141 $data = $this->
raw(self::FIELD_LINE_ITEM_KEY);
142 if (is_null($data)) {
145 $this->lineItemKey = (string) $data;
159 if (is_null($this->discountedPricePerQuantity)) {
161 $data = $this->
raw(self::FIELD_DISCOUNTED_PRICE_PER_QUANTITY);
162 if (is_null($data)) {
165 $this->discountedPricePerQuantity = DiscountedLineItemPriceForQuantityCollection::fromArray($data);
179 if (is_null($this->totalPrice)) {
181 $data = $this->
raw(self::FIELD_TOTAL_PRICE);
182 if (is_null($data)) {
186 $this->totalPrice = CentPrecisionMoneyModel::of($data);
200 if (is_null($this->taxedPrice)) {
202 $data = $this->
raw(self::FIELD_TAXED_PRICE);
203 if (is_null($data)) {
207 $this->taxedPrice = TaxedItemPriceModel::of($data);
222 if (is_null($this->taxedPricePortions)) {
224 $data = $this->
raw(self::FIELD_TAXED_PRICE_PORTIONS);
225 if (is_null($data)) {
228 $this->taxedPricePortions = MethodTaxedPriceCollection::fromArray($data);