Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/PayPal/paypal/rest-api-sdk-php/lib/PayPal/Api/CustomAmount.php
Строк: 52
<?php

namespace PayPalApi;

use 
PayPalCommonPayPalModel;

/**
 * Class CustomAmount
 *
 * The custom amount applied on an invoice. If you include a label, the amount cannot be empty.
 *
 * @package PayPalApi
 *
 * @property string label
 * @property PayPalApiCurrency amount
 */
class CustomAmount extends PayPalModel
{
    
/**
     * The custom amount label. Maximum length is 25 characters.
     *
     * @param string $label
     * 
     * @return $this
     */
    
public function setLabel($label)
    {
        
$this->label $label;
        return 
$this;
    }

    
/**
     * The custom amount label. Maximum length is 25 characters.
     *
     * @return string
     */
    
public function getLabel()
    {
        return 
$this->label;
    }

    
/**
     * The custom amount value. Valid range is from -999999.99 to 999999.99.
     *
     * @param PayPalApiCurrency $amount
     * 
     * @return $this
     */
    
public function setAmount($amount)
    {
        
$this->amount $amount;
        return 
$this;
    }

    
/**
     * The custom amount value. Valid range is from -999999.99 to 999999.99.
     *
     * @return PayPalApiCurrency
     */
    
public function getAmount()
    {
        return 
$this->amount;
    }

}
Онлайн: 2
Реклама