Enabled Payment Experience

- Updated Api to enabled Payment Experience
- Updated Tests and Samples
- Added Json Validator
- Ability for PPModel to return array of self objects
This commit is contained in:
japatel
2014-10-13 12:00:31 -05:00
parent 792cdc2b93
commit 0cb302326a
55 changed files with 1936 additions and 654 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
@@ -7,62 +8,161 @@ use PayPal\Rest\ApiContext;
/**
* Class Presentation
*
* Parameters for style and presentation.
*
* @package PayPal\Api
*
* @property string brand_name
* @property string logo_image
* @property string locale_code
*/
class Presentation extends PPModel {
/**
*
* @return string brand_name
*/
public function getBrandName() {
return $this->brand_name;
}
/*
* @param string brand_name *
*/
public function setBrandName($brand_name){
$this->brand_name = $brand_name;
return $this;
}
/**
*
* @return string logo_image
*/
public function getLogoImage() {
return $this->logo_image;
}
/*
* @param string logo_image *
*/
public function setLogoImage($logo_image){
$this->logo_image = $logo_image;
return $this;
}
class Presentation extends PPModel
{
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
*
*
* @param string $brand_name
*
* @return $this
*/
public function setBrandName($brand_name)
{
$this->brand_name = $brand_name;
return $this;
}
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
*
* @return string
*/
public function getBrandName()
{
return $this->brand_name;
}
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
*
* @deprecated Instead use setBrandName
*
* @param string $brand_name
* @return $this
*/
public function setBrand_name($brand_name)
{
$this->brand_name = $brand_name;
return $this;
}
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
* @deprecated Instead use getBrandName
*
* @return string
*/
public function getBrand_name()
{
return $this->brand_name;
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
*
*
* @param string $logo_image
*
* @return $this
*/
public function setLogoImage($logo_image)
{
$this->logo_image = $logo_image;
return $this;
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
*
* @return string
*/
public function getLogoImage()
{
return $this->logo_image;
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
*
* @deprecated Instead use setLogoImage
*
* @param string $logo_image
* @return $this
*/
public function setLogo_image($logo_image)
{
$this->logo_image = $logo_image;
return $this;
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
* @deprecated Instead use getLogoImage
*
* @return string
*/
public function getLogo_image()
{
return $this->logo_image;
}
/**
* Locale of pages displayed by PayPal payment experience.
*
*
* @param string $locale_code
*
* @return $this
*/
public function setLocaleCode($locale_code)
{
$this->locale_code = $locale_code;
return $this;
}
/**
* Locale of pages displayed by PayPal payment experience.
*
* @return string
*/
public function getLocaleCode()
{
return $this->locale_code;
}
/**
* Locale of pages displayed by PayPal payment experience.
*
* @deprecated Instead use setLocaleCode
*
* @param string $locale_code
* @return $this
*/
public function setLocale_code($locale_code)
{
$this->locale_code = $locale_code;
return $this;
}
/**
* Locale of pages displayed by PayPal payment experience.
* @deprecated Instead use getLocaleCode
*
* @return string
*/
public function getLocale_code()
{
return $this->locale_code;
}
/**
*
* @return string locale_code
*/
public function getLocaleCode() {
return $this->logo_image;
}
/*
* @param string locale_code *
*/
public function setLocaleCode($locale_code){
$this->locale_code = $locale_code;
return $this;
}
}