This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated Api to enabled Payment Experience - Updated Tests and Samples - Added Json Validator - Ability for PPModel to return array of self objects
- Loading branch information
japatel
committed
Oct 13, 2014
1 parent
792cdc2
commit 0cb3023
Showing
55 changed files
with
1,915 additions
and
633 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace PayPal\Api; | ||
|
||
use PayPal\Common\PPModel; | ||
use PayPal\Rest\ApiContext; | ||
|
||
/** | ||
* Class CreateProfileResponse | ||
* | ||
* Response schema for create profile api | ||
* | ||
* @package PayPal\Api | ||
* | ||
* @property string id | ||
*/ | ||
class CreateProfileResponse extends PPModel | ||
{ | ||
/** | ||
* ID of the payment web experience profile. | ||
* | ||
* | ||
* @param string $id | ||
* | ||
* @return $this | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
/** | ||
* ID of the payment web experience profile. | ||
* | ||
* @return string | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,120 @@ | ||
<?php | ||
|
||
namespace PayPal\Api; | ||
|
||
use PayPal\Common\PPModel; | ||
use PayPal\Rest\ApiContext; | ||
use PayPal\Validation\UrlValidator; | ||
|
||
/** | ||
* Class FlowConfig | ||
* | ||
* Parameters for flow configuration. | ||
* | ||
* @package PayPal\Api | ||
* | ||
* @property string landing_page_type | ||
* @property string bank_txn_pending_url | ||
*/ | ||
class FlowConfig extends PPModel { | ||
|
||
|
||
/** | ||
* | ||
* @return string landing_page_type | ||
*/ | ||
public function getLandingPageType() { | ||
return $this->landing_page_type; | ||
} | ||
|
||
/* | ||
* @param string landing_page_type * | ||
*/ | ||
|
||
public function setLandingPageType($landing_page_type){ | ||
$this->landing_page_type = $landing_page_type; | ||
return $this; | ||
} | ||
|
||
|
||
/** | ||
* | ||
* @return string bank_txn_pending_url | ||
*/ | ||
public function getBankTxnPendingUrl() { | ||
return $this->bank_txn_pending_url; | ||
} | ||
|
||
/* | ||
* @param string bank_txn_pending_url * | ||
*/ | ||
|
||
public function setBankTxnPendingUrl($bank_txn_pending_url){ | ||
$this->bank_txn_pending_url = $bank_txn_pending_url; | ||
return $this; | ||
} | ||
class FlowConfig extends PPModel | ||
{ | ||
/** | ||
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used. | ||
* | ||
* | ||
* @param string $landing_page_type | ||
* | ||
* @return $this | ||
*/ | ||
public function setLandingPageType($landing_page_type) | ||
{ | ||
$this->landing_page_type = $landing_page_type; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used. | ||
* | ||
* @return string | ||
*/ | ||
public function getLandingPageType() | ||
{ | ||
return $this->landing_page_type; | ||
} | ||
|
||
/** | ||
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used. | ||
* | ||
* @deprecated Instead use setLandingPageType | ||
* | ||
* @param string $landing_page_type | ||
* @return $this | ||
*/ | ||
public function setLanding_page_type($landing_page_type) | ||
{ | ||
$this->landing_page_type = $landing_page_type; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used. | ||
* @deprecated Instead use getLandingPageType | ||
* | ||
* @return string | ||
*/ | ||
public function getLanding_page_type() | ||
{ | ||
return $this->landing_page_type; | ||
} | ||
|
||
/** | ||
* The URL on the merchant site for transferring to after a bank transfer payment. | ||
* | ||
* | ||
* @param string $bank_txn_pending_url | ||
* @throws InvalidArgumentException | ||
* @return $this | ||
*/ | ||
public function setBankTxnPendingUrl($bank_txn_pending_url) | ||
{ | ||
UrlValidator::validate($bank_txn_pending_url, "BankTxnPendingUrl"); | ||
$this->bank_txn_pending_url = $bank_txn_pending_url; | ||
return $this; | ||
} | ||
|
||
/** | ||
* The URL on the merchant site for transferring to after a bank transfer payment. | ||
* | ||
* @return string | ||
*/ | ||
public function getBankTxnPendingUrl() | ||
{ | ||
return $this->bank_txn_pending_url; | ||
} | ||
|
||
/** | ||
* The URL on the merchant site for transferring to after a bank transfer payment. | ||
* | ||
* @deprecated Instead use setBankTxnPendingUrl | ||
* | ||
* @param string $bank_txn_pending_url | ||
* @return $this | ||
*/ | ||
public function setBank_txn_pending_url($bank_txn_pending_url) | ||
{ | ||
$this->bank_txn_pending_url = $bank_txn_pending_url; | ||
return $this; | ||
} | ||
|
||
/** | ||
* The URL on the merchant site for transferring to after a bank transfer payment. | ||
* @deprecated Instead use getBankTxnPendingUrl | ||
* | ||
* @return string | ||
*/ | ||
public function getBank_txn_pending_url() | ||
{ | ||
return $this->bank_txn_pending_url; | ||
} | ||
|
||
} |
Oops, something went wrong.