mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-10 21:08:41 +00:00
66 lines
1.2 KiB
PHP
66 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace PayPal\Api;
|
|
|
|
use PayPal\Common\PayPalModel;
|
|
|
|
/**
|
|
* Class OverrideChargeModel
|
|
*
|
|
* A resource representing an override_charge_model to be used during creation of the agreement.
|
|
*
|
|
* @package PayPal\Api
|
|
*
|
|
* @property string charge_id
|
|
* @property \PayPal\Api\Currency amount
|
|
*/
|
|
class OverrideChargeModel extends PayPalModel
|
|
{
|
|
/**
|
|
* ID of charge model.
|
|
*
|
|
* @param string $charge_id
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setChargeId($charge_id)
|
|
{
|
|
$this->charge_id = $charge_id;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* ID of charge model.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getChargeId()
|
|
{
|
|
return $this->charge_id;
|
|
}
|
|
|
|
/**
|
|
* Updated Amount to be associated with this charge model.
|
|
*
|
|
* @param \PayPal\Api\Currency $amount
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setAmount($amount)
|
|
{
|
|
$this->amount = $amount;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Updated Amount to be associated with this charge model.
|
|
*
|
|
* @return \PayPal\Api\Currency
|
|
*/
|
|
public function getAmount()
|
|
{
|
|
return $this->amount;
|
|
}
|
|
|
|
}
|