updating stubs to have fluent setters and retaining deprecated methods

This commit is contained in:
Ganesh Hegde
2013-05-28 10:15:29 +05:30
parent 50b09bdbde
commit 86643ec2df
26 changed files with 1388 additions and 404 deletions

View File

@@ -9,8 +9,9 @@ class PayerInfo extends \PPModel {
*/
public function setEmail($email) {
$this->email = $email;
}
return $this;
}
/**
* Email address representing the Payer.
* @return string
@@ -18,15 +19,17 @@ class PayerInfo extends \PPModel {
public function getEmail() {
return $this->email;
}
/**
* First Name of the Payer from their PayPal Account.
* @param string $first_name
*/
public function setFirstName($first_name) {
$this->first_name = $first_name;
}
return $this;
}
/**
* First Name of the Payer from their PayPal Account.
* @return string
@@ -34,15 +37,30 @@ class PayerInfo extends \PPModel {
public function getFirstName() {
return $this->first_name;
}
/**
* Deprecated method
*/
public function setFirst_name($first_name) {
$this->first_name = $first_name;
return $this;
}
/**
* Deprecated method
*/
public function getFirst_name() {
return $this->first_name;
}
/**
* Last Name of the Payer from their PayPal Account.
* @param string $last_name
*/
public function setLastName($last_name) {
$this->last_name = $last_name;
}
return $this;
}
/**
* Last Name of the Payer from their PayPal Account.
* @return string
@@ -50,15 +68,30 @@ class PayerInfo extends \PPModel {
public function getLastName() {
return $this->last_name;
}
/**
* Deprecated method
*/
public function setLast_name($last_name) {
$this->last_name = $last_name;
return $this;
}
/**
* Deprecated method
*/
public function getLast_name() {
return $this->last_name;
}
/**
* PayPal assigned Payer ID.
* @param string $payer_id
*/
public function setPayerId($payer_id) {
$this->payer_id = $payer_id;
}
return $this;
}
/**
* PayPal assigned Payer ID.
* @return string
@@ -66,15 +99,30 @@ class PayerInfo extends \PPModel {
public function getPayerId() {
return $this->payer_id;
}
/**
* Deprecated method
*/
public function setPayer_id($payer_id) {
$this->payer_id = $payer_id;
return $this;
}
/**
* Deprecated method
*/
public function getPayer_id() {
return $this->payer_id;
}
/**
* Phone number representing the Payer.
* @param string $phone
*/
public function setPhone($phone) {
$this->phone = $phone;
}
return $this;
}
/**
* Phone number representing the Payer.
* @return string
@@ -82,15 +130,17 @@ class PayerInfo extends \PPModel {
public function getPhone() {
return $this->phone;
}
/**
* Shipping address of the Payer from their PayPal Account.
* @param PayPal\Api\Address $shipping_address
*/
public function setShippingAddress($shipping_address) {
$this->shipping_address = $shipping_address;
}
return $this;
}
/**
* Shipping address of the Payer from their PayPal Account.
* @return PayPal\Api\Address
@@ -98,5 +148,19 @@ class PayerInfo extends \PPModel {
public function getShippingAddress() {
return $this->shipping_address;
}
/**
* Deprecated method
*/
public function setShipping_address($shipping_address) {
$this->shipping_address = $shipping_address;
return $this;
}
/**
* Deprecated method
*/
public function getShipping_address() {
return $this->shipping_address;
}
}