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 Payer extends \PPModel {
*/
public function setPaymentMethod($payment_method) {
$this->payment_method = $payment_method;
}
return $this;
}
/**
* Payment method being used - PayPal Wallet payment or Direct Credit card.
* @return string
@@ -18,7 +19,21 @@ class Payer extends \PPModel {
public function getPaymentMethod() {
return $this->payment_method;
}
/**
* Deprecated method
*/
public function setPayment_method($payment_method) {
$this->payment_method = $payment_method;
return $this;
}
/**
* Deprecated method
*/
public function getPayment_method() {
return $this->payment_method;
}
/**
* List of funding instruments from where the funds of the current payment come from. Typically a credit card.
* @array
@@ -26,8 +41,9 @@ class Payer extends \PPModel {
*/
public function setFundingInstruments($funding_instruments) {
$this->funding_instruments = $funding_instruments;
}
return $this;
}
/**
* List of funding instruments from where the funds of the current payment come from. Typically a credit card.
* @return PayPal\Api\FundingInstrument
@@ -35,15 +51,30 @@ class Payer extends \PPModel {
public function getFundingInstruments() {
return $this->funding_instruments;
}
/**
* Deprecated method
*/
public function setFunding_instruments($funding_instruments) {
$this->funding_instruments = $funding_instruments;
return $this;
}
/**
* Deprecated method
*/
public function getFunding_instruments() {
return $this->funding_instruments;
}
/**
* Information related to the Payer. In case of PayPal Wallet payment, this information will be filled in by PayPal after the user approves the payment using their PayPal Wallet.
* @param PayPal\Api\PayerInfo $payer_info
*/
public function setPayerInfo($payer_info) {
$this->payer_info = $payer_info;
}
return $this;
}
/**
* Information related to the Payer. In case of PayPal Wallet payment, this information will be filled in by PayPal after the user approves the payment using their PayPal Wallet.
* @return PayPal\Api\PayerInfo
@@ -51,5 +82,19 @@ class Payer extends \PPModel {
public function getPayerInfo() {
return $this->payer_info;
}
/**
* Deprecated method
*/
public function setPayer_info($payer_info) {
$this->payer_info = $payer_info;
return $this;
}
/**
* Deprecated method
*/
public function getPayer_info() {
return $this->payer_info;
}
}