Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge branch 'ultimatedion-Payment-experience'
Browse files Browse the repository at this point in the history
  • Loading branch information
japatel committed Oct 11, 2014
2 parents 61a52e4 + b0a6c5c commit 792cdc2
Show file tree
Hide file tree
Showing 6 changed files with 504 additions and 28 deletions.
52 changes: 52 additions & 0 deletions lib/PayPal/Api/FlowConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
namespace PayPal\Api;

use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;

/**
* Class FlowConfig
*
* @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;
}


}
68 changes: 68 additions & 0 deletions lib/PayPal/Api/InputFields.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
namespace PayPal\Api;

use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;

/**
* Class InputFields
*
* @property integer no_shipping
* @property integer address_override
* @property boolean allow-note
*/
class InputFields extends PPModel {


/**
*
* @return integer no_shipping
*/
public function getNoShipping() {
return $this->no_shipping;
}

/*
* @param integer no_shipping *
*/

public function setNoShipping($no_shipping){
$this->no_shipping = $no_shipping;
return $this;
}


/**
*
* @return integer address_override
*/
public function getAddressOverride() {
return $this->address_override;
}

/*
* @param integer address_override *
*/

public function setAddressOverride($address_override){
$this->address_override = $address_override;
return $this;
}

/**
*
* @return boolean allow_note
*/
public function getAllowNote() {
return $this->allow_note;
}

/*
* @param boolean allow_note *
*/

public function setAllowNote($allow_note){
$this->allow_note = $allow_note;
return $this;
}
}
84 changes: 56 additions & 28 deletions lib/PayPal/Api/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @property string state
* @property \PayPal\Api\RedirectUrls redirect_urls
* @property \PayPal\Api\Links links
* @property string experience_profile_id
*/
class Payment extends PPModel implements IResource
{
Expand All @@ -49,10 +50,10 @@ public static function setCredential($credential)

/**
* Identifier of the payment resource created.
*
*
*
* @param string $id
*
*
* @return $this
*/
public function setId($id)
Expand All @@ -73,10 +74,10 @@ public function getId()

/**
* Time the resource was created in UTC ISO8601 format.
*
*
*
* @param string $create_time
*
*
* @return $this
*/
public function setCreateTime($create_time)
Expand Down Expand Up @@ -122,10 +123,10 @@ public function getCreate_time()

/**
* Time the resource was last updated in UTC ISO8601 format.
*
*
*
* @param string $update_time
*
*
* @return $this
*/
public function setUpdateTime($update_time)
Expand Down Expand Up @@ -171,10 +172,10 @@ public function getUpdate_time()

/**
* Intent of the payment - Sale or Authorization or Order.
* Valid Values: ["sale", "authorize", "order"]
* Valid Values: ["sale", "authorize", "order"]
*
* @param string $intent
*
*
* @return $this
*/
public function setIntent($intent)
Expand All @@ -195,10 +196,10 @@ public function getIntent()

/**
* Source of the funds for this payment represented by a PayPal account or a direct credit card.
*
*
*
* @param \PayPal\Api\Payer $payer
*
*
* @return $this
*/
public function setPayer($payer)
Expand All @@ -219,10 +220,10 @@ public function getPayer()

/**
* Cart for which the payment is done.
*
*
*
* @param \PayPal\Api\object $cart
*
*
* @return $this
*/
public function setCart($cart)
Expand All @@ -243,10 +244,10 @@ public function getCart()

/**
* A payment can have more than one transaction, with each transaction establishing a contract between the payer and a payee
*
*
*
* @param \PayPal\Api\Transaction $transactions
*
*
* @return $this
*/
public function setTransactions($transactions)
Expand All @@ -267,10 +268,10 @@ public function getTransactions()

/**
* state of the payment
* Valid Values: ["created", "approved", "failed", "canceled", "expired"]
* Valid Values: ["created", "approved", "failed", "canceled", "expired"]
*
* @param string $state
*
*
* @return $this
*/
public function setState($state)
Expand All @@ -291,10 +292,10 @@ public function getState()

/**
* Redirect urls required only when using payment_method as PayPal - the only settings supported are return and cancel urls.
*
*
*
* @param \PayPal\Api\RedirectUrls $redirect_urls
*
*
* @return $this
*/
public function setRedirectUrls($redirect_urls)
Expand Down Expand Up @@ -340,10 +341,10 @@ public function getRedirect_urls()

/**
* Sets Links
*
*
*
* @param \PayPal\Api\Links $links
*
*
* @return $this
*/
public function setLinks($links)
Expand All @@ -362,6 +363,32 @@ public function getLinks()
return $this->links;
}

/**
* Set Experience_profile_id
* experience_profile_id of the payment
*
* @param string $experience_profile_id
*
* @return $this
*/
public function setExperienceProfileId($experience_profile_id)
{
$this->experience_profile_id = $experience_profile_id;

return $this;
}

/**
* Get Experience_profile_id
* Experience_profile_id of the payment
*
* @return string
*/
public function getExperienceProfileId()
{
return $this->experience_profile_id;
}

/**
* Creates (and processes) a new Payment Resource.
*
Expand Down Expand Up @@ -438,14 +465,14 @@ public static function all($params, $apiContext = null)

$payLoad = "";
$allowedParams = array(
'count' => 1,
'start_id' => 1,
'start_index' => 1,
'start_time' => 1,
'end_time' => 1,
'payee_id' => 1,
'sort_by' => 1,
'sort_order' => 1,
'count' => 1,
'start_id' => 1,
'start_index' => 1,
'start_time' => 1,
'end_time' => 1,
'payee_id' => 1,
'sort_by' => 1,
'sort_order' => 1,
);
if ($apiContext == null) {
$apiContext = new ApiContext(self::$credential);
Expand All @@ -457,4 +484,5 @@ public static function all($params, $apiContext = null)
return $ret;
}


}
68 changes: 68 additions & 0 deletions lib/PayPal/Api/Presentation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
namespace PayPal\Api;

use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;

/**
* Class Presentation
*
* @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;
}

/**
*
* @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;
}
}
Loading

0 comments on commit 792cdc2

Please sign in to comment.