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

namespace PayPalApi;

use 
PayPalCommonPayPalModel;

/**
 * Class Terms
 *
 * Resource representing terms used by the plan.
 *
 * @package PayPalApi
 *
 * @property string id
 * @property string type
 * @property PayPalApiCurrency max_billing_amount
 * @property string occurrences
 * @property PayPalApiCurrency 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 PayPalApiCurrency $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 PayPalApiCurrency
     */
    
public function getMaxBillingAmount()
    {
        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 PayPalApiCurrency $amount_range
     * 
     * @return $this
     */
    
public function setAmountRange($amount_range)
    {
        
$this->amount_range $amount_range;
        return 
$this;
    }

    
/**
     * Amount_range associated with this term.
     *
     * @return PayPalApiCurrency
     */
    
public function getAmountRange()
    {
        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;
    }

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