This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Api/Terms.php
japatel 9c0827643b Renaming Namespaces and Organizing Classes
- Updated OpenId classes to be in API namespace
- Updated PP Naming Convention to PayPal Naming Convention
- FormatConverter Class got its own namespace
- Handlers are grouped in Handler namespace
- Samples and Tests Updated Accordingly
2014-12-18 14:16:41 -06:00

237 lines
4.8 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class Terms
*
* Resource representing terms used by the plan.
*
* @package PayPal\Api
*
* @property string id
* @property string type
* @property \PayPal\Api\Currency max_billing_amount
* @property string occurrences
* @property \PayPal\Api\Currency amount_range
* @property string buyer_editable
*/
class Terms extends PayPalModel
{
/**
* Identifier of the terms. 128 characters max.
*
* @param string $id
*
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Identifier of the terms. 128 characters max.
*
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Term type. Allowed values: `MONTHLY`, `WEEKLY`, `YEARLY`.
*
* @param string $type
*
* @return $this
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Term type. Allowed values: `MONTHLY`, `WEEKLY`, `YEARLY`.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Max Amount associated with this term.
*
* @param \PayPal\Api\Currency $max_billing_amount
*
* @return $this
*/
public function setMaxBillingAmount($max_billing_amount)
{
$this->max_billing_amount = $max_billing_amount;
return $this;
}
/**
* Max Amount associated with this term.
*
* @return \PayPal\Api\Currency
*/
public function getMaxBillingAmount()
{
return $this->max_billing_amount;
}
/**
* Max Amount associated with this term.
*
* @deprecated Instead use setMaxBillingAmount
*
* @param \PayPal\Api\Currency $max_billing_amount
* @return $this
*/
public function setMax_billing_amount($max_billing_amount)
{
$this->max_billing_amount = $max_billing_amount;
return $this;
}
/**
* Max Amount associated with this term.
* @deprecated Instead use getMaxBillingAmount
*
* @return \PayPal\Api\Currency
*/
public function getMax_billing_amount()
{
return $this->max_billing_amount;
}
/**
* How many times money can be pulled during this term.
*
* @param string $occurrences
*
* @return $this
*/
public function setOccurrences($occurrences)
{
$this->occurrences = $occurrences;
return $this;
}
/**
* How many times money can be pulled during this term.
*
* @return string
*/
public function getOccurrences()
{
return $this->occurrences;
}
/**
* Amount_range associated with this term.
*
* @param \PayPal\Api\Currency $amount_range
*
* @return $this
*/
public function setAmountRange($amount_range)
{
$this->amount_range = $amount_range;
return $this;
}
/**
* Amount_range associated with this term.
*
* @return \PayPal\Api\Currency
*/
public function getAmountRange()
{
return $this->amount_range;
}
/**
* Amount_range associated with this term.
*
* @deprecated Instead use setAmountRange
*
* @param \PayPal\Api\Currency $amount_range
* @return $this
*/
public function setAmount_range($amount_range)
{
$this->amount_range = $amount_range;
return $this;
}
/**
* Amount_range associated with this term.
* @deprecated Instead use getAmountRange
*
* @return \PayPal\Api\Currency
*/
public function getAmount_range()
{
return $this->amount_range;
}
/**
* Buyer's ability to edit the amount in this term.
*
* @param string $buyer_editable
*
* @return $this
*/
public function setBuyerEditable($buyer_editable)
{
$this->buyer_editable = $buyer_editable;
return $this;
}
/**
* Buyer's ability to edit the amount in this term.
*
* @return string
*/
public function getBuyerEditable()
{
return $this->buyer_editable;
}
/**
* Buyer's ability to edit the amount in this term.
*
* @deprecated Instead use setBuyerEditable
*
* @param string $buyer_editable
* @return $this
*/
public function setBuyer_editable($buyer_editable)
{
$this->buyer_editable = $buyer_editable;
return $this;
}
/**
* Buyer's ability to edit the amount in this term.
* @deprecated Instead use getBuyerEditable
*
* @return string
*/
public function getBuyer_editable()
{
return $this->buyer_editable;
}
}