Skip to content

Commit 508f0ab

Browse files
committed
Merge branch 'master' into stable
Merge in master for Shipping Address change
2 parents 89c00dc + 3da6adc commit 508f0ab

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/PayPal/Api/PayerInfo.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public function getPhone()
241241
* Set Shipping Address
242242
* Shipping address of the Payer from their PayPal Account
243243
*
244-
* @param \PayPal\Api\Address $shipping_address
244+
* @param \PayPal\Api\ShippingAddress $shipping_address
245245
*
246246
* @return $this
247247
*/
@@ -256,7 +256,7 @@ public function setShippingAddress($shipping_address)
256256
* Get Shipping Address
257257
* Shipping address of the Payer from their PayPal Account
258258
*
259-
* @return \PayPal\Api\Address
259+
* @return \PayPal\Api\ShippingAddress
260260
*/
261261
public function getShippingAddress()
262262
{
@@ -267,7 +267,7 @@ public function getShippingAddress()
267267
* Set Shipping Address
268268
* Shipping address of the Payer from their PayPal Account
269269
*
270-
* @param \PayPal\Api\Address $shipping_address
270+
* @param \PayPal\Api\ShippingAddress $shipping_address
271271
*
272272
* @deprecated Use setShippingAddress
273273
*
@@ -286,7 +286,7 @@ public function setShipping_address($shipping_address)
286286
*
287287
* @deprecated Use getShippingAddress
288288
*
289-
* @return \PayPal\Api\Address
289+
* @return \PayPal\Api\ShippingAddress
290290
*/
291291
public function getShipping_address()
292292
{

tests/PayPal/Test/Api/PayerInfoTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function createPayerInfo() {
2121
$payerInfo->setLastName(self::$lastName);
2222
$payerInfo->setPhone(self::$phone);
2323
$payerInfo->setPayerId(self::$payerId);
24-
$payerInfo->setShippingAddress(AddressTest::createAddress());
24+
$payerInfo->setShippingAddress(ShippingAddressTest::createAddress());
2525

2626
return $payerInfo;
2727
}
@@ -36,7 +36,7 @@ public function testGetterSetter() {
3636
$this->assertEquals(self::$lastName, $this->payerInfo->getLastName());
3737
$this->assertEquals(self::$phone, $this->payerInfo->getPhone());
3838
$this->assertEquals(self::$payerId, $this->payerInfo->getPayerId());
39-
$this->assertEquals(AddressTest::$line1, $this->payerInfo->getShippingAddress()->getLine1());
39+
$this->assertEquals(ShippingAddressTest::$line1, $this->payerInfo->getShippingAddress()->getLine1());
4040
}
4141

4242
public function testSerializeDeserialize() {

0 commit comments

Comments
 (0)