Skip to content

Commit 4cc0a13

Browse files
committed
Merge tag '1.27.14.8' into develop
Release 1.27.14.8
2 parents 47713cf + 3b8d29a commit 4cc0a13

File tree

3 files changed

+68
-4
lines changed

3 files changed

+68
-4
lines changed

src/Model/Generated/Endpoint/UserCompany.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ class UserCompany extends BunqModel
166166
*/
167167
protected $addressPostal;
168168

169+
/**
170+
* The company's shipping address.
171+
*
172+
* @var Address
173+
*/
174+
protected $addressShipping;
175+
169176
/**
170177
* The version of the terms of service accepted by the user.
171178
*
@@ -876,6 +883,27 @@ public function setAddressPostal($addressPostal)
876883
$this->addressPostal = $addressPostal;
877884
}
878885

886+
/**
887+
* The company's shipping address.
888+
*
889+
* @return Address
890+
*/
891+
public function getAddressShipping()
892+
{
893+
return $this->addressShipping;
894+
}
895+
896+
/**
897+
* @deprecated User should not be able to set values via setters, use
898+
* constructor.
899+
*
900+
* @param Address $addressShipping
901+
*/
902+
public function setAddressShipping($addressShipping)
903+
{
904+
$this->addressShipping = $addressShipping;
905+
}
906+
879907
/**
880908
* The version of the terms of service accepted by the user.
881909
*
@@ -1309,6 +1337,10 @@ public function isAllFieldNull()
13091337
return false;
13101338
}
13111339

1340+
if (!is_null($this->addressShipping)) {
1341+
return false;
1342+
}
1343+
13121344
if (!is_null($this->versionTermsOfService)) {
13131345
return false;
13141346
}

src/Model/Generated/Endpoint/UserPerson.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ class UserPerson extends BunqModel
162162
*/
163163
protected $addressPostal;
164164

165+
/**
166+
* The person's shipping address.
167+
*
168+
* @var Address
169+
*/
170+
protected $addressShipping;
171+
165172
/**
166173
* The person's date of birth. Accepts ISO8601 date formats.
167174
*
@@ -972,6 +979,27 @@ public function setAddressPostal($addressPostal)
972979
$this->addressPostal = $addressPostal;
973980
}
974981

982+
/**
983+
* The person's shipping address.
984+
*
985+
* @return Address
986+
*/
987+
public function getAddressShipping()
988+
{
989+
return $this->addressShipping;
990+
}
991+
992+
/**
993+
* @deprecated User should not be able to set values via setters, use
994+
* constructor.
995+
*
996+
* @param Address $addressShipping
997+
*/
998+
public function setAddressShipping($addressShipping)
999+
{
1000+
$this->addressShipping = $addressShipping;
1001+
}
1002+
9751003
/**
9761004
* The person's date of birth. Accepts ISO8601 date formats.
9771005
*
@@ -1377,6 +1405,10 @@ public function isAllFieldNull()
13771405
return false;
13781406
}
13791407

1408+
if (!is_null($this->addressShipping)) {
1409+
return false;
1410+
}
1411+
13801412
if (!is_null($this->dateOfBirth)) {
13811413
return false;
13821414
}

src/Model/Generated/Object/Address.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Address extends BunqModel
6565
protected $extra;
6666

6767
/**
68-
* The name on the mailbox (only used for Postal addresses).
68+
* The name on the mailbox (only used for Postal and Shipping addresses).
6969
*
7070
* @var string
7171
*/
@@ -129,7 +129,7 @@ class Address extends BunqModel
129129
protected $extraFieldForRequest;
130130

131131
/**
132-
* The name on the mailbox (only used for Postal addresses).
132+
* The name on the mailbox (only used for Postal and Shipping addresses).
133133
*
134134
* @var string|null
135135
*/
@@ -145,7 +145,7 @@ class Address extends BunqModel
145145
* @param string|null $extra The apartment, building or other extra
146146
* information for addresses.
147147
* @param string|null $mailboxName The name on the mailbox (only used for
148-
* Postal addresses).
148+
* Postal and Shipping addresses).
149149
*/
150150
public function __construct(string $street, string $houseNumber, string $postalCode, string $city, string $country, string $poBox = null, string $extra = null, string $mailboxName = null)
151151
{
@@ -328,7 +328,7 @@ public function setExtra($extra)
328328
}
329329

330330
/**
331-
* The name on the mailbox (only used for Postal addresses).
331+
* The name on the mailbox (only used for Postal and Shipping addresses).
332332
*
333333
* @return string
334334
*/

0 commit comments

Comments
 (0)