3declare(strict_types=1);
124 if (is_null($this->
id)) {
126 $data = $this->
raw(self::FIELD_ID);
127 if (is_null($data)) {
130 $this->
id = (string) $data;
145 if (is_null($this->cart)) {
147 $data = $this->
raw(self::FIELD_CART);
148 if (is_null($data)) {
152 $this->cart = CartResourceIdentifierModel::of($data);
166 if (is_null($this->version)) {
168 $data = $this->
raw(self::FIELD_VERSION);
169 if (is_null($data)) {
172 $this->version = (int) $data;
187 if (is_null($this->orderNumber)) {
189 $data = $this->
raw(self::FIELD_ORDER_NUMBER);
190 if (is_null($data)) {
193 $this->orderNumber = (string) $data;
209 if (is_null($this->purchaseOrderNumber)) {
211 $data = $this->
raw(self::FIELD_PURCHASE_ORDER_NUMBER);
212 if (is_null($data)) {
215 $this->purchaseOrderNumber = (string) $data;
229 if (is_null($this->paymentState)) {
231 $data = $this->
raw(self::FIELD_PAYMENT_STATE);
232 if (is_null($data)) {
235 $this->paymentState = (string) $data;
249 if (is_null($this->shipmentState)) {
251 $data = $this->
raw(self::FIELD_SHIPMENT_STATE);
252 if (is_null($data)) {
255 $this->shipmentState = (string) $data;
269 if (is_null($this->orderState)) {
271 $data = $this->
raw(self::FIELD_ORDER_STATE);
272 if (is_null($data)) {
275 $this->orderState = (string) $data;
289 if (is_null($this->state)) {
291 $data = $this->
raw(self::FIELD_STATE);
292 if (is_null($data)) {
296 $this->state = StateResourceIdentifierModel::of($data);
315 if (is_null($this->custom)) {
317 $data = $this->
raw(self::FIELD_CUSTOM);
318 if (is_null($data)) {
322 $this->custom = CustomFieldsDraftModel::of($data);