Файл: sngine-v2.8/Script/includes/libs/PayPal/paypal/rest-api-sdk-php/lib/PayPal/Api/ChargeModel.php
Строк: 54
<?php
namespace PayPalApi;
use PayPalCommonPayPalModel;
/**
* Class ChargeModel
*
* A resource representing a charge model for a payment definition.
*
* @package PayPalApi
*
* @property string id
* @property string type
* @property PayPalApiCurrency amount
*/
class ChargeModel extends PayPalModel
{
/**
* Identifier of the charge model. 128 characters max.
*
* @param string $id
*
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Identifier of the charge model. 128 characters max.
*
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Type of charge model. Allowed values: `SHIPPING`, `TAX`.
*
* @param string $type
*
* @return $this
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Type of charge model. Allowed values: `SHIPPING`, `TAX`.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Specific amount for this charge model.
*
* @param PayPalApiCurrency $amount
*
* @return $this
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Specific amount for this charge model.
*
* @return PayPalApiCurrency
*/
public function getAmount()
{
return $this->amount;
}
}