updated CreditCardHistory.php, added sample and testcase for Reauthorization

This commit is contained in:
lathavairamani
2013-07-31 17:40:36 +05:30
parent e0046e3bbe
commit f1038717a7
6 changed files with 180 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ class CreditCardHistory extends PPModel {
* @param PayPal\Api\CreditCard $credit-cards
*/
public function setCreditCards($credit_cards) {
$this->credit_cards = $credit_cards;
$this->{"credit-cards"} = $credit_cards;
return $this;
}
@@ -19,7 +19,7 @@ class CreditCardHistory extends PPModel {
* @return PayPal\Api\CreditCard
*/
public function getCreditCards() {
return $this->credit-cards;
return $this->{"credit-cards"};
}
/**
@@ -29,7 +29,7 @@ class CreditCardHistory extends PPModel {
* @deprecated. Instead use setCreditCards
*/
public function setCredit_cards($credit_cards) {
$this->credit_cards = $credit_cards;
$this->{"credit-cards"} = $credit_cards;
return $this;
}
/**
@@ -38,7 +38,7 @@ class CreditCardHistory extends PPModel {
* @deprecated. Instead use getCreditCards
*/
public function getCredit_cards() {
return $this->credit-cards;
return $this->{"credit-cards"};
}
/**