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 Transaction extends \PPModel {
*/
public function setAmount($amount) {
$this->amount = $amount;
}
return $this;
}
/**
* Amount being collected.
* @return PayPal\Api\Amount
@@ -18,15 +19,17 @@ class Transaction extends \PPModel {
public function getAmount() {
return $this->amount;
}
/**
* Recepient of the funds in this transaction.
* @param PayPal\Api\Payee $payee
*/
public function setPayee($payee) {
$this->payee = $payee;
}
return $this;
}
/**
* Recepient of the funds in this transaction.
* @return PayPal\Api\Payee
@@ -34,15 +37,17 @@ class Transaction extends \PPModel {
public function getPayee() {
return $this->payee;
}
/**
* Description of what is being paid for.
* @param string $description
*/
public function setDescription($description) {
$this->description = $description;
}
return $this;
}
/**
* Description of what is being paid for.
* @return string
@@ -50,15 +55,17 @@ class Transaction extends \PPModel {
public function getDescription() {
return $this->description;
}
/**
* List of items being paid for.
* @param PayPal\Api\ItemList $item_list
*/
public function setItemList($item_list) {
$this->item_list = $item_list;
}
return $this;
}
/**
* List of items being paid for.
* @return PayPal\Api\ItemList
@@ -66,7 +73,21 @@ class Transaction extends \PPModel {
public function getItemList() {
return $this->item_list;
}
/**
* Deprecated method
*/
public function setItem_list($item_list) {
$this->item_list = $item_list;
return $this;
}
/**
* Deprecated method
*/
public function getItem_list() {
return $this->item_list;
}
/**
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
* @array
@@ -74,8 +95,9 @@ class Transaction extends \PPModel {
*/
public function setRelatedResources($related_resources) {
$this->related_resources = $related_resources;
}
return $this;
}
/**
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
* @return PayPal\Api\RelatedResources
@@ -83,7 +105,21 @@ class Transaction extends \PPModel {
public function getRelatedResources() {
return $this->related_resources;
}
/**
* Deprecated method
*/
public function setRelated_resources($related_resources) {
$this->related_resources = $related_resources;
return $this;
}
/**
* Deprecated method
*/
public function getRelated_resources() {
return $this->related_resources;
}
/**
* Additional transactions for complex payment (Parallel and Chained) scenarios.
* @array
@@ -91,8 +127,9 @@ class Transaction extends \PPModel {
*/
public function setTransactions($transactions) {
$this->transactions = $transactions;
}
return $this;
}
/**
* Additional transactions for complex payment (Parallel and Chained) scenarios.
* @return PayPal\Api\self
@@ -100,5 +137,6 @@ class Transaction extends \PPModel {
public function getTransactions() {
return $this->transactions;
}
}