Payments API Updates

This commit is contained in:
Jay Patel
2015-10-02 14:25:46 -05:00
parent 02fca1bda4
commit a37b880e96
112 changed files with 3857 additions and 1495 deletions

View File

@@ -11,31 +11,30 @@ use PayPal\Common\PayPalModel;
*
* @package PayPal\Api
*
* @property string email
* @property string external_remember_me_id
* @property string buyer_account_number
* @property string salutation
* @property string first_name
* @property string middle_name
* @property string last_name
* @property string suffix
* @property string payer_id
* @property string phone
* @property string phone_type
* @property string birth_date
* @property string tax_id
* @property string tax_id_type
* @property string country_code
* @property \PayPal\Api\Address billing_address
* @property string email
* @property string external_remember_me_id
* @property string salutation
* @property string first_name
* @property string middle_name
* @property string last_name
* @property string suffix
* @property string payer_id
* @property string phone
* @property string phone_type
* @property string birth_date
* @property string tax_id
* @property string tax_id_type
* @property string country_code
* @property \PayPal\Api\Address billing_address
* @property \PayPal\Api\ShippingAddress shipping_address
*/
class PayerInfo extends PayPalModel
{
/**
* Email address representing the Payer.
* Email address representing the payer. 127 characters max.
*
* @param string $email
*
*
* @return $this
*/
public function setEmail($email)
@@ -45,7 +44,7 @@ class PayerInfo extends PayPalModel
}
/**
* Email address representing the Payer.
* Email address representing the payer. 127 characters max.
*
* @return string
*/
@@ -55,10 +54,10 @@ class PayerInfo extends PayPalModel
}
/**
* External Remember Me id representing the Payer
* External Remember Me id representing the payer
*
* @param string $external_remember_me_id
*
*
* @return $this
*/
public function setExternalRememberMeId($external_remember_me_id)
@@ -68,7 +67,7 @@ class PayerInfo extends PayPalModel
}
/**
* External Remember Me id representing the Payer
* External Remember Me id representing the payer
*
* @return string
*/
@@ -80,31 +79,33 @@ class PayerInfo extends PayPalModel
/**
* Account Number representing the Payer
*
* @param string $buyer_account_number
*
* @deprecated Not publicly available
* @param string $account_number
*
* @return $this
*/
public function setBuyerAccountNumber($buyer_account_number)
public function setAccountNumber($account_number)
{
$this->buyer_account_number = $buyer_account_number;
$this->account_number = $account_number;
return $this;
}
/**
* Account Number representing the Payer
*
* @deprecated Not publicly available
* @return string
*/
public function getBuyerAccountNumber()
public function getAccountNumber()
{
return $this->buyer_account_number;
return $this->account_number;
}
/**
* Salutation of the Payer.
* Salutation of the payer.
*
* @param string $salutation
*
*
* @return $this
*/
public function setSalutation($salutation)
@@ -114,7 +115,7 @@ class PayerInfo extends PayPalModel
}
/**
* Salutation of the Payer.
* Salutation of the payer.
*
* @return string
*/
@@ -124,10 +125,10 @@ class PayerInfo extends PayPalModel
}
/**
* First Name of the Payer.
* First name of the payer.
*
* @param string $first_name
*
*
* @return $this
*/
public function setFirstName($first_name)
@@ -137,7 +138,7 @@ class PayerInfo extends PayPalModel
}
/**
* First Name of the Payer.
* First name of the payer.
*
* @return string
*/
@@ -147,10 +148,10 @@ class PayerInfo extends PayPalModel
}
/**
* Middle Name of the Payer.
* Middle name of the payer.
*
* @param string $middle_name
*
*
* @return $this
*/
public function setMiddleName($middle_name)
@@ -160,7 +161,7 @@ class PayerInfo extends PayPalModel
}
/**
* Middle Name of the Payer.
* Middle name of the payer.
*
* @return string
*/
@@ -170,10 +171,10 @@ class PayerInfo extends PayPalModel
}
/**
* Last Name of the Payer.
* Last name of the payer.
*
* @param string $last_name
*
*
* @return $this
*/
public function setLastName($last_name)
@@ -183,7 +184,7 @@ class PayerInfo extends PayPalModel
}
/**
* Last Name of the Payer.
* Last name of the payer.
*
* @return string
*/
@@ -193,10 +194,10 @@ class PayerInfo extends PayPalModel
}
/**
* Suffix of the Payer.
* Suffix of the payer.
*
* @param string $suffix
*
*
* @return $this
*/
public function setSuffix($suffix)
@@ -206,7 +207,7 @@ class PayerInfo extends PayPalModel
}
/**
* Suffix of the Payer.
* Suffix of the payer.
*
* @return string
*/
@@ -216,10 +217,10 @@ class PayerInfo extends PayPalModel
}
/**
* PayPal assigned Payer ID.
* PayPal assigned encrypted Payer ID.
*
* @param string $payer_id
*
*
* @return $this
*/
public function setPayerId($payer_id)
@@ -229,7 +230,7 @@ class PayerInfo extends PayPalModel
}
/**
* PayPal assigned Payer ID.
* PayPal assigned encrypted Payer ID.
*
* @return string
*/
@@ -239,10 +240,10 @@ class PayerInfo extends PayPalModel
}
/**
* Phone number representing the Payer.
* Phone number representing the payer. 20 characters max.
*
* @param string $phone
*
*
* @return $this
*/
public function setPhone($phone)
@@ -252,7 +253,7 @@ class PayerInfo extends PayPalModel
}
/**
* Phone number representing the Payer.
* Phone number representing the payer. 20 characters max.
*
* @return string
*/
@@ -266,7 +267,7 @@ class PayerInfo extends PayPalModel
* Valid Values: ["HOME", "WORK", "MOBILE", "OTHER"]
*
* @param string $phone_type
*
*
* @return $this
*/
public function setPhoneType($phone_type)
@@ -289,7 +290,7 @@ class PayerInfo extends PayPalModel
* Birth date of the Payer in ISO8601 format (yyyy-mm-dd).
*
* @param string $birth_date
*
*
* @return $this
*/
public function setBirthDate($birth_date)
@@ -309,10 +310,10 @@ class PayerInfo extends PayPalModel
}
/**
* Payer's tax ID.
* Payers tax ID. Only supported when the `payment_method` is set to `paypal`.
*
* @param string $tax_id
*
*
* @return $this
*/
public function setTaxId($tax_id)
@@ -322,7 +323,7 @@ class PayerInfo extends PayPalModel
}
/**
* Payer's tax ID.
* Payers tax ID. Only supported when the `payment_method` is set to `paypal`.
*
* @return string
*/
@@ -332,11 +333,11 @@ class PayerInfo extends PayPalModel
}
/**
* Payer's tax ID type.
* Payers tax ID type. Allowed values: `BR_CPF` or `BR_CNPJ`. Only supported when the `payment_method` is set to `paypal`.
* Valid Values: ["BR_CPF", "BR_CNPJ"]
*
* @param string $tax_id_type
*
*
* @return $this
*/
public function setTaxIdType($tax_id_type)
@@ -346,7 +347,7 @@ class PayerInfo extends PayPalModel
}
/**
* Payer's tax ID type.
* Payers tax ID type. Allowed values: `BR_CPF` or `BR_CNPJ`. Only supported when the `payment_method` is set to `paypal`.
*
* @return string
*/
@@ -356,10 +357,10 @@ class PayerInfo extends PayPalModel
}
/**
* 2 letter registered country code of the payer to identify the buyer country
* Two-letter registered country code of the payer to identify the buyer country.
*
* @param string $country_code
*
*
* @return $this
*/
public function setCountryCode($country_code)
@@ -369,7 +370,7 @@ class PayerInfo extends PayPalModel
}
/**
* 2 letter registered country code of the payer to identify the buyer country
* Two-letter registered country code of the payer to identify the buyer country.
*
* @return string
*/
@@ -382,7 +383,7 @@ class PayerInfo extends PayPalModel
* Billing address of the Payer.
*
* @param \PayPal\Api\Address $billing_address
*
*
* @return $this
*/
public function setBillingAddress($billing_address)
@@ -402,10 +403,10 @@ class PayerInfo extends PayPalModel
}
/**
* Obsolete. Use shipping address present in purchase unit.
* Shipping address of payer PayPal account.
*
* @param \PayPal\Api\ShippingAddress $shipping_address
*
*
* @return $this
*/
public function setShippingAddress($shipping_address)
@@ -415,7 +416,7 @@ class PayerInfo extends PayPalModel
}
/**
* Obsolete. Use shipping address present in purchase unit.
* Shipping address of payer PayPal account.
*
* @return \PayPal\Api\ShippingAddress
*/