1: <?php
2: /*
3: * This class was auto-generated from the API references found at
4: * https://apireference.connect.worldline-solutions.com/
5: */
6: namespace Worldline\Connect\Sdk\V1\Domain;
7:
8: use UnexpectedValueException;
9: use Worldline\Connect\Sdk\Domain\DataObject;
10:
11: /**
12: * @package Worldline\Connect\Sdk\V1\Domain
13: * @deprecated No replacement
14: */
15: class LoanRecipient extends DataObject
16: {
17: /**
18: * @var string
19: * @deprecated No replacement
20: */
21: public $accountNumber = null;
22:
23: /**
24: * @var string
25: * @deprecated No replacement
26: */
27: public $dateOfBirth = null;
28:
29: /**
30: * @var string
31: * @deprecated No replacement
32: */
33: public $partialPan = null;
34:
35: /**
36: * @var string
37: * @deprecated No replacement
38: */
39: public $surname = null;
40:
41: /**
42: * @var string
43: * @deprecated No replacement
44: */
45: public $zip = null;
46:
47: /**
48: * @return object
49: */
50: public function toObject()
51: {
52: $object = parent::toObject();
53: if (!is_null($this->accountNumber)) {
54: $object->accountNumber = $this->accountNumber;
55: }
56: if (!is_null($this->dateOfBirth)) {
57: $object->dateOfBirth = $this->dateOfBirth;
58: }
59: if (!is_null($this->partialPan)) {
60: $object->partialPan = $this->partialPan;
61: }
62: if (!is_null($this->surname)) {
63: $object->surname = $this->surname;
64: }
65: if (!is_null($this->zip)) {
66: $object->zip = $this->zip;
67: }
68: return $object;
69: }
70:
71: /**
72: * @param object $object
73: * @return $this
74: * @throws UnexpectedValueException
75: */
76: public function fromObject($object)
77: {
78: parent::fromObject($object);
79: if (property_exists($object, 'accountNumber')) {
80: $this->accountNumber = $object->accountNumber;
81: }
82: if (property_exists($object, 'dateOfBirth')) {
83: $this->dateOfBirth = $object->dateOfBirth;
84: }
85: if (property_exists($object, 'partialPan')) {
86: $this->partialPan = $object->partialPan;
87: }
88: if (property_exists($object, 'surname')) {
89: $this->surname = $object->surname;
90: }
91: if (property_exists($object, 'zip')) {
92: $this->zip = $object->zip;
93: }
94: return $this;
95: }
96: }
97: